QMedia Movie track commands


QM_GetTracks(movieRef; trackIDs; mediaTypes):error
movieRef Longint Movie reference
trackIDs Array longint Movie track IDs
mediaTypes Array string Movie track media types
error Longint Error result

Returns information about all tracks in a movie.

Parameter movieRef is the reference to the movie instance. The movie reference must have been previously obtained with a call to QM_NewMovieFromFile or QM_NewMovieFromURL.

Parameters trackIDs and mediaTypes receive the IDs and media types of all tracks respectively.

QMedia defines the following constants for identifying media types:

qm_VideoMediaType "vide" Video media type
qm_SoundMediaType "soun" Sound media type
qm_TextMediaType "text" Text media type
qm_BaseMediaType "gnrc" Base media type
qm_MPEGMediaType "MPEG" MPEG media type
qm_MusicMediaType "musi" Music media type
qm_TimeCodeMediaType "tmcd" Timecode media type
qm_SpriteMediaType "sprt" Sprite media type
qm_TweenMediaType "twen" Tween media type
qm_ThreeDeeMediaType "qd3d" 3D media type
qm_FlashMediaType "flsh" Flash media type
qm_StreamingMediaType "strm" Streaming media type
qm_MovieMediaType "moov" Movie media type


  `Disable all non-audio tracks in movie $movie
ARRAY LONGINT($tracks;0)
ARRAY STRING(4;$trackTypes;0)
$err:=QM_GetTracks ($movie;$tracks;$trackTypes)
For ($ii;1;Size of array($trackTypes))
 If (($trackTypes{$ii} # qm_SoundMediaType) & ($trackTypes{$ii} # qm_MusicMediaType))
  $err:=QM_SetTrackEnabled ($movie;$tracks{$ii};0)
 End if
End for

Related commands

QM_AddTrack Adds a new track to a movie.
QM_DeleteTrack Deletes a track.

QMedia © Escape OE
Generated by QDoc 2.8 on Thu, Nov 24, 2011 18:40:59