pjsua_player_create method
Create a file player, and automatically add this player to the conference bridge.
@param filename The filename to be played. Currently only WAV files are supported, and the WAV file MUST be formatted as 16bit PCM mono/single channel (any clock rate is supported). Filename's length must be smaller than PJ_MAXPATH. @param options Optional option flag. Application may specify PJMEDIA_FILE_NO_LOOP to prevent playback loop. @param p_id Pointer to receive player ID.
@return PJ_SUCCESS on success, or the appropriate error code.
Implementation
int pjsua_player_create(
ffi.Pointer<pj_str_t> filename,
int options,
ffi.Pointer<pjsua_player_id> p_id,
) {
return _pjsua_player_create(
filename,
options,
p_id,
);
}