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:
parent
273bdb2242
commit
fabdf9507e
4 changed files with 1 additions and 1 deletions
Binary file not shown.
Binary file not shown.
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue