2024年9月10日发(作者:贵英逸)
让iPad Airplay在HTML5视频上播放。
2011/03/29 1876 I’m doing this to enable Airplay on HTML5 video for my iPad 1st
generation with iOS 4.3.1.
我这么做是为了让我的iPad第一代在ios4.3.1上能够在HTML5视频上播放。
// Prototype JS framework$(‘videoContainer’).appendChild( new Element( ‘video’, {
id: ‘video0’, src: ‘shapeshed/examples/HTML5-video-element/video/320x240.m4v’,
controls: ‘true’, width: ‘200’, height: ‘200’,$(‘video0’).writeAttribute(‘x-webkit-airplay’,
‘allow’); When I turn on airplay, all I hear is audio on the TV. How do I enable video too?
当我打开airplay时,我听到的只是电视上的音频。如何启用视频?
Edit:
编辑:
According to Ben Dodson, you have to re-embed the video. I did this:
根据Ben Dodson的说法,你必须重新嵌入视频。我这样做:
$(‘videoContainer’).update($(‘videoContainer’).innerHTML); Is there any way around
this? Seems so hacky and it’s wasted processing.
有没有办法解决这个问题?看起来很陈腐,而且是浪费处理。
0
Try reformatting it as a .mp4 movie, and make sure that it is H.264 video with AAC
audio. It has to be H.264, or the iPad can’t steam it. (Got this from
macosrumors/2011/01/12/first-look-mobile-safari-airplay/)
尝试将它重新格式化为.mp4电影,并确保它是带有AAC音频的H.264视频。它
必须是H.264,否则iPad就无法运行。(macosrumors/2011/01/12/first-look-mobile-
safari-airplay/)有一
0
In old version of iOS maximum resolution supporting is 1024*576, However your
resolution is normal. Please convert the video using any video converter to .mp4 or
2024年9月10日发(作者:贵英逸)
让iPad Airplay在HTML5视频上播放。
2011/03/29 1876 I’m doing this to enable Airplay on HTML5 video for my iPad 1st
generation with iOS 4.3.1.
我这么做是为了让我的iPad第一代在ios4.3.1上能够在HTML5视频上播放。
// Prototype JS framework$(‘videoContainer’).appendChild( new Element( ‘video’, {
id: ‘video0’, src: ‘shapeshed/examples/HTML5-video-element/video/320x240.m4v’,
controls: ‘true’, width: ‘200’, height: ‘200’,$(‘video0’).writeAttribute(‘x-webkit-airplay’,
‘allow’); When I turn on airplay, all I hear is audio on the TV. How do I enable video too?
当我打开airplay时,我听到的只是电视上的音频。如何启用视频?
Edit:
编辑:
According to Ben Dodson, you have to re-embed the video. I did this:
根据Ben Dodson的说法,你必须重新嵌入视频。我这样做:
$(‘videoContainer’).update($(‘videoContainer’).innerHTML); Is there any way around
this? Seems so hacky and it’s wasted processing.
有没有办法解决这个问题?看起来很陈腐,而且是浪费处理。
0
Try reformatting it as a .mp4 movie, and make sure that it is H.264 video with AAC
audio. It has to be H.264, or the iPad can’t steam it. (Got this from
macosrumors/2011/01/12/first-look-mobile-safari-airplay/)
尝试将它重新格式化为.mp4电影,并确保它是带有AAC音频的H.264视频。它
必须是H.264,否则iPad就无法运行。(macosrumors/2011/01/12/first-look-mobile-
safari-airplay/)有一
0
In old version of iOS maximum resolution supporting is 1024*576, However your
resolution is normal. Please convert the video using any video converter to .mp4 or