black screen on embedded video stream
Posted: 03 Oct 2014 12:59
Hi everyone.. Serious apologies if this has been addressed elsewhere. I have looked, but can't see anything.
I have a tv stream using tvheadend with subtitles being picked up in a very simple webpage (nicked from another thread here).
This is ultimately being picked up by a display tv running xibo but my issue is replicable in internet explorer.
Basically, when the page loads, it's a 50/50 chance as to whether the video is displayed. The audio loads 100%, but half of the time, i don't see anything from the plugin, just a black box. Resizing the window, minimizing or maximising or manually refreshing will often make it appear.. The machines are windows 64bit but running the standard 32bit Internet Explorer with the 32bit plugin. The plugin is installed via the VLC 2.1.5 Rincewind installer (32bit). I can replicate on at least 3 different machine types.
The html i use to embed the video is below (note the script at the top is to enable subtitles - i've tried the same code with the script removed and it makes no difference. sometimes works, sometimes doesnt):
Anyone got any suggestions? I did see some discussion about debugging.. but i'm not clear on how to enable that within the code above..
Thanks in advance!
Matt
I have a tv stream using tvheadend with subtitles being picked up in a very simple webpage (nicked from another thread here).
This is ultimately being picked up by a display tv running xibo but my issue is replicable in internet explorer.
Basically, when the page loads, it's a 50/50 chance as to whether the video is displayed. The audio loads 100%, but half of the time, i don't see anything from the plugin, just a black box. Resizing the window, minimizing or maximising or manually refreshing will often make it appear.. The machines are windows 64bit but running the standard 32bit Internet Explorer with the 32bit plugin. The plugin is installed via the VLC 2.1.5 Rincewind installer (32bit). I can replicate on at least 3 different machine types.
The html i use to embed the video is below (note the script at the top is to enable subtitles - i've tried the same code with the script removed and it makes no difference. sometimes works, sometimes doesnt):
Code: Select all
<!DOCTYPE html>
<html>
<head>
<title>VLC WebPlayer Start Subtitles and Mute Video on page load</title>
<script type="text/javascript">
function subtitles() {
var vlc = document.getElementById("vlc");
vlc.subtitle.track = '505';
}
function start() {
timeout = setTimeout(subtitles,2000);
}
</script>
</head>
<body bgcolor="#000000" onload=start()>
<center>
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab"
width="100%" id="vlc" >
<param name="Src" value="http://username:password@internal_address:1234/playlist/channelid/33" />
<param name="AutoPlay" value="True" />
<param name="AutoLoop" value="False" />
<param name="Controls" value="False" />
<param name="ShowDisplay" value="False" />
</center>
</object>
</body>
</html>
Thanks in advance!
Matt