[jira] [Commented] (CB-6106) File needs a method to get a webview-native URL from an Entry

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

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

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

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

CB-6106: Ensure that nativeURL is used by file transfer download


 File needs a method to get a webview-native URL from an Entry
 -

 Key: CB-6106
 URL: https://issues.apache.org/jira/browse/CB-6106
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, iOS, Plugin File
Affects Versions: 3.4.0
Reporter: Ian Clelland
Assignee: Ian Clelland

 I was really, really hoping to avoid having to include this in the API, but 
 it appears that there are some WebView interfaces (specifically {{video}} 
 and {{audio}} HTML tags) which cannot be made to work with {{cdvfile://}} 
 URLs.
 (See CB-6079 for the issue which triggered this revelation)
 I'm going to create a method ({{toNativeURL}}) on Entry objects, inherited by 
 DirectoryEntry and FileEntry, which exposes a URL that can be used as a 
 {{src}} attribute for an HTML5 media player.
 Usage:
 {code}
 requestFileSystem(PERSISTENT, 0, function(fs) {
 fs.root.getFile(movie.mp4, {}, function(entry) {
 alert(entry.toNativeURL());
 document.getElementById('my-video-player').src=entry.toNativeURL();
 });
 });
 {code}
 Developers will be able to use this in all cases where they need to set the 
 src of an HTML audio/video tag, or in any other cases where the WebView 
 doesn't correctly proxy URL requests through the app.



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


[jira] [Commented] (CB-6106) File needs a method to get a webview-native URL from an Entry

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

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

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

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

CB-6106: Add support for nativeURL attribute on Entry objects


 File needs a method to get a webview-native URL from an Entry
 -

 Key: CB-6106
 URL: https://issues.apache.org/jira/browse/CB-6106
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, iOS, Plugin File
Affects Versions: 3.4.0
Reporter: Ian Clelland
Assignee: Ian Clelland

 I was really, really hoping to avoid having to include this in the API, but 
 it appears that there are some WebView interfaces (specifically {{video}} 
 and {{audio}} HTML tags) which cannot be made to work with {{cdvfile://}} 
 URLs.
 (See CB-6079 for the issue which triggered this revelation)
 I'm going to create a method ({{toNativeURL}}) on Entry objects, inherited by 
 DirectoryEntry and FileEntry, which exposes a URL that can be used as a 
 {{src}} attribute for an HTML5 media player.
 Usage:
 {code}
 requestFileSystem(PERSISTENT, 0, function(fs) {
 fs.root.getFile(movie.mp4, {}, function(entry) {
 alert(entry.toNativeURL());
 document.getElementById('my-video-player').src=entry.toNativeURL();
 });
 });
 {code}
 Developers will be able to use this in all cases where they need to set the 
 src of an HTML audio/video tag, or in any other cases where the WebView 
 doesn't correctly proxy URL requests through the app.



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


[jira] [Commented] (CB-6106) File needs a method to get a webview-native URL from an Entry

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

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

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

Commit dcef9fb7c668fb120d496491e332d5b5806d8b78 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=dcef9fb ]

CB-6106: Test fileEntry.toNativeURL method


 File needs a method to get a webview-native URL from an Entry
 -

 Key: CB-6106
 URL: https://issues.apache.org/jira/browse/CB-6106
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, iOS, Plugin File
Affects Versions: 3.4.0
Reporter: Ian Clelland
Assignee: Ian Clelland

 I was really, really hoping to avoid having to include this in the API, but 
 it appears that there are some WebView interfaces (specifically {{video}} 
 and {{audio}} HTML tags) which cannot be made to work with {{cdvfile://}} 
 URLs.
 (See CB-6079 for the issue which triggered this revelation)
 I'm going to create a method ({{toNativeURL}}) on Entry objects, inherited by 
 DirectoryEntry and FileEntry, which exposes a URL that can be used as a 
 {{src}} attribute for an HTML5 media player.
 Usage:
 {code}
 requestFileSystem(PERSISTENT, 0, function(fs) {
 fs.root.getFile(movie.mp4, {}, function(entry) {
 alert(entry.toNativeURL());
 document.getElementById('my-video-player').src=entry.toNativeURL();
 });
 });
 {code}
 Developers will be able to use this in all cases where they need to set the 
 src of an HTML audio/video tag, or in any other cases where the WebView 
 doesn't correctly proxy URL requests through the app.



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


[jira] [Commented] (CB-6106) File needs a method to get a webview-native URL from an Entry

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

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

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

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

CB-6106: Ensure that nativeURL is used by file transfer download


 File needs a method to get a webview-native URL from an Entry
 -

 Key: CB-6106
 URL: https://issues.apache.org/jira/browse/CB-6106
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, iOS, Plugin File
Affects Versions: 3.4.0
Reporter: Ian Clelland
Assignee: Ian Clelland

 I was really, really hoping to avoid having to include this in the API, but 
 it appears that there are some WebView interfaces (specifically {{video}} 
 and {{audio}} HTML tags) which cannot be made to work with {{cdvfile://}} 
 URLs.
 (See CB-6079 for the issue which triggered this revelation)
 I'm going to create a method ({{toNativeURL}}) on Entry objects, inherited by 
 DirectoryEntry and FileEntry, which exposes a URL that can be used as a 
 {{src}} attribute for an HTML5 media player.
 Usage:
 {code}
 requestFileSystem(PERSISTENT, 0, function(fs) {
 fs.root.getFile(movie.mp4, {}, function(entry) {
 alert(entry.toNativeURL());
 document.getElementById('my-video-player').src=entry.toNativeURL();
 });
 });
 {code}
 Developers will be able to use this in all cases where they need to set the 
 src of an HTML audio/video tag, or in any other cases where the WebView 
 doesn't correctly proxy URL requests through the app.



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