ios - 在 ios 应用程序中集成 vimeo 视频

标签 ios vimeo

在我的应用程序中,我必须将 Vimeo 帐户中可用的视频集成到我的应用程序中。这样用户就可以浏览视频并播放它们,而无需上传视频。我已经获得了客户端 key 和 secret key 。你能帮我完成剩下的程序吗?我已经阅读了那里的文档,但不理解它。我要检索的视频不是公开视频。我想检索属于特定用户帐户的视频

最佳答案

或者您可以通过 WebView 播放视频

 NSMutableString *html = [[NSMutableString alloc] initWithCapacity:1] ;
[html appendString:@"<html><head>"];
[html appendString:@"<style type=\"text/css\">"];
[html appendString:@"body {"];
[html appendString:@"background-color: transparent;"];
[html appendString:@"color: white;"];
[html appendString:@"}"];
[html appendString:@"</style>"];
[html appendString:@"</head><body style=\"margin:0\">"];
[html appendString:@"<iframe src=\"//player.vimeo.com/video/84403700?autoplay=1&amp;loop=1\" width=\"1024\" height=\"768\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"];
[html appendString:@"</body></html>"];


[viewWeb loadHTMLString:html baseURL:urlMovie];

关于ios - 在 ios 应用程序中集成 vimeo 视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18349047/

相关文章:

ios - UITableView didSelectRowAtIndexPath 只能识别用两根手指点击

ios - 设备内存不足时是否可以防止应用程序终止?

android - 在移动应用程序上播放受 vimeo 域限制的视频

javascript - Vimeo 视频灯箱

ios - Vimeo 无法在 iPad 上运行

ios - NSUserDefaults 加载问题

ios - 如何跟踪有多少用户在使用 Apple Watch

ios - 如何使用 Cognito 用户池注册用户 - 没有用户名和密码的 Amazon Web Services

ios - 是否可以使用 UIButton 在 iOS 应用程序中嵌入 Vimeo 视频?

google-chrome - Vimeo 视频自动播放在谷歌浏览器中不起作用。