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

Squash: Fix bugs

This commit is contained in:
winlin 2022-02-03 15:16:52 +08:00
parent b94ce1485a
commit 32bb96a5c2
8 changed files with 36 additions and 3 deletions

View file

@ -570,7 +570,7 @@ scApp.filter('sc_filter_style_error', function(){
scApp.filter('sc_filter_preview_url', ['$sc_server', function($sc_server){
return function(v){
var page = $sc_server.schema + "://ossrs.net/players/srs_player.html";
var page = $sc_server.schema + `://${$sc_server.host}:${$sc_server.http}/players/srs_player.html`;
var http = $sc_server.http[$sc_server.http.length - 1];
var query = "vhost=" + v.owner.name + "&app=" + v.app + "&stream=" + v.name + ".flv";
query += "&server=" + $sc_server.host +"&port=" + http + "&autostart=true&schema=" + $sc_server.schema;
@ -685,6 +685,10 @@ scApp.provider("$sc_server", [function(){
} else {
self.port = $location.port();
}
if ($location.search().http) {
self.http = [$location.search().http];
}
}
};
return self;