Controlling time media

The time-media control features resemble those found on a typical audio cassette or video tape player. These features enable you to play, record, and synchronize audio, MIDI, video, and other types of media data.

You use players (instances of classes derived from TPlayer) to control playback and recording of media sequences. TPlayer provides member functions for play, record, stop, and seek. You can manage the playback and recording of multiple media sequences by synchronizing players. The system provides the following TPlayer derivations:


Classes derived from TPlayer must override the following TPlayer control functions:

Play Stop WaitUntilComplete
IsPlaying AdviseWillPlay GetPreroll
GetDuration Seek GetPosition
IsRecordable Record IsRecording
AdviseWillRecord

A player owns a media sequence. Players and media sequences are separate so that players can be reused; you can play one sequence and then load and play a new sequence. A player is characterized by the duration of its sequence and the current position within the sequence. Both the duration and current position are represented as TTime values.

NOTE You must remove a player's current sequence before loading a new one. You use the player's OrphanSequence and AdoptSequence functions to remove and load sequences. (See "Changing sequences in an audio player" on page 313.)


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker