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,
  pigeon.MediaItem mediaItem, {
  bool? playbackPositionFromPrimary,
  bool? autoplay = true,
}) async {
  webVideoPlayers[playerId]?.replaceCurrentMediaItem(
    mediaItem,
    autoplay: autoplay,
  );
}