Contents

playbackCoordinator(_:didIssue:completionHandler:)

Tells the delegate to pause playback.

Declaration

func playbackCoordinator(_ coordinator: AVDelegatingPlaybackCoordinator, didIssue pauseCommand: AVDelegatingPlaybackCoordinatorPauseCommand, completionHandler: @escaping  @Sendable () -> Void)
func playbackCoordinator(_ coordinator: AVDelegatingPlaybackCoordinator, didIssue pauseCommand: AVDelegatingPlaybackCoordinatorPauseCommand) async

Parameters

  • coordinator:

    The playback coordinator that issues the command.

  • pauseCommand:

    The command to execute. Before performing it, verify that its Expectedcurrentitemidentifier property value matches the item that you’re currently playing. If the command isn’t valid for the current item, ignore it and call the completion handler.

  • completionHandler:

    A completion handler that your app must call when it finishes handling the command, either successfully or after beginning a suspension if it can’t handle the command currently.

    If the value of the command’s Shouldbufferinanticipationofplayback property is True, call the completion handler only after the player is ready for playback.

See Also

Responding to commands