Media_Get ( tag )
Media_Get allows you to check the version of QuickTime, and whether or not sound recording is taking place.
Parameter | Description |
---|---|
tag | one of several values: “Volume”, “Tempo”, “Balance”, “PlayStatus”, “recording”, “quicktime-version”. |
tag | Description |
---|---|
Volume | Media_Get ( "Volume" ) returns the overall volume level for all asynchronously playing files. |
Tempo | Media_Get ( “Tempo” ) returns the tempo rate of the first file in the asynchronous playback queue. |
Balance | Media_Get ( “Balance” ) returns a value between -1 and 1 representing the balance between left and right audio channels during playback. |
PlayStatus | Media_Get ( “PlayStatus” ) returns “1” if if anything is in the playback queue; otherwise, “0”. |
Recording | Media_Get ( “recording” ) returns “1” if recording is taking place or “0” when no recording is occurring. |
quicktime-version | Media_Get ( “quicktime-version”) Deprecated. For backward compatibility only. Returns always version 10.0.0 as “1000”. Using Media_Get( “quicktime-version”) returned QuickTime version as a numerical value. For example, if QuickTime 7.5.3 was active, the value returned was “753”. |
Time-Code | Returns current playback position as a time code. If one sound is currently playing back asynchronously, the function can be used with a single parameter only and returns the standard HH:MM:SS.FFF format. When there are two or more media files playing asynchronously, pass a value returned by Media_PlaySound as mediaIdentifier to query a particular playback position. |
Time-Code2 | Returns the current playback position of a FileMaker’s interactive container as a time code in the standard HH:MM:SS.FFF format. This tag requires FileMaker 19 or newer. |
Examples
To get the current volume level:
Set Field [MyTable::Volume; Media_Get ( “Volume” ) ]
To get the tempo of currently playing sound files:
Set Field [MyTable::Tempo; Media_Get ( “Tempo” ) ]
To check if anything is playing:
Set Field [MyTable::Playing?; Media_Get ( “PlayStatus” ) ]
To check if anything is playing:
Set Field [MyTable::Playing?; Media_Get ( “PlayStatus” ) ]
To check if MediaManager is recording sound:
Set Field [MyTable::Recording?; Media_Get ( “recording” ) ]
To check the version of QuickTime:
Set Field [MyTable::QTversion; Media_Get ( “quicktime-version” ) ]
To get playback position of the file currently being played-back:
Set Field [MyTable::PlaybackPos; Media_Get ( “timecode” ) ]