在我的应用程序中,我必须将 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&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/