iPhone应用程序中的Vimeo视频 [英] Vimeo videos in iPhone app

查看:134
本文介绍了iPhone应用程序中的Vimeo视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有办法在iPhone应用中嵌入Vimeo视频。

I was wondering if there's a way to "embed" a Vimeo video in an iPhone app.

对于YouTube视频,我正在使用包含YouTube视频正确嵌入代码的网页视图,然后iPhone的原生YouTube支持会将Flash播放器转换为YouTube按钮。

For YouTube videos I'm using a webview containing the correct embed code for the YouTube video and the iPhone's native YouTube support will then transform the flash player into a YouTube button.

是否有类似的方式从我的应用程序播放Vimeo视频?

Is there a similar way to play Vimeo videos from my app?

也许有人知道正确的< video> -src for Vimeo视频?

Maybe someone knows the correct <video>-src for Vimeo videos?

谢谢,
Thomas

thanks, Thomas

推荐答案

似乎vimeo正在将当前上传的所有视频转码为与iphone兼容的版本,当您从iphone或ipad浏览时,这些版本在其网站上使用。然而,你可以通过做一些这里发现的简单技巧。如果您可以在某个地方托管您网站上的页面,您可以将视频加载到UIWebView中,它应该都可以正常工作。 Vimeo的唯一限制是嵌入代码是flash,但视频基础设施完全适用于HTML5。希望这有帮助!

It appears that vimeo is transcoding all videos being uploaded these days into versions compatible for the iphone which are used on their site when you browse from an iphone or ipad. You can however call their videos into an HTML5 player on your site by doing some simple tricks found here. If you can host a page on your site somewhere, you can load the video into a UIWebView and it should all work. Vimeo's only limitation is that there embed code is flash but the video infrastructure is all there for HTML5. Hope this helps!

这篇关于iPhone应用程序中的Vimeo视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆