DUWENINK opened a new issue, #602:
URL: https://github.com/apache/cordova-plugin-file/issues/602
# Bug Report
## Problem
### What is expected to happen?
I use my plugin to record the screen can I save it to gallery , and I want
to display it on device at the same time,my device load a remote url like
'https://192.168.1.113:7702/MobileServer/dist/index.html',I use this code
```
this.convertToCdvfile = function (path) {
var get = new Promise((resolve, reject) => {
try {
window.resolveLocalFileSystemURL(path, function (fileEntry) {
var cdvfilePath = fileEntry.toURL();
console.log("convertToCdvfile:" + JSON.stringify(fileEntry));
resolve(cdvfilePath);
}, function (error) {
reject('ERROR: ' + JSON.stringify(error));
});
}
catch (ex) {
reject('ERROR: ' + JSON.stringify(ex));
}
});
return get;
};
```
and then I get
```
convertToCdvfile:{"isFile":true,"isDirectory":false,"name":"366","fullPath":"/media/external/video/media/366","filesystem":"<FileSystem:
content>","nativeURL":"content://media/external/video/media/366"}
cordova-funcs.js:991
convertToCdvfile:content://media/external/video/media/366->https://192.168.1.113:7702/__cdvfile_content__/media/external/video/media/366
```
the filepath I can not set to the src to the video
and also
i get list of paths just like
'https://192.168.1.113:7702/__cdvfile_content__/media/external/video/media/366'
'content://media/external/video/media/357'
'file:///storage/emulated/0/Movies/PR-DC/DWK_6b62dfc0-83c8-4294-9065-d1080bab8a1d.mp4'
`file:///storage/emulated/com.duwenink.app/Movies/PR-DC/DWK_5b029226-68e9-4441-9082-8499a488cc70.mp4`
`https://192.168.1.113:7702/__cdvfile_content__/media/external/video/media/357`
`https://192.168.1.113:7702/__cdvfile_sdcard__/Movies/PR-DC/DWK_6b62dfc0-83c8-4294-9065-d1080bab8a1d.mp4`
i try many ways but why i can not the the cdvfile
easily????????????????????????????????????
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]