Changes between Initial Version and Version 1 of Python_SIP/Media_Objects


Ignore:
Timestamp:
Jul 23, 2008 10:46:43 PM (13 years ago)
Author:
bennylp
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Python_SIP/Media_Objects

    v1 v1  
     1= Media Objects = 
     2 
     3[[TracNav(Python_SIP/TOC)]] 
     4 
     5== WAV Player == 
     6 
     7One WAV player object is used to play one WAV file. API's related to player: 
     8 * [http://www.pjsip.org/python/pjsua.htm#Lib-create_player lib.create_player()] to create the WAV player. This returns the player ID. 
     9 * [http://www.pjsip.org/python/pjsua.htm#Lib-player_get_slot lib.player_get_slot()] to get the player's conference bridge's slot number. 
     10 * [http://www.pjsip.org/python/pjsua.htm#Lib-player_set_pos 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. 
     11 * [http://www.pjsip.org/python/pjsua.htm#Lib-player_destroy lib.player_destroy()] to destroy the player. This will also implicitly remove all connections to/from the player object in the bridge. 
     12 
     13== WAV Playlist == 
     14 
     15The WAV playlist can be set to play multiple WAV files in sequence. The playlist provides smooth transition between files. 
     16 
     17API related to playlist object: 
     18 * [http://www.pjsip.org/python/pjsua.htm#Lib-create_playlist lib.create_playlist()] to create the playlist, with the list of WAV files specified as the argument. This returns the playlist ID. 
     19 * [http://www.pjsip.org/python/pjsua.htm#Lib-playlist_get_slot lib.playlist_get_slot()] to get the playlist's conference bridge's slot number. 
     20 * [http://www.pjsip.org/python/pjsua.htm#Lib-playlist_destroy lib.playlist_destroy()] to destroy the playlist. This will also implicitly remove all connections to/from the playlist object in the bridge. 
     21 
     22 
     23== WAV Recorder == 
     24 
     25The WAV recorder takes audio input and write it to a WAV file. API's related to WAV recorder: 
     26 * [http://www.pjsip.org/python/pjsua.htm#Lib-create_recorder lib.create_recorder()] to create the recorder. This returns the recorder ID. 
     27 * [http://www.pjsip.org/python/pjsua.htm#Lib-recorder_get_slot lib.recorder_get_slot()] to get the recorder's conference bridge's slot number. 
     28 * [http://www.pjsip.org/python/pjsua.htm#Lib-recorder_destroy lib.recorder_destroy()] to destroy the recorder. This will also implicitly remove all connections to/from the recorder object in the bridge. 
     29