Javascript player for managing playlist of vimeo *and* youtube videos?

梦想与她 提交于 2019-12-06 04:30:54

Your course of action should be:

  1. Have a movie container positioned on your page
  2. Look at first movie in your combined list
  3. Instantiate the relevant player (YT or vimeo) using their javascript API (Youtube, Vimeo ) inside the container.
  4. Add an event listener for movie ended on the created instance (both APIs support it)
  5. On movie ended event, clear the container
  6. Move list itarator to next movie
  7. Go to 2
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!