Java Code Examples for org.videolan.libvlc.Media#Slave

The following examples show how to use org.videolan.libvlc.Media#Slave . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MediaWrapper.java    From OTTLivePlayer_vlc with MIT License 6 votes vote down vote up
private void init(long time, long length, int type,
                  Bitmap picture, String title, String artist, String genre, String album, String albumArtist,
                  int width, int height, String artworkURL, int audio, int spu, int trackNumber, int discNumber, long lastModified,
                  long seen, Media.Slave[] slaves) {
    mFilename = null;
    mTime = time;
    mAudioTrack = audio;
    mSpuTrack = spu;
    mLength = length;
    mType = type;
    mPicture = picture;
    mWidth = width;
    mHeight = height;

    mTitle = title != null ? Uri.decode(title.trim()) : null;
    mArtist = artist != null ? artist.trim() : null;
    mGenre = genre != null ? genre.trim() : null;
    mAlbum = album != null ? album.trim() : null;
    mAlbumArtist = albumArtist != null ? albumArtist.trim() : null;
    mArtworkURL = artworkURL;
    mTrackNumber = trackNumber;
    mDiscNumber = discNumber;
    mLastModified = lastModified;
    mSeen = seen;
    mSlaves = slaves;
}
 
Example 2
Source File: MediaWrapper.java    From OTTLivePlayer_vlc with MIT License 6 votes vote down vote up
private void init(long time, long length, int type,
                  Bitmap picture, String title, String artist, String genre, String album, String albumArtist,
                  int width, int height, String artworkURL, int audio, int spu, int trackNumber, int discNumber, long lastModified,
                  long seen, Media.Slave[] slaves) {
    mFilename = null;
    mTime = time;
    mAudioTrack = audio;
    mSpuTrack = spu;
    mLength = length;
    mType = type;
    mPicture = picture;
    mWidth = width;
    mHeight = height;

    mTitle = title != null ? Uri.decode(title.trim()) : null;
    mArtist = artist != null ? artist.trim() : null;
    mGenre = genre != null ? genre.trim() : null;
    mAlbum = album != null ? album.trim() : null;
    mAlbumArtist = albumArtist != null ? albumArtist.trim() : null;
    mArtworkURL = artworkURL;
    mTrackNumber = trackNumber;
    mDiscNumber = discNumber;
    mLastModified = lastModified;
    mSeen = seen;
    mSlaves = slaves;
}
 
Example 3
Source File: MediaWrapper.java    From OTTLivePlayer_vlc with MIT License 4 votes vote down vote up
@Nullable
public Media.Slave[] getSlaves() {
    return mSlaves;
}
 
Example 4
Source File: MediaWrapper.java    From OTTLivePlayer_vlc with MIT License 4 votes vote down vote up
protected PSlave(Media.Slave slave) {
    super(slave.type, slave.priority, slave.uri);
}
 
Example 5
Source File: MediaWrapper.java    From OTTLivePlayer_vlc with MIT License 4 votes vote down vote up
@Nullable
public Media.Slave[] getSlaves() {
    return mSlaves;
}
 
Example 6
Source File: MediaWrapper.java    From OTTLivePlayer_vlc with MIT License 4 votes vote down vote up
protected PSlave(Media.Slave slave) {
    super(slave.type, slave.priority, slave.uri);
}