Making youtube.com/embed URLs work on iOS

后端 未结 4 1484
慢半拍i
慢半拍i 2020-12-05 08:06

For a given video on YouTube, you can visit http://youtube.com/watch?v=[code] on any iOS device to see the video.

However, if you use the http://youtube.com/embed/[c

4条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 08:33

    Consider using MediaElement.js. It can wrap youtube videos for display as html5 on ios, with flash fallback for other device/browser types.

    One of the demos that are provided with the source shows this, and it's fairly simple:

    
    
    
    

提交回复
热议问题