You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Shakhnazarov (JIRA)" <ji...@apache.org> on 2015/11/10 21:06:11 UTC
[jira] [Commented] (CB-9774) File Transfer download cdvfile fails
[ https://issues.apache.org/jira/browse/CB-9774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14999234#comment-14999234 ]
Sergey Shakhnazarov commented on CB-9774:
-----------------------------------------
Image is being fixed by adding cdvfile: to CSP rules and <allow-navigation href="cdvfile://*" /> to config.xml as described in the [file plugin docs|https://github.com/apache/cordova-plugin-file#cdvfile-protocol]. Although it does not fix the video tag - such an error occurs in logcat:
{noformat}
E/ ( 124): Failed to open file 'cdvfile://localhost/temporary/small.mp4'. (No such file or directory)
E/StagefrightMetadataRetriever( 124): Unable to create data source for 'cdvfile://localhost/temporary/small.mp4'.
{noformat}
> File Transfer download cdvfile fails
> ------------------------------------
>
> Key: CB-9774
> URL: https://issues.apache.org/jira/browse/CB-9774
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin File Transfer
> Affects Versions: 3.5.0
> Environment: Test Device: Google nexus 5
> Reporter: lijingjing
> Assignee: Sergey Shakhnazarov
> Labels: reproduced, triaged
>
> Test Steps:
> 1.Install the mobile spec app
> 2.Launch it and click manual tests File-Transfer--->Download and Display img/video(cdvfile)-
> Expected Outcome:
> img/video should play when paly is pressed.
> Actual Outcome:
> img/video don't play.
> error log:
> {code}
> Refused to load media from 'cdvfile://localhost/temporary/small.mp4' because it violates the following Content Security Policy directive
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org