Jump to content

Modify WebInterface Stream feature


Recommended Posts

Posted

How to modify "Streaming" feature inside webinterface so it won't ask questions about how it will stream.

 

I would want it to "Direct Stream" with TS without biljon questions directly when you press the channel logo.

 

Should be possible since you can edit html files but anyone know how to edit?

  • 3 weeks later...
Posted

Made little modification to global.js:

 

Before:

function popupStream(URL) {
if (URL!="")
{
   var topP = (screen.availHeight - 600) / 2;
   var leftP = (screen.availWidth - 600) / 2;
   var popupwindow =window.open(URL, '_new3', 'width=600, height=600,top=' + topP + ',left=' + leftP +', scrollbars=yes, resizable=yes');
      popupwindow.focus();
}
}

After:

function popupStream(URL) {
if (URL!="")
{
var splitKanava = URL.split("=");

if (splitKanava="channel")
{
var splitKanava = URL.split("=");
kanava = splitKanava[splitKanava.length-1];
window.location = "http://192.168.0.2:8001/index.html?stream=start&ip=192.168.0.2:7522/upnp/channelstream/"+kanava+".ts&player=VLC"
}

if (splitKanava="recID")
{
var splitKanava = URL.split("=");
kanava = splitKanava[splitKanava.length-1];
window.location = "http://192.168.0.2:8001/index.html?stream=start&ip=192.168.0.2:8001/upnp/recordings/"+kanava+".ts&player=VLC"
}

}
}

Posted

Forget the first one, it has a bug.

File: C:\Program Files (x86)\DVBViewer\SVCweb\global.js

Before:

function popupStream(URL) {
if (URL!="")
{
   var topP = (screen.availHeight - 600) / 2;
   var leftP = (screen.availWidth - 600) / 2;
   var popupwindow =window.open(URL, '_new3', 'width=600, height=600,top=' + topP + ',left=' + leftP +', scrollbars=yes, resizable=yes');
      popupwindow.focus();
}
}

After:

function popupStream(URL) {
if (URL!="")
{

var splitKanava = URL.split("=");
kanava = splitKanava[splitKanava.length-1];

if (URL.search("&chid")>0)
{
window.location = "http://192.168.0.2:8001/index.html?stream=start&ip=192.168.0.2:7522/upnp/channelstream/"+kanava+".ts&player=VLC"
}

if (URL.search("&recid")>0)
{
window.location = "http://192.168.0.2:8001/index.html?stream=start&ip=192.168.0.2:8001/upnp/recordings/"+kanava+".ts&player=VLC"
}

}
}

×
×
  • Create New...