player method

  1. @Deprecated('Use [playbackState] instead')
Future<PlaybackState> player([
  1. String? market
])

Returns the current playback state, including progress, track and active device. Returns an empty PlaybackState object when no playback context has been started.

Implementation

@Deprecated('Use [playbackState] instead')
Future<PlaybackState> player([String? market]) async {
  return playbackState(Market.values.asNameMap()[market]);
}