mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refactor url for rtc player
This commit is contained in:
parent
4c63319b5d
commit
57c23d93c1
3 changed files with 21 additions and 6 deletions
|
@ -82,7 +82,7 @@
|
|||
return pc.setLocalDescription(offer).then(function(){ return offer; });
|
||||
}).then(function(offer) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
var port = urlObject.user_query.api || 1985;
|
||||
var port = urlObject.port || 1985;
|
||||
|
||||
// @see https://github.com/rtcdn/rtcdn-draft
|
||||
var api = urlObject.user_query.play || '/rtc/v1/play/';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue