- Timestamp:
- Jan 17, 2017 4:28:39 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/android/app/src/main/java/MainActivity.java
r5508 r5525 139 139 } 140 140 } 141 142 @Override 143 public void onCallVideoStart() { 144 MainActivity ma = ((MyHandler)ui_handler.get()).mTarget.get(); 145 SurfaceView surfaceView = (SurfaceView) 146 ma.findViewById(R.id.surfaceViewIncomingCall); 147 148 WindowHandle wh = new WindowHandle(); 149 wh.setWindow(surfaceView.getHolder().getSurface()); 150 pjsua.setVideoWindow(wh); 151 } 141 152 } 142 153 … … 262 273 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) 263 274 { 264 pjsua.setIncomingVideoRenderer(holder.getSurface()); 275 WindowHandle wh = new WindowHandle(); 276 wh.setWindow(holder.getSurface()); 277 pjsua.setVideoWindow(wh); 265 278 } 266 279 267 280 public void surfaceCreated(SurfaceHolder holder) 268 281 { 269 pjsua.setIncomingVideoRenderer(holder.getSurface()); 282 270 283 } 271 284 272 285 public void surfaceDestroyed(SurfaceHolder holder) 273 286 { 274 pjsua.setIncomingVideoRenderer(null); 287 WindowHandle wh = new WindowHandle(); 288 wh.setWindow(null); 289 pjsua.setVideoWindow(wh); 275 290 } 276 291
Note: See TracChangeset
for help on using the changeset viewer.