/** * Get a media thumbnail. * @return a bytearray with the RGBA thumbnail data inside. */ public static byte[] getThumbnail(LibVLC libVLC, Uri uri, int i_width, int i_height) { /* dvd thumbnails can work only with dvdsimple demux */ if (uri.getLastPathSegment().endsWith(".iso")) uri = Uri.parse("dvdsimple://" + uri.getEncodedPath()); final Media media = new Media(libVLC, uri); byte[] bytes = getThumbnail(media, i_width, i_height); media.release(); return bytes; }
/** * Get a media thumbnail. * @return a bytearray with the RGBA thumbnail data inside. */ public static byte[] getThumbnail(LibVLC libVLC, Uri uri, int i_width, int i_height) { /* dvd thumbnails can work only with dvdsimple demux */ if (uri.getLastPathSegment().endsWith(".iso")) uri = Uri.parse("dvdsimple://" + uri.getEncodedPath()); final Media media = new Media(libVLC, uri); byte[] bytes = getThumbnail(media, i_width, i_height); media.release(); return bytes; }
/** * Get a media thumbnail. * @return a bytearray with the RGBA thumbnail data inside. */ public static byte[] getThumbnail(LibVLC libVLC, Uri uri, int i_width, int i_height) { /* dvd thumbnails can work only with dvdsimple demux */ if (uri.getLastPathSegment().endsWith(".iso")) uri = Uri.parse("dvdsimple://" + uri.getEncodedPath()); final Media media = new Media(libVLC, uri); byte[] bytes = getThumbnail(media, i_width, i_height); media.release(); return bytes; }
/** * Get a media thumbnail. * @return a bytearray with the RGBA thumbnail data inside. */ public static byte[] getThumbnail(LibVLC libVLC, Uri uri, int i_width, int i_height) { /* dvd thumbnails can work only with dvdsimple demux */ if (uri.getLastPathSegment().endsWith(".iso")) uri = Uri.parse("dvdsimple://" + uri.getEncodedPath()); final Media media = new Media(libVLC, uri); byte[] bytes = getThumbnail(media, i_width, i_height); media.release(); return bytes; }
/** * Get a media thumbnail. * @return a bytearray with the RGBA thumbnail data inside. */ public static byte[] getThumbnail(LibVLC libVLC, Uri uri, int i_width, int i_height) { /* dvd thumbnails can work only with dvdsimple demux */ if (uri.getLastPathSegment().endsWith(".iso")) uri = Uri.parse("dvdsimple://" + uri.getEncodedPath()); final Media media = new Media(libVLC, uri); byte[] bytes = getThumbnail(media, i_width, i_height); media.release(); return bytes; }