iOS capture event when youtube video ends or Done button pressed

痞子三分冷 提交于 2019-12-24 12:46:48

问题


I am displaying a youtube video on a uiwebview. When user selects it, fullscreen video starts as normal. Which event is fired when video ends or "done" button is pressed? I read some posts about it but suggested methods are now deprecated. View event will also be useful, for example if viewDidAppear is fired when video ends, but is not. Thank you


回答1:


Implement your video to play inside MPMoviePlayerController if you can and then try below. Or else you could try below directly (but i havnt tested without implementing MPMoviePlayerController) MPMoviePlayerPlaybackDidFinishNotification notification for MPMoviePlayerController as

Link : http://www.devx.com/wireless/Article/44642/1954



来源:https://stackoverflow.com/questions/10554553/ios-capture-event-when-youtube-video-ends-or-done-button-pressed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!