Is it possible to play vimeo video in iphone native application using UIWebView approach?

StackOverflow https://stackoverflow.com/questions/4162458

  •  08-10-2019
  •  | 
  •  

문제

도움이 되었습니까?

해결책 3

It is only possible when user has shared his video using "plus" account. Otherwise vimeo will render static image in Iphone.

다른 팁

It's only possible if Vimeo supports HTML5 video, which looks like it does.

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&amp;byline=0&amp;portrait=0&amp;color=008efe&amp\";autoplay=1&amp;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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top