[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342901#comment-16342901 ] Joe Bowser commented on CB-13840: - I do think improvements to this behaviour and making Android Permissions play nice with WebView permissions when appropriate would be a nice contribution to Cordova, but I don't think we have the bandwidth for this, especially since I'm on sabbatical right now. > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342900#comment-16342900 ] Joe Bowser commented on CB-13840: - It seems that I accepted this PR, although I don't remember why since I didn't think it was going to work. That being said, the host application might have to request a permission to play this media from Android, since the original issue CB-9115 was left open since I thought Marshmallow was going to blow this up. It might make sense for a call to the plugins to be here and for the permission to be added instead, and for the original approach to be followed. I really don't like having a paper trail for this issue, and perhaps I had a mind lapse corresponding Jira discussions to GitHub discussions (I hope this migrates to GitHub issues soon), or there was something that happened on Slack (which of course is lost due to it being a free plan). > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342817#comment-16342817 ] Pierre Rudloff commented on CB-13840: - Are you sure about this? What I understand from [the doc|https://github.com/googlesamples/android-PermissionRequest#introduction] is that the webview automatically fires onPermissionRequest when the web content tries to access a protected resource. And I can't find any Java method to manually request a permission. Also, I get a really strange behavior: sometimes when I open my app (like one in fifteen), Widevine is loaded and DRM playback works! When this happens, I can see in logcat that onPermissionRequest is fired as expected. > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342784#comment-16342784 ] jcesarmobile commented on CB-13840: --- Yeah, that's for allowing plugins to request permissions, you have to create a plugin that requests RESOURCE_PROTECTED_MEDIA_ID > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13840) Support Widevine in Cordova webviews
[ https://issues.apache.org/jira/browse/CB-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16342781#comment-16342781 ] Pierre Rudloff commented on CB-13840: - I had a look at Cordova's Android source code and it seems the permission request is already granted every time: [https://github.com/apache/cordova-android/commit/eb70f05168dcf3a07d8716c772db3a3c3c3a59f8] So I guess there must be something else preventing Widevine from working in Cordova. > Support Widevine in Cordova webviews > > > Key: CB-13840 > URL: https://issues.apache.org/jira/browse/CB-13840 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-android >Affects Versions: cordova-android-7.0.0 > Environment: I have tested with cordova-android 6.3 and 7.0 on > Android 6.0.1. >Reporter: Pierre Rudloff >Assignee: Joe Bowser >Priority: Major > > I'm developing an app that needs to play DRM media. > On Android Chrome it uses Widevine, but it does not seem to be available in > Cordova. > According to [this Chromium > ticket|https://bugs.chromium.org/p/chromium/issues/detail?id=526058] there is > a permission request that needs to be handled when creating the webview. > (As a workaround we use Crosswalk, [which does support > Widevine|https://github.com/crosswalk-project/crosswalk/pull/3147/commits/0124ee94107e3dc21c16f3748c2fee2315bbaca5], > but it is not maintained anymore...) -- This message was sent by Atlassian JIRA (v7.6.3#76005) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org