use of org.videolan.libvlc.Media in project vlc-android by GeoffreyMetais.
the class MediaWrapper method updateMeta.
public void updateMeta(MediaPlayer mediaPlayer) {
if (!TextUtils.isEmpty(mTitle) && TextUtils.isEmpty(mDisplayTitle))
mDisplayTitle = mTitle;
final Media media = mediaPlayer.getMedia();
if (media == null)
return;
updateMeta(media);
media.release();
}
use of org.videolan.libvlc.Media in project vlc-android by videolan.
the class MediaPlayer method setDataSource.
public void setDataSource(FileDescriptor fd) throws IOException, IllegalArgumentException, IllegalStateException {
mCurrentMedia = new Media(mILibVLC, fd);
mMediaPlayer.setMedia(mCurrentMedia);
}
use of org.videolan.libvlc.Media in project vlc-android by videolan.
the class MediaPlayer method setDataSource.
public void setDataSource(String path) throws IOException, IllegalArgumentException, SecurityException, IllegalStateException {
mCurrentMedia = new Media(mILibVLC, path);
mMediaPlayer.setMedia(mCurrentMedia);
}
Aggregations