/** * Get the number or media. * @return number */ @MainThread public int getMediaCount() { return mBrowserMediaList != null ? mBrowserMediaList.getCount() : mDiscovererMediaArray.size(); }
/** * Get the number or media. */ @MainThread public int getMediaCount() { return mBrowserMediaList != null ? mBrowserMediaList.getCount() : mDiscovererMediaArray.size(); }
/** * Get the number or media. */ @MainThread public int getMediaCount() { return mBrowserMediaList != null ? mBrowserMediaList.getCount() : mDiscovererMediaArray.size(); }
/** * Get the number or media. */ @MainThread public int getMediaCount() { return mBrowserMediaList != null ? mBrowserMediaList.getCount() : mDiscovererMediaArray.size(); }
/** * Get a Media at specified index. * * @param index index of the media * @return Media hold by MediaList. This Media should be released with {@link #release()}. */ public synchronized Media getMediaAt(int index) { if (index < 0 || index >= getCount()) throw new IndexOutOfBoundsException(); final Media media = mMediaArray.get(index); media.retain(); return media; }
/** * Get the number or media. */ @MainThread public int getMediaCount() { return mBrowserMediaList != null ? mBrowserMediaList.getCount() : mDiscovererMediaArray.size(); }
/** * Get a Media at specified index. * * @param index index of the media * @return Media hold by MediaList. This Media should be released with {@link #release()}. */ public synchronized Media getMediaAt(int index) { if (index < 0 || index >= getCount()) throw new IndexOutOfBoundsException(); final Media media = mMediaArray.get(index); media.retain(); return media; }
/** * Get a Media at specified index. * * @param index index of the media * @return Media hold by MediaList. This Media should be released with {@link #release()}. */ public synchronized Media getMediaAt(int index) { if (index < 0 || index >= getCount()) throw new IndexOutOfBoundsException(); final Media media = mMediaArray.get(index); media.retain(); return media; }
/** * Get a Media at specified index. * * @param index index of the media * @return Media hold by MediaList. This Media should be released with {@link #release()}. */ public synchronized Media getMediaAt(int index) { if (index < 0 || index >= getCount()) throw new IndexOutOfBoundsException(); final Media media = mMediaArray.get(index); media.retain(); return media; }
/** * Get a Media at specified index. * * @param index index of the media * @return Media hold by MediaList. This Media should be released with {@link #release()}. */ public synchronized Media getMediaAt(int index) { if (index < 0 || index >= getCount()) throw new IndexOutOfBoundsException(); final Media media = mMediaArray.get(index); media.retain(); return media; }