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

Popular posts from this blog

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Handling constructor related functions while testing with mocha and sinon -