Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
161 views
in Technique[技术] by (71.8m points)

flash - parallel presentation player

I am looking for a Web-based Player which can display i.e. the presentation on the left side and the lecturer on the right side. With a button click (or other action) the user has control about the visibility of the lecturer, but the presentation is always visible.

This is one example: http://www.longtailvideo.com/addons/plugins/137/SlideSync-%28Beta%29?q=video%20effects but its not ready yet and does not fit my needs so well..

I just thought of just 2 jwPlayers side by side with a bit of javascript to synchronize them.. does anyone has expirience with this?

Thanks in advance

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

guess there is no ready to go solution yet, but you could set up an html5-player and listen to the timeupdate event via javascript.

f.e.

<video id="videoplayer" src="yourfile.mp4" .../>
<script>
  var player = document.getElementById("videoplayer");
  player.addEventListener('timeupdate', function(){

      var currentTime =player.currentTime;

      //define several intervalls for slices
      if( currentTime > 0 && currentTime < 10 ){

          //show slice-Image in html Canvas
      }
      else if... //different interval!

  });

</script>

this is only pseudocode to geive you an idea how to implement!! there are many ways how you can make this more dynamic (intervalls via json, xml....) hope it helps!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...