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

fix bug of play stream of nginx, remove the start slash of streamName.

This commit is contained in:
winlin 2014-01-01 13:58:58 +08:00
parent 273bdb2242
commit fabdf9507e
4 changed files with 1 additions and 1 deletions

View file

@ -334,7 +334,7 @@ package
if (url.indexOf("http") == 0) {
media_stream.play(url);
} else {
var streamName:String = url.substr(url.lastIndexOf("/"));
var streamName:String = url.substr(url.lastIndexOf("/") + 1);
media_stream.play(streamName);
}