getMediaSource method
- {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]!;
}