Embedded YouTube video

I want to embed a youtube video such that the user cannot do anything to change how the video is displayed. I don't want them to be able to pause, fast forward, rewind, or watch the video again. I am having troubles doing this.

I have gotten rid of the bar at the top and bottom and have tried to get rid of keyboard controls, but this has failed. Here is a list of my current issues:

  • There is a YouTube video that appears when the mouse hovers over the video. This takes you to the YouTube site. I don't want this to be available.
  • Even though I did "disablekb=1", you can still use the keyboard to control the video.
  • You can pause the video by clicking on it.
  • At the very end after the video is over, there is a bar at the top wherein the user can click on a link to the video in YouTube. I don't want this to be available.
  • Also at the very end after the video is over, you can click on a button to replay the video.
  • Here is my current code (using a YouTube video as a placeholder for the one that will actually be in there):

     <iframe width="640" height="360" src="//www.youtube.com/embed/RMINSD7MmT4?modestbranding=0&amp;autoplay=1&amp;controls=0&amp;fs=0&amp;showinfo=0&amp;disablekb=1&amp;rel=0" frameborder="0"></iframe>
    

    I did find a related post here, but I am not sure how to implement this. Plus, it only takes care of one of the problems.

    If I can't do this what I want with YouTube, are there other sites that might work better?

    链接地址: http://www.djcxy.com/p/47458.html

    上一篇: YouTube嵌入的视频不能在Safari中的iOS 9上播放

    下一篇: 嵌入YouTube视频