- Timestamp:
- Jan 17, 2017 4:28:39 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/android/jni/pjsua_app_callback.cpp
r5030 r5525 31 31 static char **restart_argv; 32 32 static pjsua_callback pjsua_cb_orig; 33 static jobject callVideoSurface; 33 static pjsua_vid_win_id winId = PJSUA_INVALID_ID; 34 35 void setVideoWindow(const WindowHandle& win) 36 { 37 pjmedia_vid_dev_hwnd vhwnd; 38 39 vhwnd.info.window = win.window; 40 if (winId != PJSUA_INVALID_ID) 41 pjsua_vid_win_set_win(winId, &vhwnd); 42 } 34 43 35 44 extern const char *pjsua_app_def_argv[]; … … 58 67 med_info->stream.vid.win_in != PJSUA_INVALID_ID) 59 68 { 60 pjmedia_vid_dev_hwnd vhwnd; 61 62 /* Setup renderer surface */ 63 pj_bzero(&vhwnd, sizeof(vhwnd)); 64 vhwnd.type = PJMEDIA_VID_DEV_HWND_TYPE_ANDROID; 65 vhwnd.info.window = callVideoSurface; 66 pjsua_vid_win_set_win(med_info->stream.vid.win_in, &vhwnd); 69 winId = med_info->stream.vid.win_in; 70 registeredCallbackObject->onCallVideoStart(); 67 71 break; 68 72 } … … 163 167 } 164 168 165 166 void setIncomingVideoRenderer(jobject surface)167 {168 callVideoSurface = surface;169 }170 171 169 #endif
Note: See TracChangeset
for help on using the changeset viewer.