You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/23 15:30:40 UTC

[GitHub] [cordova-ios] homerlex opened a new issue #1151: WebView Not Respecting video tag "playsinline" attribute

homerlex opened a new issue #1151:
URL: https://github.com/apache/cordova-ios/issues/1151


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   When a video tag contains the `playsinline` attribute I expect the video to be played in the confines of the webview
   
   ### What does actually happen?
   
   The video is being rendered in a native full screen viewer.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   ### Command or Code
   Create a Cordova app that has the following video tag in the webview:
   
   ```
   <video id="video-player" autoplay playsinline controls src="https://file-examples-com.github.io/uploads/2017/04/file_example_MP4_480_1_5MG.mp4"/>
   ```
   When you start the cordova app you will see the video played full screen.
   
   The same tag served to a Safari Browser behaves properly and doesn't render it full screen.
   
   ### Environment, Platform, Device
   Running on iPad (MLMP2LL/A) with iOS 15.0
   
   
   ### Version information
   Cordova ios platform: 6.2.0
   
   
   ## Checklist
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x ] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] breautek commented on issue #1151: WebView Not Respecting video tag "playsinline" attribute

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #1151:
URL: https://github.com/apache/cordova-ios/issues/1151#issuecomment-925938935


   It appears for `playsinline` to work, we need to enable [allowsInlineMediaPlayback](https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614793-allowsinlinemediaplayback?language=objc)
   
   https://github.com/apache/cordova-ios/blob/715c2dbfb273fb33721e8cf3f989ce7b20892d32/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m#L80
   
   Looks like we do set this property but it's disabled by default, but can be enabled via the `AllowInlineMediaPlayback` preference.
   
   Try adding `<preference name="AllowInlineMediaPlayback" value="true" />` in your config.xml.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] homerlex commented on issue #1151: WebView Not Respecting video tag "playsinline" attribute

Posted by GitBox <gi...@apache.org>.
homerlex commented on issue #1151:
URL: https://github.com/apache/cordova-ios/issues/1151#issuecomment-926032056


   @breautek - Perfect!  That did the trick. Thanks so much for the quick response.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] trocker commented on issue #1151: WebView Not Respecting video tag "playsinline" attribute

Posted by GitBox <gi...@apache.org>.
trocker commented on issue #1151:
URL: https://github.com/apache/cordova-ios/issues/1151#issuecomment-1003195688


   Building the ios app after adding this keeps on unsetting the value (removing the line). Do you know why that might be happening?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-ios] homerlex closed issue #1151: WebView Not Respecting video tag "playsinline" attribute

Posted by GitBox <gi...@apache.org>.
homerlex closed issue #1151:
URL: https://github.com/apache/cordova-ios/issues/1151


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org