/** * Get the subItems MediaList associated with the Media. This Media should be alive (not released). * * @return subItems as a MediaList. This MediaList should be released with {@link #release()}. */ public MediaList subItems() { synchronized (this) { if (mSubItems != null) { mSubItems.retain(); return mSubItems; } } final MediaList subItems = new MediaList(this); synchronized (this) { mSubItems = subItems; mSubItems.retain(); return mSubItems; } }
/** * Get the MediaList associated with the MediaDiscoverer. * This MediaDiscoverer should be alive (not released). * * @return MediaList. This MediaList should be released with {@link #release()}. */ public MediaList getMediaList() { synchronized (this) { if (mMediaList != null) { mMediaList.retain(); return mMediaList; } } final MediaList mediaList = new MediaList(this); synchronized (this) { mMediaList = mediaList; mMediaList.retain(); return mMediaList; } }
/** * Get the MediaList associated with the MediaDiscoverer. * This MediaDiscoverer should be alive (not released). * * @return MediaList. This MediaList should be released with {@link #release()}. */ public MediaList getMediaList() { synchronized (this) { if (mMediaList != null) { mMediaList.retain(); return mMediaList; } } final MediaList mediaList = new MediaList(this); synchronized (this) { mMediaList = mediaList; mMediaList.retain(); return mMediaList; } }
/** * Get the subItems MediaList associated with the Media. This Media should be alive (not released). * * @return subItems as a MediaList. This MediaList should be released with {@link #release()}. */ public MediaList subItems() { synchronized (this) { if (mSubItems != null) { mSubItems.retain(); return mSubItems; } } final MediaList subItems = new MediaList(this); synchronized (this) { mSubItems = subItems; mSubItems.retain(); return mSubItems; } }
/** * Get the subItems MediaList associated with the Media. This Media should be alive (not released). * * @return subItems as a MediaList. This MediaList should be released with {@link #release()}. */ public MediaList subItems() { synchronized (this) { if (mSubItems != null) { mSubItems.retain(); return mSubItems; } } final MediaList subItems = new MediaList(this); synchronized (this) { mSubItems = subItems; mSubItems.retain(); return mSubItems; } }
/** * Get the subItems MediaList associated with the Media. This Media should be alive (not released). * * @return subItems as a MediaList. This MediaList should be released with {@link #release()}. */ public MediaList subItems() { synchronized (this) { if (mSubItems != null) { mSubItems.retain(); return mSubItems; } } final MediaList subItems = new MediaList(this); synchronized (this) { mSubItems = subItems; mSubItems.retain(); return mSubItems; } }
/** * Get the subItems MediaList associated with the Media. This Media should be alive (not released). * * @return subItems as a MediaList. This MediaList should be released with {@link #release()}. */ public MediaList subItems() { synchronized (this) { if (mSubItems != null) { mSubItems.retain(); return mSubItems; } } final MediaList subItems = new MediaList(this); synchronized (this) { mSubItems = subItems; mSubItems.retain(); return mSubItems; } }
/** * Get the MediaList associated with the MediaDiscoverer. * This MediaDiscoverer should be alive (not released). * * @return MediaList. This MediaList should be released with {@link #release()}. */ public MediaList getMediaList() { synchronized (this) { if (mMediaList != null) { mMediaList.retain(); return mMediaList; } } final MediaList mediaList = new MediaList(this); synchronized (this) { mMediaList = mediaList; mMediaList.retain(); return mMediaList; } }
/** * Get the MediaList associated with the MediaDiscoverer. * This MediaDiscoverer should be alive (not released). * * @return MediaList. This MediaList should be released with {@link #release()}. */ public MediaList getMediaList() { synchronized (this) { if (mMediaList != null) { mMediaList.retain(); return mMediaList; } } final MediaList mediaList = new MediaList(this); synchronized (this) { mMediaList = mediaList; mMediaList.retain(); return mMediaList; } }
/** * Get the MediaList associated with the MediaDiscoverer. * This MediaDiscoverer should be alive (not released). * * @return MediaList. This MediaList should be released with {@link #release()}. */ public MediaList getMediaList() { synchronized (this) { if (mMediaList != null) { mMediaList.retain(); return mMediaList; } } final MediaList mediaList = new MediaList(this); synchronized (this) { mMediaList = mediaList; mMediaList.retain(); return mMediaList; } }
/** * Initialize the libVLC class. * * This function must be called before using any libVLC functions. * * @throws LibVlcException */ public void init(Context context) throws LibVlcException { Log.v(TAG, "Initializing LibVLC"); mDebugLogBuffer = new StringBuffer(); if (LibVlcUtil.isLibraryLoaded() && !mIsInitialized) { if(!LibVlcUtil.hasCompatibleCPU(context)) { Log.e(TAG, LibVlcUtil.getErrorMsg()); throw new LibVlcException(); } File cacheDir = context.getCacheDir(); mCachePath = (cacheDir != null) ? cacheDir.getAbsolutePath() : null; nativeInit(); mMediaList = mPrimaryList = new MediaList(this); mIsInitialized = true; } }