Ignore:
Timestamp:
Mar 22, 2015 8:53:03 AM (7 years ago)
Author:
nanang
Message:

Re #1790:

  • Removed android_opengl_get_surface() for renderer view setup, Java application can directly supply Surface object as renderer window.
  • Added renderer view on pjsua CLI app sample.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/android/jni/pjsua.i

    r4496 r5014  
    44#include "pjsua_app_callback.h" 
    55#include "../../pjsua_app.h" 
     6#include <android/native_window_jni.h> 
    67 
    78#ifdef __cplusplus 
     
    1718%} 
    1819 
    19 int pjsuaStart(); 
    20 void pjsuaDestroy(); 
    21 int pjsuaRestart(); 
    22  
    23 /* turn on director wrapping PjsuaAppCallback */ 
     20/* Turn on director wrapping PjsuaAppCallback */ 
    2421%feature("director") PjsuaAppCallback; 
    2522 
     23/* Convert Surface object to ANativeWindow for setIncomingVideoRenderer() */ 
     24%typemap(in) jobject surface { 
     25    $1 = (jobject)ANativeWindow_fromSurface(jenv, $input); 
     26} 
     27 
    2628%include "pjsua_app_callback.h" 
    27  
    28 void setCallbackObject(PjsuaAppCallback* callback); 
    29  
Note: See TracChangeset for help on using the changeset viewer.