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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -