QMedia Movie track commands

QM_AddTrack

QM_AddTrack(movieRef; trackID; mediaType):error
movieRef Longint Movie reference
trackID Longint Track ID
mediaType String4 Media type
error Longint Error result

Adds a new track to 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.

Parameter trackID receives the ID of the new track.

Parameter mediaType specifies the media type of the new track. QMedia defines the following constants for specifying 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

Example

  `Add a text track to movie $movie
 
C_LONGINT($textTrackID)
 
$err:=QM_AddTrack ($movie;$textTrackID;qm_TextMediaType)
 
 

Related commands

QM_DeleteTrack Deletes a track.
QM_GetTracks Returns information about the tracks of a movie.

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