Dear ipcamtalk forum,
I am stucked, I have a chinese p2p ipcam and I can be able to watch the stream through Internet Explorer. But I also want to use vlc to watch both sub and mainstream. I investigate the source code and find the following.
How can I find the main and substream links to play in VLC player!
Thanks!
Code:
function OpenSetVideoParam()
{
bright = Video.GetBright(0);
contrast = Video.GetContrast(0);
saturation = Video.GetSaturation(0);
sharpness = Video.GetSharpness(0);
slider1.setValue(bright);
slider2.setValue(contrast);
slider3.setValue(saturation);
slider4.setValue(sharpness);
}
function OpenVideo()
{
serverIP = document.domain;
var hostIP = "192.168.1.24";
if(serverIP.localeCompare(hostIP)==0){
typeIP = 0;
}
Port = window.location.port;
if( Port != 4001 ){
Port = 4001;
}
if(Video.LoginDevice(serverIP,Port,"admin","pass"))
{
VidepenChannelEx(1,1);
}
}
function CHANGECHANNEL(status)
{
document.CODE_POST.Username.value = "admin";
document.CODE_POST.Password.value = "admin";
document.CODE_POST.CMD_INDEX_CODE_SET.value = 1;
document.CODE_POST.PARAM_CODE_I.value = status;
document.CODE_POST.submit();
}
function CloseVideo()
{
Video.LogoffDevice();
}
function nextPageLoad()
{
ConnectVideo();
bright = Video.GetBright(0);
contrast = Video.GetContrast(0);
saturation = Video.GetSaturation(0);
sharpness = Video.GetSharpness(0);
}
function GetServerIP(sHref, sArgName)
{
var args = sHref.split("/");
var retval = "";
if(args[0] == sHref)
{
return retval;
}
var IP = args[2].split(":");
return IP[0];
}
function ConnectVideo()
{
serverIP = GetServerIP(document.location.href,0);
var ConnStatus = 0;
var ConnectStatus = 0;
if (0 == ConnectStatus)
{
Port = window.location.port;
if( Port != 4001 ){
Port = 4001;
}
ConnectStatus = 1;
}else{
ConnectStatus = 0;
}
I am stucked, I have a chinese p2p ipcam and I can be able to watch the stream through Internet Explorer. But I also want to use vlc to watch both sub and mainstream. I investigate the source code and find the following.
How can I find the main and substream links to play in VLC player!
Thanks!
Code:
function OpenSetVideoParam()
{
bright = Video.GetBright(0);
contrast = Video.GetContrast(0);
saturation = Video.GetSaturation(0);
sharpness = Video.GetSharpness(0);
slider1.setValue(bright);
slider2.setValue(contrast);
slider3.setValue(saturation);
slider4.setValue(sharpness);
}
function OpenVideo()
{
serverIP = document.domain;
var hostIP = "192.168.1.24";
if(serverIP.localeCompare(hostIP)==0){
typeIP = 0;
}
Port = window.location.port;
if( Port != 4001 ){
Port = 4001;
}
if(Video.LoginDevice(serverIP,Port,"admin","pass"))
{
VidepenChannelEx(1,1);
}
}
function CHANGECHANNEL(status)
{
document.CODE_POST.Username.value = "admin";
document.CODE_POST.Password.value = "admin";
document.CODE_POST.CMD_INDEX_CODE_SET.value = 1;
document.CODE_POST.PARAM_CODE_I.value = status;
document.CODE_POST.submit();
}
function CloseVideo()
{
Video.LogoffDevice();
}
function nextPageLoad()
{
ConnectVideo();
bright = Video.GetBright(0);
contrast = Video.GetContrast(0);
saturation = Video.GetSaturation(0);
sharpness = Video.GetSharpness(0);
}
function GetServerIP(sHref, sArgName)
{
var args = sHref.split("/");
var retval = "";
if(args[0] == sHref)
{
return retval;
}
var IP = args[2].split(":");
return IP[0];
}
function ConnectVideo()
{
serverIP = GetServerIP(document.location.href,0);
var ConnStatus = 0;
var ConnectStatus = 0;
if (0 == ConnectStatus)
{
Port = window.location.port;
if( Port != 4001 ){
Port = 4001;
}
ConnectStatus = 1;
}else{
ConnectStatus = 0;
}