requestMediaPlaybackState method

Future<MediaPlaybackState?> requestMediaPlaybackState()

Requests the playback status of media in the web view. Returns a MediaPlaybackState that indicates whether the media in the web view is playing, paused, or suspended. If there’s no media in the web view to play, this method provides MediaPlaybackState.NONE.

NOTE for iOS: available on iOS 15.0+.

NOTE for MacOS: available on MacOS 12.0+.

Officially Supported Platforms/Implementations:

Implementation

Future<MediaPlaybackState?> requestMediaPlaybackState() =>
    platform.requestMediaPlaybackState();