getMediaUrl method
Provide regular URL for players. Only available for audios and videos.
- Android: Content URI, e.g.
content://media/external/video/media/894857
. - iOS/macOS: File URL. e.g.
file:///var/mobile/Media/DCIM/118APPLE/IMG_8371.MOV
.
See also:
Implementation
Future<String?> getMediaUrl() async {
if (type == AssetType.video || type == AssetType.audio || isLivePhoto) {
return plugin.getMediaUrl(this);
}
return null;
}