/** * A set of utility functions for the VLC application */ public synchronized static LibVLC get(final Context context) throws IllegalStateException { if (sLibVLC == null) { if (!VLCUtil.hasCompatibleCPU(context)) { Log.e(TAG, VLCUtil.getErrorMsg()); throw new IllegalStateException("LibVLC initialisation failed: " + VLCUtil.getErrorMsg()); } sLibVLC = new LibVLC(context, VLCOptions.getLibOptions(context)); } return sLibVLC; }