mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
SquashSRS4: Refine srs.sdk.js
This commit is contained in:
parent
cc52e5b27c
commit
81bda41b31
7 changed files with 83 additions and 46 deletions
34
README.md
34
README.md
|
@ -9,9 +9,10 @@ SRS/4.0,[Leo][release4],是一个简单高效的实时视频服务器,支
|
|||
|
||||
SRS is a simple, high efficiency and realtime video server, supports RTMP/WebRTC/HLS/HTTP-FLV/SRT/GB28181.
|
||||
|
||||
> Note: SRS is licenced under [MIT][LICENSE], but some depended libraries are distributed using their [own licenses][LicenseMixing].
|
||||
SRS is licenced under [MIT][LICENSE], but some depended libraries are distributed using their [own licenses][LicenseMixing].
|
||||
|
||||
<a name="product"></a>
|
||||
<a name="usage-docker"></a>
|
||||
## Usage
|
||||
|
||||
Run SRS by [docker][docker-srs4], images is [here](https://hub.docker.com/r/ossrs/srs/tags) or [there](https://cr.console.aliyun.com/repository/cn-hangzhou/ossrs/srs/images),
|
||||
|
@ -23,6 +24,7 @@ docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 \
|
|||
ossrs/srs:v4.0.117 ./objs/srs -c conf/srs.conf
|
||||
```
|
||||
|
||||
<a name="usage-source"></a>
|
||||
Or build SRS from source(or [mirrors](#mirrors)), by CentOS7(or Linux([CN][v4_CN_Build],[EN][v4_EN_Build])):
|
||||
|
||||
```
|
||||
|
@ -77,15 +79,20 @@ Other important wiki:
|
|||
|
||||
## Ports
|
||||
|
||||
The ports used by SRS:
|
||||
The ports used by SRS, kernel services:
|
||||
|
||||
* tcp://1935, for RTMP live streaming server([CN][v4_CN_DeliveryRTMP],[EN][v4_EN_DeliveryRTMP]).
|
||||
* tcp://1985, HTTP API server, for HTTP-API([CN][v4_CN_HTTPApi], [EN][v4_EN_HTTPApi]), WebRTC([CN][v4_CN_WebRTC], [EN][v4_EN_WebRTC]), etc.
|
||||
* tcp://8080, HTTP live streaming server, HTTP-FLV([CN][v4_CN_SampleHttpFlv], [EN][v4_EN_SampleHttpFlv]), HLS([CN][v4_CN_SampleHLS], [EN][v4_EN_SampleHLS]) as such.
|
||||
* udp://8000, WebRTC Media([CN][v4_CN_WebRTC], [EN][v4_EN_WebRTC]) server.
|
||||
|
||||
For optional HTTPS services, which might be provided by other web servers:
|
||||
|
||||
* tcp://1935, for RTMP live streaming server.
|
||||
* tcp://1985, HTTP API server.
|
||||
* tcp://1990, HTTPS API server.
|
||||
* tcp://8080, HTTP live streaming server.
|
||||
* tcp://8088, HTTPS live streaming server.
|
||||
* udp://8000, [WebRTC Media](https://github.com/ossrs/srs/wiki/v4_CN_WebRTC) server.
|
||||
* udp://1980, [WebRTC Signaling](https://github.com/ossrs/signaling#usage) server.
|
||||
* tcp://1990, HTTPS API server.
|
||||
|
||||
For optional stream caster services, to push streams to SRS:
|
||||
|
||||
* udp://8935, Stream Caster: [Push MPEGTS over UDP](https://github.com/ossrs/srs/wiki/v4_CN_Streamer#push-mpeg-ts-over-udp) server.
|
||||
* tcp://554, Stream Caster: [Push RTSP](https://github.com/ossrs/srs/wiki/v4_CN_Streamer#push-rtsp-to-srs) server.
|
||||
* tcp://8936, Stream Caster: [Push HTTP-FLV](https://github.com/ossrs/srs/wiki/v4_CN_Streamer#push-http-flv-to-srs) server.
|
||||
|
@ -93,6 +100,10 @@ The ports used by SRS:
|
|||
* udp://9000, Stream Caster: [Push GB28181 Media(bundle)](https://github.com/ossrs/srs/issues/1500#issuecomment-606695679) server.
|
||||
* udp://58200-58300, Stream Caster: [Push GB28181 Media(no-bundle)](https://github.com/ossrs/srs/issues/1500#issuecomment-606695679) server.
|
||||
* udp://10080, Stream Caster: [Push SRT Media](https://github.com/ossrs/srs/issues/1147#issuecomment-577469119) server.
|
||||
|
||||
For external services to work with SRS:
|
||||
|
||||
* udp://1989, [WebRTC Signaling](https://github.com/ossrs/signaling#usage) server.
|
||||
|
||||
## Features
|
||||
|
||||
|
@ -1298,14 +1309,13 @@ Remark:
|
|||
| ......) | | |
|
||||
+----------------------+ | |
|
||||
| MediaSource(2) | | |
|
||||
| (RTSP,FILE, | | |
|
||||
| HTTP,HLS, --push-+->- StreamCaster(4) -(rtmp)-+-> SRS |
|
||||
| Device, | | |
|
||||
| (MPEGTSoverUDP | | |
|
||||
| HTTP-FLV, --push-+->- StreamCaster(4) -(rtmp)-+-> SRS |
|
||||
| GB28181,SRT, | | |
|
||||
| ......) | | |
|
||||
+----------------------+ | |
|
||||
| FFMPEG --push(srt)--+->- SRTModule(5) ---(rtmp)-+-> SRS |
|
||||
+----------------------+----------------------------+----------------+
|
||||
|
||||
```
|
||||
|
||||
Remark:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue