replaceCurrentMediaItem method

  1. @override
Future<void> replaceCurrentMediaItem(
  1. String playerId,
  2. MediaItem mediaItem, {
  3. bool? playbackPositionFromPrimary,
  4. bool? autoplay = true,
})
override

Implementation

@override
Future<void> replaceCurrentMediaItem(String playerId, MediaItem mediaItem, {bool? playbackPositionFromPrimary, bool? autoplay = true}) async {
  await _pigeon.replaceCurrentMediaItem(playerId, mediaItem, playbackPositionFromPrimary, autoplay);
}