[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-03-03 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13918218#comment-13918218
 ] 

ASF subversion and git services commented on CB-6051:
-

Commit 39f214e9750dfdd4b124429e27bcbc2419a41a27 in cordova-mobile-spec's branch 
refs/heads/master from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=39f214e ]

CB-6051: Test HTML5 video with native URLs


 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-28 Thread Ian Clelland (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13915848#comment-13915848
 ] 

Ian Clelland commented on CB-6051:
--

This is the state of the Media / File plugins right now on iOS and Android 
(dev):

The Media plugin is responsible for playing audio files; it should now accept 
{{cdvfile://}} URLs and will play them correctly.

The situation with {{video}} is a bit different: The {{video}} tag on 
Android delegates to android.media.MediaPlayer, which cannot (even as of 
Android 4.4) correctly handle a {{src}} tag set to a {{cdvfile://}} URL. Mobile 
Safari on iOS is the same.

Because of this, I've created CB-6106, which gives FileEntry objects a 
{{.toNativeURL}} method, which will return a URL which *is* suitable for the 
source of a {{video}} tag.

Try switching your .toURL() methods to .toNativeURL(), before you use them as a 
video source.

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-28 Thread Stanley Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13916117#comment-13916117
 ] 

Stanley Wang commented on CB-6051:
--

Great. I updated my file and file-transfer plugins and used .toNativeURL(), it 
works. 
Thank you, Ian.

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-28 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13916438#comment-13916438
 ] 

ASF subversion and git services commented on CB-6051:
-

Commit f96f2ac8cadfecf390a736fb94fe146b9bb0d4d8 in cordova-plugin-media's 
branch refs/heads/master from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;h=f96f2ac ]

CB-6051: Update media plugin to work with new cdvfile:// urls


 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-28 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13916439#comment-13916439
 ] 

ASF subversion and git services commented on CB-6051:
-

Commit b365d09ec3f3c61f0922f3ba1d8c12ccf4300dab in cordova-plugin-media's 
branch refs/heads/master from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;h=b365d09 ]

CB-6051: Android: Allow media plugin to handle invalid file locations


 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-27 Thread Stanley Wang (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13915220#comment-13915220
 ] 

Stanley Wang commented on CB-6051:
--

With the develop branch of Media and File plugins, I still can't play the video 
file with cdvfile:// 

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-23 Thread Michael Strong (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13909935#comment-13909935
 ] 

Michael Strong commented on CB-6051:


Thanks Ian - that was quick. I'm not using the Git repo at this stage so I will 
hold off until the code is released, or perhaps investigate how to use Git if I 
can't wait

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-21 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13908500#comment-13908500
 ] 

ASF subversion and git services commented on CB-6051:
-

Commit f96f2ac8cadfecf390a736fb94fe146b9bb0d4d8 in cordova-plugin-media's 
branch refs/heads/dev from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;h=f96f2ac ]

CB-6051: Update media plugin to work with new cdvfile:// urls


 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-21 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13908603#comment-13908603
 ] 

ASF subversion and git services commented on CB-6051:
-

Commit b365d09ec3f3c61f0922f3ba1d8c12ccf4300dab in cordova-plugin-media's 
branch refs/heads/dev from [~iclelland]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;h=b365d09 ]

CB-6051: Android: Allow media plugin to handle invalid file locations


 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-21 Thread Claudius Coenen (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13908983#comment-13908983
 ] 

Claudius Coenen commented on CB-6051:
-

I can't verify it right now, but looking at the filenames in those chagesets, 
i'd like to ask if this fixes video and audio, or if it's fixing Audio only.
I am just asking, because the changed files are CDVSound and AudioHandler.

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-19 Thread Ian Clelland (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13906594#comment-13906594
 ] 

Ian Clelland commented on CB-6051:
--

I can't give you a timeframe for the Media plugin; I hope to have a new version 
of File out very soon (as in next week) that will make this possible. (Linked 
to CB-6057).

I expect that the changes to Media will be fairly small once File is updated, 
so hopefully no more than another two weeks after that (and earlier if you can 
use the dev branch).

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-19 Thread Michael Strong (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13906640#comment-13906640
 ] 

Michael Strong commented on CB-6051:


OK thanks Ian. I appreciate the prompt response. My hack is working fine for 
iOS and if I need the Android fix before you're ready I'll just add the hack to 
the Java. (I've never written a line of Java before either so this is a month 
of firsts for me :) )

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-18 Thread Ian Clelland (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13904191#comment-13904191
 ] 

Ian Clelland commented on CB-6051:
--

Hi Michael -- I added a comment to your SO answer; it's definitely a hack at 
this point, but it should work. You could also continue to use the previous 
version (0.4.x) of File until this gets resolved.

I think that the solution for this is to update the Media plugin to work 
correctly with the new {{cdvfile://}} URLs, and also to expose a method (at 
least in native code) to translate {{cdvfile://}} URLs to filesystem paths for 
the times when those are required.

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Commented] (CB-6051) video / audio won't play from cdvfile:// urls

2014-02-18 Thread Michael Strong (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-6051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13904693#comment-13904693
 ] 

Michael Strong commented on CB-6051:


Thanks Ian. I've made the change to the code and edited SO. It seems to be 
working well for me. 

Yes, being able to translate cdvfile:// URLs would be useful, and nice to have 
in the JavaScript as well.

 video / audio won't play from cdvfile:// urls
 -

 Key: CB-6051
 URL: https://issues.apache.org/jira/browse/CB-6051
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File, Plugin Media
Affects Versions: 3.3.0
 Environment: iOS
Reporter: Claudius Coenen
Assignee: Ian Clelland

 We have an application that used to work in Cordova 2.9, we think we have 
 traced down the error to cdvfile://. Here's what's happening:
 *The Application*
 We're loading a few videos and a HTML-File referencing those videos into the 
 app, using {{FileTransfer}}. This transfer is fine now, and we _can_ access 
 and display the HTML-File and other assets like images. The videos on this 
 page however won't play. They display as broken (strike-through play symbol 
 on iOS). We know the videos to run, it's not the video's encoding, we also 
 triple-checked all the filenames as well. If we pre-package the video into 
 the app, the same setup _does_ play just fine.
 *Behaviour Cordova 2.9*
 We're getting the just-downloaded html file from the filesystem and call 
 {{toURL()}} on that entry. In 2.9 this will return a lengthy (but working) 
 {{file:///}}-url. We're basically setting
 {{window.location = entry.toURL(); // returns file:///...}}
 *Behaviour Cordova 3.3*
 When calling {{toURL}}, we're now getting a {{cdvfile://}} URL, and (since 
 the video file is referenced relatively) the video is also loaded from a 
 {{cdvfile://}} URL.
 *Why i believe the cdvfile:// to be at fault*
 Basically it used to work. We're suspecting that the file-protocol emulates 
 a lot of the iOS-y stuff when it comes to video. Possibly the 
 Content-Type-Header and the Range-Header that iOS uses extensively for 
 streaming the video from a webserver.
 For an audio file, we're getting log-lines reading _itemFailedToPlayToEnd: 
 {kind = 1; new = 2; old = 0;}
 I did not find any way to get a {{file:///}}-URL out of cordova 3.3, but i am 
 pretty sure that this would cure my immediate problem.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)