SHIP:Port:Media

From Serious Documentation
Revision as of 06:31, 14 November 2018 by TerryWest (talk | contribs)
Jump to: navigation, search

MEDIAx ports refer to output of audio and video on the module, and are referred to in the format "platform.MEDIA0", "platform.DRIVE.MEDIA1", etc.

MEDIAx ports have various attributes to determine/control their state:

Portvar Data Type Permissions Description
location Node Read/Write The source DRIVE (e.g. platform.DRIVE.BULK0) of the source audio or video file.
source String Read/Write The filename of the source audio or video file.
state Byte Read The state of the media clip.
error Byte Read The error condition of the media clip.
position Integer Read/Write The current position being played in this media clip, in miliseconds.
length Integer Read The total length of the mediaclip being played, in miliseconds.
play Boolean Read/Write Plays (if true) or pauses (if false) the media clip. This automatically turns false at the end of playing a clip.
layer Byte Read/Write The current layer the video is being played in (default 1 is overlay, 0 is behind the GUI).
volume Byte Read/Write The volume of the current media clip playing from 0 to 100%.

see GRM