parallel presentation player

冷暖自知 提交于 2019-12-13 10:28:15

问题


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


回答1:


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!



来源:https://stackoverflow.com/questions/9099554/parallel-presentation-player

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!