getMediaUrl method
Provide regular URL for players.
-
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. -
progressHandleris used to handle the progress of the media URL loading process. -
cancelTokenis used to cancel the media URL loading process.
See also:
Implementation
Future<String?> getMediaUrl({
PMProgressHandler? progressHandler,
PMCancelToken? cancelToken,
}) {
return plugin.getMediaUrl(
this,
progressHandler: progressHandler,
cancelToken: cancelToken,
);
}