Changes between Version 82 and Version 83 of Getting-Started/Android


Ignore:
Timestamp:
Feb 24, 2022 9:38:24 AM (2 years ago)
Author:
nanang
Comment:

Add Camera2 info

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/Android

    v82 v83  
    120120{{{ 
    121121cp pjmedia/src/pjmedia-videodev/android/PjCamera*.java [your_app]/src/org/pjsip/ 
     122}}} 
     123 
     124Since 2.12, the capture device uses {{{Camera2}}} API (see also [https://github.com/pjsip/pjproject/pull/2797 #2797] for more info), application need to configure the {{{CameraManager}}} instance in {{{PjCameraInfo2}}} before using the camera, e.g: 
     125{{{ 
     126    @Override protected void onCreate(Bundle savedInstanceState) 
     127    { 
     128        ... 
     129        CameraManager cm = (CameraManager)getSystemService(Context.CAMERA_SERVICE); 
     130        PjCameraInfo2.SetCameraManager(cm); 
     131        ... 
     132    } 
    122133}}} 
    123134