国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

ios - UIWebView加載HTML視頻
ringa_lee
ringa_lee 2017-04-18 09:35:38
0
2
579

怎樣用UIWebView的loadHTML方法加載視頻?有embed標(biāo)簽,里面有視頻鏈接。我用手機(jī)打的,完整標(biāo)簽復(fù)制不過(guò)來(lái),希望有思路的或者做過(guò)的指點(diǎn)一下,萬(wàn)分感謝!

ringa_lee
ringa_lee

ringa_lee

reply all(2)
伊謝爾倫

NSString *url=@"your url";
[self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
self.webview.scrollView.bounces = NO;
[self.webview setMediaPlaybackRequiresUserAction:NO];

Peter_Zhu

When UIWebView opens a video link, it will jump to MPMoviePlayerViewController by default. You can directly create an MPMoviePlayerViewController to load the video

MPMoviePlayerViewController *moviePl = [[MPMoviePlayerViewController alloc] initWithContentURL:URL];
[self presentMoviePlayerViewControllerAnimated:moviePl];

You can try it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template