getMediaItemFromUrl method

Future<MediaItem> getMediaItemFromUrl(
  1. String url
)

Creatres a media item from a URL.

Implementation

Future<MediaItem> getMediaItemFromUrl(String url) async {
  Video video = await getVideoFromUrl(url);
  return getMediaItem(video);
}