getMediaSource method

MediaSource getMediaSource(
  1. {required AppModel appModel}
)

Get the MediaSource from a MediaItem from its serialised identifier.

Implementation

MediaSource getMediaSource({required AppModel appModel}) {
  MediaType mediaType = getMediaType(appModel: appModel);
  return appModel.mediaSources[mediaType]![mediaSourceIdentifier]!;
}