Instance Method


Dismisses the media interface controller.


func dismissMediaPlayerController()


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

Media Player Options

Keys indicating media playback options.

enum WKAudioRecorderPreset

Constants indicating the quality of audio recordings.

Audio Recording Options

Options to specify when recording audio.

func dismissAudioRecorderController()

Dismisses the audio recording interface controller.