use of org.videolan.libvlc.interfaces.IMedia in project vlc-android by videolan.
the class MediaBrowser method getMediaAt.
/**
* Get a media at a specified index. Should be released with {@link #release()}.
*/
@MainThread
public IMedia getMediaAt(int index) {
if (index < 0 || index >= getMediaCount())
throw new IndexOutOfBoundsException();
final IMedia media = mBrowserMediaList != null ? mBrowserMediaList.getMediaAt(index) : mDiscovererMediaArray.get(index);
media.retain();
return media;
}
Aggregations