summaryrefslogtreecommitdiff
path: root/pjsip/include/pjsua-lib/pjsua.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2014-03-14 04:09:50 +0000
committerBenny Prijono <bennylp@teluu.com>2014-03-14 04:09:50 +0000
commit1e47fd78f11dab4b2f6cffa766417f111434f734 (patch)
tree016d93a205659ea85c7d315412307e580911668e /pjsip/include/pjsua-lib/pjsua.h
parent9ff22c2ff305ee03b10d1d611eab060e5097cbe5 (diff)
Closed #1748: enhancements to WAV player API
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4793 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include/pjsua-lib/pjsua.h')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 00699962..895d9bd8 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -6071,6 +6071,29 @@ PJ_DECL(pj_status_t) pjsua_player_get_port(pjsua_player_id id,
pjmedia_port **p_port);
/**
+ * Get additional info about the file player. This operation is not valid
+ * for playlist.
+ *
+ * @param port The file player ID.
+ * @param info The info.
+ *
+ * @return PJ_SUCCESS on success or the appropriate error code.
+ */
+PJ_DECL(pj_status_t) pjsua_player_get_info(pjsua_player_id id,
+ pjmedia_wav_player_info *info);
+
+
+/**
+ * Get playback position. This operation is not valid for playlist.
+ *
+ * @param id The file player ID.
+ *
+ * @return The current playback position, in samples. On error,
+ * return the error code as negative value.
+ */
+PJ_DECL(pj_ssize_t) pjsua_player_get_pos(pjsua_player_id id);
+
+/**
* Set playback position. This operation is not valid for playlist.
*
* @param id The file player ID.
@@ -6082,7 +6105,6 @@ PJ_DECL(pj_status_t) pjsua_player_get_port(pjsua_player_id id,
PJ_DECL(pj_status_t) pjsua_player_set_pos(pjsua_player_id id,
pj_uint32_t samples);
-
/**
* Close the file of playlist, remove the player from the bridge, and free
* resources associated with the file player or playlist.