IE always hang ??? [fixed]
Posted: 07 Jan 2009 10:49
I am using the IE 7.0, and VLC 0.9.8a
I don't know why the html page will crash the IE ...
(the JS file VLCobject is downloaded from revolunet )
Does VLC support IE 7.0?
I don't know why the html page will crash the IE ...
(the JS file VLCobject is downloaded from revolunet )
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Streaming Client </TITLE>
</HEAD>
<BODY>
<center>
<div id="vlccontents">
Player loading...
</div>
<script type="text/javascript" src="VLCobject.js"></script>
<script type="text/javascript">
var so = new VLCObject("clientOutput", "600", "350");
so.write("vlccontents");
</script>
<br><br>
<script type="text/javascript">
var vout_state = false;
var subtitle_index = 0;
var audio_track_index = 1;
var vlc_state = 0;
function vlcOperation(opCode) {
var vlc = document.getElementById("clientOutput");
if (opCode == 0) {
vlc.playlist.items.clear();
while (vlc.playlist.items.count != 0) {
}
vlc.playlist.add("udp://@224.0.0.40:1234", "", " :vout-filter=deinterlace :deinterlace-mode=linear");
vlc.playlist.play();
vlc.video.subtitle = subtitle_index;
vlc.audio.track = audio_track_index;
vlc.audio.volume = 200;
} else if (opCode == 1) {
vout_state = vlc.input.hasVout;
}
};
function handleVLC() {
if (vlc_state == 0) {
vlcOperation(0);
vlc_state = 1;
} else if (vlc_state == 1) {
vlcOperation(1);
if (vout_state == true) {
vlc_state = 2;
} else {
vlc_state = 0;
}
} else if (vlc_state == 2) {
clearInterval(handleVLCIntervalId);
} else {
vlc_state = 0;
}
};
</script>
<script type="text/javascript">
handleVLCIntervalId = setInterval('handleVLC()', 500);
</script>
</center>
</BODY>
</HTML>