• <small id='MFfIZ'></small><noframes id='MFfIZ'>

    • <bdo id='MFfIZ'></bdo><ul id='MFfIZ'></ul>

        <legend id='MFfIZ'><style id='MFfIZ'><dir id='MFfIZ'><q id='MFfIZ'></q></dir></style></legend>
        <i id='MFfIZ'><tr id='MFfIZ'><dt id='MFfIZ'><q id='MFfIZ'><span id='MFfIZ'><b id='MFfIZ'><form id='MFfIZ'><ins id='MFfIZ'></ins><ul id='MFfIZ'></ul><sub id='MFfIZ'></sub></form><legend id='MFfIZ'></legend><bdo id='MFfIZ'><pre id='MFfIZ'><center id='MFfIZ'></center></pre></bdo></b><th id='MFfIZ'></th></span></q></dt></tr></i><div id='MFfIZ'><tfoot id='MFfIZ'></tfoot><dl id='MFfIZ'><fieldset id='MFfIZ'></fieldset></dl></div>

      1. <tfoot id='MFfIZ'></tfoot>

        检测 webview 视频何时在 ios8 上变为全屏

        时间:2023-10-22
              • <bdo id='nk2Vo'></bdo><ul id='nk2Vo'></ul>

              • <i id='nk2Vo'><tr id='nk2Vo'><dt id='nk2Vo'><q id='nk2Vo'><span id='nk2Vo'><b id='nk2Vo'><form id='nk2Vo'><ins id='nk2Vo'></ins><ul id='nk2Vo'></ul><sub id='nk2Vo'></sub></form><legend id='nk2Vo'></legend><bdo id='nk2Vo'><pre id='nk2Vo'><center id='nk2Vo'></center></pre></bdo></b><th id='nk2Vo'></th></span></q></dt></tr></i><div id='nk2Vo'><tfoot id='nk2Vo'></tfoot><dl id='nk2Vo'><fieldset id='nk2Vo'></fieldset></dl></div>
                  <tbody id='nk2Vo'></tbody>

                  <small id='nk2Vo'></small><noframes id='nk2Vo'>

                1. <legend id='nk2Vo'><style id='nk2Vo'><dir id='nk2Vo'><q id='nk2Vo'></q></dir></style></legend>

                  <tfoot id='nk2Vo'></tfoot>
                  本文介绍了检测 webview 视频何时在 ios8 上变为全屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个应用程序,用户可以在其中打开 UIWebview 的视频,包括 Youtube 视频.在 iOS7 中,我能够在开始播放或全屏播放时收到通知,这对我向用户显示某些选项和修改界面至关重要.

                  I have an app where users can open videos from UIWebview, including Youtube ones. In iOS7, I was able to get a notification when it started playing, or when it became full screen, which is vital for me to show certain options to the user and modify the interface.

                  我以前用这个:

                  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(VideoExitFullScreen:) name:@"UIMoviePlayerControllerDidExitFullscreenNotification" object:nil];
                  
                  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(VideoEnterFullScreen:) name:@"UIMoviePlayerControllerDidEnterFullscreenNotification" object:nil];
                  

                  但是,从 iOS8 开始,我无法做到这一点.就像 UIWebview 视频不再触发通知一样.但是,正如我测试过的,它仍然是由普通视频、非 Webview 触发的.

                  However, since iOS8, I can't achieve this. It is like the notification is no longer triggered from UIWebview videos. However, it is still triggered from normal videos, non-Webview, as I've tested.

                  知道发生了什么变化吗?

                  Any idea of what have changed?

                  推荐答案

                  这是我找到的解决方法..

                  This is the work around I found for this..

                  [[NSNotificationCenter defaultCenter] addObserver:self
                                                               selector:@selector(VideoExitFullScreen:)
                                                                   name:UIWindowDidBecomeVisibleNotification
                                                                 object:self.view.window];
                  
                  [[NSNotificationCenter defaultCenter] addObserver:self
                                                               selector:@selector(VideoEnterFullScreen:)
                                                                   name:UIWindowDidBecomeHiddenNotification
                                                                 object:self.view.window];
                  

                  这篇关于检测 webview 视频何时在 ios8 上变为全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:为什么我不能在 UIWebView 中关闭或关闭 Javascript 警报? 下一篇:如何清除 UIWebView

                  相关文章

                2. <i id='FUFJw'><tr id='FUFJw'><dt id='FUFJw'><q id='FUFJw'><span id='FUFJw'><b id='FUFJw'><form id='FUFJw'><ins id='FUFJw'></ins><ul id='FUFJw'></ul><sub id='FUFJw'></sub></form><legend id='FUFJw'></legend><bdo id='FUFJw'><pre id='FUFJw'><center id='FUFJw'></center></pre></bdo></b><th id='FUFJw'></th></span></q></dt></tr></i><div id='FUFJw'><tfoot id='FUFJw'></tfoot><dl id='FUFJw'><fieldset id='FUFJw'></fieldset></dl></div>

                  <small id='FUFJw'></small><noframes id='FUFJw'>

                  1. <tfoot id='FUFJw'></tfoot>
                    • <bdo id='FUFJw'></bdo><ul id='FUFJw'></ul>
                    <legend id='FUFJw'><style id='FUFJw'><dir id='FUFJw'><q id='FUFJw'></q></dir></style></legend>