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);
}