/** * * @param ml Should not be released and locked * @param index index of the Media from the MediaList */ protected Media(MediaList ml, int index) { if (ml == null || ml.isReleased()) throw new IllegalArgumentException("MediaList is null or released"); if (!ml.isLocked()) throw new IllegalStateException("MediaList should be locked"); nativeNewFromMediaList(ml, index); mUri = UriFromMrl(nativeGetMrl()); }
/** * * @param ml Should not be released and locked * @param index index of the Media from the MediaList */ protected Media(MediaList ml, int index) { if (ml == null || ml.isReleased()) throw new IllegalArgumentException("MediaList is null or released"); if (!ml.isLocked()) throw new IllegalStateException("MediaList should be locked"); nativeNewFromMediaList(ml, index); mUri = UriFromMrl(nativeGetMrl()); }
/** * * @param ml Should not be released and locked * @param index index of the Media from the MediaList */ protected Media(MediaList ml, int index) { super(ml); if (ml == null || ml.isReleased()) throw new IllegalArgumentException("MediaList is null or released"); if (!ml.isLocked()) throw new IllegalStateException("MediaList should be locked"); nativeNewFromMediaList(ml, index); mUri = VLCUtil.UriFromMrl(nativeGetMrl()); }
/** * * @param ml Should not be released and locked * @param index index of the Media from the MediaList */ protected Media(MediaList ml, int index) { super(ml); if (ml == null || ml.isReleased()) throw new IllegalArgumentException("MediaList is null or released"); if (!ml.isLocked()) throw new IllegalStateException("MediaList should be locked"); nativeNewFromMediaList(ml, index); mUri = VLCUtil.UriFromMrl(nativeGetMrl()); }
/** * * @param ml Should not be released and locked * @param index index of the Media from the MediaList */ protected Media(MediaList ml, int index) { super(ml); if (ml == null || ml.isReleased()) throw new IllegalArgumentException("MediaList is null or released"); if (!ml.isLocked()) throw new IllegalStateException("MediaList should be locked"); nativeNewFromMediaList(ml, index); mUri = VLCUtil.UriFromMrl(nativeGetMrl()); }