use current location for the stream URL

This commit is contained in:
SuperBFG7 2017-07-30 13:27:15 +02:00
parent a212f1bcb7
commit 23a08c54af
1 changed files with 1 additions and 6 deletions

View File

@ -755,12 +755,7 @@ function setLocalStream(mpdhost) {
var mpdstream = $.cookie("mpdstream");
if ( !mpdstream ) {
mpdstream = "http://";
if ( mpdhost == "127.0.0.1" )
mpdstream += window.location.hostname;
else
mpdstream += mpdhost;
mpdstream += ":8000/";
mpdstream = "http://" + window.location.hostname + ":8000/";
$.cookie("mpdstream", mpdstream, { expires: 424242 });
}