mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Tools: Update console and httpx.
This commit is contained in:
parent
2c259bd95b
commit
d877c0b76f
9 changed files with 3623 additions and 3598 deletions
|
@ -578,6 +578,23 @@ scApp.filter('sc_filter_preview_url', ['$sc_server', function($sc_server){
|
|||
};
|
||||
}]);
|
||||
|
||||
scApp.filter('sc_filter_streamURL', function(){
|
||||
return function(v){
|
||||
if (!v || !v.url) return '';
|
||||
|
||||
const pos = v.url.lastIndexOf('/');
|
||||
const stream = pos < 0 ? '' : v.url.substr(pos);
|
||||
|
||||
const pos2 = v.tcUrl.indexOf('?');
|
||||
const tcUrl = pos2 < 0 ? v.tcUrl : v.tcUrl.substr(0, pos2);
|
||||
|
||||
let params = pos2 < 0 ? '' : v.tcUrl.substr(pos2);
|
||||
if (params === '?vhost=__defaultVhost__' || params === '?domain=__defaultVhost__') params = '';
|
||||
|
||||
return `${tcUrl}${stream}${params}`;
|
||||
};
|
||||
});
|
||||
|
||||
// the sc nav is the nevigator
|
||||
scApp.provider("$sc_nav", function(){
|
||||
this.$get = function(){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue