/** * Create a Media from libVLC and a local path starting with '/'. * * @param libVLC a valid libVLC * @param path an absolute local path */ public Media(LibVLC libVLC, String path) { super(libVLC); nativeNewFromPath(libVLC, path); mUri = VLCUtil.UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a FileDescriptor * * @param libVLC a valid LibVLC * @param fd file descriptor object */ public Media(LibVLC libVLC, FileDescriptor fd) { nativeNewFromFd(libVLC, fd); mUri = UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a FileDescriptor * * @param libVLC a valid LibVLC * @param fd file descriptor object */ public Media(LibVLC libVLC, FileDescriptor fd) { super(libVLC); nativeNewFromFd(libVLC, fd); mUri = VLCUtil.UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a FileDescriptor * * @param libVLC a valid LibVLC * @param fd file descriptor object */ public Media(LibVLC libVLC, FileDescriptor fd) { nativeNewFromFd(libVLC, fd); mUri = UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a local path starting with '/'. * * @param libVLC a valid libVLC * @param path an absolute local path */ public Media(LibVLC libVLC, String path) { super(libVLC); nativeNewFromPath(libVLC, path); mUri = VLCUtil.UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a FileDescriptor * * @param libVLC a valid LibVLC * @param fd file descriptor object */ public Media(LibVLC libVLC, FileDescriptor fd) { super(libVLC); nativeNewFromFd(libVLC, fd); mUri = VLCUtil.UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a local path starting with '/'. * * @param libVLC a valid libVLC * @param path an absolute local path */ public Media(LibVLC libVLC, String path) { super(libVLC); nativeNewFromPath(libVLC, path); mUri = VLCUtil.UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a local path starting with '/'. * * @param libVLC a valid libVLC * @param path an absolute local path */ public Media(LibVLC libVLC, String path) { nativeNewFromPath(libVLC, path); mUri = UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a local path starting with '/'. * * @param libVLC a valid libVLC * @param path an absolute local path */ public Media(LibVLC libVLC, String path) { nativeNewFromPath(libVLC, path); mUri = UriFromMrl(nativeGetMrl()); }
/** * Create a Media from libVLC and a FileDescriptor * * @param libVLC a valid LibVLC * @param fd file descriptor object */ public Media(LibVLC libVLC, FileDescriptor fd) { super(libVLC); nativeNewFromFd(libVLC, fd); 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) { 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()); }