开发者

Use Vimeo videos inside iPhone/iPad app

开发者 https://www.devze.com 2023-04-03 11:22 出处:网络
our client\'s video archive is hosted on vimeo, so I want to know if it is possible to use vimeo videos in开发者_JS百科side of iOS app so that user could press button and get fullscreen video playing

our client's video archive is hosted on vimeo, so I want to know if it is possible to use vimeo videos in开发者_JS百科side of iOS app so that user could press button and get fullscreen video playing in default video player. Is there any kind of API available for that?

upd: I know that in 2010 there was same question on SO, but maybe things changed during last year.


Get the video id, and load it into a webview using the vimeo player url. It will open the quicktime player in full screen mode on tap of the play button.

urlAddress = [NSString stringWithFormat:@"http://player.vimeo.com/video/%@",videoID];
NSURL *url = [NSURL URLWithString:urlAddress];
self.requestObj = [NSURLRequest requestWithURL:url];
[self.webView loadRequest:requestObj];


You can use YTVimeoExtractor to extract the mp4 url that is usable in MPMoviePlayerViewController.

0

精彩评论

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

关注公众号