The actual file variable in the above code is like file:///var/mobile/Containers/Data/Application/6DAC6E88-C38A-4A8B-A7E9-456345E5D25D/Library/NoCloud/myrecording.m4a where the file:// scheme is used.
But the current this plugin does not support file:// scheme in iOS and not work in iOS.
This is inconsistent with in Android.
Description
This PR improves Media plugin to support file:// scheme in iOS.
Testing
In my local Mac, I create a sample cordova project and add this modified media plugin.
Check the Recording and Playing audio with file path using file:// scheme and confirm it works well.
Checklist
[ ] I've run the tests to see all new and existing tests pass
[ ] I added automated test coverage as appropriate for this change
[x] Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
Platforms affected
iOS platform
Motivation and Context
In iOS, this plugin does not support
file://
scheme. Therefore following code does not workOn the other hand, this code works in Android.
The actual
file
variable in the above code is likefile:///var/mobile/Containers/Data/Application/6DAC6E88-C38A-4A8B-A7E9-456345E5D25D/Library/NoCloud/myrecording.m4a
where thefile://
scheme is used. But the current this plugin does not supportfile://
scheme in iOS and not work in iOS.This is inconsistent with in Android.
Description
This PR improves Media plugin to support
file://
scheme in iOS.Testing
In my local Mac, I create a sample cordova project and add this modified media plugin. Check the Recording and Playing audio with file path using
file://
scheme and confirm it works well.Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)