Play Media
Plays audio and video. Most file formats such as mp3 and mp4 and web streaming are supported; see the VLC supported formats for the playable formats. Media players are registered in Settings > Media Player, and video output requires a desktop session on the controller (Appendix B). See Appendix A for playback errors.
Media Player
Select the media player to use.
Commands
- Play (default): Plays a file or a stream.
- Pause: Pauses playback.
- Resume: Resumes paused media.
- Stop: Stops playback.
- Set Volume: Adjusts the volume.
- Set Speed: Adjusts the playback speed.
- Seek: Moves the playback position.
- Get Status: Reads the current state into a variable.
Fields
Media Type
File (default) plays a file uploaded to the project, and Streaming plays media at a URL. Displayed only when Command is Play.
Media File
Select the file to play from the files uploaded to the project. A sample audio file (sample.mp3) is set by default. Displayed only when Command is Play and Media Type is File.
Stream URL
Enter the URL of the streaming media (for example, https://example.com/video.mp4 or
rtsp://192.168.0.10:554/stream). If the scheme is omitted, http:// is added
automatically. A sample video address is set by default. Displayed only when Command is
Play and Media Type is Streaming.
Wait for Completion
Select whether the action stays running until playback ends. The default is on. Displayed only when Command is Play (see Wait Until Finished in Part 4).
Volume (%)
Enter the volume from 0 to 100%. The default is 50. Displayed only when Command is Set Volume.
Playback Speed
Select 0.25x, 0.5x, 0.75x, 1.0x (default), 1.25x, 1.5x, 2.0x, 3.0x, or 4.0x, or select Manual Input and enter 0.01 to 100 in Playback Rate (x). Displayed only when Command is Set Speed.
Playback Position
Enter the position (duration) to move to. Displayed only when Command is Seek.
Status
Select a Number variable to store the current state: 0 initial, 1 playing, 2 paused, 3 stopped, 4 playback complete, 5 error. Displayed only when Command is Get Status.