toPlayerContext method
Converts a native WebPlaybackState to the library PlayerContext
Implementation
PlayerContext? toPlayerContext(WebPlaybackState? state) {
if (state == null) return null;
return PlayerContext(
state.context.metadata.title,
state.context.metadata.subtitle,
state.context.metadata.type,
state.context.uri);
}