#ifdef HAVE_X11_XLIB_H
if (lpc_video_params.wid==0){ // do not manage window if embedded
x11_apply_video_params(&lpc_video_params,wid);
+ } else {
+ linphone_core_show_video(linphonec, lpc_video_params.show);
}
#endif
}
if (arg_num < argc) {
char *tmp;
window_id = strtol( argv[arg_num], &tmp, 0 );
+ lpc_video_params.wid = window_id;
}
}
else if (old_arg_num == arg_num)
#endif
}
+/**
+ * Can be used to disable video showing to free XV port
+**/
+void linphone_core_show_video(LinphoneCore *lc, bool_t show){
+#ifdef VIDEO_ENABLED
+ ms_error("linphone_core_show_video %d", show);
+ LinphoneCall *call=linphone_core_get_current_call(lc);
+ if (call!=NULL && call->videostream){
+ video_stream_show_video(call->videostream,show);
+ }
+#endif
+}
+
/**
* Tells the core to use a separate window for local camera preview video, instead of
* inserting local view within the remote video window.
int linphone_core_get_device_rotation(LinphoneCore *lc );
void linphone_core_set_device_rotation(LinphoneCore *lc, int rotation);
+/* start or stop streaming video in case of embedded window */
+void linphone_core_show_video(LinphoneCore *lc, bool_t show);
+
/*play/record support: use files instead of soundcard*/
void linphone_core_use_files(LinphoneCore *lc, bool_t yesno);
void linphone_core_set_play_file(LinphoneCore *lc, const char *file);
-Subproject commit 31e477267ec00d07dda1808235e5ae709575d5e5
+Subproject commit 8e3778f1fd61b44124f7303e540b936f9da4560f