Ignore:
Timestamp:
Mar 25, 2015 3:41:21 AM (7 years ago)
Author:
nanang
Message:

Re #1823: Video settings on sample apps:

  • enabled video on pjsua CLI if video is configured
  • enabled video auto-rx/tx of any account on pjsua2 sample app
Location:
pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MainActivity.java

    r5017 r5022  
    108108            accCfg.setIdUri("sip:localhost"); 
    109109            accCfg.getNatConfig().setIceEnabled(true); 
     110            accCfg.getVideoConfig().setAutoTransmitOutgoing(true); 
     111            accCfg.getVideoConfig().setAutoShowIncoming(true); 
    110112            account = app.addAcc(accCfg); 
    111113        } else { 
  • pjproject/trunk/pjsip-apps/src/swig/java/android/src/org/pjsip/pjsua2/app/MyApp.java

    r5017 r5022  
    386386        for (int i = 0; i < accCfgs.size(); i++) { 
    387387            MyAccountConfig my_cfg = accCfgs.get(i); 
     388 
     389            /* Customize account config */ 
     390            my_cfg.accCfg.getNatConfig().setIceEnabled(true); 
     391            my_cfg.accCfg.getVideoConfig().setAutoTransmitOutgoing(true); 
     392            my_cfg.accCfg.getVideoConfig().setAutoShowIncoming(true); 
     393 
    388394            MyAccount acc = addAcc(my_cfg.accCfg); 
    389395            if (acc == null) 
Note: See TracChangeset for help on using the changeset viewer.