1
0
Fork 0
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:
winlin 2020-03-23 13:36:17 +08:00
parent 4c63319b5d
commit 57c23d93c1
3 changed files with 21 additions and 6 deletions

View file

@ -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/';