Search in sources :

Example 16 with Media

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();
}
Also used : Media(org.videolan.libvlc.Media)

Example 17 with Media

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);
}
Also used : Media(org.videolan.libvlc.Media) IMedia(org.videolan.libvlc.interfaces.IMedia)

Example 18 with Media

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);
}
Also used : Media(org.videolan.libvlc.Media) IMedia(org.videolan.libvlc.interfaces.IMedia)

Aggregations

Media (org.videolan.libvlc.Media)18 MainThread (android.support.annotation.MainThread)3 IMedia (org.videolan.libvlc.interfaces.IMedia)3 SuppressLint (android.annotation.SuppressLint)2 VideoTrack (org.videolan.libvlc.Media.VideoTrack)2 MediaWrapper (org.videolan.medialibrary.media.MediaWrapper)2