Version 2 (modified by bennylp, 16 years ago) (diff) |
---|
Media Objects
TracNav
WAV Player
One WAV player object is used to play one WAV file. API's related to player:
- lib.create_player() to create the WAV player. This returns the player ID.
- lib.player_get_slot() to get the player's conference bridge's slot number.
- lib.player_set_pos() to set the file playback position. The typical use of this function probably is to rewind the playback to the starting position.
- lib.player_destroy() to destroy the player. This will also implicitly remove all connections to/from the player object in the bridge.
WAV Playlist
The WAV playlist can be set to play multiple WAV files in sequence. The playlist provides smooth transition between files.
API related to playlist object:
- lib.create_playlist() to create the playlist, with the list of WAV files specified as the argument. This returns the playlist ID.
- lib.playlist_get_slot() to get the playlist's conference bridge's slot number.
- lib.playlist_destroy() to destroy the playlist. This will also implicitly remove all connections to/from the playlist object in the bridge.
WAV Recorder
The WAV recorder takes audio input and write it to a WAV file. API's related to WAV recorder:
- lib.create_recorder() to create the recorder. This returns the recorder ID.
- lib.recorder_get_slot() to get the recorder's conference bridge's slot number.
- lib.recorder_destroy() to destroy the recorder. This will also implicitly remove all connections to/from the recorder object in the bridge.
Call
Call is also a media object. Media operations to the call will be explained in the next chapter.