Contents

dismissMediaPlayerController()

Dismisses the media interface controller.

Declaration

func dismissMediaPlayerController()

Discussion

Use this method to dismiss a modal media interface controller programmatically. When you dismiss the media interface programmatically, WatchKit passes a value of false for the didPlayToEnd parameter of your completion block and passes a value of 0.0 for theendTime parameter.

See Also

Presenting video and audio interfaces