Contents

requestMediaPlaybackState(completionHandler:)

Requests the playback status of media in the web view.

Declaration

func requestMediaPlaybackState(completionHandler: @escaping @MainActor @Sendable (WKMediaPlaybackState) -> Void)
func requestMediaPlaybackState() async -> WKMediaPlaybackState

Parameters

  • completionHandler:

    A closure the system executes after the web view determines the current state of media playback.

See Also

Interacting with media