setCurrentMediaItem method
- MediaItem mediaItem
Manually flag that the app is now using a media item. Prefer openMedia instead of this.
Implementation
void setCurrentMediaItem(MediaItem mediaItem) {
_currentMediaItem = mediaItem;
_currentMediaSource = mediaItem.getMediaSource(appModel: this);
}