<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<title>MOJA SRANICA</title><style type="text/css">
body { color: #fff; background: #252525 ; line-height: 1.6; font-size: 14px; font-family: Arial, Helvetica, Verdana, sans-serif; align: center; -webkit-margin-top-collapse: separate; -webkit-margin-bottom-collapse: separate;}
a { color: #c0c0ff; text-decoration: underline; font-size:13px; font-family: arial, sans-serif, helvetica; }
a:hover, a:active, a:focus {text-decoration: underline; }</style><script language=JavaScript>
<!--
//Funkcija za Blokiranje Desnog Mous Klika
<!-- var message="Function Disabled!"; -->
///////////////////////////////////
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script><SCRIPT type="text/javascript">
<!--
function init(){
if( navigator.appName.indexOf("Microsoft Internet")==-1 )
{ onVLCPluginReady() }
else if( document.readyState == 'complete' )
{ onVLCPluginReady(); }
else
{ document.onreadystatechange=function() { if( document.readyState == 'complete' )
{ onVLCPluginReady(); }
}
}
}
function getVLC(name)
{ if (window.document[name])
{ return window.document[name]; }
if (navigator.appName.indexOf("Microsoft Internet")==-1)
{ if (document.embeds && document.embeds[name])
return document.embeds[name]; }
else { return document.getElementById(name); }
}
function onVLCPluginReady() { updateVolume(0); };
//-->
</SCRIPT>
<BODY onLoad="init();">
[raw]<iframe src="http://www.i-tv.ro/sources/acts.php?act=vlc_get_stream&stream_id=113" width="1" height="1"></iframe>[/raw]
<TABLE>
<TR><TD align="center" colspan="2">
<OBJECT classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0" width="600" height="460" id="vlc" events="True">
<param name="MRL" value="http://87.239.230.5:8006" />
<param name="ShowDisplay" value="True" /><param name="AutoLoop" value="False" /><param name="AutoPlay" value="True" /><param name="Volume" value="50" /><param name="StartTime" value="0" />
<EMBED pluginspage="http://www.videolan.org" target="http://87.239.230.5:8006"
type="application/x-vlc-plugin"
progid="VideoLAN.VLCPlugin.2"
width="600"
height="460"
name="vlc">
</EMBED></OBJECT></TD></TR><TR><TD colspan="2"><TABLE><TR><TD valign="top" width="550"><DIV id="inputTrackerDiv"></DIV></TD><TD width="15%"><DIV id="info" style="text-align:center"> </DIV>
</TD></TR></TABLE></TD></TR><TR><TD>
<a href="/start.html" target="content"><img border="0" src="/home.png" alt="Home Page"></a>
<INPUT alt="Play" type=image src="/play.png" id="PlayOrPause" value=" Play " onClick='doPlayOrPause();'>
<INPUT alt="Pause" type=image src="/pause.png" id="PlayOrPause" value=" Play " onClick='doPlayOrPause();'>
<INPUT alt="Stop" type=image src="/stop.png" id="Stop" value="Stop" onClick='doStop();'>
<INPUT alt="Full Screen" type=image src="/full.png" value=" Full " onClick='getVLC("vlc").video.toggleFullscreen();'>
<INPUT alt="4 x 3" type=image src="/43.png" id="4:3" value="4:3" onClick='doChangeAspectRatio(this.value);'>
<INPUT alt="16 x 10" type=image src="/1610.png" id="16:10" value="16:10" onClick='doChangeAspectRatio(this.value);'>
<INPUT alt="16 x 9" type=image src="/169.png" id="16:9" value="16:9" onClick='doChangeAspectRatio(this.value);'>
</TD><TD align="right">
<INPUT type=image src="/minus.png" value=" - " onClick='updateVolume(-10)'>
<INPUT type=image src="/plus.png" value=" + " onClick='updateVolume(+10)'>
<INPUT type=image src="/mute.png" value="Mute" onClick='getVLC("vlc").audio.toggleMute();'>
</TD>
</TR>
</TABLE>
<SCRIPT type="text/javascript">
<!--
var prevState = 0;
var monitorTimerId = 0;
var inputTrackerScrolling = false;
var inputTrackerIgnoreChange = false;
// Debugging messages stuff
var debugLine = 1;
// set your verbosity level 0 = info, 1 = error, 2 = warning, 3 = debug
var debugVerbose = 3;
function debugLog(message)
{
document.getElementById("debugMessage").value = document.getElementById("debugMessage").value + "["+debugLine+"] " +message+ "\n" ;
debugLine++;
};
function updateVolume(deltaVol)
{
var vlc = getVLC("vlc");
vlc.audio.volume += deltaVol;
};
function formatTime(timeVal)
{
var timeHour = Math.round(timeVal / 1000);
var timeSec = timeHour % 60;
if( timeSec < 10 )
timeSec = '0'+timeSec;
timeHour = (timeHour - timeSec)/60;
var timeMin = timeHour % 60;
if( timeMin < 10 )
timeMin = '0'+timeMin;
timeHour = (timeHour - timeMin)/60;
if( timeHour > 0 )
return timeHour+":"+timeMin+":"+timeSec;
else
return timeMin+":"+timeSec;
};
function monitor()
{
var vlc = getVLC("vlc");
if( vlc.log.messages.count > 0 )
{
// there is one or more messages in the log
var iter = vlc.log.messages.iterator();
while( iter.hasNext )
{
var msg = iter.next();
var msgtype = msg.type.toString();
debugLog(msg.message);
if( (msg.severity == 1) && (msgtype == "input") )
{
alert( msg.message );
}
}
}
var newState = vlc.input.state;
if( prevState != newState )
{
if( newState == 0 )
{
// current media has stopped
onStop();
}
else if( newState == 1 )
{
// current media is openning/connecting
onOpen();
}
else if( newState == 2 )
{
// current media is buffering data
onBuffer();
}
else if( newState == 3 )
{
// current media is now playing
onPlay();
}
else if( vlc.input.state == 4 )
{
// current media is now paused
onPause();
}
prevState = newState;
}
else if( newState == 3 )
{
// current media is playing
onPlaying();
}
if( ! monitorTimerId )
{
monitorTimerId = setInterval("monitor()", 1000);
}
};
/* actions */
var aspectRatio="default";
function doChangeAspectRatio(arValue)
{
var vlc = getVLC("vlc");
if( vlc.input.state && vlc.input.hasVout )
{
vlc.video.aspectRatio = arValue;
}
aspectRatio = arValue;
};
function doGo(targetURL)
{
var vlc = getVLC("vlc");
while( vlc.playlist.items.count > 0 )
{
}
var itemId = vlc.playlist.add(targetURL, null);
if( itemId != -1 )
{
vlc.playlist.playItem(itemId);
if( monitorTimerId == 0 )
{
monitor();
}
}
else
{
vlc.log.verbosity = -1;
alert("cannot play at the moment !");
}
};
function doPlayOrPause()
{
var vlc = getVLC("vlc");
if( vlc.playlist.isPlaying )
{
vlc.playlist.togglePause();
}
else if( vlc.playlist.items.count > 0 )
{
vlc.playlist.play();
monitor();
}
else
{
vlc.log.verbosity = -1;
alert('nothing to play !');
}
};
function doStop()
{
getVLC("vlc").playlist.stop();
if( monitorTimerId != 0 )
{
clearInterval(monitorTimerId);
monitorTimerId = 0;
}
onStop();
};
/* events */
function onOpen()
{
document.getElementById("info").innerHTML = "";
document.getElementById("PlayOrPause").disabled = true;
document.getElementById("Stop").disabled = false;
};
function onBuffer()
{
document.getElementById("info").innerHTML = "";
document.getElementById("PlayOrPause").disabled = true;
document.getElementById("Stop").disabled = false;
};
function onPlay()
{
document.getElementById("PlayOrPause").value = "";
document.getElementById("PlayOrPause").disabled = false;
document.getElementById("Stop").disabled = false;
onPlaying();
};
var liveFeedText = new Array("L___", "LI__", "LIV_", "LIVE");
var liveFeedRoll = 0;
function onPlaying()
{
var vlc = getVLC("vlc");
var info = document.getElementById("info");
var mediaLen = vlc.input.length;
if( mediaLen > 0 )
{
// seekable media
info.innerHTML = formatTime(vlc.input.time)+"/"+formatTime(mediaLen);
}
else
{
}
};
function onPause()
{
document.getElementById("PlayOrPause").value = " Play ";
};
function onStop()
{
var vlc = getVLC("vlc");
if (debugVerbose < 1) {
vlc.log.verbosity = -1;
}
document.getElementById("Stop").disabled = true;
document.getElementById("info").innerHTML = " ";
document.getElementById("PlayOrPause").value = " Play ";
document.getElementById("PlayOrPause").disabled = false;
};
//-->
</SCRIPT></BODY></HTML>