mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Update Usage
This commit is contained in:
parent
bd1ec99d5b
commit
c353f1fe57
3 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,7 @@ SRS is a simple, high efficiency and realtime video server, supports RTMP/WebRTC
|
||||||
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="product"></a>
|
||||||
|
<a name="usage-docker"></a>
|
||||||
## Usage
|
## 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),
|
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
|
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])):
|
Or build SRS from source(or [mirrors](#mirrors)), by CentOS7(or Linux([CN][v4_CN_Build],[EN][v4_EN_Build])):
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -330,6 +330,7 @@ function SrsRtcPlayerAsync() {
|
||||||
await self.pc.setRemoteDescription(
|
await self.pc.setRemoteDescription(
|
||||||
new RTCSessionDescription({type: 'answer', sdp: session.sdp})
|
new RTCSessionDescription({type: 'answer', sdp: session.sdp})
|
||||||
);
|
);
|
||||||
|
session.simulator = conf.schema + '//' + conf.urlObject.server + ':' + conf.port + '/rtc/v1/nack/';
|
||||||
return session;
|
return session;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -330,6 +330,8 @@ function SrsRtcPlayerAsync() {
|
||||||
await self.pc.setRemoteDescription(
|
await self.pc.setRemoteDescription(
|
||||||
new RTCSessionDescription({type: 'answer', sdp: session.sdp})
|
new RTCSessionDescription({type: 'answer', sdp: session.sdp})
|
||||||
);
|
);
|
||||||
|
session.simulator = conf.schema + '//' + conf.urlObject.server + ':' + conf.port + '/rtc/v1/nack/';
|
||||||
|
|
||||||
return session;
|
return session;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue