diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-12-26 03:05:17 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-12-26 03:05:17 +0000 |
commit | bbfa7dfea405d9c1de743aee269e30449839dde2 (patch) | |
tree | e5cc9b7ea3dacbeadf1757b46b8d91b314c90e81 /pjsip/include/pjsua-lib/pjsua.h | |
parent | 66ba60640c9016496736679a5f5d4f76ca9c92b4 (diff) |
(Ticket #52) Added functions to retrieve media port of player and recorder in PJSUA-API
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@865 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib/pjsua.h')
-rw-r--r-- | pjsip/include/pjsua-lib/pjsua.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index 87481b1d..22cdee61 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -2709,6 +2709,17 @@ PJ_DECL(pjsua_conf_port_id) pjsua_player_get_conf_port(pjsua_player_id id); /** + * Get the media port for the player. + * + * @param id The player ID. + * @param p_port The media port associated with the player. + * + * @return PJ_SUCCESS on success. + */ +PJ_DECL(pj_status_t) pjsua_player_get_port(pjsua_recorder_id id, + pjmedia_port **p_port); + +/** * Set playback position. * * @param id The file player ID. @@ -2780,6 +2791,18 @@ PJ_DECL(pjsua_conf_port_id) pjsua_recorder_get_conf_port(pjsua_recorder_id id); /** + * Get the media port for the recorder. + * + * @param id The recorder ID. + * @param p_port The media port associated with the recorder. + * + * @return PJ_SUCCESS on success. + */ +PJ_DECL(pj_status_t) pjsua_recorder_get_port(pjsua_recorder_id id, + pjmedia_port **p_port); + + +/** * Destroy recorder (this will complete recording). * * @param id The recorder ID. |