Multiple HTML5 media elements on one page in iOS (iPad)

后端 未结 5 2194
鱼传尺愫
鱼传尺愫 2021-01-31 18:05

My research has led me to learn that Apple\'s media element handler is a singleton, meaning I can\'t have a video playing while an audio is playing in

5条回答
  •  感动是毒
    2021-01-31 18:12

    This is currently not possible. As you notice when a video plays it takes up the full screen with quicktime and moves the browser to the background. The only solution at this time is to merge the audio and video together into an mp4 format and play that single item.

    If I understand you correctly, you are not able to merge the audio and video together because it relies on flash? Since iOS can't play flash you should merge the audio and video together and use flash as a backup. There are numerous html5 players which use javascript to try and play the html5 video first then fallback to flash for backup.

提交回复
热议问题