[jira] [Commented] (CB-11593) audio set src to cdvfile://localhost/temporary/path/to/music not work

2016-07-18 Thread zhuisui (JIRA)

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

zhuisui commented on CB-11593:
--

It is audio element, and that file is effective whose owner and group is 
specific app, so music app cannot play it. But webpage should be able to access 
it.
As for demo, I just record a piece of audio and save it as file with Cordova 
file plugin. This blob from recorder can be played by audio element with 
resolved as dataURL. But cdvfile URL leads to error above.

> audio set src to cdvfile://localhost/temporary/path/to/music not work
> -
>
> Key: CB-11593
> URL: https://issues.apache.org/jira/browse/CB-11593
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
> Environment: cordova 6.2.0
>Reporter: zhuisui
>  Labels: wfc
>
> ```
> Error configuring data source: java.lang.RuntimeException: setDataSource 
> failed: status = 0x8000
> 
> java.lang.RuntimeException: setDataSource failed: status = 0x8000
> at 
> android.media.MediaMetadataRetriever._setDataSource(Native Method)
> at 
> android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:105)
> at 
> org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:406)
> at 
> org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:258)
> at 
> org.chromium.content.browser.MediaResourceGetter.extract(MediaResourceGetter.java:139)
> at 
> org.chromium.content.browser.MediaResourceGetter.extractMediaMetadata(MediaResourceGetter.java:119)
> 07-18 14:27:00.221 17130-17505/com.caitian.test E/cr_MediaResource: Unable to 
> configure metadata extractor
> ```
> I got this error when set {{audio.src}} to 
> {{cdvfile://localhost/temporary/path/to/music}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (CB-11593) audio set src to cdvfile://localhost/temporary/path/to/music not work

2016-07-18 Thread Vladimir Kotikov (JIRA)

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

Vladimir Kotikov commented on CB-11593:
---

[~zyf0330], it's not very clear from the issue description what are you trying 
to do. What is {{audio}}? Is this an HTML {{}} element? Also are you 
sure that {{cdvfile://localhost/temporary/path/to/music}} exists and has 
[supported audio 
format|https://developer.android.com/guide/appendix/media-formats.html]. Also, 
it would be great if you could attach a sample project that would help us 
reproduce the issue.

> audio set src to cdvfile://localhost/temporary/path/to/music not work
> -
>
> Key: CB-11593
> URL: https://issues.apache.org/jira/browse/CB-11593
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
> Environment: cordova 6.2.0
>Reporter: zhuisui
>
> ```
> Error configuring data source: java.lang.RuntimeException: setDataSource 
> failed: status = 0x8000
> 
> java.lang.RuntimeException: setDataSource failed: status = 0x8000
> at 
> android.media.MediaMetadataRetriever._setDataSource(Native Method)
> at 
> android.media.MediaMetadataRetriever.setDataSource(MediaMetadataRetriever.java:105)
> at 
> org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:406)
> at 
> org.chromium.content.browser.MediaResourceGetter.configure(MediaResourceGetter.java:258)
> at 
> org.chromium.content.browser.MediaResourceGetter.extract(MediaResourceGetter.java:139)
> at 
> org.chromium.content.browser.MediaResourceGetter.extractMediaMetadata(MediaResourceGetter.java:119)
> 07-18 14:27:00.221 17130-17505/com.caitian.test E/cr_MediaResource: Unable to 
> configure metadata extractor
> ```
> I got this error when set {{audio.src}} to 
> {{cdvfile://localhost/temporary/path/to/music}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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