Mozilla plugin seek() function
Posted: 24 Jan 2008 12:05
Seek doesn't seem to be working in the Mozilla plugin for me?
This is a test case:
It seems to be calling the function correctly because nothing appears in the error console and the video seems to freeze for a second but no seeking happens.
This is in firefox on Windows XP.
Any suggestions? Thanks.
This is a test case:
Code: Select all
<html>
<head>
<script type="text/javascript">
function play() {
var vlc = document.getElementById('vlc');
vlc.style.display = "block";
setTimeout(function () {
vlc.clear_playlist();
vlc.add_item('file:///X:/toby/bbc1.ts');
vlc.play();
}, 0);
}
function seek() {
var vlc = document.getElementById('vlc');
vlc.seek(30, false);
}
</script>
</head>
<body>
<a href="javascript:play();">play</a><br/>
<a href="javascript:seek();">forward</a>
<br/><br/>
<embed type="application/x-vlc-plugin" width="400"
height="300" flex="1" id="vlc"
style="display: none"/>
</body>
</html>
This is in firefox on Windows XP.
Any suggestions? Thanks.