ios - How to display video link coming from API Response -
how display type video link api resopnse.i want use webview or mpmovieplayercontroller
display video link
<iframe width=\"100%\" height=\"100%\"\r\nsrc=\"https://www.youtube.com/embed/xgsy3_czz8k?autoplay=1\">\r\n</iframe>
mpmovieplayercontroller *player = [[mpmovieplayercontroller alloc] initwithcontenturl:[nsurl fileurlwithpath:url]]; player.view.frame = cgrectmake(184, 200, 400, 300); [self.view addsubview:player.view]; [player play];
may helps you.
Comments
Post a Comment