1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

For #307, support mock server eip by API

This commit is contained in:
winlin 2020-04-07 11:36:26 +08:00
parent b2f0696976
commit 574ae58adc
5 changed files with 20 additions and 9 deletions

View file

@ -94,6 +94,8 @@
url += '&' + key + '=' + urlObject.user_query[key];
}
}
// Replace /rtc/v1/play/&k=v to /rtc/v1/play/?k=v
url = url.replace(api + '&', api + '?');
// @see https://github.com/rtcdn/rtcdn-draft
var data = {