public void init(Context context) throws LibVlcException {
  Log.v(TAG,"Initializing LibVLC");
  if (!mIsInitialized) {
    if (!LibVlcUtil.hasCompatibleCPU(context)) {
      Log.e(TAG,LibVlcUtil.getErrorMsg());
      throw new LibVlcException();
    }
    File cacheDir=context.getCacheDir();
    mCachePath=(cacheDir != null) ? cacheDir.getAbsolutePath() : null;
    nativeInit();
    setEventHandler(EventHandler.getInstance());
    mIsInitialized=true;
  }
}

public void init ( Context context ) throws LibVlcException { Log . v ( TAG , "Initializing LibVLC" ) ; if ( ! mIsInitialized ) { if ( ! LibVlcUtil . hasCompatibleCPU ( context ) ) { Log . e ( TAG , LibVlcUtil . getErrorMsg ( ) ) ; throw new LibVlcException ( ) ; } File cacheDir = context . getCacheDir ( ) ; mCachePath = ( cacheDir != null ) ? cacheDir . getAbsolutePath ( ) : null ; nativeInit ( ) ; setEventHandler ( EventHandler . getInstance ( ) ) ; mIsInitialized = true ; } }
initialize the libvlc class . this function must be called before using any libvlc functions .
