Commit 7d94757a authored by François Grisez's avatar François Grisez
Browse files

Enable openh264 plugins for the "Call recording tester"

parent f4dc674d
......@@ -6685,9 +6685,3 @@ bool_t linphone_core_sdp_200_ack_enabled(const LinphoneCore *lc) {
void linphone_core_set_file_transfer_server(LinphoneCore *core, const char * server_url) {
core->file_transfer_server=ms_strdup(server_url);
}
void linphone_core_init_openh264(void) {
#ifdef HAVE_OPENH264
libmsopenh264_init();
#endif
}
......@@ -2782,8 +2782,6 @@ LINPHONE_PUBLIC void linphone_core_set_file_transfer_server(LinphoneCore *core,
**/
LINPHONE_PUBLIC const char ** linphone_core_get_supported_file_formats(LinphoneCore *core);
LINPHONE_PUBLIC void linphone_core_init_openh264(void);
#ifdef __cplusplus
}
#endif
......
......@@ -29,6 +29,13 @@
static void call_base(LinphoneMediaEncryption mode, bool_t enable_video,bool_t enable_relay,LinphoneFirewallPolicy policy);
static void disable_all_audio_codecs_except_one(LinphoneCore *lc, const char *mime);
// prototype definition for call_recording()
#ifdef ANDROID
#ifdef HAVE_OPENH264
extern void libmsopenh264_init(void);
#endif
#endif
void call_state_changed(LinphoneCore *lc, LinphoneCall *call, LinphoneCallState cstate, const char *msg){
char* to=linphone_address_as_string(linphone_call_get_call_log(call)->to);
char* from=linphone_address_as_string(linphone_call_get_call_log(call)->from);
......@@ -2663,23 +2670,25 @@ static void savpf_to_savpf_call(void) {
profile_call(TRUE, TRUE, TRUE, TRUE, "RTP/SAVPF");
}
static void call_recording() {
LinphoneCoreManager *marie = NULL;
LinphoneCoreManager *pauline = NULL;
LinphoneCallParams *marieParams = NULL;
LinphoneCallParams *paulineParams = NULL;
LinphoneCall *callInst = NULL;
int dummy=0;
char *filepath = NULL;
#ifdef ANDROID
#ifdef HAVE_OPENH264
extern void libmsopenh264_init(void);
libmsopenh264_init();
#endif
#endif
static void call_recording() {
#ifdef ANDROID
linphone_core_init_openh264();
#endif
LinphoneCoreManager *marie = linphone_core_manager_new("marie_h264_rc");
LinphoneCoreManager *pauline = linphone_core_manager_new("pauline_h264_rc");
LinphoneCallParams *marieParams = linphone_core_create_default_call_parameters(marie->lc);
LinphoneCallParams *paulineParams = linphone_core_create_default_call_parameters(pauline->lc);
LinphoneCall *callInst = NULL;
int dummy=0;
char *filepath = NULL;
marie = linphone_core_manager_new("marie_h264_rc");
pauline = linphone_core_manager_new("pauline_h264_rc");
marieParams = linphone_core_create_default_call_parameters(marie->lc);
paulineParams = linphone_core_create_default_call_parameters(pauline->lc);
#ifdef ANDROID
const char dirname[] = "/sdcard/Movies/liblinphone_tester";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment