0

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>
double-beep
  • 5,031
  • 17
  • 33
  • 41
  • Try [videojs](http://videojs.com) – Raptor Mar 31 '14 at 06:50
  • I would love to use videojs - but as I said I need to support *.mov and Video.js can not support it. (at least not in a way I see) – Uther Pendragon Mar 31 '14 at 08:35
  • MOV is not a good format for online videos. It requires iTunes / QuickTime to be installed in Windows OS. AVI is Windows OS only too (unless plugin is installed). Consider to use mp4 / webm / ogv format. – Raptor Mar 31 '14 at 08:45
  • Problem is that all video material is in *.mov and a conversion would be problematic due to the value of data. - But I can have quicktime installed for all users that will comment. The avi files i can convert in a better format. – Uther Pendragon Mar 31 '14 at 08:51
  • Use HTML5 ` – Raptor Mar 31 '14 at 08:59
  • tried it - doesn't work for *.mov in safari or IE with quicktime – Uther Pendragon Mar 31 '14 at 09:17
  • it seems there is no way to do this with *.mov - in other formats I have no problem... – Uther Pendragon Mar 31 '14 at 09:21
  • what is the error shown? Plugin missing / cannot be loaded / anything else? What is your QuickTime codec ? – Raptor Mar 31 '14 at 09:33
  • No errors at all. All functions come back with Value 0 under Safari. Chrome & FF can't play *.mov which is not a problem bc i can tell the ppl what to use. My Video and JS Code: ` ` – Uther Pendragon Mar 31 '14 at 09:38

1 Answers1

1

I think this is a good project for WebChimera. It has a wide range of video and audio format support (needs a plugin installed though).

Check out the Wiki. If you are using WebChimera Player, to get the current time in milliseconds use wjs("#webchimera").plugin.time. If you want to learn QT QML, you could even display the comments inside the video (like souncloud does).

Jaruba
  • 1,055
  • 11
  • 22