Reputation: 25102
There is UIWebView approach to play YouTube video inside native IPhone Application. Does anybody tried to do the sane for vimeo?
Upvotes: 0
Views: 1141
Reputation: 1229
NSString *htmlString = [NSString stringWithFormat:
@"<html>"
@"<body>"
@"<meta name = \"viewport\"content = \"initial-scale = 1.0, user-scalable = no\"/>"
@"<iframe src=\"http://player.vimeo.com/video/8118831title=0&byline=0&portrait=0&color=008efe&\";autoplay=1&loop=1 width=\"320\" height=\"480\" frameborder=\"0\">"
@"</iframe>"
@"<body style=\"background:#000;margin-top:0px;margin-left:0px\">"
@"</object></div></body></html>",@"http://www.vimeo.com/8118831"
];
Now just use loadHTMLString
to play the video in your application.
Upvotes: 1
Reputation: 25102
It is only possible when user has shared his video using "plus" account. Otherwise vimeo will render static image in Iphone.
Upvotes: 0
Reputation: 1044
It's only possible if Vimeo supports HTML5 video, which looks like it does.
Upvotes: 1