开发者

<iframe> embeded youtube video -seems to work but- stays loading in iphone

Well is kind of strange,

I can see the embed,

I can click the play button,

The video starts loading,

the video keeps loading and you never get to see the video.

I am using开发者_如何转开发 the: http://youtube.com/embed/videoID url and i tried many,

Any idea what i'm missing? this is the markup:

<iframe width="560" height="315" src="http://youtube.com/embed/{videoID}" frameborder="0" allowfullscreen> </iframe>

And can be tested here: http://toniweb.us/vimeo-like/nPlayer.html


Try accessing the YouTube website on the iPhone and playing any video from there--not within the YouTube app on the iPhone but from the YouTube page in Safari. If that doesn't work then I don't think you can do anything about it, it's some networking or Safari iOS issue. I know that on my iPhone I have never managed to play an embedded YouTube video, doing so gives the issue you describe (stuck in "loading"), for me it only ever works in the YouTube app. Could be due to the network I'm on.

If that's the case you could provide a link to open the video in the YouTube app. See this question on how to achieve this: Launch Youtube app with a video

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜