public LibVLC(ArrayList<String> options){
  boolean setAout=true, setChroma=true;
  if (options != null) {
    for (    String option : options) {
      if (option.startsWith("--aout="))       setAout=false;
      if (option.startsWith("--androidwindow-chroma"))       setChroma=false;
      if (!setAout && !setChroma)       break;
    }
  }
  if (setAout || setChroma) {
    if (options == null)     options=new ArrayList<String>();
    if (setAout) {
      final HWDecoderUtil.AudioOutput hwAout=HWDecoderUtil.getAudioOutputFromDevice();
      if (hwAout == HWDecoderUtil.AudioOutput.OPENSLES)       options.add("--aout=opensles");
 else       options.add("--aout=android_audiotrack");
    }
    if (setChroma) {
      options.add("--androidwindow-chroma");
      options.add("RV32");
    }
  }
  nativeNew(options.toArray(new String[options.size()]));
}

public LibVLC ( ArrayList < String > options ) { boolean setAout = true , setChroma = true ; if ( options != null ) { for ( String option : options ) { if ( option . startsWith ( "--aout=" ) ) setAout = false ; if ( option . startsWith ( "--androidwindow-chroma" ) ) setChroma = false ; if ( ! setAout && ! setChroma ) break ; } } if ( setAout || setChroma ) { if ( options == null ) options = new ArrayList < String > ( ) ; if ( setAout ) { final HWDecoderUtil . AudioOutput hwAout = HWDecoderUtil . getAudioOutputFromDevice ( ) ; if ( hwAout == HWDecoderUtil . AudioOutput . OPENSLES ) options . add ( "--aout=opensles" ) ; else options . add ( "--aout=android_audiotrack" ) ; } if ( setChroma ) { options . add ( "--androidwindow-chroma" ) ; options . add ( "RV32" ) ; } } nativeNew ( options . toArray ( new String [ options . size ( ) ] ) ) ; }
create a libvlc withs options
