Contents

playbackCoordinator(_:didIssue:completionHandler:)

Tells the delegate to match the playback rate to that of the group when the rate is nonzero.

Declaration

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

Parameters

  • coordinator:

    The playback coordinator that issues the command.

  • playCommand:

    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.

See Also

Responding to commands