Developer Docs - Mobile Docs - Media Commands

Block commands pertaining to media content.

PlayAudio

v1.0

Like the PlayVideo command, this initiates a full-screen playback of an audio file. Given that it's audio, there won't be much to see.

The CommandParameter consists of a string that contains the URL of the audio file to be played.

Starting in M v2.0 you can also pass in a PlayAudioParameters object which contains the following properties.  

Examples

PlayVideo

v1.0

This command initiates the playing of a video in full-screen. Usually, it is better to use the MediaPlayer view instead, but there are times you just want to play a video when the user taps a button.

The CommandParameter consists of a string that contains the URL of the video to be played.

Starting in M v2.0 you can also pass a PlayVideoParameters object that lets you customize the look of the media player. It contains the following properties.   

Note that watch map integration is not currently supported with the PlayVideo command. If this is needed, you'll have to use the Media Player component instead.  

Examples