将视频从 Vimeo 流式传输到 Android
我正在寻找一种方法将我的视频从 vimeo.com 流式传输到 android 手机,他们的 API 仅适用于 Web,我也尝试将他们的播放器嵌入到 WebView 中,但这样我可以看到缩略图,但视频无法播放,我使用的是 Android 2.2 并安装了 Flash Player。
有没有办法让嵌入式播放器在 Android 上工作或有其他更好的方法来做到这一点?
I am looking for a way to stream my videos from vimeo.com to android phone, their API is only available for Web, I have also tried to embed their player in WebView but that way I can see the thumbnail but video won't play, I am using Android 2.2 and Have Flash Player installed.
Is there way to make embedded players work on android or any other better way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您不必使用 adv api 来播放 vimeo 视频。这是 oembed api 使用的视频 URL。我设法得到这个渲染并在网络视图中播放。
另外值得检查的是 Flash 播放器是否已启用并且已安装
You don't have to use the adv api to play vimeo videos. This is the video url the oembed api uses. I managed to get this rendering and playing in webview.
Also worth checking flash player is enabled and installed
不,你必须使用高级 API 并让用户获得授权,我一直在尝试找到解决此问题的方法,但
真正的 url 不是这样的
http://player.vimeo.com/play_redirect?quality=mobile&clip_id=s00000000&time=1318531921&sig=4c8a2fcb3303c5b76112046e84f516f8&type=mobile_site
不是
player.vimeo.com/video/0000000
在您使用高级 api 设置 oauth 后传递的 sig 是您授权后的密钥和秘密
No you have to use the advanced api and have the user get authorized ive have been trying to find a way around this but have not
the real url would be something like this
http://player.vimeo.com/play_redirect?quality=mobile&clip_id=s00000000&time=1318531921&sig=4c8a2fcb3303c5b76112046e84f516f8&type=mobile_site
not
player.vimeo.com/video/0000000
which the sig is passed after your set up the oauth with the advanced api which is your key and secret after authorization