IPad + HTML5 Video Tex + External Screen

I use HTML5 video tags in UIWebview on iPad and position them as needed using CSS. The key part of these videos is that they are intended to be partially viewed, but not for the entire visible area of ​​the page. When I do this in the “normal” mode of displaying content only on the UIS main screen, everything works fine.

However, when an external VGA projector is connected as a second UIS screen, the contents of the video tag immediately becomes a FULL SCREEN. This also seems to happen in Safari when watching, for example, a video on YouTube. When searching for documents, there seems to be no way to stop / control this behavior.

Is there a way to stop a video tag to make its content go full screen when a second display is connected?

+3
source share
1 answer

Unfortunately, using UIWebView iOS 3.2 provides no way to do this. Video in UIWebView always plays full screen on an external display using the TV out function.

However, the good news is that iOS 4 offers a solution. UIWebView has a couple of new properties:

allowsInlineMediaPlayback http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006950-CH3-SW32

mediaPlaybackRequiresUserAction http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006950-CH3-SW33

"", .

0

Source: https://habr.com/ru/post/1766990/


All Articles