Skip to content

Instantly share code, notes, and snippets.

@hiroeorz
Created November 7, 2014 08:52
Show Gist options
  • Save hiroeorz/c94388c116c8ac5a1df4 to your computer and use it in GitHub Desktop.
Save hiroeorz/c94388c116c8ac5a1df4 to your computer and use it in GitHub Desktop.
PJSIP Video User's Guide 日本語訳 ref: http://qiita.com/hiroeorz@github/items/f0c6e1eebc1238fcaa31
pjsua_acc_config cfg;
pjsua_acc_config_default(&cfg);
cfg.vid_in_auto_show = PJ_TRUE;
int vid_idx;
pjsua_vid_win_id wid;
vid_idx = pjsua_call_get_vid_stream_idx(call_id);
if (vid_idx >= 0) {
pjsua_call_info ci;
pjsua_call_get_info(call_id, &ci);
wid = ci.media[vid_idx].stream.vid.win_in;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment