I have a Problem with .mov/.avi files.
I have a script where the movie is embedded and I have JavaScript shortcuts to start/stop the film.
Now I want that my members kan make annotations to the filmsequences, like the one on YouTube where you can mark a specific time in the movie.
Right now I embed the Movie like this:
<object data= "demo.mov" type= "video/quicktime" width= "400" height= "600" name="movie" id="film">
<param name=autostart value=no />Alternative Text</object>
And I have shortcuts for the JavaScript functions like this:
document.getElementById(container).Play();
document.getElementById(container).Stop();
So how can I get the Time-Index? - Or is there another way (like an HTML5 Player) so I can get the Timeindex for my Comments?
Video JavaScript Code:
<video id="example_video_1" data-setup='{ "controls": true, "autoplay": false, "preload": "auto" }'>
<source src="demo.mov" type='video/quicktime' />
</video>
<script type="text/javascript">
videojs("example_video_1").ready(function(){
var myPlayer = this;
myPlayer.currentTime(10);
//myPlayer.play();
});
</script>