[ 
https://issues.apache.org/jira/browse/CB-12356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15946933#comment-15946933
 ] 

orlyapps commented on CB-12356:
-------------------------------

Hello,
i got the same issue. Nexus 5X same behaviour:

HTML:
<video loop="" ng-reflect-id="video-1" id="video-1">
              <source type="video/webm" 
ng-reflect-src="cdvfile://localhost/files-external/imgcache/5cc12b53d6a6860b803c40e46687279a08f8facb.webm"
 
src="cdvfile://localhost/files-external/imgcache/5cc12b53d6a6860b803c40e46687279a08f8facb.webm">
            </video>
Logs:
3-29 12:59:43.421 32032 32295 E cr_MediaResource: Error configuring data 
source: java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFEA
03-29 12:59:43.421 32032 32295 E cr_MediaResource: java.lang.RuntimeException: 
setDataSource failed: status = 0xFFFFFFEA
03-29 12:59:43.421 32032 32295 E cr_MediaResource:      at 
android.media.MediaMetadataRetriever._setDataSource(Native Method)
03-29 12:59:43.421 32032 32295 E cr_MediaResource:      at 
android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:97)
03-29 12:59:43.421 32032 32295 E cr_MediaResource:      at 
org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:406)
03-29 12:59:43.421 32032 32295 E cr_MediaResource:      at 
org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:258)
03-29 12:59:43.421 32032 32295 E cr_MediaResource:      at 
org.chromium.content.browser.MediaResourceGetter.extract(MediaResourceGetter.java:139)
03-29 12:59:43.421 32032 32295 E cr_MediaResource:      at 
org.chromium.content.browser.MediaResourceGetter.extractMediaMetadata(MediaResourceGetter.java:119)
03-29 12:59:43.422 32032 32295 E cr_MediaResource: Unable to configure metadata 
extractor
03-29 12:59:43.665 32032 32032 W MediaPlayer: Couldn't open 
cdvfile://localhost/files-external/imgcache/5cc12b53d6a6860b803c40e46687279a08f8facb.webm:
 java.io.FileNotFoundException: No content provider: 
cdvfile://localhost/files-external/imgcache/5cc12b53d6a6860b803c40e46687279a08f8facb.webm
03-29 12:59:43.668   513  1014 E FileSource: Failed to open file 
'cdvfile://localhost/files-external/imgcache/5cc12b53d6a6860b803c40e46687279a08f8facb.webm'.
 (No such file or directory)

> cdvfile:// not working in html5 video tag
> -----------------------------------------
>
>                 Key: CB-12356
>                 URL: https://issues.apache.org/jira/browse/CB-12356
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>         Environment: Android version : 4.4.2
> Model : HTC 
> [email protected]
> Meteor : 1.4
>            Reporter: harish
>              Labels: plugin-file, video
>
> I have a file downloaded to sdCard.
> I can play it in media player.So file is not corrupted.
> As per documentation to use 'cdvfile://..' in html tag two settings have to 
> be set.
> # I set the Content-Security-Policy with
> {code}
>     <meta http-equiv="Content-Security-Policy" content="default-src cdvfile: 
> 'self' https: data: ; style-src 'self' https: 'unsafe-inline' ; img-src * 
> data: ;connect-src * ; script-src 'self' * 'unsafe-eval' 'unsafe-inline' ">
> {code}
> # I set origin access with
> {code}
> App.accessRule('cdvfile://*'); in mobile-config.js
> {code}
> Html :
> {code}
> <video>
>   <source 
> src="cdvfile://localhost/files-external/ksnYb8A3bBr5BnSbT-aK2xDY3_460sv.mp4">
> </video>
> {code}
> Expected: 
> video tag should play the video.
> Actual:
> A black screen appears without any error.No playback.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to