diff --git a/build.gradle b/build.gradle index 60e3fb99..6d1408d9 100644 --- a/build.gradle +++ b/build.gradle @@ -65,7 +65,7 @@ dependencies { // DEPENDENCIES shadow "net.java.dev.jna:jna:$jna_version" shadow "net.java.dev.jna:jna-platform:$jnaplatform_version" -// shadow "com.github.WaterMediaTeam:videolan-natives:$vlcj_natives_version" + shadow "com.github.WaterMediaTeam:videolan-natives:$vlcj_natives_version" shadow "com.github.WaterMediaTeam:ytdl-java:$jyd_version" shadow "org.apache.commons:commons-compress:$commoncompress_version" // CARRIES 'CODEC', 'LANG3' AND 'COMMONS-IO' shadow "org.tukaani:xz:$tukaani_version" @@ -110,6 +110,7 @@ shadowJar { relocate 'org.apache.commons', 'me.lib720.apache' relocate 'org.tukaani', 'me.lib720.tukaani' relocate 'com.sun.jna', 'me.lib720.jna' + relocate 'uk.co.caprica', 'me.lib720.caprica' exclude "META-INF/versions/**" exclude "META-INF/proguard/**" diff --git a/lib-vlcj/build.gradle b/lib-vlcj/build.gradle index 31d60094..fb940800 100644 --- a/lib-vlcj/build.gradle +++ b/lib-vlcj/build.gradle @@ -4,6 +4,7 @@ plugins { } base { + archivesName = id sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } @@ -15,12 +16,26 @@ java { repositories { mavenCentral() + maven { url 'https://jitpack.io' } } dependencies { + implementation "com.github.WaterMediaTeam:videolan-natives:$vlcj_natives_version" compileOnly 'uk.co.caprica:vlcj-osx-stubs:1.0.0' compileOnly 'net.java.dev.jna:jna:4.4.0' compileOnly 'net.java.dev.jna:platform:3.4.0' compileOnly 'org.apache.logging.log4j:log4j-api:2.15.0' compileOnly 'org.apache.logging.log4j:log4j-core:2.17.1' +} + +jar { + manifest { + attributes "Specification-Title": id + attributes "Specification-Vendor": authors + attributes "Specification-Version": version + attributes "Implementation-Title": brandname + attributes "Implementation-Version": version + attributes "Implementation-Vendor": authors + attributes "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") + } } \ No newline at end of file diff --git a/lib-vlcj/gradle.properties b/lib-vlcj/gradle.properties new file mode 100644 index 00000000..c35e0c2a --- /dev/null +++ b/lib-vlcj/gradle.properties @@ -0,0 +1,18 @@ +######################### +#### Gradle runtime #### +######################## +org.gradle.jvmargs=-Xmx4G -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+UnlockExperimentalVMOptions -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M +org.gradle.daemon=false +org.gradle.caching=false + +systemProp.file.encoding=utf-8 + +############################# +#### Project properties #### +########################### +id=vlcj +name=VLCJ +brandname=VLCJ +group=me.srrapero720 +version=4.8.3 +github=SrRapero720/watermedia \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/VideoLan4J.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/VideoLan4J.java deleted file mode 100644 index a70a055d..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/VideoLan4J.java +++ /dev/null @@ -1,19 +0,0 @@ -package me.lib720.caprica.vlcj; - -import me.lib720.caprica.vlcj.factory.discovery.provider.CustomDirectoryProvider; -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; - -import java.nio.file.Path; - -public class VideoLan4J { - public static final Logger LOGGER = LogManager.getLogger("VideoLan4J"); - public static void init(Path customDir) { - CustomDirectoryProvider.init(customDir); - } - - public static void native$checkClassLoader(ClassLoader classLoader) { - Thread t = Thread.currentThread(); - if (t.getContextClassLoader() == null) t.setContextClassLoader(classLoader); - } -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/Kernel32.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/Kernel32.java deleted file mode 100644 index b66325d6..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/Kernel32.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import com.sun.jna.Native; -import com.sun.jna.Pointer; -import com.sun.jna.win32.StdCallLibrary; -import com.sun.jna.win32.W32APIOptions; -import me.lib720.caprica.vlcj.binding.support.size_t; - -public interface Kernel32 extends StdCallLibrary { - - // WATERMeDIA PATCH - start -// Kernel32 INSTANCE = Native.load("kernel32", Kernel32.class, W32APIOptions.DEFAULT_OPTIONS); - Kernel32 INSTANCE = Native.loadLibrary("kernel32", Kernel32.class, W32APIOptions.DEFAULT_OPTIONS); -// Kernel32 INSTANCE = ReflectTool.findAndInvokeWithReturn(new String[] {"load", "loadLibrary"}, Native.class, null, "kernel32", Kernel32.class, W32APIOptions.DEFAULT_OPTIONS); - // WATERMeDIA PATCH - end - - int VirtualLock(Pointer lpAddress, size_t dwSize); - - int VirtualUnlock(Pointer lpAddress, size_t dwSize); - -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibC.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibC.java deleted file mode 100644 index 6b591e71..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibC.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import com.sun.jna.*; - -import java.nio.ByteBuffer; - -/** - * Minimal interface to the standard "C" library. - */ -public interface LibC extends Library { - - /** - * Native library instance. - */ - // WATERMeDIA PATCH - start -// LibC INSTANCE = Native.load((Platform.isWindows() ? "msvcrt" : "c"), LibC.class); - LibC INSTANCE = Native.loadLibrary((Platform.isWindows() ? "msvcrt" : "c"), LibC.class); -// LibC INSTANCE = ReflectTool.findAndInvokeWithReturn(new String[]{"load", "loadLibrary"}, Native.class, null, (Platform.isWindows() ? "msvcrt" : "c"), LibC.class); - // WATERMeDIA PATCH - end - - /** - * Format a string with a variable arguments list into a fixed size buffer. - *

- * The resultant string will be truncated to the size of the buffer if it would - * otherwise exceed it. - *

- * For example, if the buffer has a capacity of 10 this is a maximum of 9 - * characters plus a null terminator for a total capacity of 10. This means if - * 10 characters are required, the buffer capacity must be 11 to accommodate - * the null terminator. - * - * @param str buffer - * @param size capacity of the buffer, including space for a null terminator - * @param format format string - * @param args format arguments - * @return length of the formatted string, which may exceed the capacity of the buffer, or less than zero on error - */ - int vsnprintf(ByteBuffer str, int size, String format, Pointer args); - - /** - * Locks (pins) parts of virtual address space into RAM so it can not be swapped out. - * - * @param addr address pointer - * @param length length - * @return 0 if successful; -1 if not, setting errno to an error code - */ - int mlock(Pointer addr, NativeLong length); - - /** - * Unlock previously locked memory. - * - * @param addr address pointer - * @param length length - * @return 0 if successful; -1 if not, setting errno to an error code - */ - int munlock(Pointer addr, NativeLong length); - - /** - * Change or add an evironment variable. - *

- * The value strings are copied (natively). - *

- * Not available on Windows. - * - * @param name name of environment variable - * @param value value of the environment variable - * @param overwrite non-zero to replace any existing value - * @return 0 if successful; -1 if not, setting errno to an error code - */ - int setenv(String name, String value, int overwrite); - - /** - * Unset an environment variable. - *

- * Not available on Windows. - * - * @param name name of environment variable - * @return 0 if successful; -1 if not, setting errno to an error code - */ - int unsetenv(String name); - - /** - * Get the current process id. - *

- * Not available on Windows. - * - * @return process id - */ - int getpid(); - - /** - * Closest Windows equivalent to {@link #setenv(String, String, int)}. - *

- * Note that after setting an environment variable, it will not show up via - * System#getenv even if it was successfully set. - *

- * Use with case, it is not guaranteed to be thread-safe. - *

- * Only available on Windows. - * - * @param envstring variable and value to set, in the format "variable=value", without quotes. - * @return zero on success, non-zero on error - */ - int _putenv(String envstring); -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibDwmApi.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibDwmApi.java deleted file mode 100644 index 32f340b5..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibDwmApi.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import com.sun.jna.Library; -import com.sun.jna.Native; -import com.sun.jna.platform.win32.WinNT.HRESULT; -import com.sun.jna.ptr.IntByReference; - -/** - * JNA interface to the native LibDwm (Desktop Window Manager) library. - *

- * This library is only available on Windows platforms. - *

- * The functionality provided by this library may be helpful especially when working with - * full-screen exclusive mode in Java which suffers from numerous idiosyncrasies on Windows, some of - * which can be mitigated by ensuring that desktop window composition is disabled. Disabling - * composition can be done at the operating system level, but is more convenient for end-users if - * the application itself does it. - *

- * This class may be removed in future versions of vlcj due to it's uselessness. - */ -public interface LibDwmApi extends Library { - - /** - * Native library instance. - */ - // WATERMeDIA PATCH - start - LibDwmApi INSTANCE = Native.loadLibrary("dwmapi", LibDwmApi.class); - // WATERMeDIA PATCH - end - - /** - * Disable composition. - */ - int DWM_EC_DISABLECOMPOSITION = 0; - - /** - * Enable composition. - */ - int DWM_EC_ENABLECOMPOSITION = 1; - - /** - * API success code. - */ - int S_OK = 0; - - /** - * Enable/disable desktop window composition. - * - * @param uCompositionAction enable/disable, i.e. DWM_EC_ENABLECOMPOSITION or DWM_EC_DISABLECOMPOSITION - * @return S_OK or HRESULT error code - */ - HRESULT DwmEnableComposition(int uCompositionAction); - - /** - * Check whether or not desktop window composition is currently enabled. - * - * @param pfEnabled pointer to enabled/disabled flag. - * @return S_OK or HRESULT error code - */ - HRESULT DwmIsCompositionEnabled(IntByReference pfEnabled); -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibVlc.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibVlc.java deleted file mode 100644 index 4b057f89..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibVlc.java +++ /dev/null @@ -1,2979 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import com.sun.jna.Native; -import com.sun.jna.StringArray; -import me.lib720.caprica.vlcj.binding.support.size_t; -import me.lib720.caprica.vlcj.binding.support.size_tByReference; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_cleanup_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_drain_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_flush_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_output_device_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_output_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_pause_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_play_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_resume_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_set_volume_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_setup_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_callback_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_cbs; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_id; -import me.lib720.caprica.vlcj.binding.internal.libvlc_display_callback_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_equalizer_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_u; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_manager_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_lock_callback_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_log_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_log_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_close_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_discoverer_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_player_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_open_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_player_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_read_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_seek_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_stats_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_module_description_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_picture_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_renderer_discoverer_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_renderer_item_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_thumbnail_request_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_track_description_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_unlock_callback_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_video_cleanup_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_video_format_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t; - -import com.sun.jna.Pointer; -import com.sun.jna.ptr.IntByReference; -import com.sun.jna.ptr.PointerByReference; - -/** - * JNA interface to the libvlc native library. - *

- * This is not a complete interface to libvlc, although most functions are present. - *

- * This interface specifies the exposed methods only, the types and structures are all factored out separately in the - * "internal" sub-package. - *

- * This code and that in the internal sub-package is structured out of necessity to interoperate with the libvlc native - * library. This code was originally derived (but has now been completely re-written) from the original JVLC source - * code, the copyright of which belongs to the VideoLAN team, which was distributed under GPL version 2 or later. - *

- * This system property may be useful for debugging: - *

- * -Djna.dump_memory=true
- * 
- * In the native header file, generally "char*" types must be freed, but "const char*" need (must) not. - *

- * This interface is essentially a translation of the LibVLC header files to Java, with changes for JNA/Java types. The - * documentation in that VLC header file is reproduced here for convenience, with the appropriate Javadoc documentation - * convention changes, the copyright of which (mostly) belongs to the VLC authors. - */ -public final class LibVlc { - - static { - Native.register(RuntimeUtil.getLibVlcLibraryName()); - } - - private LibVlc() { - } - - // === libvlc.h ============================================================= - - /** - * A human-readable error message for the last LibVLC error in the calling thread. The resulting - * string is valid until another error occurs (at least until the next LibVLC call). - *

- * This will be NULL if there was no error. - * - * @return error message, or NULL - */ - public static native String libvlc_errmsg(); - - /** - * Clears the LibVLC error status for the current thread. This is optional. By default, the - * error status is automatically overridden when a new error occurs, and destroyed when the - * thread exits. - */ - public static native void libvlc_clearerr(); - - /** - * Create and initialize a libvlc instance. - * - * @param argc the number of arguments - * @param argv command-line-type arguments - * @return the libvlc instance or NULL in case of error - */ - public static native libvlc_instance_t libvlc_new(int argc, StringArray argv); - - /** - * Decrement the reference count of a libvlc instance, and destroy it if it reaches zero. - * - * @param p_instance the instance to destroy - */ - public static native void libvlc_release(libvlc_instance_t p_instance); - - /** - * Increments the reference count of a libvlc instance. The initial reference count is 1 after - * libvlc_new() returns. - * - * @param p_instance the instance to reference - */ - public static native void libvlc_retain(libvlc_instance_t p_instance); - - /** - * Try to start a user interface for the libvlc instance. - * - * @param p_instance the instance - * @param name interface name, or NULL for default - * @return 0 on success, -1 on error. - */ - public static native int libvlc_add_intf(libvlc_instance_t p_instance, String name); - - /** - * Sets the application name. LibVLC passes this as the user agent string when a protocol - * requires it. - * - * @param p_instance LibVLC instance - * @param name human-readable application name, e.g. "FooBar player 1.2.3" - * @param http HTTP User Agent, e.g. "FooBar/1.2.3 Python/2.6.0" - * @since LibVLC 1.1.1 - */ - public static native void libvlc_set_user_agent(libvlc_instance_t p_instance, String name, String http); - - /** - * Sets some meta-informations about the application. - *

- * See also {@link #libvlc_set_user_agent(libvlc_instance_t, String, String)}. - * - * @param p_instance LibVLC instance - * @param id Java-style application identifier, e.g. "com.acme.foobar" - * @param version application version numbers, e.g. "1.2.3" - * @param icon application icon name, e.g. "foobar" - * @since LibVLC 2.1.0 - */ - public static native void libvlc_set_app_id(libvlc_instance_t p_instance, String id, String version, String icon); - - /** - * Retrieve libvlc version. Example: "1.1.0-git The Luggage" - * - * @return a string containing the libvlc version - */ - public static native String libvlc_get_version(); - - /** - * Retrieve libvlc compiler version. Example: "gcc version 4.2.3 (Ubuntu 4.2.3-2ubuntu6)" - * - * @return a string containing the libvlc compiler version - */ - public static native String libvlc_get_compiler(); - - /** - * Retrieve libvlc changeset. Example: "aa9bce0bc4" - * - * @return a string containing the libvlc changeset - */ - public static native String libvlc_get_changeset(); - - /** - * Frees an heap allocation returned by a LibVLC function. If you know you're using the same - * underlying C run-time as the LibVLC implementation, then you can call ANSI C free() directly - * instead. - * - * @param ptr the pointer - */ - public static native void libvlc_free(Pointer ptr); - - /** - * Register for an event notification. - * - * @param p_event_manager the event manager to which you want to attach to. Generally it is - * obtained by vlc_my_object_event_manager() where my_object is the object you want - * to listen to. - * @param i_event_type the desired event to which we want to listen - * @param f_callback the function to call when i_event_type occurs - * @param user_data user provided data to carry with the event - * @return 0 on success, ENOMEM on error - */ - public static native int libvlc_event_attach(libvlc_event_manager_t p_event_manager, int i_event_type, libvlc_callback_t f_callback, Pointer user_data); - - /** - * Unregister an event notification. - * - * @param p_event_manager the event manager - * @param i_event_type the desired event to which we want to unregister - * @param f_callback the function to call when i_event_type occurs - * @param p_user_data user provided data to carry with the event - */ - public static native void libvlc_event_detach(libvlc_event_manager_t p_event_manager, int i_event_type, libvlc_callback_t f_callback, Pointer p_user_data); - - /** - * Gets debugging informations about a log message: the name of the VLC module - * emitting the message and the message location within the source code. - *

- * The returned module name and file name will be NULL if unknown. - *

- * The returned line number will similarly be zero if unknown. - *

- * The returned module name and source code file name, if non-NULL, - * are only valid until the logging callback returns.* - * - * @param ctx message context (as passed to the {@link libvlc_log_cb}) - * @param module module name storage (or NULL) [OUT] - * @param file source code file name storage (or NULL) [OUT] - * @param line source code file line number storage (or NULL) [OUT] - * - * @since LibVLC 2.1.0 or later - */ - public static native void libvlc_log_get_context(libvlc_log_t ctx, PointerByReference module, PointerByReference file, IntByReference line); - - /** - * Gets VLC object informations about a log message: the type name of the VLC - * object emitting the message, the object header if any and a temporaly-unique - * object identifier. These informations are mainly meant for manual - * troubleshooting. - *

- * The returned type name may be "generic" if unknown, but it cannot be NULL. - *

- * The returned header will be NULL if unset; in current versions, the header - * is used to distinguish for VLM inputs. - *

- * The returned object ID will be zero if the message is not associated with - * any VLC object. - *

- * The returned module name and source code file name, if non-NULL, - * are only valid until the logging callback returns. - * - * @param ctx message context (as passed to the {@link libvlc_log_cb}) - * @param name object name storage (or NULL) [OUT] - * @param header object header (or NULL) [OUT] - * @param id source code file line number storage (or NULL) [OUT] - * - * @since LibVLC 2.1.0 or later - */ - public static native void libvlc_log_get_object(libvlc_log_t ctx, PointerByReference name, PointerByReference header, IntByReference id); - - /** - * Unsets the logging callback for a LibVLC instance. This is rarely needed: - * the callback is implicitly unset when the instance is destroyed. - *

- * This function will wait for any pending callbacks invocation to complete - * (causing a deadlock if called from within the callback). - * - * @param p_instance the instance - * - * @since LibVLC 2.1.0 or later - */ - public static native void libvlc_log_unset(libvlc_instance_t p_instance); - - /** - * Sets the logging callback for a LibVLC instance. - *

- * This function is thread-safe: it will wait for any pending callbacks - * invocation to complete. - *

- * Some log messages (especially debug) are emitted by LibVLC while - * is being initialized. These messages cannot be captured with this interface. - *

- * A deadlock may occur if this function is called from the callback. - * - * @param p_instance the instance - * @param cb callback function pointer - * @param data opaque data pointer for the callback function - * - * @since LibVLC 2.1.0 or later - */ - public static native void libvlc_log_set(libvlc_instance_t p_instance, libvlc_log_cb cb, Pointer data); - - /** - * Release a list of module descriptions. - * - * @param p_list the list to be released - */ - public static native void libvlc_module_description_list_release(Pointer p_list); - - /** - * Returns a list of audio filters that are available. - * - * @param p_instance libvlc instance - * @return a list of module descriptions. It should be freed with - * libvlc_module_description_list_release(). In case of an error, NULL is returned. - * @see libvlc_module_description_t - * @see #libvlc_module_description_list_release(Pointer) - */ - public static native libvlc_module_description_t libvlc_audio_filter_list_get(libvlc_instance_t p_instance); - - /** - * Returns a list of video filters that are available. - * - * @param p_instance libvlc instance - * @return a list of module descriptions. It should be freed with - * libvlc_module_description_list_release(). In case of an error, NULL is returned. - * @see libvlc_module_description_t - * @see #libvlc_module_description_list_release(Pointer) - */ - public static native libvlc_module_description_t libvlc_video_filter_list_get(libvlc_instance_t p_instance); - - /** - * Return the current time as defined by LibVLC. The unit is the microsecond. Time increases - * monotonically (regardless of time zone changes and RTC adjustments). The origin is arbitrary - * but consistent across the whole system (e.g. the system uptime, the time since the system was - * booted). \note On systems that support it, the POSIX monotonic clock is used. - * - * @return clock value - */ - public static native long libvlc_clock(); - - // === libvlc.h ============================================================= - - // === libvlc_media.h ======================================================= - - /** - * Create a media with a certain given media resource location. - * - * @see #libvlc_media_release(libvlc_media_t) - * @param p_instance the instance - * @param psz_mrl the MRL to read - * @return the newly created media or NULL on error - */ - public static native libvlc_media_t libvlc_media_new_location(libvlc_instance_t p_instance, String psz_mrl); - - /** - * Create a media with a certain file path. - * - * @see #libvlc_media_release(libvlc_media_t) - * @param p_instance the instance - * @param path local filesystem path - * @return the newly created media or NULL on error - */ - public static native libvlc_media_t libvlc_media_new_path(libvlc_instance_t p_instance, String path); - - /** - * Create a media with custom callbacks to read the data from. - *

- * If open_cb is NULL, the opaque pointer will be passed to read_cb, - * seek_cb and close_cb, and the stream size will be treated as unknown. - *

- * The callbacks may be called asynchronously (from another thread). - * A single stream instance need not be reentrant. However the open_cb needs to - * be reentrant if the media is used by multiple player instances. - *

- * The callbacks may be used until all or any player instances - * that were supplied the media item are stopped. - *

- * @see #libvlc_media_release(libvlc_media_t) - * - * @since LibVLC 3.0.0 and later. - * - * @param instance LibVLC instance - * @param open_cb callback to open the custom bitstream input media - * @param read_cb callback to read data (must not be NULL) - * @param seek_cb callback to seek, or NULL if seeking is not supported - * @param close_cb callback to close the media, or NULL if unnecessary - * @param opaque data pointer for the open callback - * @return the newly created media or NULL on error - */ - public static native libvlc_media_t libvlc_media_new_callbacks(libvlc_instance_t instance, libvlc_media_open_cb open_cb, libvlc_media_read_cb read_cb, libvlc_media_seek_cb seek_cb, libvlc_media_close_cb close_cb, Pointer opaque); - - /** - * Create a media as an empty node with a given name. - * - * @see #libvlc_media_release(libvlc_media_t) - * @param p_instance the instance - * @param psz_name the name of the node - * @return the new empty media or NULL on error - */ - public static native libvlc_media_t libvlc_media_new_as_node(libvlc_instance_t p_instance, String psz_name); - - /** - * Add an option to the media. This option will be used to determine how the media_player will - * read the media. This allows to use VLC's advanced reading/streaming options on a per-media - * basis. The options are detailed in vlc --long-help, for instance "--sout-all" - * - * @param p_md the media descriptor - * @param ppsz_options the options (as a string) - */ - public static native void libvlc_media_add_option(libvlc_media_t p_md, String ppsz_options); - - /** - * Add an option to the media with configurable flags. This option will be used to determine how - * the media_player will read the media. This allows to use VLC's advanced reading/streaming - * options on a per-media basis. The options are detailed in vlc --long-help, for instance - * "--sout-all" - * - * @param p_md the media descriptor - * @param ppsz_options the options (as a string) - * @param i_flags the flags for this option - */ - public static native void libvlc_media_add_option_flag(libvlc_media_t p_md, String ppsz_options, int i_flags); - - /** - * Retain a reference to a media descriptor object (libvlc_media_t). Use libvlc_media_release() - * to decrement the reference count of a media descriptor object. - * - * @param p_md the media descriptor - */ - public static native void libvlc_media_retain(libvlc_media_t p_md); - - /** - * Decrement the reference count of a media descriptor object. If the reference count is 0, then - * libvlc_media_release() will release the media descriptor object. It will send out an - * libvlc_MediaFreed event to all listeners. If the media descriptor object has been released it - * should not be used again. - * - * @param p_md the media descriptor - */ - public static native void libvlc_media_release(libvlc_media_t p_md); - - /** - * Get the media resource locator (mrl) from a media descriptor object - * - * @param p_md a media descriptor object - * @return string with mrl of media descriptor object - */ - public static native Pointer libvlc_media_get_mrl(libvlc_media_t p_md); - - /** - * Duplicate a media descriptor object. - * - * @param p_md a media descriptor object. - * @return duplicated media descriptor - */ - public static native libvlc_media_t libvlc_media_duplicate(libvlc_media_t p_md); - - /** - * Read the meta of the media. If the media has not yet been parsed this will return NULL. This - * methods automatically calls libvlc_media_parse_async(), so after calling it you may receive a - * libvlc_MediaMetaChanged event. If you prefer a synchronous version ensure that you call - * libvlc_media_parse() before get_meta(). - * - * @see #libvlc_media_parse_with_options(libvlc_media_t, int, int) - * @see #libvlc_media_parse_async(libvlc_media_t) - * @see libvlc_event_e#libvlc_MediaMetaChanged - * @param p_md the media descriptor - * @param e_meta the meta to read - * @return the media's meta - */ - public static native Pointer libvlc_media_get_meta(libvlc_media_t p_md, int e_meta); - - /** - * Set the meta of the media (this function will not save the meta, call libvlc_media_save_meta - * in order to save the meta) - * - * @param p_md the media descriptor - * @param e_meta the meta to write - * @param psz_value the media's meta - */ - public static native void libvlc_media_set_meta(libvlc_media_t p_md, int e_meta, String psz_value); - - /** - * Save the meta previously set - * - * @param p_md the media desriptor - * @return true if the write operation was successfull - */ - public static native int libvlc_media_save_meta(libvlc_media_t p_md); - - /** - * Get current state of media descriptor object. Possible media states are defined in - * libvlc_structures.c (libvlc_NothingSpecial=0, libvlc_Opening, libvlc_Buffering, - * libvlc_Playing, libvlc_Paused, libvlc_Stopped, libvlc_Ended, libvlc_Error). - * - * @param p_meta_desc a media descriptor object - * @return state of media descriptor object - */ - public static native int libvlc_media_get_state(libvlc_media_t p_meta_desc); - - /** - * get the current statistics about the media - * - * @param p_md media descriptor object - * @param p_stats structure that contain the statistics about the media (this structure must be - * allocated by the caller) - * @return true if the statistics are available, false otherwise - */ - public static native int libvlc_media_get_stats(libvlc_media_t p_md, libvlc_media_stats_t p_stats); - - /** - * Get subitems of media descriptor object. This will increment the reference count of supplied - * media descriptor object. Use libvlc_media_list_release() to decrement the reference counting. - * - * @param p_md media descriptor object - * @return list of media descriptor subitems or NULL This method uses libvlc_media_list_t, - * however, media_list usage is optional and this is here for convenience - */ - public static native libvlc_media_list_t libvlc_media_subitems(libvlc_media_t p_md); - - /** - * Get event manager from media descriptor object. NOTE: this function doesn't increment - * reference counting. - * - * @param p_md a media descriptor object - * @return event manager object - */ - public static native libvlc_event_manager_t libvlc_media_event_manager(libvlc_media_t p_md); - - /** - * Get duration (in ms) of media descriptor object item. - * - * @param p_md media descriptor object - * @return duration of media item or -1 on error - */ - public static native long libvlc_media_get_duration(libvlc_media_t p_md); - - /** - * Parse a media. - * - * This fetches (local) art, meta data and tracks information. - * - * The method is the asynchronous of libvlc_media_parse(). To track when this is over you - * can listen to libvlc_MediaParsedChanged event. However if the media was already parsed - * you will not receive this event. - * - * @see #libvlc_media_parse_with_options(libvlc_media_t, int, int) - * @see libvlc_event_e#libvlc_MediaParsedChanged - * @see #libvlc_media_get_meta(libvlc_media_t, int) - * @param media media descriptor object - */ - public static native void libvlc_media_parse_async(libvlc_media_t media); - - /** - * Parse the media asynchronously with options. - * - * This fetches (local or network) art, meta data and/or tracks information. - * - * This method is the extended version of libvlc_media_parse_with_options(). - * - * To track when this is over you can listen to libvlc_MediaParsedChanged - * event. However if this functions returns an error, you will not receive any - * events. - * - * It uses a flag to specify parse options. All - * these flags can be combined. By default, media is parsed if it's a local - * file. - * - * Parsing can be aborted with libvlc_media_parse_stop(). - * - * @see libvlc_event_e#libvlc_MediaParsedChanged - * @see #libvlc_media_get_meta(libvlc_media_t, int) - * @see #libvlc_media_tracks_get(libvlc_media_t, PointerByReference) - * - * @param p_md media descriptor object - * @param parse_flag parse options - * @param timeout maximum time allowed to preparse the media. If -1, the default - * "preparse-timeout" option will be used as a timeout. If 0, it - * will wait indefinitely. If > 0, the timeout will be used (in - * milliseconds). - * @return -1 in case of error, 0 otherwise - * - * @since LibVLC 3.0.0 or later - */ - public static native int libvlc_media_parse_with_options(libvlc_media_t p_md, int parse_flag, int timeout); - - /** - * Stop the parsing of the media - * - * When the media parsing is stopped, the libvlc_MediaParsedChanged event will - * be sent with the libvlc_media_parsed_status_timeout status. - * - * @see #libvlc_media_parse_with_options(libvlc_media_t, int, int) - * - * @param p_md media descriptor object - * - * @since version LibVLC 3.0.0 or later - */ - public static native void libvlc_media_parse_stop(libvlc_media_t p_md); - - /** - * Get Parsed status for media descriptor object. - * - * @param p_md media descriptor object - * @return a value of the libvlc_media_parsed_status_t enum - * - * @since LibVLC 3.0.0 or later - */ - public static native int libvlc_media_get_parsed_status(libvlc_media_t p_md); - - /** - * Sets media descriptor's user_data. user_data is specialized data accessed by the host - * application, VLC.framework uses it as a pointer to an native object that references a - * libvlc_media_t pointer - * - * @param p_md media descriptor object - * @param p_new_user_data pointer to user data - */ - public static native void libvlc_media_set_user_data(libvlc_media_t p_md, Pointer p_new_user_data); - - /** - * Get media descriptor's user_data. user_data is specialized data accessed by the host - * application, VLC.framework uses it as a pointer to an native object that references a - * libvlc_media_t pointer - * - * @param p_md media descriptor object - * @return user-data pointer - */ - public static native Pointer libvlc_media_get_user_data(libvlc_media_t p_md); - - /** - * Get media descriptor's elementary streams description - *

- * Note, you need to parse or play the media at least once before calling this function. - *

- * Not doing this will result in an empty array. - * - * @since LibVLC 2.1.0 and later. - * - * @param p_md media descriptor object - * @param tracks address to store an allocated array of Elementary Streams - * descriptions (must be freed with libvlc_media_tracks_release - * by the caller) [OUT] - * - * @return the number of Elementary Streams (zero on error) - */ - public static native int libvlc_media_tracks_get(libvlc_media_t p_md, PointerByReference tracks); - - /** - * Release media descriptor's elementary streams description array - * - * @since LibVLC 2.1.0 and later. - * - * @param p_tracks tracks info array to release - * @param i_count number of elements in the array - */ - public static native void libvlc_media_tracks_release(Pointer p_tracks, int i_count); - - /** - * Get the media type of the media descriptor object. - * - * @since LibVLC 3.0.0 and later. - * - * @param p_md media descriptor object - * @return media type - */ - public static native int libvlc_media_get_type(libvlc_media_t p_md); - - /** - * Start an asynchronous thumbnail generation - * - * If the request is successfuly queued, the libvlc_MediaThumbnailGenerated - * is guaranteed to be emited. - * - * @param md media descriptor object - * @param time The time at which the thumbnail should be generated - * @param speed The seeking speed \sa{libvlc_thumbnailer_seek_speed_t} - * @param width The thumbnail width - * @param height the thumbnail height - * @param picture_type The thumbnail picture type \sa{libvlc_picture_type_t} - * @param timeout A timeout value in ms, or 0 to disable timeout - * - * @return A valid opaque request object, or NULL in case of failure. - * - * @since libvlc 4.0 or later - * - * @see libvlc_picture_t - */ - public static /*native*/ libvlc_media_thumbnail_request_t libvlc_media_thumbnail_request_by_time(libvlc_media_t md, long time, int speed, int width, int height, int picture_type, long timeout) { - throw new UnsupportedOperationException(); - } - - /** - * Start an asynchronous thumbnail generation - * - * If the request is successfuly queued, the libvlc_MediaThumbnailGenerated - * is guaranteed to be emited. - * - * @param md media descriptor object - * @param pos The position at which the thumbnail should be generated - * @param speed The seeking speed \sa{libvlc_thumbnailer_seek_speed_t} - * @param width The thumbnail width - * @param height the thumbnail height - * @param picture_type The thumbnail picture type \sa{libvlc_picture_type_t} - * @param timeout A timeout value in ms, or 0 to disable timeout - * - * @return A valid opaque request object, or NULL in case of failure. - * - * @since libvlc 4.0 or later - * - * @see libvlc_picture_t - */ - public static /*native*/ libvlc_media_thumbnail_request_t libvlc_media_thumbnail_request_by_pos(libvlc_media_t md, float pos, int speed, int width, int height, int picture_type, long timeout) { - throw new UnsupportedOperationException(); - } - - /** - * Cancels a thumbnailing request - *

- * Cancelling the request will still cause libvlc_MediaThumbnailGenerated event - * to be emitted, with a NULL libvlc_picture_t. - *

- * If the request is cancelled after its completion, the behavior is undefined. - * - * @param p_req An opaque thumbnail request object. - * - */ - public static /*native*/ void libvlc_media_thumbnail_cancel(libvlc_media_thumbnail_request_t p_req) { - throw new UnsupportedOperationException(); - } - - /** - * Get codec description from media elementary stream. - * - * @param i_type i_type from libvlc_media_track_t - * @param i_codec i_codec or i_original_fourcc from libvlc_media_track_t - * - * @return codec description - * - * @since LibVLC 3.0.0 and later. - */ - public static native String libvlc_media_get_codec_description(int i_type, int i_codec); - - /** - * Add a slave to the current media. - *

- * A slave is an external input source that may contains an additional subtitle - * track (like a .srt) or an additional audio track (like a .ac3). - *

- * This function must be called before the media is parsed (via - * libvlc_media_parse_with_options()) or before the media is played (via - * libvlc_media_player_play()) - * - * @param p_md media descriptor object - * @param i_type subtitle or audio - * @param i_priority from 0 (low priority) to 4 (high priority) - * @param psz_uri Uri of the slave (should contain a valid scheme). - * @return 0 on success, -1 on error. - * - * @since LibVLC 3.0.0 and later. - */ - public static native int libvlc_media_slaves_add(libvlc_media_t p_md, int i_type, int i_priority, String psz_uri); - - /** - * Clear all slaves previously added by libvlc_media_slaves_add() or - * internally. - * - * @param p_md media descriptor object - * - * @since LibVLC 3.0.0 and later. - */ - public static native void libvlc_media_slaves_clear(libvlc_media_t p_md); - - /** - * Get a media descriptor's slave list - * - * The list will contain slaves parsed by VLC or previously added by - * libvlc_media_slaves_add(). The typical use case of this function is to save - * a list of slave in a database for a later use. - * - * @param p_md media descriptor object - * @param ppp_slaves address to store an allocated array of slaves (must be freed with libvlc_media_slaves_release()) [OUT] - * - * @return the number of slaves (zero on error) - * @since LibVLC 3.0.0 and later. - */ - public static native int libvlc_media_slaves_get(libvlc_media_t p_md, PointerByReference ppp_slaves); - - /** - * Release a media descriptor's slave list - * - * @since LibVLC 3.0.0 and later. - * - * @param pp_slaves slave array to release - * @param i_count number of elements in the array - */ - public static native void libvlc_media_slaves_release(Pointer pp_slaves, int i_count); - - // === libvlc_media.h ======================================================= - - // === libvlc_media_player.h ================================================ - - /** - * Create an empty Media Player object - * - * @param p_libvlc_instance the libvlc instance in which the Media Player should be created. - * @return a new media player object, or NULL on error. - */ - public static native libvlc_media_player_t libvlc_media_player_new(libvlc_instance_t p_libvlc_instance); - - /** - * Create a Media Player object from a Media - * - * @param p_md the media. Afterwards the p_md can be safely destroyed. - * @return a new media player object, or NULL on error. - */ - public static native libvlc_media_player_t libvlc_media_player_new_from_media(libvlc_media_t p_md); - - /** - * Release a media_player after use Decrement the reference count of a media player object. If - * the reference count is 0, then libvlc_media_player_release() will release the media player - * object. If the media player object has been released, then it should not be used again. - * - * @param p_mi the Media Player to free - */ - public static native void libvlc_media_player_release(libvlc_media_player_t p_mi); - - /** - * Retain a reference to a media player object. Use libvlc_media_player_release() to decrement - * reference count. - * - * @param p_mi media player object - */ - public static native void libvlc_media_player_retain(libvlc_media_player_t p_mi); - - /** - * Set the media that will be used by the media_player. If any, previous md will be released. - * - * @param p_mi the Media Player - * @param p_md the Media. Afterwards the p_md can be safely destroyed. - */ - public static native void libvlc_media_player_set_media(libvlc_media_player_t p_mi, libvlc_media_t p_md); - - /** - * Get the media used by the media_player. - *

- * You do not need to invoke libvlc_media_player_release(). - * - * @param p_mi the Media Player - * @return the media associated with p_mi, or NULL if no media is associated - */ - public static native libvlc_media_t libvlc_media_player_get_media(libvlc_media_player_t p_mi); - - /** - * Get the Event Manager from which the media player send event. - * - * @param p_mi the Media Player - * @return the event manager associated with p_mi - */ - public static native libvlc_event_manager_t libvlc_media_player_event_manager(libvlc_media_player_t p_mi); - - /** - * is_playing - * - * @param p_mi the Media Player - * @return 1 if the media player is playing, 0 otherwise - */ - public static native int libvlc_media_player_is_playing(libvlc_media_player_t p_mi); - - /** - * Play - * - * @param p_mi the Media Player - * @return 0 if playback started (and was already started), or -1 on error. - */ - public static native int libvlc_media_player_play(libvlc_media_player_t p_mi); - - /** - * Pause or resume (no effect if there is no media) - * - * @param mp the Media Player - * @param do_pause play/resume if zero, pause if non-zero - * @since LibVLC 1.1.1 - */ - public static native void libvlc_media_player_set_pause(libvlc_media_player_t mp, int do_pause); - - /** - * Toggle pause (no effect if there is no media) - * - * @param p_mi the Media Player - */ - public static native void libvlc_media_player_pause(libvlc_media_player_t p_mi); - - /** - * Stop (no effect if there is no media) - * - * @param p_mi the Media Player - */ - public static native void libvlc_media_player_stop(libvlc_media_player_t p_mi); - - /** - * Set a renderer to the media player - * - * Must be called before the first call of libvlc_media_player_play() to - * take effect. - * - * @see #libvlc_renderer_discoverer_new(libvlc_instance_t, String) - * - * @param p_mi the Media Player - * @param p_item an item discovered by libvlc_renderer_discoverer_start() - * @return 0 on success, -1 on error. - * - * @since LibVLC 3.0.0 or later - */ - public static native int libvlc_media_player_set_renderer(libvlc_media_player_t p_mi, libvlc_renderer_item_t p_item); - - /** - * Set callbacks and private data to render decoded video to a custom area in memory. - *

- * Use libvlc_video_set_format() or libvlc_video_set_format_callbacks() to configure the decoded - * format. - * - * @param mp the media player - * @param lock callback to allocate video memory - * @param unlock callback to release video memory - * @param display callback when ready to display a video frame - * @param opaque private pointer for the three callbacks (as first parameter) - * @since LibVLC 1.1.1 - */ - public static native void libvlc_video_set_callbacks(libvlc_media_player_t mp, libvlc_lock_callback_t lock, libvlc_unlock_callback_t unlock, libvlc_display_callback_t display, Pointer opaque); - - /** - * Set decoded video chroma and dimensions. - *

- * This only works in combination with libvlc_video_set_callbacks(), and is mutually exclusive - * with libvlc_video_set_format_callbacks(). - * - * @param mp the media player - * @param chroma a four-characters string identifying the chroma (e.g. "RV32" or "YUYV") - * @param width pixel width - * @param height pixel height - * @param pitch line pitch (in bytes) - * @since LibVLC 1.1.1 - * - * bug: All pixel planes are expected to have the same pitch. To use the YCbCr color space with - * chrominance subsampling, consider using libvlc_video_set_format_callback() instead. - */ - public static native void libvlc_video_set_format(libvlc_media_player_t mp, String chroma, int width, int height, int pitch); - - /** - * Set decoded video chroma and dimensions. This only works in combination with - * libvlc_video_set_callbacks(). - * - * @param mp the media player - * @param setup callback to select the video format (cannot be NULL) - * @param cleanup callback to release any allocated resources (or NULL) - * @since LibVLC 2.0.0 or later - */ - public static native void libvlc_video_set_format_callbacks(libvlc_media_player_t mp, libvlc_video_format_cb setup, libvlc_video_cleanup_cb cleanup); - - /** - * Set the NSView handler where the media player should render its video output. Use the vout - * called "macosx". The drawable is an NSObject that follow the VLCOpenGLVideoViewEmbedding - * protocol: - *

-     *     \@protocol VLCOpenGLVideoViewEmbedding <NSObject> - (void)addVoutSubview:(NSView*)view; - (void)removeVoutSubview:(NSView *)view; \@end
-     * 
- * Or it can be an NSView object. If you want to use it along with Qt4 see the - * QMacCocoaViewContainer. Then the following code should work: - *
-     * {
-     *     NSView *video = [[NSView alloc] init];
-     *     QMacCocoaViewContainer *container = new QMacCocoaViewContainer(video, parent);
-     *     libvlc_media_player_set_nsobject(mp, video);
-     *     [video release];
-     * }
-     * 
- * You can find a live example in VLCVideoView in VLCKit.framework. - * - * @param p_mi the Media Player - * @param drawable the drawable that is either an NSView or an object following the - * VLCOpenGLVideoViewEmbedding protocol. - */ - public static native void libvlc_media_player_set_nsobject(libvlc_media_player_t p_mi, long drawable); - - /** - * Get the NSView handler previously set with libvlc_media_player_set_nsobject(). - * - * @param p_mi the Media Player - * @return the NSView handler or 0 if none where set - */ - public static native Pointer libvlc_media_player_get_nsobject(libvlc_media_player_t p_mi); - - /** - * Set an X Window System drawable where the media player should render its video output. If - * LibVLC was built without X11 output support, then this has no effects. The specified - * identifier must correspond to an existing Input/Output class X11 window. Pixmaps are - * not supported. The caller shall ensure that the X11 server is the same as the one the - * VLC instance has been configured with. - * - * @param p_mi the Media Player - * @param drawable the ID of the X window - */ - public static native void libvlc_media_player_set_xwindow(libvlc_media_player_t p_mi, int drawable); - - /** - * Get the X Window System window identifier previously set with - * libvlc_media_player_set_xwindow(). Note that this will return the identifier even if VLC is - * not currently using it (for instance if it is playing an audio-only input). - * - * @param p_mi the Media Player - * @return an X window ID, or 0 if none where set. - */ - public static native int libvlc_media_player_get_xwindow(libvlc_media_player_t p_mi); - - /** - * Set a Win32/Win64 API window handle (HWND) where the media player should render its video - * output. If LibVLC was built without Win32/Win64 API output support, then this has no effects. - * - * @param p_mi the Media Player - * @param drawable windows handle of the drawable - */ - public static native void libvlc_media_player_set_hwnd(libvlc_media_player_t p_mi, Pointer drawable); - - /** - * Get the Windows API window handle (HWND) previously set with libvlc_media_player_set_hwnd(). - * The handle will be returned even if LibVLC is not currently outputting any video to it. - * - * @param p_mi the Media Player - * @return a window handle or NULL if there are none. - */ - public static native Pointer libvlc_media_player_get_hwnd(libvlc_media_player_t p_mi); - - /** - * Set callbacks and private data for decoded audio. - *

- * Use libvlc_audio_set_format() or libvlc_audio_set_format_callbacks() to configure the decoded - * audio format. - * - * @param mp the media player - * @param play callback to play audio samples (must not be NULL) - * @param pause callback to pause playback (or NULL to ignore) - * @param resume callback to resume playback (or NULL to ignore) - * @param flush callback to flush audio buffers (or NULL to ignore) - * @param drain callback to drain audio buffers (or NULL to ignore) - * @param opaque private pointer for the audio callbacks (as first parameter) - * @since LibVLC 2.0.0 or later - */ - public static native void libvlc_audio_set_callbacks(libvlc_media_player_t mp, libvlc_audio_play_cb play, libvlc_audio_pause_cb pause, libvlc_audio_resume_cb resume, libvlc_audio_flush_cb flush, libvlc_audio_drain_cb drain, Pointer opaque); - - /** - * Set callbacks and private data for decoded audio. Use libvlc_audio_set_format() or - * libvlc_audio_set_format_callbacks() to configure the decoded audio format. - * - * @param mp the media player - * @param set_volume callback to apply audio volume, or NULL to apply volume in software - * @since LibVLC 2.0.0 or later - */ - public static native void libvlc_audio_set_volume_callback(libvlc_media_player_t mp, libvlc_audio_set_volume_cb set_volume); - - /** - * Set decoded audio format. This only works in combination with libvlc_audio_set_callbacks(). - * - * @param mp the media player - * @param setup callback to select the audio format (cannot be NULL) - * @param cleanup callback to release any allocated resources (or NULL) - * @since LibVLC 2.0.0 or later - */ - public static native void libvlc_audio_set_format_callbacks(libvlc_media_player_t mp, libvlc_audio_setup_cb setup, libvlc_audio_cleanup_cb cleanup); - - /** - * Set decoded audio format. This only works in combination with libvlc_audio_set_callbacks(), - * and is mutually exclusive with libvlc_audio_set_format_callbacks(). - * - * @param mp the media player - * @param format a four-characters string identifying the sample format (e.g. "S16N" or "f32l") - * @param rate sample rate (expressed in Hz) - * @param channels channels count - * @since LibVLC 2.0.0 or later - */ - public static native void libvlc_audio_set_format(libvlc_media_player_t mp, String format, int rate, int channels); - - /** bug This might go away ... to be replaced by a broader system */ - - /** - * Get the current movie length (in ms). - * - * @param p_mi the Media Player - * @return the movie length (in ms), or -1 if there is no media. - */ - public static native long libvlc_media_player_get_length(libvlc_media_player_t p_mi); - - /** - * Get the current movie time (in ms). - * - * @param p_mi the Media Player - * @return the movie time (in ms), or -1 if there is no media. - */ - public static native long libvlc_media_player_get_time(libvlc_media_player_t p_mi); - - /** - * Set the movie time (in ms). - *

- * This has no effect if no media is being played. - *

- * Not all formats and protocols support this. - * - * @param p_mi the Media Player - * @param i_time the movie time (in ms). - */ - public static native void libvlc_media_player_set_time(libvlc_media_player_t p_mi, long i_time); - - /** - * Get movie position. - * - * @param p_mi the Media Player - * @return movie position, or -1. in case of error - */ - public static native float libvlc_media_player_get_position(libvlc_media_player_t p_mi); - - /** - * Set movie position as percentage between 0.0 and 1.0. - *

- * This has no effect if playback is not enabled. - *

- * This might not work depending on the underlying input format and protocol. - * - * @param p_mi the Media Player - * @param f_pos the position - */ - public static native void libvlc_media_player_set_position(libvlc_media_player_t p_mi, float f_pos); - - /** - * Set movie chapter (if applicable). - * - * @param p_mi the Media Player - * @param i_chapter chapter number to play - */ - public static native void libvlc_media_player_set_chapter(libvlc_media_player_t p_mi, int i_chapter); - - /** - * Get movie chapter. - * - * @param p_mi the Media Player - * @return chapter number currently playing, or -1 if there is no media. - */ - public static native int libvlc_media_player_get_chapter(libvlc_media_player_t p_mi); - - /** - * Get movie chapter count - * - * @param p_mi the Media Player - * @return number of chapters in movie, or -1. - */ - public static native int libvlc_media_player_get_chapter_count(libvlc_media_player_t p_mi); - - /** - * Is the player able to play - * - * @param p_mi the Media Player - * @return boolean - */ - public static native int libvlc_media_player_will_play(libvlc_media_player_t p_mi); - - /** - * Get title chapter count - * - * @param p_mi the Media Player - * @param i_title title - * @return number of chapters in title, or -1 - */ - public static native int libvlc_media_player_get_chapter_count_for_title(libvlc_media_player_t p_mi, int i_title); - - /** - * Set movie title - * - * @param p_mi the Media Player - * @param i_title title number to play - */ - public static native void libvlc_media_player_set_title(libvlc_media_player_t p_mi, int i_title); - - /** - * Get movie title - * - * @param p_mi the Media Player - * @return title number currently playing, or -1 - */ - public static native int libvlc_media_player_get_title(libvlc_media_player_t p_mi); - - /** - * Get movie title count - * - * @param p_mi the Media Player - * @return title number count, or -1 - */ - public static native int libvlc_media_player_get_title_count(libvlc_media_player_t p_mi); - - /** - * Set previous chapter (if applicable) - * - * @param p_mi the Media Player - */ - public static native void libvlc_media_player_previous_chapter(libvlc_media_player_t p_mi); - - /** - * Set next chapter (if applicable) - * - * @param p_mi the Media Player - */ - public static native void libvlc_media_player_next_chapter(libvlc_media_player_t p_mi); - - /** - * Get the requested movie play rate. - *

- * Depending on the underlying media, the requested rate may be different from the real - * playback rate. - * @param p_mi the Media Player - * @return movie play rate - */ - public static native float libvlc_media_player_get_rate(libvlc_media_player_t p_mi); - - /** - * Set movie play rate - * - * @param p_mi the Media Player - * @param rate movie play rate to set - * @return -1 if an error was detected, 0 otherwise (but even then, it might not actually work - * depending on the underlying media protocol) - */ - public static native int libvlc_media_player_set_rate(libvlc_media_player_t p_mi, float rate); - - /** - * Get current movie state - * - * @param p_mi the Media Player - * @return the current state of the media player (playing, paused, ...) @see State - */ - public static native int libvlc_media_player_get_state(libvlc_media_player_t p_mi); - - /** - * How many video outputs does this media player have? - * - * @param p_mi the media player - * @return the number of video outputs - */ - public static native int libvlc_media_player_has_vout(libvlc_media_player_t p_mi); - - /** - * Is this media player seekable? - * - * @param p_mi the media player - * @return true if the media player can seek - */ - public static native int libvlc_media_player_is_seekable(libvlc_media_player_t p_mi); - - /** - * Can this media player be paused? - * - * @param p_mi the media player - * @return true if the media player can pause - */ - public static native int libvlc_media_player_can_pause(libvlc_media_player_t p_mi); - - /** - * Is the current program scrambled? - * - * @param p_mi the media player - * @return true if the current program is scrambled - * @since libVLC 2.2.0 - */ - public static native int libvlc_media_player_program_scrambled(libvlc_media_player_t p_mi); - - /** - * Display the next frame (if supported) - * - * @param p_mi the media player - */ - public static native void libvlc_media_player_next_frame(libvlc_media_player_t p_mi); - - /** - * Navigate through DVD Menu - * - * @param p_mi the Media Player - * @param navigate the Navigation mode - * @since libVLC 2.0.0 - */ - public static native void libvlc_media_player_navigate(libvlc_media_player_t p_mi, int navigate); - - /** - * Set if, and how, the video title will be shown when media is played. - * - * @param p_mi the media player - * @param position position at which to display the title, or libvlc_position_disable to prevent the title from being displayed - * @param timeout title display timeout in milliseconds (ignored if libvlc_position_disable) - * @since libVLC 2.1.0 or later - */ - public static native void libvlc_media_player_set_video_title_display(libvlc_media_player_t p_mi, int position, int timeout); - - /** - * Add a slave to the current media player. - * - * If the player is playing, the slave will be added directly. This call - * will also update the slave list of the attached libvlc_media_t. - * - * @see #libvlc_media_slaves_add(libvlc_media_t, int, int, String) - * - * @param p_mi the media player - * @param i_type subtitle or audio - * @param psz_uri Uri of the slave (should contain a valid scheme). - * @param b_select True if this slave should be selected when it's loaded - * - * @return 0 on success, -1 on error. - * @since LibVLC 3.0.0 and later. - */ - public static native int libvlc_media_player_add_slave(libvlc_media_player_t p_mi, int i_type, String psz_uri, int b_select); - - /** - * Release (free) libvlc_track_description_t - * - * @param p_track_description the structure to release - */ - public static native void libvlc_track_description_list_release(Pointer p_track_description); - - /** - * Toggle fullscreen status on non-embedded video outputs. - *

- * The same limitations applies to this function as to libvlc_set_fullscreen(). - * - * @param p_mi the media player - */ - public static native void libvlc_toggle_fullscreen(libvlc_media_player_t p_mi); - - /** - * Enable or disable fullscreen. - *

- * With most window managers, only a top-level windows can be in full-screen mode. - * Hence, this function will not operate properly if libvlc_media_player_set_xid() was - * used to embed the video in a non-top-level window. In that case, the embedding - * window must be reparented to the root window before fullscreen mode is - * enabled. You will want to reparent it back to its normal parent when disabling - * fullscreen. - * - * @param p_mi the media player - * @param b_fullscreen boolean for fullscreen status - */ - public static native void libvlc_set_fullscreen(libvlc_media_player_t p_mi, int b_fullscreen); - - /** - * Get current fullscreen status. - * - * @param p_mi the media player - * @return the fullscreen status (boolean) - */ - public static native int libvlc_get_fullscreen(libvlc_media_player_t p_mi); - - /** - * Enable or disable key press events handling, according to the LibVLC hotkeys configuration. - * By default and for historical reasons, keyboard events are handled by the LibVLC video - * widget. - *

- * On X11, there can be only one subscriber for key press and mouse click events - * per window. If your application has subscribed to those events for the X window ID of the - * video widget, then LibVLC will not be able to handle key presses and mouse clicks in any - * case. - *

- * This function is only implemented for X11 and Win32 at the moment. - * - * @param p_mi the media player - * @param on true to handle key press events, false to ignore them. - */ - public static native void libvlc_video_set_key_input(libvlc_media_player_t p_mi, int on); - - /** - * Enable or disable mouse click events handling. By default, those events are handled. This is - * needed for DVD menus to work, as well as a few video filters such as "puzzle". - *

- * See also libvlc_video_set_key_input(). - *

- * This function is only implemented for X11 and Win32 at the moment. - * - * @param p_mi the media player - * @param on true to handle mouse click events, false to ignore them. - */ - public static native void libvlc_video_set_mouse_input(libvlc_media_player_t p_mi, int on); - - /** - * Get the pixel dimensions of a video. - * - * @param p_mi media player - * @param num number of the video (starting from, and most commonly 0) - * @param px pointer to get the pixel width [OUT] - * @param py pointer to get the pixel height [OUT] - * @return 0 on success, -1 if the specified video does not exist - */ - public static native int libvlc_video_get_size(libvlc_media_player_t p_mi, int num, IntByReference px, IntByReference py); - - /** - * Get the mouse pointer coordinates over a video. Coordinates are expressed in terms of the - * decoded video resolution, not in terms of pixels on the screen/viewport (to get the - * latter, you can query your windowing system directly). Either of the coordinates may be - * negative or larger than the corresponding dimension of the video, if the cursor is outside - * the rendering area. - *

- * The coordinates may be out-of-date if the pointer is not located on the video - * rendering area. LibVLC does not track the pointer if it is outside of the video - * widget. - *

- * LibVLC does not support multiple pointers (it does of course support multiple input - * devices sharing the same pointer) at the moment. - * - * @param p_mi media player - * @param num number of the video (starting from, and most commonly 0) - * @param px pointer to get the abscissa [OUT] - * @param py pointer to get the ordinate [OUT] - * @return 0 on success, -1 if the specified video does not exist - */ - public static native int libvlc_video_get_cursor(libvlc_media_player_t p_mi, int num, Pointer px, Pointer py); - - /** - * Get the current video scaling factor. See also libvlc_video_set_scale(). - * - * @param p_mi the media player - * @return the currently configured zoom factor, or 0. if the video is set to fit to the output - * window/drawable automatically. - */ - public static native float libvlc_video_get_scale(libvlc_media_player_t p_mi); - - /** - * Set the video scaling factor. That is the ratio of the number of pixels on screen to the - * number of pixels in the original decoded video in each dimension. Zero is a special value; it - * will adjust the video to the output window/drawable (in windowed mode) or the entire screen. - * Note that not all video outputs support scaling. - * - * @param p_mi the media player - * @param f_factor the scaling factor, or zero - */ - public static native void libvlc_video_set_scale(libvlc_media_player_t p_mi, float f_factor); - - /** - * Get current video aspect ratio. - * - * @param p_mi the media player - * @return the video aspect ratio or NULL if unspecified (the result must be released with - * free()). - */ - public static native Pointer libvlc_video_get_aspect_ratio(libvlc_media_player_t p_mi); - - /** - * Set new video aspect ratio. - * - * Note: invalid aspect ratios are ignored. - * - * @param p_mi the media player - * @param psz_aspect new video aspect-ratio or NULL to reset to default - */ - public static native void libvlc_video_set_aspect_ratio(libvlc_media_player_t p_mi, String psz_aspect); - - /** - * Create a video viewpoint structure. - * - * @return video viewpoint or NULL (the result must be released with free() or libvlc_free()). - * @since LibVLC 3.0.0 and later - */ - public static native libvlc_video_viewpoint_t libvlc_video_new_viewpoint(); - - /** - * Update the video viewpoint information. - *

- * It is safe to call this function before the media player is started. - *

- * The values are set asynchronously, it will be used by the next frame displayed. - * - * @param p_mi the media player - * @param p_viewpoint video viewpoint allocated via libvlc_video_new_viewpoint() - * @param b_absolute if true replace the old viewpoint with the new one. If false, increase/decrease it. - * @return -1 in case of error, 0 otherwise - * - * @since LibVLC 3.0.0 and later - */ - public static native int libvlc_video_update_viewpoint(libvlc_media_player_t p_mi, libvlc_video_viewpoint_t p_viewpoint, int b_absolute); - - /** - * Get current video subtitle. - * - * @param p_mi the media player - * @return the video subtitle selected, or -1 if none - */ - public static native int libvlc_video_get_spu(libvlc_media_player_t p_mi); - - /** - * Get the number of available video subtitles. - * - * @param p_mi the media player - * @return the number of available video subtitles - */ - public static native int libvlc_video_get_spu_count(libvlc_media_player_t p_mi); - - /** - * Get the description of available video subtitles. - * - * @param p_mi the media player - * @return list containing description of available video subtitles - */ - public static native libvlc_track_description_t libvlc_video_get_spu_description(libvlc_media_player_t p_mi); - - /** - * Set new video subtitle. - * - * @param p_mi the media player - * @param i_spu new video subtitle to select - * @return 0 on success, -1 if out of range - */ - public static native int libvlc_video_set_spu(libvlc_media_player_t p_mi, int i_spu); - - /** - * Get the current subtitle delay. Positive values means subtitles are being displayed later, - * negative values earlier. - * - * @param p_mi media player - * @return time (in microseconds) the display of subtitles is being delayed - * @since LibVLC 2.0.0 or later - */ - public static native long libvlc_video_get_spu_delay(libvlc_media_player_t p_mi); - - /** - * Set the subtitle delay. This affects the timing of when the subtitle will be displayed. - * Positive values result in subtitles being displayed later, while negative values will result - * in subtitles being displayed earlier. - * - * The subtitle delay will be reset to zero each time the media changes. - * - * @param p_mi media player - * @param i_delay time (in microseconds) the display of subtitles should be delayed - * @return 0 on success, -1 on error - * @since LibVLC 2.0.0 or later - */ - public static native int libvlc_video_set_spu_delay(libvlc_media_player_t p_mi, long i_delay); - - /** - * Get the full description of available titles - * - * @since LibVLC 3.0.0 and later. - * - * @param p_mi the media player - * @param titles address to store an allocated array of title descriptions - * descriptions (must be freed with libvlc_title_descriptions_release() - * by the caller) [OUT] - * - * @return the number of titles (-1 on error) - */ - public static native int libvlc_media_player_get_full_title_descriptions(libvlc_media_player_t p_mi, PointerByReference titles); - - /** - * Release title descriptions. - * - * @param p_titles title description array to release - * @param i_count number of title descriptions to release - * - * @since LibVLC 3.0.0 and later - */ - public static native void libvlc_title_descriptions_release(Pointer p_titles, int i_count); - - /** - * Get the full description of available chapters. - * - * @param p_mi the media player - * @param i_chapters_of_title index of the title to query for chapters (uses current title if set to -1) - * @param pp_chapters address to store an allocated array of chapter descriptions - * descriptions (must be freed with libvlc_chapter_descriptions_release() - * by the caller) [OUT] - * - * @return the number of chapters (-1 on error) - * - * @since LibVLC 3.0.0 and later. - */ - public static native int libvlc_media_player_get_full_chapter_descriptions(libvlc_media_player_t p_mi, int i_chapters_of_title, PointerByReference pp_chapters); - - /** - * Release chapter descriptions. - * - * @param p_chapters chapter description array to release - * @param i_count number of chapter descriptions to release - * - * @since LibVLC 3.0.0 and later - */ - public static native void libvlc_chapter_descriptions_release(Pointer p_chapters, int i_count); - - /** - * Get current crop filter geometry. - * - * @param p_mi the media player - * @return the crop filter geometry or NULL if unset - */ - public static native Pointer libvlc_video_get_crop_geometry(libvlc_media_player_t p_mi); - - /** - * Set new crop filter geometry. - * - * @param p_mi the media player - * @param psz_geometry new crop filter geometry (NULL to unset) - */ - public static native void libvlc_video_set_crop_geometry(libvlc_media_player_t p_mi, String psz_geometry); - - /** - * Get current teletext page requested or 0 if it's disabled. - * - * @param p_mi the media player - * @return the current teletext page requested. - */ - public static native int libvlc_video_get_teletext(libvlc_media_player_t p_mi); - - /** - * Set new teletext page to retrieve. - * - * @param p_mi the media player - * @param i_page teletex page number requested. - * This value can be 0 to disable teletext or a number in the range 0 to 1000 to show the requested - * page or a TeletextKey. 100 is the default teletext page. - */ - public static native void libvlc_video_set_teletext(libvlc_media_player_t p_mi, int i_page); - - /** - * Get number of available video tracks. - * - * @param p_mi media player - * @return the number of available video tracks (int) - */ - public static native int libvlc_video_get_track_count(libvlc_media_player_t p_mi); - - /** - * Get the description of available video tracks. - * - * @param p_mi media player - * @return list with description of available video tracks, or NULL on error - */ - public static native libvlc_track_description_t libvlc_video_get_track_description(libvlc_media_player_t p_mi); - - /** - * Get current video track. - * - * @param p_mi media player - * @return the video track ID (int) or -1 if no active input - */ - public static native int libvlc_video_get_track(libvlc_media_player_t p_mi); - - /** - * Set video track. - * - * @param p_mi media player - * @param i_track the track ID (i_id field from track description) - * @return 0 on success, -1 if out of range - */ - public static native int libvlc_video_set_track(libvlc_media_player_t p_mi, int i_track); - - /** - * Take a snapshot of the current video window. If i_width AND i_height is 0, original size is - * used. If i_width XOR i_height is 0, original aspect-ratio is preserved. - * - * @param p_mi media player instance - * @param num number of video output (typically 0 for the first/only one) - * @param psz_filepath the path where to save the screenshot to - * @param i_width the snapshot's width - * @param i_height the snapshot's height - * @return 0 on success, -1 if the video was not found - */ - public static native int libvlc_video_take_snapshot(libvlc_media_player_t p_mi, int num, String psz_filepath, int i_width, int i_height); - - /** - * Enable or disable deinterlace filter - * - * @param p_mi libvlc media player - * @param psz_mode type of deinterlace filter, NULL to disable - */ - public static native void libvlc_video_set_deinterlace(libvlc_media_player_t p_mi, String psz_mode); - - /** - * Get an integer marquee option value - * - * @param p_mi libvlc media player - * @param option marq option to get @see libvlc_video_marquee_int_option_t - * @return marquee option value - */ - public static native int libvlc_video_get_marquee_int(libvlc_media_player_t p_mi, int option); - - /** - * Get a string marquee option value - * - * @param p_mi libvlc media player - * @param option marq option to get @see libvlc_video_marquee_string_option_t - * @return marquee option value - */ - public static native Pointer libvlc_video_get_marquee_string(libvlc_media_player_t p_mi, int option); - - /** - * Enable, disable or set an integer marquee option Setting libvlc_marquee_Enable has the side - * effect of enabling (arg !0) or disabling (arg 0) the marq filter. - * - * @param p_mi libvlc media player - * @param option marq option to set @see libvlc_video_marquee_int_option_t - * @param i_val marq option value - */ - public static native void libvlc_video_set_marquee_int(libvlc_media_player_t p_mi, int option, int i_val); - - /** - * Set a marquee string option - * - * @param p_mi libvlc media player - * @param option marq option to set @see libvlc_video_marquee_string_option_t - * @param psz_text marq option value - */ - public static native void libvlc_video_set_marquee_string(libvlc_media_player_t p_mi, int option, String psz_text); - - /** - * Get integer logo option. - * - * @param p_mi libvlc media player instance - * @param option logo option to get, values of libvlc_video_logo_option_t - * @return logo option value - */ - public static native int libvlc_video_get_logo_int(libvlc_media_player_t p_mi, int option); - - /** - * Set logo option as integer. Options that take a different type value are ignored. Passing - * libvlc_logo_enable as option value has the side effect of starting (arg !0) or stopping (arg - * 0) the logo filter. - * - * @param p_mi libvlc media player instance - * @param option logo option to set, values of libvlc_video_logo_option_t - * @param value logo option value - */ - public static native void libvlc_video_set_logo_int(libvlc_media_player_t p_mi, int option, int value); - - /** - * Set logo option as string. Options that take a different type value are ignored. - * - * @param p_mi libvlc media player instance - * @param option logo option to set, values of libvlc_video_logo_option_t - * @param psz_value logo option value - */ - public static native void libvlc_video_set_logo_string(libvlc_media_player_t p_mi, int option, String psz_value); - - /** - * Get integer adjust option. - * - * @param p_mi libvlc media player instance - * @param option adjust option to get, values of libvlc_video_adjust_option_t - * @return value - * @since LibVLC 1.1.1 - */ - public static native int libvlc_video_get_adjust_int(libvlc_media_player_t p_mi, int option); - - /** - * Set adjust option as integer. Options that take a different type value are ignored. Passing - * libvlc_adjust_enable as option value has the side effect of starting (arg !0) or stopping - * (arg 0) the adjust filter. - * - * @param p_mi libvlc media player instance - * @param option adust option to set, values of libvlc_video_adjust_option_t - * @param value adjust option value - * @since LibVLC 1.1.1 - */ - public static native void libvlc_video_set_adjust_int(libvlc_media_player_t p_mi, int option, int value); - - /** - * Get float adjust option. - * - * @param p_mi libvlc media player instance - * @param option adjust option to get, values of libvlc_video_adjust_option_t - * @return value - * @since LibVLC 1.1.1 - */ - public static native float libvlc_video_get_adjust_float(libvlc_media_player_t p_mi, int option); - - /** - * Set adjust option as float. Options that take a different type value are ignored. - * - * @param p_mi libvlc media player instance - * @param option adust option to set, values of libvlc_video_adjust_option_t - * @param value adjust option value - * @since LibVLC 1.1.1 - */ - public static native void libvlc_video_set_adjust_float(libvlc_media_player_t p_mi, int option, float value); - - /** - * Gets the list of available audio outputs - * - * @param p_instance libvlc instance - * @return list of available audio outputs. It must be freed it with - * {@link #libvlc_audio_output_list_release(Pointer)}. In case of error, - * NULL is returned. - */ - public static native libvlc_audio_output_t libvlc_audio_output_list_get(libvlc_instance_t p_instance); - - /** - * Frees the list of available audio outputs - * - * @param p_list list with audio outputs for release - */ - public static native void libvlc_audio_output_list_release(Pointer p_list); - - /** - * Sets the audio output. - *

- * Note: Any change will take be effect only after playback is stopped and - * restarted. Audio output cannot be changed while playing. - * - * @param p_mi media player - * @param psz_name name of audio output, use psz_name of @see libvlc_audio_output_t - * @return 0 if function succeded, -1 on error - */ - public static native int libvlc_audio_output_set(libvlc_media_player_t p_mi, String psz_name); - - /** - * Gets a list of potential audio output devices, see - * {@link #libvlc_audio_output_device_set(libvlc_media_player_t, String, String)}. - *

- * Not all audio outputs support enumerating devices. The audio output may be functional - * even if the list is empty (NULL). - *

- * The list may not be exhaustive. - *

- * Some audio output devices in the list might not actually work in some circumstances. - * By default, it is recommended to not specify any explicit audio device. - * - * @param mp media player - * @return NULL-terminated linked list of potential audio output devices. It must be freed - * with {@link #libvlc_audio_output_device_list_release(Pointer)}. - * @since LibVLC 2.2.0 or later. - */ - public static native libvlc_audio_output_device_t libvlc_audio_output_device_enum(libvlc_media_player_t mp); - - /** - * Gets a list of audio output devices for a given audio output. - *

- * See {@link #libvlc_audio_output_device_set(libvlc_media_player_t, String, String)}. - *

- * Not all audio outputs support this. In particular, an empty (NULL) - * list of devices does not imply that the specified audio output does - * not work. - *

- * The list might not be exhaustive. - *

- * Some audio output devices in the list might not actually work in some - * circumstances. By default, it is recommended to not specify any explicit - * audio device. - * - * @param p_instance libvlc instance - * @param psz_aout audio output name (as returned by libvlc_audio_output_list_get()) - * @return A NULL-terminated linked list of potential audio output devices. It must be freed it with libvlc_audio_output_device_list_release() - * @since LibVLC 2.1.0 or later. - */ - public static native libvlc_audio_output_device_t libvlc_audio_output_device_list_get( libvlc_instance_t p_instance, String psz_aout ); - - /** - * Frees a list of available audio output devices. - * - * @param p_list list with audio outputs for release - * @since LibVLC 2.1.0 or later. - */ - public static native void libvlc_audio_output_device_list_release(Pointer p_list); - - /** - * Configures an explicit audio output device. - *

- * If the module parameter is NULL, audio output will be moved to the device - * specified by the device identifier string immediately. This is the - * recommended usage. - *

- * A list of adequate potential device strings can be obtained with - * libvlc_audio_output_device_enum(). - *

- * However passing NULL is supported in LibVLC version 2.2.0 and later only; - * in earlier versions, this function would have no effects when the module - * parameter was NULL. - *

- * If the module parameter is not NULL, the device parameter of the - * corresponding audio output, if it exists, will be set to the specified - * string. Note that some audio output modules do not have such a parameter - * (notably MMDevice and PulseAudio). - *

- * A list of adequate potential device strings can be obtained with - * libvlc_audio_output_device_list_get(). - *

- * This function does not select the specified audio output plugin. - * libvlc_audio_output_set() is used for that purpose. - *

- * The syntax for the device parameter depends on the audio output. - *

- * Some audio output modules require further parameters (e.g. a channels map - * in the case of ALSA). - * - * @param p_mi media player - * @param psz_audio_output if NULL, current audio output module; if non-NULL, name of audio output module (@see libvlc_audio_output_t) - * @param psz_device_id device identifier string - */ - public static native void libvlc_audio_output_device_set(libvlc_media_player_t p_mi, String psz_audio_output, String psz_device_id); - - /** - * Get the current audio output device identifier. - * - * This complements libvlc_audio_output_device_set(). - * - * The initial value for the current audio output device identifier - * may not be set or may be some unknown value. A LibVLC application should - * compare this value against the known device identifiers (e.g. those that - * were previously retrieved by a call to libvlc_audio_output_device_enum or - * libvlc_audio_output_device_list_get) to find the current audio output device. - * - * It is possible that the selected audio output device changes (an external - * change) without a call to libvlc_audio_output_device_set. That may make this - * method unsuitable to use if a LibVLC application is attempting to track - * dynamic audio device changes as they happen. - * - * @param mp media player - * @return the current audio output device identifier - * NULL if no device is selected or in case of error - * (the result must be released with free() or libvlc_free()). - * @since LibVLC 3.0.0 or later. - */ - public static native Pointer libvlc_audio_output_device_get(libvlc_media_player_t mp); - - /** - * Toggle mute status. - * - * @param p_mi media player - */ - public static native void libvlc_audio_toggle_mute(libvlc_media_player_t p_mi); - - /** - * Get current mute status. - * - * @param p_mi media player - * @return the mute status (boolean) - */ - public static native int libvlc_audio_get_mute(libvlc_media_player_t p_mi); - - /** - * Set mute status. - * - * @param p_mi media player - * @param status If status is true then mute, otherwise unmute - */ - public static native void libvlc_audio_set_mute(libvlc_media_player_t p_mi, int status); - - /** - * Get current software audio volume. - * - * @param p_mi media player - * @return the software volume in percents (0 = mute, 100 = nominal / 0dB) - */ - public static native int libvlc_audio_get_volume(libvlc_media_player_t p_mi); - - /** - * Set current software audio volume. - * - * @param p_mi media player - * @param i_volume the volume in percents (0 = mute, 100 = 0dB) - * @return 0 if the volume was set, -1 if it was out of range - */ - public static native int libvlc_audio_set_volume(libvlc_media_player_t p_mi, int i_volume); - - /** - * Get number of available audio tracks. - * - * @param p_mi media player - * @return the number of available audio tracks (int), or -1 if unavailable - */ - public static native int libvlc_audio_get_track_count(libvlc_media_player_t p_mi); - - /** - * Get the description of available audio tracks. - * - * @param p_mi media player - * @return list with description of available audio tracks, or NULL - */ - public static native libvlc_track_description_t libvlc_audio_get_track_description(libvlc_media_player_t p_mi); - - /** - * Get current audio track. - * - * @param p_mi media player - * @return the audio track ID or -1 if no active input. - */ - public static native int libvlc_audio_get_track(libvlc_media_player_t p_mi); - - /** - * Set current audio track. - * - * @param p_mi media player - * @param i_track the track ID (i_id field from track description) - * @return 0 on success, -1 on error - */ - public static native int libvlc_audio_set_track(libvlc_media_player_t p_mi, int i_track); - - /** - * Get current audio channel. - * - * @param p_mi media player - * @return the audio channel @see AudioChannel - */ - public static native int libvlc_audio_get_channel(libvlc_media_player_t p_mi); - - /** - * Set current audio channel. - * - * @param p_mi media player - * @param channel the audio channel, @see AudioChannel - * @return 0 on success, -1 on error - */ - public static native int libvlc_audio_set_channel(libvlc_media_player_t p_mi, int channel); - - /** - * Get current audio delay. - * - * @param p_mi media player - * @return amount audio is being delayed by, in microseconds - * @since LibVLC 1.1.1 - */ - public static native long libvlc_audio_get_delay(libvlc_media_player_t p_mi); - - /** - * Set current audio delay. The delay is only active for the current media item and will be - * reset to zero each time the media changes. - * - * @param p_mi media player - * @param i_delay amount to delay audio by, in microseconds - * @return 0 on success, -1 on error - * @since LibVLC 1.1.1 - */ - public static native int libvlc_audio_set_delay(libvlc_media_player_t p_mi, long i_delay); - - /** - * Get the number of equalizer presets. - * - * @return number of presets - * @since LibVLC 2.2.0 or later - */ - public static native int libvlc_audio_equalizer_get_preset_count(); - - /** - * Get the name of a particular equalizer preset. - *

- * This name can be used, for example, to prepare a preset label or menu in a user - * interface. - * - * @param u_index index of the preset, counting from zero - * @return preset name, or NULL if there is no such preset - * @since LibVLC 2.2.0 or later - */ - public static native String libvlc_audio_equalizer_get_preset_name(int u_index); - - /** - * Get the number of distinct frequency bands for an equalizer. - * - * @return number of frequency bands - * @since LibVLC 2.2.0 or later - */ - public static native int libvlc_audio_equalizer_get_band_count(); - - /** - * Get a particular equalizer band frequency. - *

- * This value can be used, for example, to create a label for an equalizer band control - * in a user interface. - * - * @param u_index index of the band, counting from zero - * @return equalizer band frequency (Hz), or -1 if there is no such band - * @since LibVLC 2.2.0 or later - */ - public static native float libvlc_audio_equalizer_get_band_frequency(int u_index); - - /** - * Create a new default equalizer, with all frequency values zeroed. - *

- * The new equalizer can subsequently be applied to a media player by invoking - * libvlc_media_player_set_equalizer(). - *

- * The returned handle should be freed via libvlc_audio_equalizer_release() when - * it is no longer needed. - * - * @return opaque equalizer handle, or NULL on error - * @since LibVLC 2.2.0 or later - */ - public static native libvlc_equalizer_t libvlc_audio_equalizer_new(); - - /** - * Create a new equalizer, with initial frequency values copied from an existing - * preset. - *

- * The new equalizer can subsequently be applied to a media player by invoking - * libvlc_media_player_set_equalizer(). - *

- * The returned handle should be freed via libvlc_audio_equalizer_release() when - * it is no longer needed. - * - * @param u_index index of the preset, counting from zero - * @return opaque equalizer handle, or NULL on error - * @since LibVLC 2.2.0 or later - */ - public static native libvlc_equalizer_t libvlc_audio_equalizer_new_from_preset(int u_index); - - /** - * Release a previously created equalizer instance. - *

- * The equalizer was previously created by using libvlc_audio_equalizer_new() or - * libvlc_audio_equalizer_new_from_preset(). - *

- * It is safe to invoke this method with a NULL p_equalizer parameter for no effect. - * - * @param p_equalizer opaque equalizer handle, or NULL - * @since LibVLC 2.2.0 or later - */ - public static native void libvlc_audio_equalizer_release(libvlc_equalizer_t p_equalizer); - - /** - * Set a new pre-amplification value for an equalizer. - *

- * The new equalizer settings are subsequently applied to a media player by invoking - * libvlc_media_player_set_equalizer(). - * - * @param p_equalizer valid equalizer handle, must not be NULL - * @param f_preamp preamp value (-20.0 to 20.0 Hz) - * @return zero on success, -1 on error - * @since LibVLC 2.2.0 or later - */ - public static native int libvlc_audio_equalizer_set_preamp(libvlc_equalizer_t p_equalizer, float f_preamp); - - /** - * Get the current pre-amplification value from an equalizer. - * - * @param p_equalizer valid equalizer handle, must not be NULL - * @return preamp value (Hz) - * @since LibVLC 2.2.0 or later - */ - public static native float libvlc_audio_equalizer_get_preamp(libvlc_equalizer_t p_equalizer); - - /** - * Set a new amplification value for a particular equalizer frequency band. - *

- * The new equalizer settings are subsequently applied to a media player by invoking - * libvlc_media_player_set_equalizer(). - * - * @param p_equalizer valid equalizer handle, must not be NULL - * @param f_amp amplification value (-20.0 to 20.0 Hz) - * @param u_band index, counting from zero, of the frequency band to set - * @return zero on success, -1 on error - * @since LibVLC 2.2.0 or later - */ - public static native int libvlc_audio_equalizer_set_amp_at_index( libvlc_equalizer_t p_equalizer, float f_amp, int u_band); - - /** - * Get the amplification value for a particular equalizer frequency band. - * - * @param p_equalizer valid equalizer handle, must not be NULL - * @param u_band index, counting from zero, of the frequency band to get - * @return amplification value (Hz); zero if there is no such frequency band - * @since LibVLC 2.2.0 or later - */ - public static native float libvlc_audio_equalizer_get_amp_at_index(libvlc_equalizer_t p_equalizer, int u_band); - - /** - * Apply new equalizer settings to a media player. - *

- * The equalizer is first created by invoking libvlc_audio_equalizer_new() or - * libvlc_audio_equalizer_new_from_preset(). - *

- * It is possible to apply new equalizer settings to a media player whether the media - * player is currently playing media or not. - *

- * Invoking this method will immediately apply the new equalizer settings to the audio - * output of the currently playing media if there is any. - *

- * If there is no currently playing media, the new equalizer settings will be applied - * later if and when new media is played. - *

- * Equalizer settings will automatically be applied to subsequently played media. - *

- * To disable the equalizer for a media player invoke this method passing NULL for the - * p_equalizer parameter. - *

- * The media player does not keep a reference to the supplied equalizer so it is safe - * for an application to release the equalizer reference any time after this method - * returns. - * - * @param p_mi opaque media player handle - * @param p_equalizer opaque equalizer handle, or NULL to disable the equalizer for this media player - * @return zero on success, -1 on error - * @since LibVLC 2.2.0 or later - */ - public static native int libvlc_media_player_set_equalizer(libvlc_media_player_t p_mi, libvlc_equalizer_t p_equalizer); - - /** - * Gets the media role. - * - * @param p_mi opaque media player handle - * @return the media player role (MediaPlayerRole) - * @since LibVLC 3.0.0 or later - */ - public static native int libvlc_media_player_get_role(libvlc_media_player_t p_mi); - - /** - * Sets the media role. - * - * @param p_mi opaque media player handle - * @param role the media player role (MediaPlayerRole) - * @return 0 on success, -1 on error - * @since LibVLC 3.0.0 or later - */ - public static native int libvlc_media_player_set_role(libvlc_media_player_t p_mi, int role); - - // === libvlc_media_player.h ================================================ - - // === libvlc_media_list.h ================================================== - - /** - * Create an empty media list. - * - * @param p_instance libvlc instance - * @return empty media list, or NULL on error - */ - public static native libvlc_media_list_t libvlc_media_list_new(libvlc_instance_t p_instance); - - /** - * Release media list created with libvlc_media_list_new(). - * - * @param p_ml a media list created with libvlc_media_list_new() - */ - public static native void libvlc_media_list_release(libvlc_media_list_t p_ml); - - /** - * Retain reference to a media list - * - * @param p_ml a media list created with libvlc_media_list_new() - */ - public static native void libvlc_media_list_retain(libvlc_media_list_t p_ml); - - /** - * Associate media instance with this media list instance. If another media instance was present - * it will be released. The libvlc_media_list_lock should NOT be held upon entering this - * function. - * - * @param p_ml a media list instance - * @param p_md media instance to add - */ - public static native void libvlc_media_list_set_media(libvlc_media_list_t p_ml, libvlc_media_t p_md); - - /** - * Get media instance from this media list instance. This action will increase the refcount on - * the media instance. The libvlc_media_list_lock should NOT be held upon entering this - * function. - * - * @param p_ml a media list instance - * @return media instance - */ - public static native libvlc_media_t libvlc_media_list_media(libvlc_media_list_t p_ml); - - /** - * Add media instance to media list The libvlc_media_list_lock should be held upon entering this - * function. - * - * @param p_ml a media list instance - * @param p_md a media instance - * @return 0 on success, -1 if the media list is read-only - */ - public static native int libvlc_media_list_add_media(libvlc_media_list_t p_ml, libvlc_media_t p_md); - - /** - * Insert media instance in media list on a position The libvlc_media_list_lock should be held - * upon entering this function. - * - * @param p_ml a media list instance - * @param p_md a media instance - * @param i_pos position in array where to insert - * @return 0 on success, -1 if the media list si read-only - */ - public static native int libvlc_media_list_insert_media(libvlc_media_list_t p_ml, libvlc_media_t p_md, int i_pos); - - /** - * Remove media instance from media list on a position The libvlc_media_list_lock should be held - * upon entering this function. - * - * @param p_ml a media list instance - * @param i_pos position in array where to insert - * @return 0 on success, -1 if the list is read-only or the item was not found - */ - public static native int libvlc_media_list_remove_index(libvlc_media_list_t p_ml, int i_pos); - - /** - * Get count on media list items The libvlc_media_list_lock should be held upon entering this - * function. - * - * @param p_ml a media list instance - * @return number of items in media list - */ - public static native int libvlc_media_list_count(libvlc_media_list_t p_ml); - - /** - * List media instance in media list at a position The libvlc_media_list_lock should be held - * upon entering this function. - * - * @param p_ml a media list instance - * @param i_pos position in array where to insert - * @return media instance at position i_pos, or NULL if not found. In case of success, - * libvlc_media_retain() is called to increase the refcount on the media. - */ - public static native libvlc_media_t libvlc_media_list_item_at_index(libvlc_media_list_t p_ml, int i_pos); - - /** - * Find index position of List media instance in media list. Warning: the function will return - * the first matched position. The libvlc_media_list_lock should be held upon entering this - * function. - * - * @param p_ml a media list instance - * @param p_md media list instance - * @return position of media instance - */ - public static native int libvlc_media_list_index_of_item(libvlc_media_list_t p_ml, libvlc_media_t p_md); - - /** - * This indicates if this media list is read-only from a user point of view - * - * @param p_ml media list instance - * @return 0 on readonly, 1 on readwrite - * - * FIXME I am pretty sure the documented return values are the wrong way around - */ - public static native int libvlc_media_list_is_readonly(libvlc_media_list_t p_ml); - - /** - * Get lock on media list items - * - * @param p_ml a media list instance - */ - public static native void libvlc_media_list_lock(libvlc_media_list_t p_ml); - - /** - * Release lock on media list items The libvlc_media_list_lock should be held upon entering this - * function. - * - * @param p_ml a media list instance - */ - public static native void libvlc_media_list_unlock(libvlc_media_list_t p_ml); - - /** - * Get libvlc_event_manager from this media list instance. The p_event_manager is immutable, so - * you don't have to hold the lock - * - * @param p_ml a media list instance - * @return libvlc_event_manager - */ - public static native libvlc_event_manager_t libvlc_media_list_event_manager(libvlc_media_list_t p_ml); - - // === libvlc_media_list.h ================================================== - - // === libvlc_media_list_player.h =========================================== - - /** - * Create new media_list_player. - * - * @param p_instance libvlc instance - * @return media list player instance or NULL on error - */ - public static native libvlc_media_list_player_t libvlc_media_list_player_new(libvlc_instance_t p_instance); - - /** - * Release a media_list_player after use. - * - * Decrement the reference count of a* media player object. If the reference count is 0, then - * libvlc_media_list_player_release() will release the media player object. If the media player - * object has been released, then it should not be used again. - * - * @param p_mlp media list player instance - */ - public static native void libvlc_media_list_player_release(libvlc_media_list_player_t p_mlp); - - /** - * Retain a reference to a media player list object. - * - * Use libvlc_media_list_player_release() to decrement reference count. - * - * @param p_mlp media player list object - */ - public static native void libvlc_media_list_player_retain(libvlc_media_list_player_t p_mlp); - - /** - * Return the event manager of this media_list_player. - * - * @param p_mlp media list player instance - * @return the event manager - */ - public static native libvlc_event_manager_t libvlc_media_list_player_event_manager(libvlc_media_list_player_t p_mlp); - - /** - * Replace media player in media_list_player with this instance. - * - * @param p_mlp media list player instance - * @param p_mi media player instance - */ - public static native void libvlc_media_list_player_set_media_player(libvlc_media_list_player_t p_mlp, libvlc_media_player_t p_mi); - - /** - * Get media player of the media_list_player instance. - *

- * Note: the caller is responsible for releasing the returned instance. - * - * @param p_mlp media list player instance - * @return media player instance - * @since LibVLC 3.0.0 - */ - public static native libvlc_media_player_t libvlc_media_list_player_get_media_player(libvlc_media_list_player_t p_mlp); - - /** - * Set the media list associated with the player - * - * @param p_mlp media list player instance - * @param p_mlist list of media - */ - public static native void libvlc_media_list_player_set_media_list(libvlc_media_list_player_t p_mlp, libvlc_media_list_t p_mlist); - - /** - * Play media list - * - * @param p_mlp media list player instance - */ - public static native void libvlc_media_list_player_play(libvlc_media_list_player_t p_mlp); - - /** - * Pause media list - * - * @param p_mlp media list player instance - */ - public static native void libvlc_media_list_player_pause(libvlc_media_list_player_t p_mlp); - - /** - * Pause or resume media list - * - * @param p_mlp media list player instance - * @param do_pause play/resume if zero, pause if non-zero - * @since LibVLC 3.0.0 or later - */ - public static native void libvlc_media_list_player_set_pause(libvlc_media_list_player_t p_mlp, int do_pause); - - /** - * Is media list playing? - * - * @param p_mlp media list player instance - * @return true for playing and false for not playing - */ - public static native int libvlc_media_list_player_is_playing(libvlc_media_list_player_t p_mlp); - - /** - * Get current libvlc_state of media list player - * - * @param p_mlp media list player instance - * @return State for media list player - */ - public static native int libvlc_media_list_player_get_state(libvlc_media_list_player_t p_mlp); - - /** - * Play media list item at position index - * - * @param p_mlp media list player instance - * @param i_index index in media list to play - * @return 0 upon success -1 if the item wasn't found - */ - public static native int libvlc_media_list_player_play_item_at_index(libvlc_media_list_player_t p_mlp, int i_index); - - /** - * Play the given media item - * - * @param p_mlp media list player instance - * @param p_md the media instance - * @return 0 upon success, -1 if the media is not part of the media list - */ - public static native int libvlc_media_list_player_play_item(libvlc_media_list_player_t p_mlp, libvlc_media_t p_md); - - /** - * Stop playing media list - * - * @param p_mlp media list player instance - */ - public static native void libvlc_media_list_player_stop(libvlc_media_list_player_t p_mlp); - - /** - * Play next item from media list - * - * @param p_mlp media list player instance - * @return 0 upon success -1 if there is no next item - */ - public static native int libvlc_media_list_player_next(libvlc_media_list_player_t p_mlp); - - /** - * Play previous item from media list - * - * @param p_mlp media list player instance - * @return 0 upon success -1 if there is no previous item - */ - public static native int libvlc_media_list_player_previous(libvlc_media_list_player_t p_mlp); - - /** - * Sets the playback mode for the playlist - * - * @param p_mlp media list player instance - * @param e_mode playback mode specification - */ - public static native void libvlc_media_list_player_set_playback_mode(libvlc_media_list_player_t p_mlp, int e_mode); - - // === libvlc_media_list_player.h =========================================== - - // === libvlc_dialog.h ====================================================== - - /** - * Register callbacks in order to handle VLC dialogs. - * - * @since LibVLC 3.0.0 and later. - * - * @param p_instance the instance - * @param p_cbs a pointer to callbacks, or NULL to unregister callbacks. - * @param p_data opaque pointer for the callback - */ - public static native void libvlc_dialog_set_callbacks(libvlc_instance_t p_instance, libvlc_dialog_cbs p_cbs, Pointer p_data); - - /** - * Associate an opaque pointer with the dialog id. - * - * @since LibVLC 3.0.0 and later. - * - * @param p_id id of the dialog - * @param p_context opaque pointer associated with the dialog id - */ - public static native void libvlc_dialog_set_context(libvlc_dialog_id p_id, Pointer p_context); - - /** - * Return the opaque pointer associated with the dialog id. - * - * @since LibVLC 3.0.0 and later. - * - * @param p_id id of the dialog - * @return opaque pointer associated with the dialog id - */ - public static native Pointer libvlc_dialog_get_context(libvlc_dialog_id p_id); - - /** - * Post a login answer. - *

- * After this call, p_id won't be valid anymore - * - * @see libvlc_dialog_cbs#pf_display_login - * - * @since LibVLC 3.0.0 and later. - * - * @param p_id id of the dialog - * @param psz_username valid and non empty string - * @param psz_password valid string (can be empty) - * @param b_store if true, store the credentials - * @return 0 on success, or -1 on error - */ - public static native int libvlc_dialog_post_login(libvlc_dialog_id p_id, String psz_username, String psz_password, int b_store); - - /** - * Post a question answer. - *

- * After this call, p_id won't be valid anymore - * - * @see libvlc_dialog_cbs#pf_display_question - * - * @since LibVLC 3.0.0 and later. - * - * @param p_id id of the dialog - * @param i_action 1 for action1, 2 for action2 - * @return 0 on success, or -1 on error - */ - public static native int libvlc_dialog_post_action(libvlc_dialog_id p_id, int i_action); - - /** - * Dismiss a dialog. - *

- * After this call, p_id won't be valid anymore - * - * @see libvlc_dialog_cbs#pf_cancel - * - * @since LibVLC 3.0.0 and later. - * - * @param p_id id of the dialog - * @return 0 on success, or -1 on error - */ - public static native int libvlc_dialog_dismiss(libvlc_dialog_id p_id); - - // === libvlc_dialog.h ====================================================== - - // === libvlc_media_discoverer.h ============================================ - - /** - * Create a media discoverer object by name. - * - * After this object is created, you should attach to events in order to be - * notified of the discoverer state. - * - * You should also attach to media_list events in order to be notified of new - * items discovered. - * - * You need to call {@link #libvlc_media_discoverer_start(libvlc_media_discoverer_t)} - * in order to start the discovery. - * - * @see #libvlc_media_discoverer_media_list(libvlc_media_discoverer_t) - * @see #libvlc_media_discoverer_start(libvlc_media_discoverer_t) - * - * @param p_inst libvlc instance - * @param psz_name service name - * @return media discover object or NULL in case of error - * - * @since LibVLC 3.0.0 or later - */ - public static native libvlc_media_discoverer_t libvlc_media_discoverer_new(libvlc_instance_t p_inst, String psz_name); - - /** - * Start media discovery. - * - * To stop it, call libvlc_media_discoverer_stop() or - * libvlc_media_discoverer_release() directly. - * - * @see #libvlc_media_discoverer_stop(libvlc_media_discoverer_t) - * - * @param p_mdis media discover object - * @return -1 in case of error, 0 otherwise - * - * @since LibVLC 3.0.0 or later - */ - public static native int libvlc_media_discoverer_start(libvlc_media_discoverer_t p_mdis); - - /** - * Stop media discovery. - * - * @see #libvlc_media_discoverer_start(libvlc_media_discoverer_t) - * - * @param p_mdis media discover object - * - * @since LibVLC 3.0.0 or later - */ - public static native void libvlc_media_discoverer_stop(libvlc_media_discoverer_t p_mdis); - - /** - * Release media discover object. If the reference count reaches 0, then the object will be - * released. - * - * @param p_mdis media service discover object - */ - public static native void libvlc_media_discoverer_release(libvlc_media_discoverer_t p_mdis); - - /** - * Get media service discover media list. - * - * @param p_mdis media service discover object - * @return list of media items - */ - public static native libvlc_media_list_t libvlc_media_discoverer_media_list(libvlc_media_discoverer_t p_mdis); - - /** - * Query if media service discover object is running. - * - * @param p_mdis media service discover object - * @return true if running, false if not - */ - public static native int libvlc_media_discoverer_is_running(libvlc_media_discoverer_t p_mdis); - - /** - * Get media discoverer services by category - * - * @param p_inst libvlc instance - * @param i_cat category of services to fetch - * @param ppp_services address to store an allocated array of media discoverer services (must be freed with libvlc_media_discoverer_list_release() by the caller) [OUT] - * @return the number of media discoverer services (0 on error) - * - * @since LibVLC 3.0.0 and later. - */ - public static native size_t libvlc_media_discoverer_list_get(libvlc_instance_t p_inst, int i_cat, PointerByReference ppp_services); - - /** - * Release an array of media discoverer services - * - * @see #libvlc_media_discoverer_list_get(libvlc_instance_t, int, PointerByReference) - * - * @param pp_services array to release - * @param i_count number of elements in the array - * - * @since LibVLC 3.0.0 and later. - */ - public static native void libvlc_media_discoverer_list_release(Pointer pp_services, size_t i_count); - - // === libvlc_media_discoverer.h ============================================ - - // === libvlc_renderer_discoverer.h ========================================= - - /** - * Hold a renderer item, i.e. creates a new reference - * - * This functions need to called from the libvlc_RendererDiscovererItemAdded - * callback if the libvlc user wants to use this item after. (for display or - * for passing it to the mediaplayer for example). - * - * @return the current item - * - * @since LibVLC 3.0.0 or later - */ - public static native libvlc_renderer_item_t libvlc_renderer_item_hold(libvlc_renderer_item_t p_item); - - /** - * Releases a renderer item, i.e. decrements its reference counter - * - * @since LibVLC 3.0.0 or later - */ - public static native void libvlc_renderer_item_release(libvlc_renderer_item_t p_item); - - /** - * Get the human readable name of a renderer item - * - * @return the name of the item (can't be NULL, must *not* be freed) - * - * @since LibVLC 3.0.0 or later - */ - public static native String libvlc_renderer_item_name(libvlc_renderer_item_t p_item); - - /** - * Get the type (not translated) of a renderer item. For now, the type can only - * be "chromecast" ("upnp", "airplay" may come later). - * - * @return the type of the item (can't be NULL, must *not* be freed) - * - * @since LibVLC 3.0.0 or later - */ - public static native String libvlc_renderer_item_type(libvlc_renderer_item_t p_item); - - /** - * Get the icon uri of a renderer item - * - * @return the uri of the item's icon (can be NULL, must *not* be freed) - * - * @since LibVLC 3.0.0 or later - */ - public static native String libvlc_renderer_item_icon_uri(libvlc_renderer_item_t p_item); - - /** - * Get the flags of a renderer item - * - * @return bitwise flag: capabilities of the renderer, see - * - * @since LibVLC 3.0.0 or later - */ - public static native int libvlc_renderer_item_flags(libvlc_renderer_item_t p_item); - - /** - * Create a renderer discoverer object by name - * - * After this object is created, you should attach to events in order to be - * notified of the discoverer events. - * - * You need to call libvlc_renderer_discoverer_start() in order to start the - * discovery. - * - * @see #libvlc_renderer_discoverer_event_manager(libvlc_renderer_discoverer_t) - * @see #libvlc_renderer_discoverer_start(libvlc_renderer_discoverer_t) - * - * @param p_inst libvlc instance - * @param psz_name service name; use libvlc_renderer_discoverer_list_get() to - * get a list of the discoverer names available in this libVLC instance - * @return media discover object or NULL in case of error - * - * @since LibVLC 3.0.0 or later - */ - public static native libvlc_renderer_discoverer_t libvlc_renderer_discoverer_new(libvlc_instance_t p_inst, String psz_name); - - /** - * Release a renderer discoverer object - * - * @param p_rd renderer discoverer object - * - * @since LibVLC 3.0.0 or later - */ - public static native void libvlc_renderer_discoverer_release(libvlc_renderer_discoverer_t p_rd); - - /** - * Start renderer discovery - * - * To stop it, call libvlc_renderer_discoverer_stop() or - * libvlc_renderer_discoverer_release() directly. - * - * @see #libvlc_renderer_discoverer_stop(libvlc_renderer_discoverer_t) - * - * @param p_rd renderer discoverer object - * @return -1 in case of error, 0 otherwise - * - * @since LibVLC 3.0.0 or later - */ - public static native int libvlc_renderer_discoverer_start(libvlc_renderer_discoverer_t p_rd); - - /** - * Stop renderer discovery. - * - * @see #libvlc_renderer_discoverer_start(libvlc_renderer_discoverer_t) - * - * @param p_rd renderer discoverer object - * - * @since LibVLC 3.0.0 or later - */ - public static native void libvlc_renderer_discoverer_stop(libvlc_renderer_discoverer_t p_rd); - - /** - * Get the event manager of the renderer discoverer - * - * The possible events to attach are @ref libvlc_RendererDiscovererItemAdded - * and @ref libvlc_RendererDiscovererItemDeleted. - * - * The @ref libvlc_renderer_item_t struct passed to event callbacks is owned by - * VLC, users should take care of holding/releasing this struct for their - * internal usage. - * - * @see libvlc_event_u#renderer_discoverer_item_added - * @see libvlc_event_u#renderer_discoverer_item_deleted - * - * @return a valid event manager (can't fail) - * - * @since LibVLC 3.0.0 or later - */ - public static native libvlc_event_manager_t libvlc_renderer_discoverer_event_manager(libvlc_renderer_discoverer_t p_rd); - - /** - * Get media discoverer services - * - * @see #libvlc_renderer_discoverer_list_release(Pointer, size_t) - * - * @param p_inst libvlc instance - * @param ppp_services address to store an allocated array of renderer - * discoverer services (must be freed with libvlc_renderer_list_release() by - * the caller) [OUT] - * - * @return the number of media discoverer services (0 on error) - * - * @since LibVLC 3.0.0 and later - */ - public static native size_t libvlc_renderer_discoverer_list_get(libvlc_instance_t p_inst, PointerByReference ppp_services); - - /** - * Release an array of media discoverer services - * - * @see #libvlc_renderer_discoverer_list_get(libvlc_instance_t, PointerByReference) - * - * @param pp_services array to release - * @param i_count number of elements in the array - * - * @since LibVLC 3.0.0 and later - */ - public static native void libvlc_renderer_discoverer_list_release(Pointer pp_services, size_t i_count); - - // === libvlc_renderer_discoverer.h ========================================= - - // === libvlc_picture.h ===================================================== - - /** - * Increment the reference count of this picture. - * - * @see #libvlc_picture_release(libvlc_picture_t) - * @param pic A picture object - * - * @since libvlc 4.0 or later - */ - public static /*native*/ void libvlc_picture_retain(libvlc_picture_t pic) { - throw new UnsupportedOperationException(); - } - - /** - * Decrement the reference count of this picture. - * When the reference count reaches 0, the picture will be released. - * The picture must not be accessed after calling this function. - * - * @see #libvlc_picture_retain(libvlc_picture_t) - * @param pic A picture object - * - * @since libvlc 4.0 or later - */ - public static /*native*/ void libvlc_picture_release(libvlc_picture_t pic) { - throw new UnsupportedOperationException(); - } - - /** - * Saves this picture to a file. The image format is the same as the one - * returned by \link libvlc_picture_type \endlink - * - * @param pic A picture object - * @param path The path to the generated file - * @return 0 in case of success, -1 otherwise - * - * @since libvlc 4.0 or later - */ - public static /*native*/ int libvlc_picture_save(libvlc_picture_t pic, String path) { - throw new UnsupportedOperationException(); - } - - /** - * Returns the image internal buffer, including potential padding. - * The libvlc_picture_t owns the returned buffer, which must not be modified nor - * freed. - * - * @param pic A picture object - * @param size A pointer to a size_t that will hold the size of the buffer [required] - * @return A pointer to the internal buffer. - * - * @since libvlc 4.0 or later - */ - public static /*native*/ Pointer libvlc_picture_get_buffer(libvlc_picture_t pic, size_tByReference size) { - throw new UnsupportedOperationException(); - } - - /** - * Returns the picture type - * - * @param pic A picture object - * - * @since libvlc 4.0 or later - */ - public static /*native*/ int libvlc_picture_type(libvlc_picture_t pic) { - throw new UnsupportedOperationException(); - } - - /** - * Returns the image stride, ie. the number of bytes per line. - * This can only be called on images of type libvlc_picture_Argb - * - * @param pic A picture object - * - * @since libvlc 4.0 or later - */ - public static /*native*/ int libvlc_picture_get_stride(libvlc_picture_t pic) { - throw new UnsupportedOperationException(); - } - - /** - * Returns the width of the image in pixels - * - * @param pic A picture object - * - * @since libvlc 4.0 or later - */ - public static /*native*/ int libvlc_picture_get_width(libvlc_picture_t pic) { - throw new UnsupportedOperationException(); - } - - /** - * Returns the height of the image in pixels - * - * @param pic A picture object - * - * @since libvlc 4.0 or later - */ - public static /*native*/ int libvlc_picture_get_height(libvlc_picture_t pic) { - throw new UnsupportedOperationException(); - } - - /** - * Returns the time at which this picture was generated, in milliseconds - * @param pic A picture object - * - * @since libvlc 4.0 or later - */ - public static /*native*/ long libvlc_picture_get_time(libvlc_picture_t pic) { - throw new UnsupportedOperationException(); - } - - // === libvlc_picture.h ===================================================== - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibX11.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibX11.java deleted file mode 100644 index 1af636f8..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LibX11.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import com.sun.jna.Library; -import com.sun.jna.Native; - -/** - * JNA interface to the Xlib native library. - *

- * The only exposed API is that used to initialise XLib for multi-threaded access. - *

- * Usage is simple, at the start of an application: - * - *

- * int result = LibX11.INSTANCE.XInitThreads();
- * // "result" will be non-zero if the native library call succeeded
- * 
- */ -public interface LibX11 extends Library { - - /** - * Native library instance. - *

- * Conceivably Xlib could be present on Windows. - */ - // LibX11 INSTANCE = Native.load("X11", LibX11.class); - LibX11 INSTANCE = Native.loadLibrary("X11", LibX11.class); -// LibX11 INSTANCE = ReflectTool.findAndInvokeWithReturn(new String[]{"load", "loadLibrary"}, Native.class, null, "X11", LibX11.class); - - /** - * Initialise Xlib support for concurrent threads. - *

- * Invoking this at the start of an application can reduce the chance of a fatal JVM crash when - * using multiple media players. - * - * @return non-zero on success, zero on failure (or if threading is not supported) - */ - int XInitThreads(); - -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LinuxNativeInit.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LinuxNativeInit.java deleted file mode 100644 index 8ddcf747..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/LinuxNativeInit.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import javax.swing.*; -import java.awt.*; - -/** - * Private helper class to ensure the native libraries are properly initialised on Linux. - *

- * If there are any errors when executing this initialization code, there is little point in even reporting them as - * nothing else can be done. The approach therefore is doing a best-effort at running this initialization and robustly - * ignore errors. - *

- * The reality is that the nature of the initialization code means errors simply should not occur. - */ -public final class LinuxNativeInit { - - public static void init() { - initAWT(); - initX(); - } - - private static void initAWT() { - if (!GraphicsEnvironment.isHeadless()) { - try { - // To prevent crashes in some applications, we must seemingly make sure that Swing is initialised before - // force-loading libjawt - empirically both of these things are required - new JPanel(); - System.loadLibrary("jawt"); - } - catch (UnsatisfiedLinkError e) { - } - } - } - - /** - * With recent VLC/JDK it seems necessary to do this - it can however cause problems if using the JVM splash-screen - * options. Without this, VLC may complain to the console output and it is also possible that opening a JavaFX - * FileChooser will cause a fatal JVM crash. - */ - private static void initX() { - String initX = System.getProperty("VLCJ_INITX"); - if (!"no".equalsIgnoreCase(initX)) { - try { - LibX11.INSTANCE.XInitThreads(); - } - catch (Exception e) { - } - } - } - - private LinuxNativeInit() { - } - -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/NativeString.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/NativeString.java deleted file mode 100644 index 260a61dc..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/NativeString.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import com.sun.jna.Pointer; - -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_free; - -/** - * Encapsulation of access to native strings. - *

- * This class takes care of freeing the memory that was natively allocated for the string, if needed. - *

- * Generally, any native API that returns "const char*" must not be freed, so in such cases the native return - * type mapping can actually be String rather than {@link Pointer}. Alternatively, {@link #copyNativeString(Pointer)} - * can be used. - *

- * Generally, Any native API that returns "char*" must be freed, so in such cases the native return type - * mapping must be {@link Pointer} and {@link #copyAndFreeNativeString(Pointer)} must be used. - *

- * Where a native string is contained in a {@link com.sun.jna.Structure} those strings should not be freed if - * the structure itself is subsequently freed (usually by a companion release native method), so in these cases - * {@link #copyNativeString(Pointer)} must be used. - */ -public final class NativeString { - - /** - * Prevent direct instantiation by others. - */ - private NativeString() { - } - - /** - * Get a String from a native string pointer, freeing the native string pointer when done. - *

- * If the native string pointer is not freed then a native memory leak will occur. - *

- * Use this method if the native string type is "char*", i.e. lacking the "const" modifier. - * - * @param pointer pointer to native string, may be null - * @return string, or null if the pointer was null - */ - public static String copyAndFreeNativeString(Pointer pointer) { - if(pointer != null) { - // Pointer.getString copies native memory to a Java String - String result = pointer.getString(0); - libvlc_free(pointer); - return result; - } - else { - return null; - } - } - - /** - * Copy a String from a native string pointer, without freeing the native pointer. - *

- * Use this method if the native string type is "const char*". - * - * @param pointer pointer to native string, may be null - * @return string, or null if the pointer was null - */ - public static String copyNativeString(Pointer pointer) { - if(pointer != null) { - // Pointer.getString copies native memory to a Java String - return pointer.getString(0); - } - else { - return null; - } - } -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/NativeUri.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/NativeUri.java deleted file mode 100644 index 487c712f..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/NativeUri.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import java.io.File; -import java.net.URL; - -/** - * Functions that deal with URI's that are passed to the native LibVlc library. - */ -public final class NativeUri { - - /** - * Encode, if needed, a local file MRL that may contain Unicode characters as a file URL with "percent" encoding. - *

- * This method deals with the special case of an MRL for a local file name containing Unicode characters. Such MRLs - * must be encoded as file URLs, by adding a "file://" prefix before percent-encoding the filename. - *

- * Without this, vlc will not be able to play the file since it is using native API that can not handle unencoded - * Unicode characters. - *

- * This method does not deal with any MRLs that are URLs since Unicode characters are forbidden by specification for - * any URL. - *

- * What this means in practical terms is that if an MRL is specified that contains a "scheme" like "http", or "file" - * then that MRL will not be encoded by this method, even if it contains Unicode characters. This situation - * if it arises, is considered a client application validation failure. - * - * @param uri URI - * @return the original URI if no encoding is required, or a percent-encoded ASCII file URI - */ - public static String encodeUri(URL uri) { - String result = uri.toString(); - if (result.startsWith("file:/")) result = result.replaceFirst("file:/", "file:///"); - return result; - } - - /** - * Encode a local file path to a valid URI, properly escaping any Unicode characters wit "percent" encoding. - * - * @param filename filename to encode as a URI - * @return URI - */ - public static String encodeFileUri(String filename) { - return toLocalFileUri(filename); - } - - /** - * Does a String contain any Unicode characters? - * - * @param value string to test - * @deprecated See #1142 - * @return true if the supplied String contains any Unicode characters; false if it does not - */ - private static boolean containsUnicode(String value) { - boolean result = false; - for (int i = 0; i < value.length(); i++) { - if (value.charAt(i) >= '\u0080') { - result = true; - break; - } - } - return result; - } - - /** - * Encode a string using ASCII escape sequences as necessary. - *

- * According to {@link File#toURI()} Javadoc, the format of the URI is system-dependent - this means that we can not - * rely on the file URI starting "file:/" (bad) or "file://" good, so we must account for either case. - *

- * With JDK 1.7+ we could have used the Path class to get a URI in the proper format. - *

- * Implementation notes: - *

- * The main concern is to check if the URI starts "file:/", or "file://", clearly care must be taken with this test, - * since the leading characters match, so we must base our condition on the longer string. - *

- * If the URI starts with "file://", we are done at this point and return. - *

- * If the URI starts with "file:/", as is almost certainly the case when using {@link File#toURI()}, then we apply a - * replacement by dropping "file:/" and adding "file:///" in its place. When replacing in this manner, a third slash - * is added to separate the unused "authority" part of the URI (this could in theory have been something like - * "file://localhost/path/file.ext", so we return it as "file:///path/file.ext" instead). - * - * @param value value to encode - * @deprecated See #1142 - * @return encoded value - */ - private static String toLocalFileUri(String value) { - value = value.replaceFirst("file:(/{1,3})", ""); - String asciiString = new File(value).toURI().toASCIIString(); - if (asciiString.startsWith("file://")) { - // URI already starts with "file://", so simply return the ASCII string - return asciiString; - } else { - // URI therefore starts by so replace the bad prefix with a proper one - String url = asciiString.replaceFirst("file:/", "file:///"); - if (!url.startsWith("file:///")) url = "file:///" + url; - return url; - } - } - - private NativeUri() { - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/OsxComponentId.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/OsxComponentId.java deleted file mode 100644 index 326c18b1..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/OsxComponentId.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -import com.sun.jna.Native; - -import java.awt.*; -import java.lang.reflect.Method; - -/** - * Helper class to get the native component id of a component on OSX. - */ -final public class OsxComponentId { - - /** - * Get the native component id for a component. - *

- * This implementation uses reflection to drill-down and find the native component id. - * - * @param component component - * @return component id - */ - public static long getOsxComponentId(Component component) { - // Try the usual method first, this should still work on JDK 1.6 - try { - long componentId = Native.getComponentID(component); - if (componentId != 0) { - return componentId; - } - } - catch (Exception e) { - } - - // Try for Apple's JDK 1.6 - try { - Method getPeer = Component.class.getMethod("getPeer"); - Object peer = getPeer.invoke(component); - Method getViewPtr = peer.getClass().getMethod("getViewPtr"); - return (Long) getViewPtr.invoke(peer); - } - catch (Exception e) { - } - - // Window at least is heavyweight so this might work - if (component instanceof Window) { - Window window = (Window) component; - try { - Method getPeer = Window.class.getMethod("getPeer"); - Object peer = getPeer.invoke(window); - Method getPlatformWindow = peer.getClass().getMethod("getPlatformWindow"); - Object platformWindow = getPlatformWindow.invoke(peer); - Method getContentView = platformWindow.getClass().getMethod("getContentView"); - Object contentView = getContentView.invoke(platformWindow); - Method getAwtView = contentView.getClass().getMethod("getAWTView"); - return (Long) getAwtView.invoke(contentView); - } - catch (Exception e) { - } - } - - return 0L; - } - - private OsxComponentId() { - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/RuntimeUtil.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/RuntimeUtil.java deleted file mode 100644 index 15882e0b..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/RuntimeUtil.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding; - -/** - * Crude heuristics to determine the current Operating System. - *

- * The com.sun.jna.Platform class provides similar functionality. - */ -public final class RuntimeUtil { - - /** - * Operating System Name system property. - */ - private static final String OS_NAME = System.getProperty("os.name").toLowerCase(); - - /** - * Prevent direct instantiation by others. - */ - private RuntimeUtil() { - } - - /** - * Test whether the runtime operating system is "unix-like". - * - * @return true if the runtime OS is unix-like, Linux, Unix, FreeBSD etc - */ - public static boolean isNix() { - return OS_NAME.contains("nux") || OS_NAME.contains("nix") || OS_NAME.contains("freebsd"); // WATERMeDIA PATCH - } - - /** - * Test whether the runtime operating system is a Windows variant. - * - * @return true if the runtime OS is Windows - */ - public static boolean isWindows() { - return OS_NAME.contains("win"); // WATERMeDIA PATCH - } - - /** - * Test whether the runtime operating system is a Mac variant. - * - * @return true if the runtime OS is Mac - */ - public static boolean isMac() { - return OS_NAME.contains("mac"); // WATERMeDIA PATCH - } - - /** - * Get the native library name. - * - * @return library name - */ - public static String getLibVlcLibraryName() { - return isWindows() ? "libvlc" : "vlc"; - } - - /** - * - * - * @return - */ - public static String getLibVlcCoreLibraryName() { - return isWindows() ? "libvlccore" : "vlccore"; - } - -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_cleanup_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_cleanup_cb.java deleted file mode 100644 index 15b8f492..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_cleanup_cb.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_audio_cleanup_cb extends Callback { - - /** - * Callback prototype for audio playback cleanup. - * - * @param data opaque data pointer as passed to libvlc_audio_set_callbacks() - */ - void cleanup(Pointer data); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_drain_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_drain_cb.java deleted file mode 100644 index ae748533..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_drain_cb.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_audio_drain_cb extends Callback { - - /** - * Callback prototype for audio buffer drain. - *

- * (i.e. wait for pending buffers to be played). - * - * @param data data pointer as passed to libvlc_audio_set_callbacks() - */ - void drain(Pointer data); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_flush_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_flush_cb.java deleted file mode 100644 index 9041b681..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_flush_cb.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_audio_flush_cb extends Callback { - - /** - * Callback prototype for audio buffer flush. - *

- * (i.e. discard all pending buffers and stop playback as soon as possible). - * - * @param data data pointer as passed to libvlc_audio_set_callbacks() - * @param pts presentation time stamp - */ - void flush(Pointer data, long pts); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_output_device_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_output_device_t.java deleted file mode 100644 index e5c77bc9..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_output_device_t.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Pointer; -import com.sun.jna.Structure; - -/** - * Description for audio output device. - */ -public class libvlc_audio_output_device_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("p_next", "psz_device", "psz_description")); - - public static class ByReference extends libvlc_audio_output_device_t implements Structure.ByReference {} - - public libvlc_audio_output_device_t.ByReference p_next; // Next entry in list - public Pointer psz_device; // Device identifier string - public Pointer psz_description; // User-friendly device description - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_output_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_output_t.java deleted file mode 100644 index 395611ee..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_output_t.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Pointer; -import com.sun.jna.Structure; - -/** - * - */ -public class libvlc_audio_output_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("psz_name", "psz_description", "p_next")); - - public static class ByReference extends libvlc_audio_output_t implements Structure.ByReference {} - - public Pointer psz_name; - public Pointer psz_description; - public libvlc_audio_output_t.ByReference p_next; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_pause_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_pause_cb.java deleted file mode 100644 index 2314efa9..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_pause_cb.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_audio_pause_cb extends Callback { - - /** - * Callback prototype for audio pause. - *

- * Note: The pause callback is never called if the audio is already paused. - * - * @param data data pointer as passed to libvlc_audio_set_callbacks() - * @param pts time stamp of the pause request (should be elapsed already) - */ - void pause(Pointer data, long pts); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_play_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_play_cb.java deleted file mode 100644 index 650ad8b2..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_play_cb.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_audio_play_cb extends Callback { - - /** - * Callback prototype for audio playback. - * - * @param data data pointer as passed to libvlc_audio_set_callbacks() - * @param samples pointer to the first audio sample to play back - * @param count number of audio samples to play back - * @param pts expected play time stamp - */ - void play(Pointer data, Pointer samples, int count, long pts); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_resume_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_resume_cb.java deleted file mode 100644 index 5681f611..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_resume_cb.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_audio_resume_cb extends Callback { - - /** - * Callback prototype for audio resumption (i.e. restart from pause). - *

- * Note: The resume callback is never called if the audio is not paused. - * - * @param data data pointer as passed to libvlc_audio_set_callbacks() - * @param pts time stamp of the resumption request (should be elapsed already) - */ - void resume(Pointer data, long pts); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_set_volume_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_set_volume_cb.java deleted file mode 100644 index 2f73377e..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_set_volume_cb.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_audio_set_volume_cb extends Callback { - - /** - * Callback prototype for audio volume change. - * - * @param data data pointer as passed to libvlc_audio_set_callbacks() - * @param volume linear volume (1 = nominal, 0 = mute) - * @param mute muted flag - */ - void setVolume(Pointer data, float volume, int mute); - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_setup_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_setup_cb.java deleted file mode 100644 index 42d92f84..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_setup_cb.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.ptr.IntByReference; -import com.sun.jna.ptr.PointerByReference; - -/** - * Callback prototype to setup the audio playback. - */ -public interface libvlc_audio_setup_cb extends Callback { - - /** - * Callback prototype to setup the audio playback. - *

- * This is called when the media player needs to create a new audio output. - * - * @param data pointer to the data pointer passed to libvlc_audio_set_callbacks() - * @param format 4 bytes sample format - * @param rate sample rate - * @param channels channels count - * @return 0 on success, anything else to skip audio playback - */ - int setup(PointerByReference data, String format, IntByReference rate, IntByReference channels); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_track_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_track_t.java deleted file mode 100644 index d6b6e84e..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_audio_track_t.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class libvlc_audio_track_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("i_channels", "i_rate")); - - public static class ByValue extends libvlc_audio_track_t implements Structure.ByValue {} - - public int i_channels; - public int i_rate; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_callback_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_callback_t.java deleted file mode 100644 index f088b654..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_callback_t.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_callback_t extends Callback { - - /** - * - * - * @param event event - * @param userData user-data pointer - */ - void callback(libvlc_event_t event, Pointer userData); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_chapter_description_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_chapter_description_t.java deleted file mode 100644 index 838ce646..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_chapter_description_t.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Pointer; -import com.sun.jna.Structure; - -/** - * Encapsulation of a chapter description. - */ -public class libvlc_chapter_description_t extends Structure { - - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("i_time_offset", "i_duration", "psz_name")); - - public static class ByReference extends libvlc_chapter_description_t implements Structure.ByReference {} - - public long i_time_offset; // ms - public long i_duration; // ms - public Pointer psz_name; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_cancel_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_cancel_cb.java deleted file mode 100644 index b070d427..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_cancel_cb.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_dialog_cancel_cb extends Callback { - - /** - * Called when a displayed dialog needs to be cancelled - * - * The implementation must call libvlc_dialog_dismiss() to really release - * the dialog. - * - * @param p_data opaque pointer for the callback - * @param p_id id of the dialog - */ - void callback(Pointer p_data, libvlc_dialog_id p_id); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_cbs.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_cbs.java deleted file mode 100644 index 557caa51..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_cbs.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - */ -public class libvlc_dialog_cbs extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("pf_display_error", "pf_display_login", "pf_display_question", "pf_display_progress", "pf_cancel", "pf_update_progress")); - - public libvlc_dialog_display_error_cb pf_display_error; - - public libvlc_dialog_display_login_cb pf_display_login; - - public libvlc_dialog_display_question_cb pf_display_question; - - public libvlc_dialog_display_progress_cb pf_display_progress; - - public libvlc_dialog_cancel_cb pf_cancel; - - public libvlc_dialog_update_progress_cb pf_update_progress; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_error_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_error_cb.java deleted file mode 100644 index 6a7dc981..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_error_cb.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_dialog_display_error_cb extends Callback { - - /** - * Called when an error message needs to be displayed - * - * @param p_data opaque pointer for the callback - * @param psz_title title of the diaog - * @param psz_text text of the dialog - */ - void callback(Pointer p_data, String psz_title, String psz_text); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_login_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_login_cb.java deleted file mode 100644 index 2c0c8fe9..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_login_cb.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_dialog_display_login_cb extends Callback { - - /** - * Called when a login dialog needs to be displayed - *

- * You can interact with this dialog by calling libvlc_dialog_post_login() - * to post an answer or libvlc_dialog_dismiss() to cancel this dialog. - *

- * to receive this callack, libvlc_dialog_cbs.pf_cancel should not be NULL. - * - * @param p_data opaque pointer for the callback - * @param p_id id used to interact with the dialog - * @param psz_title title of the diaog - * @param psz_text text of the dialog - * @param psz_default_username user name that should be set on the user form - * @param b_ask_store if true, ask the user if he wants to save the credentials - */ - void callback(Pointer p_data, libvlc_dialog_id p_id, String psz_title, String psz_text, String psz_default_username, int b_ask_store); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_progress_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_progress_cb.java deleted file mode 100644 index 7e442b6d..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_progress_cb.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_dialog_display_progress_cb extends Callback { - - /** - * Called when a progress dialog needs to be displayed - *

- * If cancellable (psz_cancel != NULL), you can cancel this dialog by - * calling libvlc_dialog_dismiss() - *

- * to receive this callack, libvlc_dialog_cbs.pf_cancel and - * libvlc_dialog_cbs.pf_update_progress should not be NULL. - * - * @param p_data opaque pointer for the callback - * @param p_id id used to interact with the dialog - * @param psz_title title of the diaog - * @param psz_text text of the dialog - * @param b_indeterminate true if the progress dialog is indeterminate - * @param f_position initial position of the progress bar (between 0.0 and 1.0) - * @param psz_cancel text of the cancel button, if NULL the dialog is not cancellable - */ - void callback(Pointer p_data, libvlc_dialog_id p_id, String psz_title, String psz_text, int b_indeterminate, float f_position, String psz_cancel); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_question_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_question_cb.java deleted file mode 100644 index 88b9886b..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_display_question_cb.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_dialog_display_question_cb extends Callback { - - /** - * Called when a question dialog needs to be displayed - *

- * You can interact with this dialog by calling libvlc_dialog_post_action() - * to post an answer or libvlc_dialog_dismiss() to cancel this dialog. - *

- * to receive this callack, libvlc_dialog_cbs.pf_cancel should not be - * NULL. - * - * @param p_data opaque pointer for the callback - * @param p_id id used to interact with the dialog - * @param psz_title title of the dialog - * @param psz_text text of the dialog - * @param i_type question type (or severity) of the dialog - * @param psz_cancel text of the cancel button - * @param psz_action1 text of the first button, if NULL, don't display this button - * @param psz_action2 text of the second button, if NULL, don't display this button - */ - void callback(Pointer p_data, libvlc_dialog_id p_id, String psz_title, String psz_text, int i_type, String psz_cancel, String psz_action1, String psz_action2); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_id.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_id.java deleted file mode 100644 index 9dfae2db..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_id.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_dialog_id extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_update_progress_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_update_progress_cb.java deleted file mode 100644 index 147bf895..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_dialog_update_progress_cb.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_dialog_update_progress_cb extends Callback { - - /** - * Called when a progress dialog needs to be updated - * - * @param p_data opaque pointer for the callback - * @param p_id id of the dialog - * @param f_position osition of the progress bar (between 0.0 and 1.0) - * @param psz_text new text of the progress dialog - */ - void callback(Pointer p_data, libvlc_dialog_id p_id, float f_position, String psz_text); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_display_callback_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_display_callback_t.java deleted file mode 100644 index a1df91a6..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_display_callback_t.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_display_callback_t extends Callback { - - /** - * - * - * @param opaque application-specific pointer - * @param picture picture pointer - */ - void display(Pointer opaque, Pointer picture); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_equalizer_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_equalizer_t.java deleted file mode 100644 index ac3326d0..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_equalizer_t.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * Opaque handle to a native equalizer instance. - */ -public class libvlc_equalizer_t extends PointerType { -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_e.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_e.java deleted file mode 100644 index ec10d170..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_e.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.HashMap; -import java.util.Map; - -/** - * Enumeration of native events. - */ -public enum libvlc_event_e { - - libvlc_MediaMetaChanged (0x000), - libvlc_MediaSubItemAdded (0x001), - libvlc_MediaDurationChanged (0x002), - libvlc_MediaParsedChanged (0x003), - libvlc_MediaFreed (0x004), - libvlc_MediaStateChanged (0x005), - libvlc_MediaSubItemTreeAdded (0x006), - libvlc_MediaThumbnailGenerated (0x007), - - libvlc_MediaPlayerMediaChanged (0x100), - libvlc_MediaPlayerNothingSpecial (0x101), - libvlc_MediaPlayerOpening (0x102), - libvlc_MediaPlayerBuffering (0x103), - libvlc_MediaPlayerPlaying (0x104), - libvlc_MediaPlayerPaused (0x105), - libvlc_MediaPlayerStopped (0x106), - libvlc_MediaPlayerForward (0x107), - libvlc_MediaPlayerBackward (0x108), - libvlc_MediaPlayerEndReached (0x109), - libvlc_MediaPlayerEncounteredError (0x10a), - libvlc_MediaPlayerTimeChanged (0x10b), - libvlc_MediaPlayerPositionChanged (0x10c), - libvlc_MediaPlayerSeekableChanged (0x10d), - libvlc_MediaPlayerPausableChanged (0x10e), - libvlc_MediaPlayerTitleChanged (0x10f), - libvlc_MediaPlayerSnapshotTaken (0x110), - libvlc_MediaPlayerLengthChanged (0x111), - libvlc_MediaPlayerVout (0x112), - libvlc_MediaPlayerScrambledChanged (0x113), - libvlc_MediaPlayerESAdded (0x114), - libvlc_MediaPlayerESDeleted (0x115), - libvlc_MediaPlayerESSelected (0x116), - libvlc_MediaPlayerCorked (0x117), - libvlc_MediaPlayerUncorked (0x118), - libvlc_MediaPlayerMuted (0x119), - libvlc_MediaPlayerUnmuted (0x11a), - libvlc_MediaPlayerAudioVolume (0x11b), - libvlc_MediaPlayerAudioDevice (0x11c), - libvlc_MediaPlayerChapterChanged (0x11d), - - libvlc_MediaListItemAdded (0x200), - libvlc_MediaListWillAddItem (0x201), - libvlc_MediaListItemDeleted (0x202), - libvlc_MediaListWillDeleteItem (0x203), - libvlc_MediaListEndReached (0x204), - - libvlc_MediaListViewItemAdded (0x300), - libvlc_MediaListViewWillAddItem (0x301), - libvlc_MediaListViewItemDeleted (0x302), - libvlc_MediaListViewWillDeleteItem (0x303), - - libvlc_MediaListPlayerPlayed (0x400), - libvlc_MediaListPlayerNextItemSet (0x401), - libvlc_MediaListPlayerStopped (0x402), - - libvlc_RendererDiscovererItemAdded (0x502), - libvlc_RendererDiscovererItemDeleted(0x503); - - private static final Map INT_MAP = new HashMap(); - - static { - for(libvlc_event_e event : libvlc_event_e.values()) { - INT_MAP.put(event.intValue, event); - } - } - - public static libvlc_event_e event(int intValue) { - return INT_MAP.get(intValue); - } - - private final int intValue; - - libvlc_event_e(int intValue) { - this.intValue = intValue; - } - - public int intValue() { - return intValue; - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_manager_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_manager_t.java deleted file mode 100644 index 4d96530b..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_manager_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_event_manager_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_t.java deleted file mode 100644 index 3132855d..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_t.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Pointer; -import com.sun.jna.Structure; - -/** - * - */ -public class libvlc_event_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("type", "obj", "u")); - - /** - * @see libvlc_event_e - */ - public int type; - - /** - * - */ - public Pointer obj; - - /** - * - */ - public libvlc_event_u u; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_u.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_u.java deleted file mode 100644 index 543b28c7..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_event_u.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Union; - -/** - * Native event data. - */ -public class libvlc_event_u extends Union { - - public media_meta_changed media_meta_changed; - public media_subitem_added media_subitem_added; - public media_duration_changed media_duration_changed; - public media_parsed_changed media_parsed_changed; - public media_freed media_freed; - public media_state_changed media_state_changed; - public media_thumbnail_generated media_thumbnail_generated; - public media_player_buffering media_player_buffering; - public media_player_position_changed media_player_position_changed; - public media_player_time_changed media_player_time_changed; - public media_player_title_changed media_player_title_changed; - public media_player_seekable_changed media_player_seekable_changed; - public media_player_pausable_changed media_player_pausable_changed; - public media_player_vout media_player_vout; - public media_list_item_added media_list_item_added; - public media_list_will_add_item media_list_will_add_item; - public media_list_item_deleted media_list_item_deleted; - public media_list_will_delete_item media_list_will_delete_item; - public media_list_player_next_item_set media_list_player_next_item_set; - public media_player_snapshot_taken media_player_snapshot_taken; - public media_player_length_changed media_player_length_changed; - public vlm_media_event vlm_media_event; - public media_player_media_changed media_player_media_changed; - public media_player_scrambled_changed media_player_scrambled_changed; - public media_player_es_changed media_player_es_changed; - public media_subitemtree_added media_subitemtree_added; - public media_player_audio_volume media_player_audio_volume; - public media_player_audio_device media_player_audio_device; - public media_player_chapter_changed media_player_chapter_changed; - public renderer_discoverer_item_added renderer_discoverer_item_added; - public renderer_discoverer_item_deleted renderer_discoverer_item_deleted; - - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_instance_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_instance_t.java deleted file mode 100644 index 81d01bab..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_instance_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_instance_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_lock_callback_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_lock_callback_t.java deleted file mode 100644 index 00cc97da..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_lock_callback_t.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.ptr.PointerByReference; - -/** - * Callback prototype to allocate and lock a picture buffer. - */ -public interface libvlc_lock_callback_t extends Callback { - - /** - * Callback prototype to allocate and lock a picture buffer. - *

- * Whenever a new video frame needs to be decoded, the lock callback is invoked. Depending on - * the video chroma, one or three pixel planes of adequate dimensions must be returned via the - * second parameter. Those planes must be aligned on 32-bytes boundaries. - * - * @param opaque private pointer as passed to libvlc_video_set_callbacks() [IN] - * @param planes start address of the pixel planes (LibVLC allocates the array of void pointers, this callback must initialize the array) [OUT] - * @return a private pointer for the display and unlock callbacks to identify the picture buffers - */ - Pointer lock(Pointer opaque, PointerByReference planes); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_log_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_log_cb.java deleted file mode 100644 index 6563681e..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_log_cb.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * Specification for a callback that handles native log messages. - */ -public interface libvlc_log_cb extends Callback { - - /** - * Callback prototype for LibVLC log message handler. - *

- * Log message handlers must be thread-safe. - * - * @param data data pointer as given to libvlc_log_set() - * @param level message level - * @param ctx message context (meta-informations about the message) - * @param format printf() format string (as defined by ISO C11) - * @param args variable argument list for the format - */ - void log(Pointer data, int level, libvlc_log_t ctx, String format, Pointer args); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_log_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_log_t.java deleted file mode 100644 index 9d7cae17..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_log_t.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * Native log handle. - */ -public class libvlc_log_t extends PointerType { -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_close_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_close_cb.java deleted file mode 100644 index 91b9b858..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_close_cb.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * Native close media callback. - */ -public interface libvlc_media_close_cb extends Callback { - - /** - * Callback prototype to close a custom bitstream input media. - * - * @param opaque private pointer as set by the @ref libvlc_media_open_cb callback - */ - void close(Pointer opaque); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_discoverer_description_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_discoverer_description_t.java deleted file mode 100644 index 496f156c..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_discoverer_description_t.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class libvlc_media_discoverer_description_t extends Structure { - - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("psz_name", "psz_longname", "i_cat")); - - public static class ByReference extends libvlc_media_discoverer_description_t implements Structure.ByReference {} - - public String psz_name; - public String psz_longname; - public int i_cat; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_discoverer_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_discoverer_t.java deleted file mode 100644 index 2ec8d613..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_discoverer_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_media_discoverer_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_list_player_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_list_player_t.java deleted file mode 100644 index d4953e98..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_list_player_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_media_list_player_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_list_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_list_t.java deleted file mode 100644 index 65e5ae69..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_list_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_media_list_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_open_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_open_cb.java deleted file mode 100644 index 4380833a..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_open_cb.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; -import com.sun.jna.ptr.LongByReference; -import com.sun.jna.ptr.PointerByReference; - -/** - * Native open media callback. - */ -public interface libvlc_media_open_cb extends Callback { - - /** - * Callback prototype to open a custom bitstream input media. - *

- * The same media item can be opened multiple times. Each time, this callback - * is invoked. It should allocate and initialize any instance-specific - * resources, then store them in *datap. The instance resources can be freed - * in the @ref libvlc_close_cb callback. - *

- * For convenience, datap is initially NULL and sizep is initially 0. - * - * @param opaque private pointer as passed to libvlc_media_new_callbacks() - * @param datap storage space for a private data pointer [OUT] - * @param sizep byte length of the bitstream or 0 if unknown [OUT] - * @return 0 on success, non-zero on error. In case of failure, the other - * callbacks will not be invoked and any value stored in datap and sizep is - * discarded. - */ - int open(Pointer opaque, PointerByReference datap, LongByReference sizep); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_player_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_player_t.java deleted file mode 100644 index 70b234c1..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_player_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_media_player_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_read_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_read_cb.java deleted file mode 100644 index 0311fb38..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_read_cb.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import me.lib720.caprica.vlcj.binding.support.size_t; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * Native read media callback. - */ -public interface libvlc_media_read_cb extends Callback { - - /** - * Callback prototype to read data from a custom bitstream input media. - *

- * If no data is immediately available, then the callback should sleep. - *

- * The application is responsible for avoiding deadlock situations. - * In particular, the callback should return an error if playback is stopped; - * if it does not return, then libvlc_media_player_stop() will never return. - * - * @param opaque private pointer as set by the @ref libvlc_media_open_cb callback - * @param buf start address of the buffer to read data into - * @param len bytes length of the buffer - * - * @return strictly positive number of bytes read, 0 on end-of-stream, or -1 on non-recoverable error - */ - size_t read(Pointer opaque, Pointer buf, size_t len); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_seek_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_seek_cb.java deleted file mode 100644 index 7a24c334..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_seek_cb.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * Native seek media callback. - */ -public interface libvlc_media_seek_cb extends Callback { - - /** - * Callback prototype to seek a custom bitstream input media. - * - * @param opaque private pointer as set by the @ref libvlc_media_open_cb callback - * @param offset absolute byte offset to seek to - * @return 0 on success, -1 on error. - */ - int seek(Pointer opaque, long offset); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_slave_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_slave_t.java deleted file mode 100644 index 13aa2880..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_slave_t.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Pointer; -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class libvlc_media_slave_t extends Structure { - - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("psz_uri", "i_type", "i_priority")); - - public libvlc_media_slave_t() { - } - - public libvlc_media_slave_t(Pointer value) { - super(value); - read(); - } - - public Pointer psz_uri; - public int i_type; - public int i_priority; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_stats_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_stats_t.java deleted file mode 100644 index e67e7dd1..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_stats_t.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class libvlc_media_stats_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList( - "i_read_bytes", - "f_input_bitrate", - "i_demux_read_bytes", - "f_demux_bitrate", - "i_demux_corrupted", - "i_demux_discontinuity", - "i_decoded_video", - "i_decoded_audio", - "i_displayed_pictures", - "i_lost_pictures", - "i_played_abuffers", - "i_lost_abuffers", - "i_sent_packets", - "i_sent_bytes", - "f_send_bitrate" - )); - - /* Input */ - public int i_read_bytes; - public float f_input_bitrate; - - /* Demux */ - public int i_demux_read_bytes; - public float f_demux_bitrate; - public int i_demux_corrupted; - public int i_demux_discontinuity; - - /* Decoders */ - public int i_decoded_video; - public int i_decoded_audio; - - /* Video Output */ - public int i_displayed_pictures; - public int i_lost_pictures; - - /* Audio output */ - public int i_played_abuffers; - public int i_lost_abuffers; - - /* Stream output */ - public int i_sent_packets; - public int i_sent_bytes; - public float f_send_bitrate; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(100); - sb.append(getClass().getSimpleName()).append('['); - sb.append("i_read_bytes=").append(i_read_bytes).append(','); - sb.append("f_input_bitrate=").append(f_input_bitrate).append(','); - sb.append("i_demux_read_bytes=").append(i_demux_read_bytes).append(','); - sb.append("f_demux_bitrate=").append(f_demux_bitrate).append(','); - sb.append("i_demux_corrupted=").append(i_demux_corrupted).append(','); - sb.append("i_demux_discontinuity=").append(i_demux_discontinuity).append(','); - sb.append("i_decoded_video=").append(i_decoded_video).append(','); - sb.append("i_decoded_audio=").append(i_decoded_audio).append(','); - sb.append("i_displayed_pictures=").append(i_displayed_pictures).append(','); - sb.append("i_lost_pictures=").append(i_lost_pictures).append(','); - sb.append("i_played_abuffers=").append(i_played_abuffers).append(','); - sb.append("i_lost_abuffers=").append(i_lost_abuffers).append(','); - sb.append("i_sent_packets=").append(i_sent_packets).append(','); - sb.append("i_sent_bytes=").append(i_sent_bytes).append(','); - sb.append("f_send_bitrate=").append(f_send_bitrate).append(']'); - return sb.toString(); - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_t.java deleted file mode 100644 index 3ecea6e8..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_media_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_thumbnail_request_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_thumbnail_request_t.java deleted file mode 100644 index e2b6377d..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_thumbnail_request_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_media_thumbnail_request_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_track_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_track_t.java deleted file mode 100644 index 14e54623..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_track_t.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Pointer; -import com.sun.jna.Structure; - -/** - * - */ -public class libvlc_media_track_t extends Structure { - - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("i_codec", "i_original_fourcc", "i_id", "i_type", "i_profile", "i_level", "u", "i_bitrate", "psz_language", "psz_description")); - - public int i_codec; - public int i_original_fourcc; - public int i_id; - public int i_type; - - public int i_profile; - public int i_level; - - public libvlc_media_track_u.ByReference u; - - public int i_bitrate; - public Pointer psz_language; - public Pointer psz_description; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_track_u.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_track_u.java deleted file mode 100644 index 6ff0b199..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_media_track_u.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Union; - -/** - * - */ -public class libvlc_media_track_u extends Union { - - public static class ByReference extends libvlc_media_track_u implements Union.ByReference {} - - public libvlc_audio_track_t audio; - public libvlc_video_track_t video; - public libvlc_subtitle_track_t subtitle; - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_module_description_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_module_description_t.java deleted file mode 100644 index 2c68c667..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_module_description_t.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * Description of a module. - */ -public class libvlc_module_description_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("psz_name", "psz_shortname", "psz_longname", "psz_help", "p_next")); - - public static class ByReference extends libvlc_module_description_t implements Structure.ByReference {} - - public String psz_name; - public String psz_shortname; - public String psz_longname; - public String psz_help; - public libvlc_module_description_t.ByReference p_next; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_navigate_mode_e.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_navigate_mode_e.java deleted file mode 100644 index 4746e30c..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_navigate_mode_e.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.HashMap; -import java.util.Map; - -/** - * Enumeration of DVD navigation modes. - */ -public enum libvlc_navigate_mode_e { - - libvlc_navigate_activate(0), - libvlc_navigate_up (1), - libvlc_navigate_down (2), - libvlc_navigate_left (3), - libvlc_navigate_right (4), - libvlc_navigate_popup (5); - - private static final Map INT_MAP = new HashMap(); - - static { - for(libvlc_navigate_mode_e value : libvlc_navigate_mode_e.values()) { - INT_MAP.put(value.intValue, value); - } - } - - public static libvlc_navigate_mode_e event(int intValue) { - return INT_MAP.get(intValue); - } - - private final int intValue; - - libvlc_navigate_mode_e(int intValue) { - this.intValue = intValue; - } - - public int intValue() { - return intValue; - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_picture_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_picture_t.java deleted file mode 100644 index 5f2126c2..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_picture_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_picture_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_rd_description_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_rd_description_t.java deleted file mode 100644 index 377f801f..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_rd_description_t.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class libvlc_rd_description_t extends Structure { - - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("psz_name", "psz_longname")); - - public static class ByReference extends libvlc_rd_description_t implements Structure.ByReference {} - - public String psz_name; - public String psz_longname; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_rectangle_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_rectangle_t.java deleted file mode 100644 index 9e42e830..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_rectangle_t.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class libvlc_rectangle_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("top", "left", "bottom", "right")); - - public int top; - public int left; - public int bottom; - public int right; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_renderer_discoverer_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_renderer_discoverer_t.java deleted file mode 100644 index 6993d1f4..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_renderer_discoverer_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_renderer_discoverer_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_renderer_item_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_renderer_item_t.java deleted file mode 100644 index b79d5c81..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_renderer_item_t.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.PointerType; - -/** - * - */ -public class libvlc_renderer_item_t extends PointerType { - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_subtitle_track_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_subtitle_track_t.java deleted file mode 100644 index 8e9839fc..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_subtitle_track_t.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Pointer; -import com.sun.jna.Structure; - -/** - * - */ -public class libvlc_subtitle_track_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("psz_encoding")); - - public static class ByValue extends libvlc_subtitle_track_t implements Structure.ByValue {} - - public Pointer psz_encoding; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_title_description_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_title_description_t.java deleted file mode 100644 index 7d5235d3..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_title_description_t.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Pointer; -import com.sun.jna.Structure; - -/** - * Encapsulation of a chapter description. - */ -public class libvlc_title_description_t extends Structure { - - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("i_duration", "psz_name", "b_menu")); - - public static class ByReference extends libvlc_title_description_t implements Structure.ByReference {} - - public long i_duration; // ms - public Pointer psz_name; - public byte b_menu; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_track_description_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_track_description_t.java deleted file mode 100644 index 4f9d23a1..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_track_description_t.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * Encapsulation of a track description. - */ -public class libvlc_track_description_t extends Structure { - - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("i_id", "psz_name", "p_next")); - - public static class ByReference extends libvlc_track_description_t implements Structure.ByReference {} - - public int i_id; - public String psz_name; - public libvlc_track_description_t.ByReference p_next; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_unlock_callback_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_unlock_callback_t.java deleted file mode 100644 index 81f73744..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_unlock_callback_t.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_unlock_callback_t extends Callback { - - /** - * - * - * @param opaque application-specific pointer - * @param picture picture pointer - * @param plane plane pointer - */ - void unlock(Pointer opaque, Pointer picture, Pointer plane); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_adjust_option_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_adjust_option_t.java deleted file mode 100644 index 29c93734..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_adjust_option_t.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -/** - * Enumeration of video adjustment options. - */ -public enum libvlc_video_adjust_option_t { - - libvlc_adjust_Enable (0), - libvlc_adjust_Contrast (1), // Float - libvlc_adjust_Brightness(2), // Float - libvlc_adjust_Hue (3), // Integer - libvlc_adjust_Saturation(4), // Float - libvlc_adjust_Gamma (5); // Float - - private final int intValue; - - libvlc_video_adjust_option_t(int intValue) { - this.intValue = intValue; - } - - public int intValue() { - return intValue; - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_cleanup_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_cleanup_cb.java deleted file mode 100644 index 135065eb..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_cleanup_cb.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_video_cleanup_cb extends Callback { - - /** - * - * - * @param opaque application-specific pointer - */ - void cleanup(Pointer opaque); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_format_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_format_cb.java deleted file mode 100644 index 28f872cb..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_format_cb.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.ptr.IntByReference; -import com.sun.jna.ptr.PointerByReference; - -/** - * Callback prototype to configure picture buffers format. - */ -public interface libvlc_video_format_cb extends Callback { - - /** - * Callback prototype to configure picture buffers format. - *

- * This callback gets the format of the video as output by the video decoder and the chain of - * video filters (if any). It can opt to change any parameter as it needs. In that case, LibVLC - * will attempt to convert the video format (rescaling and chroma conversion) but these - * operations can be CPU intensive. - * - * @param opaque pointer to the private pointer passed to libvlc_video_set_callbacks() [IN/OUT] - * @param chroma pointer to the 4 bytes video format identifier [IN/OUT] - * @param width pointer to the pixel width [IN/OUT] - * @param height pointer to the pixel height [IN/OUT] - * @param pitches table of scanline pitches in bytes for each pixel plane (the table is - * allocated by LibVLC) [OUT] - * @param lines table of scanlines count for each plane [OUT] - * @return the number of picture buffers allocated, 0 indicates failure - * - * Note: For each pixels plane, the scanline pitch must be bigger than or equal to the - * number of bytes per pixel multiplied by the pixel width. Similarly, the number of - * scanlines must be bigger than of equal to the pixel height. Furthermore, we recommend - * that pitches and lines be multiple of 32 to not break assumption that might be made - * by various optimizations in the video decoders, video filters and/or video - * converters. - */ - int format(PointerByReference opaque, PointerByReference chroma, IntByReference width, IntByReference height, PointerByReference pitches, PointerByReference lines); -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_getProcAddress_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_getProcAddress_cb.java deleted file mode 100644 index 64aa11c1..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_getProcAddress_cb.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_video_getProcAddress_cb extends Callback { - - /** - * Callback prototype to load opengl functions - * - * @param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN] - * @param fct_name name of the opengl function to load - do not release this string - * @return a pointer to the named OpenGL function the NULL otherwise - * - * @since LibVLC 4.0.0 or later - */ - Pointer getProcAddress(Pointer opaque, String fct_name); - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_logo_option_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_logo_option_t.java deleted file mode 100644 index 991c4f66..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_logo_option_t.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -/** - * Enumeration of logo options. - */ -public enum libvlc_video_logo_option_t { - - libvlc_logo_enable (0), - libvlc_logo_file (1), /** string argument, "file,d,t;file,d,t;..." */ - libvlc_logo_x (2), - libvlc_logo_y (3), - libvlc_logo_delay (4), - libvlc_logo_repeat (5), - libvlc_logo_opacity (6), - libvlc_logo_position(7); - - private final int intValue; - - libvlc_video_logo_option_t(int intValue) { - this.intValue = intValue; - } - - public int intValue() { - return intValue; - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_makeCurrent_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_makeCurrent_cb.java deleted file mode 100644 index 01941de7..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_makeCurrent_cb.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_video_makeCurrent_cb extends Callback { - - - /** - * Callback prototype to set up the OpenGL context for rendering - * - * @param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN] - * @param enter true to set the context as current, false to unset it [IN] - * @return true on success - * - * @since LibVLC 4.0.0 or later - */ - int makeCurrent(Pointer opaque, int enter); - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_marquee_option_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_marquee_option_t.java deleted file mode 100644 index 29c37516..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_marquee_option_t.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -/** - * Enumeration of marquee options. - */ -public enum libvlc_video_marquee_option_t { - - libvlc_marquee_Enable (0), - libvlc_marquee_Text (1), /** string argument */ - libvlc_marquee_Color (2), - libvlc_marquee_Opacity (3), - libvlc_marquee_Position(4), - libvlc_marquee_Refresh (5), - libvlc_marquee_Size (6), - libvlc_marquee_Timeout (7), - libvlc_marquee_X (8), - libvlc_marquee_Y (9); - - private final int intValue; - - libvlc_video_marquee_option_t(int intValue) { - this.intValue = intValue; - } - - public int intValue() { - return intValue; - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_setup_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_setup_cb.java deleted file mode 100644 index b50dbbb3..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_setup_cb.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_video_setup_cb extends Callback { - - /** - * Callback prototype called to initialize user data. - * - * @param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN] - * @return true on success - * - * @since LibVLC 4.0.0 or later - */ - int setup(Pointer opaque); - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_swap_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_swap_cb.java deleted file mode 100644 index 1ce17661..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_swap_cb.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_video_swap_cb extends Callback { - - /** - * Callback prototype called after performing drawing calls. - * - * @param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN] - * - * @since LibVLC 4.0.0 or later - */ - void swap(Pointer opaque); - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_track_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_track_t.java deleted file mode 100644 index d656de11..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_track_t.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class libvlc_video_track_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("i_height", "i_width", "i_sar_num", "i_sar_den", "i_frame_rate_num", "i_frame_rate_den", "i_orientation", "i_projection", "pose")); - - public static class ByValue extends libvlc_video_track_t implements Structure.ByValue {} - - public int i_height; - public int i_width; - - public int i_sar_num; - public int i_sar_den; - public int i_frame_rate_num; - public int i_frame_rate_den; - - public int i_orientation; - public int i_projection; - public libvlc_video_viewpoint_t.ByValue pose; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_update_output_cb.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_update_output_cb.java deleted file mode 100644 index 045f59d2..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_update_output_cb.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Callback; -import com.sun.jna.Pointer; - -/** - * - */ -public interface libvlc_video_update_output_cb extends Callback { - - /** - * Callback prototype called on video size changes - * - * @param opaque private pointer passed to the @a libvlc_video_set_output_callbacks() [IN] - * @param width video width in pixel [IN] - * @param height video height in pixel [IN] - * - * @since LibVLC 4.0.0 or later - */ - void updateOutput(Pointer opaque, int width, int height); - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_viewpoint_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_viewpoint_t.java deleted file mode 100644 index 00be43d4..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/libvlc_video_viewpoint_t.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class libvlc_video_viewpoint_t extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("f_yaw", "f_pitch", "f_roll", "f_field_of_view")); - - public static class ByValue extends libvlc_video_viewpoint_t implements Structure.ByValue {} - - public float f_yaw; /** view point yaw in degrees */ - public float f_pitch; /** view point pitch in degrees */ - public float f_roll; /** view point roll in degrees */ - public float f_field_of_view; /** field of view in degrees (default 80.0f) */ - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_duration_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_duration_changed.java deleted file mode 100644 index 3ee08433..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_duration_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_duration_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_duration")); - - /** - * - */ - public long new_duration; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_freed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_freed.java deleted file mode 100644 index 665535b1..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_freed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_freed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("md")); - - /** - * - */ - public libvlc_media_t md; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_item_added.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_item_added.java deleted file mode 100644 index fc55689b..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_item_added.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_list_item_added extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("item", "index")); - - public libvlc_media_t item; - public int index; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_item_deleted.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_item_deleted.java deleted file mode 100644 index 03fe944d..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_item_deleted.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_list_item_deleted extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("item", "index")); - - public libvlc_media_t item; - public int index; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_player_next_item_set.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_player_next_item_set.java deleted file mode 100644 index 27fa73dd..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_player_next_item_set.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_list_player_next_item_set extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("item")); - - /** - * - */ - public libvlc_media_t item; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_will_add_item.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_will_add_item.java deleted file mode 100644 index 4fabeee7..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_will_add_item.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_list_will_add_item extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("item", "index")); - - public libvlc_media_t item; - public int index; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_will_delete_item.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_will_delete_item.java deleted file mode 100644 index 7a0361e1..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_list_will_delete_item.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_list_will_delete_item extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("item", "index")); - - public libvlc_media_t item; - public int index; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_meta_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_meta_changed.java deleted file mode 100644 index e7f97079..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_meta_changed.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_meta_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("meta_type")); - - /** - * Type of meta. - *

- * This value may be unreliable, for example when parsing media some types are reported - * multiple times and some types are not reported at all. - */ - public int meta_type; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_parsed_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_parsed_changed.java deleted file mode 100644 index 98c395ad..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_parsed_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_parsed_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_status")); - - /** - * - */ - public int new_status; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_parsed_status.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_parsed_status.java deleted file mode 100644 index 4a8dda0b..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_parsed_status.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class media_parsed_status extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_status")); - - /** - * - */ - public int new_status; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_audio_device.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_audio_device.java deleted file mode 100644 index c7ecfe8c..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_audio_device.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_audio_device extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("device")); - - /** - * - */ - public String device; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_audio_volume.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_audio_volume.java deleted file mode 100644 index 0d266edd..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_audio_volume.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_audio_volume extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("volume")); - - /** - * - */ - public float volume; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_buffering.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_buffering.java deleted file mode 100644 index 52136506..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_buffering.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_buffering extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_cache")); - - /** - * A percentage complete indicator, ranging from 0.0 to 100.0. - */ - public float new_cache; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_chapter_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_chapter_changed.java deleted file mode 100644 index cb36b46b..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_chapter_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class media_player_chapter_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_chapter")); - - /** - * - */ - public int new_chapter; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_es_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_es_changed.java deleted file mode 100644 index 56c75de4..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_es_changed.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_es_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("i_type", "i_id")); - - /** - * - */ - public int i_type; - - /** - * - */ - public int i_id; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_length_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_length_changed.java deleted file mode 100644 index 1d5683eb..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_length_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_length_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_length")); - - /** - * - */ - public long new_length; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_media_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_media_changed.java deleted file mode 100644 index aaea17ac..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_media_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_media_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("md")); - - /** - * - */ - public libvlc_media_t md; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_pausable_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_pausable_changed.java deleted file mode 100644 index cf7f7d8e..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_pausable_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_pausable_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_pausable")); - - /** - * - */ - public int new_pausable; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_position_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_position_changed.java deleted file mode 100644 index 2c91d4ae..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_position_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_position_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_position")); - - /** - * - */ - public float new_position; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_scrambled_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_scrambled_changed.java deleted file mode 100644 index 9d0363ec..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_scrambled_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_scrambled_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_scrambled")); - - /** - * - */ - public int new_scrambled; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_seekable_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_seekable_changed.java deleted file mode 100644 index 6894483f..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_seekable_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_seekable_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_seekable")); - - /** - * - */ - public int new_seekable; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_snapshot_taken.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_snapshot_taken.java deleted file mode 100644 index 3ee83dfb..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_snapshot_taken.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_snapshot_taken extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("filename")); - - /** - * - */ - public String filename; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_time_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_time_changed.java deleted file mode 100644 index 187bec06..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_time_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_time_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_time")); - - /** - * - */ - public long new_time; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_title_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_title_changed.java deleted file mode 100644 index a7268515..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_title_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_title_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_title")); - - /** - * - */ - public int new_title; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_vout.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_vout.java deleted file mode 100644 index b27e53c9..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_player_vout.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_player_vout extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_count")); - - /** - * - */ - public int new_count; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_preparsed_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_preparsed_changed.java deleted file mode 100644 index 68f46bab..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_preparsed_changed.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_preparsed_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_status")); - - /** - * - */ - public int new_status; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} - diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_state_changed.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_state_changed.java deleted file mode 100644 index 918e3d9c..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_state_changed.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_state_changed extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_state")); - - /** - * - */ - public int new_state; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_subitem_added.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_subitem_added.java deleted file mode 100644 index dc907c20..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_subitem_added.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_subitem_added extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("new_child")); - - /** - * - */ - public libvlc_media_t new_child; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} - diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_subitemtree_added.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_subitemtree_added.java deleted file mode 100644 index 250d9e44..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_subitemtree_added.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class media_subitemtree_added extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("item")); - - /** - * - */ - public libvlc_media_t item; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} - diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_thumbnail_generated.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_thumbnail_generated.java deleted file mode 100644 index 5b56dd45..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/media_thumbnail_generated.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class media_thumbnail_generated extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("p_thumbnail")); - - /** - * - */ - public libvlc_picture_t p_thumbnail; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/package-info.java deleted file mode 100644 index 20a7a793..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Internal JNA bindings for libvlc, bindings to native types and structures. - */ -package me.lib720.caprica.vlcj.binding.internal; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/renderer_discoverer_item_added.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/renderer_discoverer_item_added.java deleted file mode 100644 index 6c2f395b..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/renderer_discoverer_item_added.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class renderer_discoverer_item_added extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("item")); - - /** - * - */ - public libvlc_renderer_item_t item; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} - diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/renderer_discoverer_item_deleted.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/renderer_discoverer_item_deleted.java deleted file mode 100644 index b2b88c72..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/renderer_discoverer_item_deleted.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import com.sun.jna.Structure; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -/** - * - */ -public class renderer_discoverer_item_deleted extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("item")); - - /** - * - */ - public libvlc_renderer_item_t item; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} - diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/vlm_media_event.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/vlm_media_event.java deleted file mode 100644 index 79414a76..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/internal/vlm_media_event.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.internal; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; - -import com.sun.jna.Structure; - -/** - * - */ -public class vlm_media_event extends Structure { - - /** - * - */ - private static final List FIELD_ORDER = Collections.unmodifiableList(Arrays.asList("psz_media_name", "psz_instance_name")); - - public String psz_media_name; - public String psz_instance_name; - - @Override - protected List getFieldOrder() { - return FIELD_ORDER; - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/package-info.java deleted file mode 100644 index fcbe95ea..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/package-info.java +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Provides the JNA bindings, and related classes, to use the libvlc native - * library. - */ -package me.lib720.caprica.vlcj.binding; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/support/size_t.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/support/size_t.java deleted file mode 100644 index a04b1776..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/support/size_t.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.support; - -import com.sun.jna.IntegerType; -import com.sun.jna.Native; - -/** - * Native size_t type. - */ -@SuppressWarnings("serial") -public class size_t extends IntegerType { - - public size_t() { - this(0); - } - - public size_t(long value) { - super(Native.SIZE_T_SIZE, value); - } -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/support/size_tByReference.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/support/size_tByReference.java deleted file mode 100644 index 1ee3ec32..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/binding/support/size_tByReference.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.binding.support; - -import com.sun.jna.Native; -import com.sun.jna.Pointer; -import com.sun.jna.ptr.ByReference; - -public class size_tByReference extends ByReference { - - public size_tByReference() { - super(Native.SIZE_T_SIZE); - } - - public size_t getValue() { - Pointer pointer = getPointer(); - return new size_t(Native.SIZE_T_SIZE == 8 ? pointer.getLong(0) : pointer.getInt(0)); - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/CustomDirectoryProvider.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/CustomDirectoryProvider.java deleted file mode 100644 index 27584a29..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/CustomDirectoryProvider.java +++ /dev/null @@ -1,21 +0,0 @@ -package me.lib720.caprica.vlcj.factory.discovery.provider; - -import java.io.File; -import java.nio.file.Path; - -public class CustomDirectoryProvider implements DiscoveryDirectoryProvider { - private static Path rootPath = null; - public static void init(Path ph) { rootPath = ph; } - - @Override - public int priority() { return 5; } - - @Override - public boolean supported() { return true; } - - @Override - public String[] directories() { - Path vlc = rootPath != null ? rootPath : new File("").toPath(); - return new String[]{vlc.toAbsolutePath().toString()}; - } -} \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaResourceLocator.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaResourceLocator.java deleted file mode 100644 index faa39ec4..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaResourceLocator.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * This file is part of VLCJ. - * - * VLCJ is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * VLCJ is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with VLCJ. If not, see . - * - * Copyright 2009-2019 Caprica Software Limited. - */ - -package me.lib720.caprica.vlcj.media; - -import me.lib720.caprica.vlcj.VideoLan4J; -import me.lib720.caprica.vlcj.binding.NativeUri; - -import java.net.URL; -import java.util.regex.Pattern; - -/** - * Utility class to help detect the type of media resource locator. - *

- * This is needed since local files must be played differently to non-local MRLs - * like streaming URLs or "screen://". - *

- * This is essentially an internal class. - */ -final class MediaResourceLocator { - - /** - * Simple pattern to detect locations. - */ - private static final Pattern MRL_LOCATION_PATTERN = Pattern.compile(".+://.*"); - - private MediaResourceLocator() { - } - - /** - * Does the MRL represent a "location"? - * - * @param mrl media resource locator - * @return true if the supplied MRL should be treated as a "location"; false for a file - */ - static boolean isLocation(String mrl) { - return MRL_LOCATION_PATTERN.matcher(mrl).matches(); - } - - /** - * Encode, if necessary, an MRL that can be passed via the native library API. - *

- * @see NativeUri#encodeUri(URL) - * - * @param mrl MRL - * @return the original MRL if no encoding is required, or a percent-encoded file URL - */ - static String encodeMrl(URL mrl) { - String url = NativeUri.encodeUri(mrl); - VideoLan4J.LOGGER.debug("Encoded URL: {}", url); - return url; - } - -} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/package-info.java deleted file mode 100644 index 10645964..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Events relating to media. - */ -package me.lib720.caprica.vlcj.media.events; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/package-info.java deleted file mode 100644 index c9b59991..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Media list events. - */ -package me.lib720.caprica.vlcj.medialist.events; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/package-info.java deleted file mode 100644 index 6a1c69ac..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/package-info.java +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Java framework for the VLC media player. - *

- * Most applications should start with the {@link me.lib720.caprica.vlcj.factory.MediaPlayerFactory}. - */ -package me.lib720.caprica.vlcj; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/package-info.java deleted file mode 100644 index 1edb8fc8..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/package-info.java +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Components used by the {@link me.lib720.caprica.vlcj.player.component.CallbackMediaPlayerComponent}. - *

- * Provides implementations of "painter" components used to render video frames. - */ -package me.lib720.caprica.vlcj.player.component.callback; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/osx/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/osx/package-info.java deleted file mode 100644 index fe7a6b2f..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/osx/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Native full-screen strategy for OSX. - */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.osx; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/package-info.java deleted file mode 100644 index 72310cd2..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Events relating to media. - */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/format/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/format/package-info.java deleted file mode 100644 index 498a71d1..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/format/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Provides default buffer format implementations. - */ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback.format; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/package-info.java b/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/package-info.java deleted file mode 100644 index 3bb6627e..00000000 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Media list player events. - */ -package me.lib720.caprica.vlcj.player.list.events; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/ApplicationApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/ApplicationApi.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/ApplicationApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/ApplicationApi.java index fb0e20e6..aa3b04cf 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/ApplicationApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/ApplicationApi.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_module_description_t; -import me.lib720.caprica.vlcj.log.NativeLog; -import me.lib720.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_module_description_t; +import uk.co.caprica.vlcj.log.NativeLog; +import uk.co.caprica.vlcj.media.TrackType; import java.util.ArrayList; import java.util.List; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/AudioApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/AudioApi.java similarity index 79% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/AudioApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/AudioApi.java index 6db53273..0af6eb43 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/AudioApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/AudioApi.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.NativeString; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_output_device_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_output_t; -import me.lib720.caprica.vlcj.player.base.AudioDevice; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_output_device_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_output_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.AudioDevice; import java.util.ArrayList; import java.util.List; @@ -51,8 +51,8 @@ public List audioOutputs() { if (audioOutputs != null) { libvlc_audio_output_t audioOutput = audioOutputs; while (audioOutput != null) { - String name = NativeString.copyNativeString(audioOutput.psz_name); - String description = NativeString.copyNativeString(audioOutput.psz_description); + String name = VideoLan4J.copyNativeString(audioOutput.psz_name); + String description = VideoLan4J.copyNativeString(audioOutput.psz_description); result.add(new AudioOutput(name, description, getAudioOutputDevices(name))); audioOutput = audioOutput.p_next; } @@ -73,8 +73,8 @@ private List getAudioOutputDevices(String outputName) { if (audioDevices != null) { libvlc_audio_output_device_t audioDevice = audioDevices; while(audioDevice != null) { - String device = NativeString.copyNativeString(audioDevice.psz_device); - String description = NativeString.copyNativeString(audioDevice.psz_description); + String device = VideoLan4J.copyNativeString(audioDevice.psz_device); + String description = VideoLan4J.copyNativeString(audioDevice.psz_description); result.add(new AudioDevice(device, description)); audioDevice = audioDevice.p_next; } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/AudioOutput.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/AudioOutput.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/AudioOutput.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/AudioOutput.java index ae6852d0..3144843c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/AudioOutput.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/AudioOutput.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; -import me.lib720.caprica.vlcj.player.base.AudioDevice; +import uk.co.caprica.vlcj.player.base.AudioDevice; import java.util.Iterator; import java.util.List; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/BaseApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/BaseApi.java similarity index 90% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/BaseApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/BaseApi.java index 2993bc8c..97e7b498 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/BaseApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/BaseApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; /** * Internal base implementation. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogHandler.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogHandler.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogHandler.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogHandler.java index 0e8b406b..c900bf97 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogHandler.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogHandler.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; /** * Specification for a component that handles native dialogs. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogHandlerAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogHandlerAdapter.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogHandlerAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogHandlerAdapter.java index 68e9811f..470df461 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogHandlerAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogHandlerAdapter.java @@ -17,7 +17,7 @@ * Copyright 2009-2021 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; /** * Empty implementation of a {@link DialogHandler}. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogId.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogId.java similarity index 90% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogId.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogId.java index 556206cf..6e4bd83e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogId.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogId.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_id; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_id; /** * Encapsulation of a native dialog identifier. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogQuestionType.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogQuestionType.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogQuestionType.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogQuestionType.java index ec4a5212..f9a44ba9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogQuestionType.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogQuestionType.java @@ -17,7 +17,7 @@ * Copyright 2009-2017 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogType.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogType.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogType.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogType.java index 6796fdb8..307d3ef7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogType.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogType.java @@ -17,7 +17,7 @@ * Copyright 2009-2017 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; /** * Enumeration of dialog types. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/Dialogs.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/Dialogs.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/Dialogs.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/Dialogs.java index 51cab36f..63fcb7ab 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/Dialogs.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/Dialogs.java @@ -17,17 +17,17 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_cancel_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_cbs; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_display_error_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_display_login_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_display_progress_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_display_question_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_id; -import me.lib720.caprica.vlcj.binding.internal.libvlc_dialog_update_progress_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_cancel_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_cbs; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_display_error_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_display_login_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_display_progress_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_display_question_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_id; +import uk.co.caprica.vlcj.binding.internal.libvlc_dialog_update_progress_cb; import java.util.Collections; import java.util.HashSet; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogsApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogsApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogsApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogsApi.java index 0d829420..90a01bf1 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/DialogsApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/DialogsApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; /** * Behaviour pertaining to native dialogs. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/EqualizerApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/EqualizerApi.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/EqualizerApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/EqualizerApi.java index ea7ae3db..e9194228 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/EqualizerApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/EqualizerApi.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_equalizer_t; -import me.lib720.caprica.vlcj.player.base.Equalizer; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_equalizer_t; +import uk.co.caprica.vlcj.player.base.Equalizer; import java.util.ArrayList; import java.util.Collections; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaApi.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaApi.java index a1df59c9..2c033257 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaApi.java @@ -17,15 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; - -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaFactory; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.media.callback.CallbackMedia; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListFactory; -import me.lib720.caprica.vlcj.medialist.MediaListRef; +package uk.co.caprica.vlcj.factory; + +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaFactory; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.callback.CallbackMedia; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListFactory; +import uk.co.caprica.vlcj.medialist.MediaListRef; import java.net.URL; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaDiscovererApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaDiscovererApi.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaDiscovererApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaDiscovererApi.java index 0617933c..0807649a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaDiscovererApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaDiscovererApi.java @@ -17,19 +17,19 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; import com.sun.jna.Pointer; import com.sun.jna.Structure; import com.sun.jna.ptr.PointerByReference; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_discoverer_description_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_discoverer_t; -import me.lib720.caprica.vlcj.binding.support.size_t; -import me.lib720.caprica.vlcj.media.discoverer.MediaDiscoverer; -import me.lib720.caprica.vlcj.media.discoverer.MediaDiscovererCategory; -import me.lib720.caprica.vlcj.media.discoverer.MediaDiscovererDescription; -import me.lib720.caprica.vlcj.media.discoverer.MediaDiscovererFactory; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_discoverer_description_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_discoverer_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.lib.types.size_t; +import uk.co.caprica.vlcj.media.discoverer.MediaDiscoverer; +import uk.co.caprica.vlcj.media.discoverer.MediaDiscovererCategory; +import uk.co.caprica.vlcj.media.discoverer.MediaDiscovererDescription; +import uk.co.caprica.vlcj.media.discoverer.MediaDiscovererFactory; import java.util.ArrayList; import java.util.List; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaPlayerApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaPlayerApi.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaPlayerApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaPlayerApi.java index 41dedfe4..8e55b3c1 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaPlayerApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaPlayerApi.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; /** * Behaviour pertaining to the creation of various types of media players. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaPlayerFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaPlayerFactory.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaPlayerFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaPlayerFactory.java index 183d7c3d..a304e2fd 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/MediaPlayerFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/MediaPlayerFactory.java @@ -17,15 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; import com.sun.jna.StringArray; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.factory.discovery.NativeDiscovery; -import me.lib720.caprica.vlcj.factory.discovery.strategy.NativeDiscoveryStrategy; -import me.lib720.caprica.vlcj.support.eventmanager.TaskExecutor; -import me.lib720.caprica.vlcj.support.version.LibVlcVersion; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.factory.discovery.NativeDiscovery; +import uk.co.caprica.vlcj.factory.discovery.strategy.NativeDiscoveryStrategy; +import uk.co.caprica.vlcj.support.eventmanager.TaskExecutor; +import uk.co.caprica.vlcj.support.version.LibVlcVersion; import java.net.URL; import java.util.Collection; @@ -35,7 +35,7 @@ *

* When using VLC options/arguments to initialise the factory, generally any options that enable/disable modules (e.g. * video/audio filters) must be set via the factory instance and not when invoking - * {@link me.lib720.caprica.vlcj.player.base.MediaApi#play(URL, String...)}. However, the module-specific + * {@link uk.co.caprica.vlcj.player.base.MediaApi#play(URL, String...)}. However, the module-specific * options may be able to be passed as media options and be effective via that play call. *

* The factory will attempt to automatically discover the location of the required LibVLC native library, so it should diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/ModuleDescription.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/ModuleDescription.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/ModuleDescription.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/ModuleDescription.java index 5bbef2e9..c753c91a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/ModuleDescription.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/ModuleDescription.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; /** * Description of a module (e.g. audio/video filter). diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/NativeLibraryMappingException.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/NativeLibraryMappingException.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/NativeLibraryMappingException.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/NativeLibraryMappingException.java index 93e2a085..7c1a049a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/NativeLibraryMappingException.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/NativeLibraryMappingException.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; /** * Exception thrown if not all methods in the native library could be mapped at run-time. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/NativeLibraryPath.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/NativeLibraryPath.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/NativeLibraryPath.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/NativeLibraryPath.java index c4fc9191..63a3dea1 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/NativeLibraryPath.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/NativeLibraryPath.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; /** * Utility class to help determine the native library search path. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/RendererApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/RendererApi.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/RendererApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/RendererApi.java index 7a131316..8e9fa722 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/RendererApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/RendererApi.java @@ -17,17 +17,17 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; import com.sun.jna.Pointer; import com.sun.jna.Structure; import com.sun.jna.ptr.PointerByReference; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_rd_description_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_renderer_discoverer_t; -import me.lib720.caprica.vlcj.binding.support.size_t; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscoverer; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscovererDescription; +import uk.co.caprica.vlcj.binding.internal.libvlc_rd_description_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_renderer_discoverer_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.lib.types.size_t; +import uk.co.caprica.vlcj.player.renderer.RendererDiscoverer; +import uk.co.caprica.vlcj.player.renderer.RendererDiscovererDescription; import java.util.ArrayList; import java.util.List; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/VideoSurfaceApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/VideoSurfaceApi.java similarity index 81% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/VideoSurfaceApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/VideoSurfaceApi.java index cd9be253..dce5d39e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/VideoSurfaceApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/VideoSurfaceApi.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; -import me.lib720.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface; -import me.lib720.caprica.vlcj.player.embedded.videosurface.ComponentIdVideoSurface; -import me.lib720.caprica.vlcj.player.embedded.videosurface.ComponentVideoSurface; -import me.lib720.caprica.vlcj.player.embedded.videosurface.VideoSurfaceAdapters; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; +import uk.co.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface; +import uk.co.caprica.vlcj.player.embedded.videosurface.ComponentIdVideoSurface; +import uk.co.caprica.vlcj.player.embedded.videosurface.ComponentVideoSurface; +import uk.co.caprica.vlcj.player.embedded.videosurface.VideoSurfaceAdapters; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/NativeDiscovery.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/NativeDiscovery.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/NativeDiscovery.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/NativeDiscovery.java index 09faa6b2..55c476c1 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/NativeDiscovery.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/NativeDiscovery.java @@ -1,20 +1,20 @@ -package me.lib720.caprica.vlcj.factory.discovery; +package uk.co.caprica.vlcj.factory.discovery; import com.sun.jna.NativeLibrary; import com.sun.jna.StringArray; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.factory.discovery.strategy.LinuxNativeDiscoveryStrategy; -import me.lib720.caprica.vlcj.factory.discovery.strategy.NativeDiscoveryStrategy; -import me.lib720.caprica.vlcj.factory.discovery.strategy.OsxNativeDiscoveryStrategy; -import me.lib720.caprica.vlcj.factory.discovery.strategy.WindowsNativeDiscoveryStrategy; -import me.lib720.caprica.vlcj.support.version.LibVlcVersion; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Marker; import org.apache.logging.log4j.MarkerManager; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.factory.discovery.strategy.LinuxNativeDiscoveryStrategy; +import uk.co.caprica.vlcj.factory.discovery.strategy.NativeDiscoveryStrategy; +import uk.co.caprica.vlcj.factory.discovery.strategy.OsxNativeDiscoveryStrategy; +import uk.co.caprica.vlcj.factory.discovery.strategy.WindowsNativeDiscoveryStrategy; +import uk.co.caprica.vlcj.support.version.LibVlcVersion; import java.lang.ref.Reference; import java.lang.reflect.Field; @@ -119,7 +119,7 @@ public final boolean discover() { String path = discoveryStrategy.discover(); if (path != null) { if (discoveryStrategy.onFound(path)) { - NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName(), path); + NativeLibrary.addSearchPath(VideoLan4J.LIBVLC_NAME, path); } tryPluginPath(path, discoveryStrategy); if (tryLoadingLibrary()) { @@ -166,10 +166,10 @@ public boolean attemptFix() { Map> libs = (Map>) libraries.get(null); Map> paths = (Map>) searchPaths.get(null); - libs.remove(RuntimeUtil.getLibVlcCoreLibraryName()); - paths.remove(RuntimeUtil.getLibVlcCoreLibraryName()); - libs.remove(RuntimeUtil.getLibVlcLibraryName()); - paths.remove(RuntimeUtil.getLibVlcLibraryName()); + libs.remove(VideoLan4J.LIBVLCCORE_NAME); + paths.remove(VideoLan4J.LIBVLCCORE_NAME); + libs.remove(VideoLan4J.LIBVLC_NAME); + paths.remove(VideoLan4J.LIBVLC_NAME); return true; } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException e) { LOGGER.error(IT, "attemptFix failed", e); diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/package-info.java similarity index 78% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/package-info.java index 709e9652..2671d61c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/package-info.java @@ -2,4 +2,4 @@ * Provides components that can be used to automatically discover the location of the LibVLC native libraries in the * absence of proper run-time environment configuration. */ -package me.lib720.caprica.vlcj.factory.discovery; +package uk.co.caprica.vlcj.factory.discovery; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/ConfigurationFileDiscoveryDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/ConfigurationFileDiscoveryDirectoryProvider.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/ConfigurationFileDiscoveryDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/ConfigurationFileDiscoveryDirectoryProvider.java index 2541c752..fbebdd76 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/ConfigurationFileDiscoveryDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/ConfigurationFileDiscoveryDirectoryProvider.java @@ -17,7 +17,7 @@ * Copyright 2009-2020 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; import java.io.File; import java.io.FileNotFoundException; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DirectoryProviderDiscoveryStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DirectoryProviderDiscoveryStrategy.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DirectoryProviderDiscoveryStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DirectoryProviderDiscoveryStrategy.java index b20fb1d0..8ee95f55 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DirectoryProviderDiscoveryStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DirectoryProviderDiscoveryStrategy.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; -import me.lib720.caprica.vlcj.factory.discovery.strategy.BaseNativeDiscoveryStrategy; -import me.lib720.caprica.vlcj.factory.discovery.NativeDiscovery; +import uk.co.caprica.vlcj.factory.discovery.strategy.BaseNativeDiscoveryStrategy; +import uk.co.caprica.vlcj.factory.discovery.NativeDiscovery; import java.util.ArrayList; import java.util.Arrays; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DiscoveryDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DiscoveryDirectoryProvider.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DiscoveryDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DiscoveryDirectoryProvider.java index 91bbc0fc..c351deb4 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DiscoveryDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DiscoveryDirectoryProvider.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; /** * Specification for a component that provides a list of directories for the {@link DirectoryProviderDiscoveryStrategy} diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DiscoveryProviderPriority.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DiscoveryProviderPriority.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DiscoveryProviderPriority.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DiscoveryProviderPriority.java index e46c79e2..009a43c9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/DiscoveryProviderPriority.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/DiscoveryProviderPriority.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; /** * Priority values used by the standard {@link DiscoveryDirectoryProvider} implementations. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/JnaLibraryPathDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/JnaLibraryPathDirectoryProvider.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/JnaLibraryPathDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/JnaLibraryPathDirectoryProvider.java index 458ed980..15f1dfb3 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/JnaLibraryPathDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/JnaLibraryPathDirectoryProvider.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; import java.io.File; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/LinuxWellKnownDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/LinuxWellKnownDirectoryProvider.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/LinuxWellKnownDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/LinuxWellKnownDirectoryProvider.java index c8d90a05..4c0808d1 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/LinuxWellKnownDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/LinuxWellKnownDirectoryProvider.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; +import com.sun.jna.Platform; /** * Implementation of a directory provider that returns a list of well-known directory locations to search on Linux. @@ -51,6 +51,6 @@ public String[] directories() { @Override public boolean supported() { - return RuntimeUtil.isNix(); + return Platform.isLinux(); } } \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/OsxWellKnownDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/OsxWellKnownDirectoryProvider.java similarity index 89% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/OsxWellKnownDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/OsxWellKnownDirectoryProvider.java index d81a1af7..0aa4eee2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/OsxWellKnownDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/OsxWellKnownDirectoryProvider.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; +import com.sun.jna.Platform; /** * Implementation of a directory provider that returns a list of well-known directory locations to search on OSX. @@ -38,7 +38,7 @@ public String[] directories() { @Override public boolean supported() { - return RuntimeUtil.isMac(); + return Platform.isMac(); } } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/SystemPathDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/SystemPathDirectoryProvider.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/SystemPathDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/SystemPathDirectoryProvider.java index 2470d2c0..2c095705 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/SystemPathDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/SystemPathDirectoryProvider.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; import java.io.File; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/UserDirDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/UserDirDirectoryProvider.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/UserDirDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/UserDirDirectoryProvider.java index 6085669c..71aaa50a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/UserDirDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/UserDirDirectoryProvider.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; /** * Implementation of a directory provider that returns the current user home directory. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/WellKnownDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/WellKnownDirectoryProvider.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/WellKnownDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/WellKnownDirectoryProvider.java index 59f73ce1..550f220e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/WellKnownDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/WellKnownDirectoryProvider.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; /** * Base implementation for directory provider that searches well-known directories. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/WindowsInstallDirectoryProvider.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/WindowsInstallDirectoryProvider.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/WindowsInstallDirectoryProvider.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/WindowsInstallDirectoryProvider.java index 2d4820c0..36ef51ad 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/WindowsInstallDirectoryProvider.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/WindowsInstallDirectoryProvider.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; +import com.sun.jna.Platform; import com.sun.jna.platform.win32.Advapi32Util; import com.sun.jna.platform.win32.WinReg; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.factory.discovery.NativeDiscovery; +import uk.co.caprica.vlcj.factory.discovery.NativeDiscovery; import java.io.File; @@ -64,7 +64,7 @@ public String[] directories() { @Override public boolean supported() { - return RuntimeUtil.isWindows(); + return Platform.isWindows(); } private String getVlcInstallDir() { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/package-info.java similarity index 73% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/package-info.java index fd272184..9ba2d574 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/provider/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/provider/package-info.java @@ -4,9 +4,9 @@ * Components that provide the directories to search are loaded at run-time by the {@link java.util.ServiceLoader} * mechanism. *

- * Applications can easily provide their own {@link me.lib720.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider} + * Applications can easily provide their own {@link uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider} * implementations and register the fully-qualified classnames of those implementations in the services descriptor file * located at META-INF/services/uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider (in their * own application classpath). */ -package me.lib720.caprica.vlcj.factory.discovery.provider; +package uk.co.caprica.vlcj.factory.discovery.provider; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/BaseNativeDiscoveryStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/BaseNativeDiscoveryStrategy.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/BaseNativeDiscoveryStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/BaseNativeDiscoveryStrategy.java index f5e15a77..2b9c2800 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/BaseNativeDiscoveryStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/BaseNativeDiscoveryStrategy.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.strategy; +package uk.co.caprica.vlcj.factory.discovery.strategy; import java.io.File; import java.nio.file.Files; @@ -28,8 +28,8 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import static me.lib720.caprica.vlcj.factory.discovery.NativeDiscovery.IT; -import static me.lib720.caprica.vlcj.factory.discovery.NativeDiscovery.LOGGER; +import static uk.co.caprica.vlcj.factory.discovery.NativeDiscovery.IT; +import static uk.co.caprica.vlcj.factory.discovery.NativeDiscovery.LOGGER; /** * Base implementation of a native discovery strategy that searches a list of directories for a list of files. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/LinuxNativeDiscoveryStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/LinuxNativeDiscoveryStrategy.java similarity index 84% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/LinuxNativeDiscoveryStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/LinuxNativeDiscoveryStrategy.java index c24359c3..89adb7b9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/LinuxNativeDiscoveryStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/LinuxNativeDiscoveryStrategy.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.strategy; +package uk.co.caprica.vlcj.factory.discovery.strategy; -import me.lib720.caprica.vlcj.binding.LibC; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.factory.discovery.provider.DirectoryProviderDiscoveryStrategy; +import com.sun.jna.Platform; +import uk.co.caprica.vlcj.binding.lib.LibC; +import uk.co.caprica.vlcj.factory.discovery.provider.DirectoryProviderDiscoveryStrategy; /** * Default implementation of a native discovery strategy that searches directories on the Linux operating system. @@ -44,7 +44,7 @@ public LinuxNativeDiscoveryStrategy() { @Override public boolean supported() { - return RuntimeUtil.isNix(); + return Platform.isLinux(); } @Override diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/NativeDiscoveryStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/NativeDiscoveryStrategy.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/NativeDiscoveryStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/NativeDiscoveryStrategy.java index fbb2d2f5..212e286e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/NativeDiscoveryStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/NativeDiscoveryStrategy.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.strategy; +package uk.co.caprica.vlcj.factory.discovery.strategy; /** * Specification for a component that can locate the LibVLC native libraries at run-time. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/OsxNativeDiscoveryStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/OsxNativeDiscoveryStrategy.java similarity index 81% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/OsxNativeDiscoveryStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/OsxNativeDiscoveryStrategy.java index 1db10530..b53c6f6c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/OsxNativeDiscoveryStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/OsxNativeDiscoveryStrategy.java @@ -17,12 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.strategy; +package uk.co.caprica.vlcj.factory.discovery.strategy; import com.sun.jna.NativeLibrary; -import me.lib720.caprica.vlcj.binding.LibC; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.factory.discovery.provider.DirectoryProviderDiscoveryStrategy; +import com.sun.jna.Platform; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.lib.LibC; +import uk.co.caprica.vlcj.factory.discovery.provider.DirectoryProviderDiscoveryStrategy; /** * Default implementation of a native discovery strategy that searches directories on the OSX operating system. @@ -47,7 +48,7 @@ public OsxNativeDiscoveryStrategy() { @Override public boolean supported() { - return RuntimeUtil.isMac(); + return Platform.isMac(); } @Override @@ -63,8 +64,8 @@ public boolean onFound(String path) { * @param path */ private void forceLoadLibVlcCore(String path) { - NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcCoreLibraryName(), path); - NativeLibrary.getInstance(RuntimeUtil.getLibVlcCoreLibraryName()); + NativeLibrary.addSearchPath(VideoLan4J.LIBVLC_NAME, path); + NativeLibrary.getInstance(VideoLan4J.LIBVLCCORE_NAME); } @Override diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/WindowsNativeDiscoveryStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/WindowsNativeDiscoveryStrategy.java similarity index 84% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/WindowsNativeDiscoveryStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/WindowsNativeDiscoveryStrategy.java index 8984ee42..d400076b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/WindowsNativeDiscoveryStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/WindowsNativeDiscoveryStrategy.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.factory.discovery.strategy; +package uk.co.caprica.vlcj.factory.discovery.strategy; -import me.lib720.caprica.vlcj.binding.LibC; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.factory.discovery.provider.DirectoryProviderDiscoveryStrategy; +import com.sun.jna.Platform; +import uk.co.caprica.vlcj.binding.lib.LibC; +import uk.co.caprica.vlcj.factory.discovery.provider.DirectoryProviderDiscoveryStrategy; /** * Default implementation of a native discovery strategy that searches directories on the Windows operating system. @@ -44,7 +44,7 @@ public WindowsNativeDiscoveryStrategy() { @Override public boolean supported() { - return RuntimeUtil.isWindows(); + return Platform.isWindows(); } @Override diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/package-info.java similarity index 75% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/package-info.java index 3b825fe7..89617a31 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/discovery/strategy/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/discovery/strategy/package-info.java @@ -2,4 +2,4 @@ * Provides default implementations of components that can be used to automatically discover the location of the LibVLC * native libraries for each supported operating system. */ -package me.lib720.caprica.vlcj.factory.discovery.strategy; +package uk.co.caprica.vlcj.factory.discovery.strategy; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/package-info.java similarity index 82% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/package-info.java index ca34974c..f538888a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/factory/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/factory/package-info.java @@ -4,4 +4,4 @@ * The factory is likely the first component client applications will use, it loads the native library and creates new * media player components, */ -package me.lib720.caprica.vlcj.factory; +package uk.co.caprica.vlcj.factory; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/LogEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/LogEventListener.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/LogEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/LogEventListener.java index 9547a27b..7ad5607f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/LogEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/LogEventListener.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.log; +package uk.co.caprica.vlcj.log; /** * Specification for a component that will receive native log messages. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/LogLevel.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/LogLevel.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/LogLevel.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/LogLevel.java index 53a75366..ad55641c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/LogLevel.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/LogLevel.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.log; +package uk.co.caprica.vlcj.log; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/NativeLog.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/NativeLog.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/NativeLog.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/NativeLog.java index 15076f2c..cc8393e0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/NativeLog.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/NativeLog.java @@ -17,19 +17,19 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.log; +package uk.co.caprica.vlcj.log; import com.sun.jna.CallbackThreadInitializer; import com.sun.jna.Native; import com.sun.jna.Pointer; import com.sun.jna.ptr.IntByReference; import com.sun.jna.ptr.PointerByReference; -import me.lib720.caprica.vlcj.binding.LibC; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.NativeString; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_log_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_log_t; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_log_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_log_t; +import uk.co.caprica.vlcj.binding.lib.LibC; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.nio.ByteBuffer; import java.util.List; @@ -201,7 +201,7 @@ public void log(Pointer data, int level, libvlc_log_t ctx, String format, Pointe private String getString(PointerByReference pointer) { // The string is copied but not freed, the native string will be reclaimed when the native callback returns Pointer value = pointer.getValue(); - return value != null ? NativeString.copyNativeString(value) : null; + return value != null ? VideoLan4J.copyNativeString(value) : null; } /** diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/package-info.java similarity index 52% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/package-info.java index f41fdb40..dc04e955 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/log/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/log/package-info.java @@ -1,4 +1,4 @@ /** * Native LibVLC log component. */ -package me.lib720.caprica.vlcj.log; +package uk.co.caprica.vlcj.log; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/AudioTrackInfo.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/AudioTrackInfo.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/AudioTrackInfo.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/AudioTrackInfo.java index 1a426d1f..55abc975 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/AudioTrackInfo.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/AudioTrackInfo.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; /** * Audio track info. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/BaseApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/BaseApi.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/BaseApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/BaseApi.java index 555182ae..b6feb523 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/BaseApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/BaseApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; /** * Internal base implementation. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/EventApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/EventApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/EventApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/EventApi.java index 95de77f0..ca582e33 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/EventApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/EventApi.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; /** * Behaviour pertaining to media events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/InfoApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/InfoApi.java similarity index 78% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/InfoApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/InfoApi.java index 3965c833..18c6e22c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/InfoApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/InfoApi.java @@ -17,20 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.NativeString; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_stats_t; -import me.lib720.caprica.vlcj.player.base.State; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_stats_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.State; import java.util.List; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_media_get_duration; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_media_get_mrl; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_media_get_state; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_media_get_stats; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_media_get_type; - /** * Behaviour pertaining to media information, providing things like the media resource locator, type, state and duration * of this media. Also provides access to the various media tracks and playback statistics. @@ -49,7 +44,7 @@ public final class InfoApi extends BaseApi { * @return media resource locator */ public String mrl() { - return NativeString.copyAndFreeNativeString(libvlc_media_get_mrl(mediaInstance)); + return VideoLan4J.copyAndFreeNativeString(LibVlc.libvlc_media_get_mrl(mediaInstance)); } /** @@ -58,7 +53,7 @@ public String mrl() { * @return media type */ public MediaType type() { - return MediaType.mediaType(libvlc_media_get_type(mediaInstance)); + return MediaType.mediaType(LibVlc.libvlc_media_get_type(mediaInstance)); } /** @@ -67,7 +62,7 @@ public MediaType type() { * @return state */ public State state() { - return State.state(libvlc_media_get_state(mediaInstance)); + return State.state(LibVlc.libvlc_media_get_state(mediaInstance)); } /** @@ -76,7 +71,7 @@ public State state() { * @return duration, milliseconds */ public long duration() { - return libvlc_media_get_duration(mediaInstance); + return LibVlc.libvlc_media_get_duration(mediaInstance); } /** @@ -126,7 +121,7 @@ public List textTracks() { * @return true if the statistics were updated; false on error */ public boolean statistics(MediaStatistics mediaStatistics) { - if (libvlc_media_get_stats(mediaInstance, statsInstance) != 0) { + if (LibVlc.libvlc_media_get_stats(mediaInstance, statsInstance) != 0) { mediaStatistics.apply(statsInstance); return true; } else { @@ -140,7 +135,7 @@ public boolean statistics(MediaStatistics mediaStatistics) { * @return media statistics, or null on error */ public MediaStatistics statistics() { - if (libvlc_media_get_stats(mediaInstance, statsInstance) != 0) { + if (LibVlc.libvlc_media_get_stats(mediaInstance, statsInstance) != 0) { MediaStatistics mediaStatistics = new MediaStatistics(); mediaStatistics.apply(statsInstance); return mediaStatistics; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Media.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Media.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Media.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Media.java index a128306a..42616798 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Media.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Media.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; /** * Encapsulation of a native media instance. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaEventAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaEventAdapter.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaEventAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaEventAdapter.java index bb9cfed9..fbe0dfc3 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaEventAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaEventAdapter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.player.base.State; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.player.base.State; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaEventListener.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaEventListener.java index 464c4b05..d370c521 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaEventListener.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.player.base.State; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.player.base.State; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaFactory.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaFactory.java index a30372fb..12b201e2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaFactory.java @@ -17,12 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.media.callback.CallbackMedia; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.media.callback.CallbackMedia; import java.net.URL; @@ -233,10 +234,7 @@ public static Media duplicateMedia(libvlc_instance_t libvlcInstance, Media media } private static libvlc_media_t newMediaInstance(libvlc_instance_t libvlcInstance, URL url) { - String mrl = MediaResourceLocator.encodeMrl(url); - return MediaResourceLocator.isLocation(mrl) ? - LibVlc.libvlc_media_new_location(libvlcInstance, mrl) : - LibVlc.libvlc_media_new_path(libvlcInstance, mrl); + return VideoLan4J.getMediaInstance(libvlcInstance, url); } private static libvlc_media_t newMediaInstance(libvlc_instance_t libvlcInstance, CallbackMedia callbackMedia) { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaNativeEventManager.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaNativeEventManager.java similarity index 72% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaNativeEventManager.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaNativeEventManager.java index 2cd4afea..91b599b2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaNativeEventManager.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaNativeEventManager.java @@ -17,16 +17,16 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_manager_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.media.events.MediaEventFactory; -import me.lib720.caprica.vlcj.support.eventmanager.EventNotification; -import me.lib720.caprica.vlcj.support.eventmanager.NativeEventManager; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_manager_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.media.events.MediaEventFactory; +import uk.co.caprica.vlcj.support.eventmanager.EventNotification; +import uk.co.caprica.vlcj.support.eventmanager.NativeEventManager; final class MediaNativeEventManager extends NativeEventManager { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaOptions.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaOptions.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaOptions.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaOptions.java index ae2afe0e..db11830f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaOptions.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaOptions.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; final class MediaOptions { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaParsedStatus.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaParsedStatus.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaParsedStatus.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaParsedStatus.java index 8751f498..3f65cb4b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaParsedStatus.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaParsedStatus.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaRef.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaRef.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaRef.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaRef.java index 53ea1b53..38ff00d8 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaRef.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaRef.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; /** * An opaque reference to media. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlave.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlave.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlave.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlave.java index 353b0e8b..8370fab3 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlave.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlave.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; /** * Media slave. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlavePriority.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlavePriority.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlavePriority.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlavePriority.java index 19d10fa8..60aa65e6 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlavePriority.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlavePriority.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlaveType.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlaveType.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlaveType.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlaveType.java index 21eba531..733657db 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlaveType.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlaveType.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlaves.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlaves.java similarity index 68% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlaves.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlaves.java index 346f5bda..4f092abd 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaSlaves.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaSlaves.java @@ -17,20 +17,18 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import com.sun.jna.Pointer; import com.sun.jna.ptr.PointerByReference; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_slave_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.NativeString; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_slave_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.util.ArrayList; import java.util.List; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_media_slaves_get; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_media_slaves_release; - final class MediaSlaves { private MediaSlaves() { @@ -38,17 +36,17 @@ private MediaSlaves() { static List getMediaSlaves(libvlc_media_t media) { PointerByReference slavesPointer = new PointerByReference(); - int numberOfSlaves = libvlc_media_slaves_get(media, slavesPointer); + int numberOfSlaves = LibVlc.libvlc_media_slaves_get(media, slavesPointer); List result = new ArrayList(numberOfSlaves); if (numberOfSlaves > 0) { Pointer[] pointers = slavesPointer.getValue().getPointerArray(0, numberOfSlaves); for (Pointer pointer : pointers) { libvlc_media_slave_t slave = new libvlc_media_slave_t(pointer); - result.add(new MediaSlave(NativeString.copyNativeString(slave.psz_uri), MediaSlaveType.mediaSlaveType(slave.i_type), slave.i_priority)); + result.add(new MediaSlave(VideoLan4J.copyNativeString(slave.psz_uri), MediaSlaveType.mediaSlaveType(slave.i_type), slave.i_priority)); } } // In this case the native structure must be freed even if the count is zero - libvlc_media_slaves_release(slavesPointer.getValue(), numberOfSlaves); + LibVlc.libvlc_media_slaves_release(slavesPointer.getValue(), numberOfSlaves); return result; } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaStatistics.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaStatistics.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaStatistics.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaStatistics.java index e6fa14f9..da7fdb92 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaStatistics.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaStatistics.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_stats_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_stats_t; /** * Media statistics. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaType.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaType.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaType.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaType.java index f10972b3..2a5c2922 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MediaType.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MediaType.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Meta.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Meta.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Meta.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Meta.java index c165df30..dea71470 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Meta.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Meta.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MetaApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MetaApi.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MetaApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MetaApi.java index 0d452d4c..c009a999 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MetaApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MetaApi.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.NativeString; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.util.HashMap; import java.util.Map; @@ -83,7 +83,7 @@ public MetaData asMetaData() { } private String getMetaValue(Pointer pointer) { - return NativeString.copyAndFreeNativeString(pointer); + return VideoLan4J.copyAndFreeNativeString(pointer); } } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MetaData.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MetaData.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MetaData.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MetaData.java index 25d6eaae..e34f6a9a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/MetaData.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/MetaData.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.Collections; import java.util.HashMap; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Multiview.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Multiview.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Multiview.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Multiview.java index 6902d67c..dd5af98c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Multiview.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Multiview.java @@ -17,7 +17,7 @@ * Copyright 2009-2017 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/OptionFlag.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/OptionFlag.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/OptionFlag.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/OptionFlag.java index ec809643..8ee33f46 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/OptionFlag.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/OptionFlag.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/OptionsApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/OptionsApi.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/OptionsApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/OptionsApi.java index ad6ddb16..3d376296 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/OptionsApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/OptionsApi.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; /** * Behaviour pertaining to media options. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ParseApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ParseApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ParseApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ParseApi.java index 2c748f0b..48ac2767 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ParseApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ParseApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; /** * Behaviour pertaining to parsing of media. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ParseFlag.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ParseFlag.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ParseFlag.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ParseFlag.java index 1dda1f30..e20395ab 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ParseFlag.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ParseFlag.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Picture.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Picture.java similarity index 76% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Picture.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Picture.java index 2e89c7f9..f8e4f30b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/Picture.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/Picture.java @@ -17,18 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.binding.internal.libvlc_picture_t; -import me.lib720.caprica.vlcj.binding.support.size_tByReference; - -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_picture_get_buffer; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_picture_get_height; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_picture_get_stride; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_picture_get_time; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_picture_get_width; -import static me.lib720.caprica.vlcj.binding.LibVlc.libvlc_picture_type; +import uk.co.caprica.vlcj.binding.internal.libvlc_picture_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.lib.types.size_tByReference; /** * Picture. @@ -55,11 +49,11 @@ public final class Picture { * @param picture native picture instance */ public Picture(libvlc_picture_t picture) { - this.width = libvlc_picture_get_width(picture); - this.height = libvlc_picture_get_height(picture); - this.stride = libvlc_picture_get_stride(picture); - this.type = PictureType.pictureType(libvlc_picture_type(picture)); - this.time = libvlc_picture_get_time(picture); + this.width = LibVlc.libvlc_picture_get_width(picture); + this.height = LibVlc.libvlc_picture_get_height(picture); + this.stride = LibVlc.libvlc_picture_get_stride(picture); + this.type = PictureType.pictureType(LibVlc.libvlc_picture_type(picture)); + this.time = LibVlc.libvlc_picture_get_time(picture); this.buffer = initBuffer(picture); this.size = this.buffer.length; } @@ -77,7 +71,7 @@ public Picture(int width, int height, PictureType type, int stride, long time, b private byte[] initBuffer(libvlc_picture_t picture) { size_tByReference size = new size_tByReference(); - Pointer pointer = libvlc_picture_get_buffer(picture, size); + Pointer pointer = LibVlc.libvlc_picture_get_buffer(picture, size); return pointer.getByteArray(0, size.getValue().intValue()); } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/PictureType.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/PictureType.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/PictureType.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/PictureType.java index 4b0eb63f..acc0ccec 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/PictureType.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/PictureType.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/SlaveApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/SlaveApi.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/SlaveApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/SlaveApi.java index 4116640c..3d769a7d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/SlaveApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/SlaveApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.io.File; import java.util.List; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/SubitemApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/SubitemApi.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/SubitemApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/SubitemApi.java index 3ff7928e..2ed1b942 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/SubitemApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/SubitemApi.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_t; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListRef; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_list_t; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListRef; public final class SubitemApi extends BaseApi { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TextTrackInfo.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TextTrackInfo.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TextTrackInfo.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TextTrackInfo.java index a056a5ac..d13bc75c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TextTrackInfo.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TextTrackInfo.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; /** * Text track info. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailApi.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailApi.java index db8711e4..7232d14e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_thumbnail_request_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_thumbnail_request_t; /** * Behaviour pertaining to media thumbnails. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailRequest.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailRequest.java similarity index 90% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailRequest.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailRequest.java index 71d0f7ed..8b4fa6e9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailRequest.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailRequest.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_thumbnail_request_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_thumbnail_request_t; /** * Encapsulation of a thumbnail request. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailerSeekSpeed.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailerSeekSpeed.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailerSeekSpeed.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailerSeekSpeed.java index 6136e58b..ab7a4423 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/ThumbnailerSeekSpeed.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/ThumbnailerSeekSpeed.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackInfo.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackInfo.java similarity index 99% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackInfo.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackInfo.java index d7d0509c..c7f9e746 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackInfo.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackInfo.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; /** * Base track info. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackInformation.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackInformation.java similarity index 62% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackInformation.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackInformation.java index bcd9f1f1..f2073774 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackInformation.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackInformation.java @@ -17,18 +17,17 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import com.sun.jna.Pointer; import com.sun.jna.Structure; import com.sun.jna.ptr.PointerByReference; -import me.lib720.caprica.vlcj.binding.NativeString; -import me.lib720.caprica.vlcj.binding.internal.*; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.*; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.util.*; -import static me.lib720.caprica.vlcj.binding.LibVlc.*; - final class TrackInformation { static List getTrackInfo(libvlc_media_t media, TrackType... types) { @@ -53,7 +52,7 @@ static List getTrackInfo(libvlc_media_t media, TrackType... types) { private static List getTrackInfo(libvlc_media_t media, Set types) { PointerByReference tracksPointer = new PointerByReference(); - int numberOfTracks = libvlc_media_tracks_get(media, tracksPointer); + int numberOfTracks = LibVlc.libvlc_media_tracks_get(media, tracksPointer); List result = new ArrayList(numberOfTracks); if (numberOfTracks > 0) { Pointer[] tracks = tracksPointer.getValue().getPointerArray(0, numberOfTracks); @@ -63,7 +62,7 @@ private static List getTrackInfo(libvlc_media_t media, Set result.add(trackInfo); } } - libvlc_media_tracks_release(tracksPointer.getValue(), numberOfTracks); + LibVlc.libvlc_media_tracks_release(tracksPointer.getValue(), numberOfTracks); } return result; } @@ -106,15 +105,15 @@ private static TrackInfo getTrackInfo(Pointer pointer, Set types) { private static TrackInfo getUnknownTrackInfo(libvlc_media_track_t track) { return new UnknownTrackInfo( - track.i_codec, - track.i_original_fourcc, - track.i_id, - track.i_profile, - track.i_level, - track.i_bitrate, - NativeString.copyNativeString(track.psz_language), - NativeString.copyNativeString(track.psz_description), - codecDescription(TrackType.UNKNOWN, track.i_codec) + track.i_codec, + track.i_original_fourcc, + track.i_id, + track.i_profile, + track.i_level, + track.i_bitrate, + VideoLan4J.copyNativeString(track.psz_language), + VideoLan4J.copyNativeString(track.psz_description), + codecDescription(TrackType.UNKNOWN, track.i_codec) ); } @@ -122,28 +121,28 @@ private static TrackInfo getVideoTrackInfo(libvlc_media_track_t track) { track.u.setType(libvlc_video_track_t.class); track.u.read(); return new VideoTrackInfo( - track.i_codec, - track.i_original_fourcc, - track.i_id, - track.i_profile, - track.i_level, - track.i_bitrate, - NativeString.copyNativeString(track.psz_language), - NativeString.copyNativeString(track.psz_description), - track.u.video.i_width, - track.u.video.i_height, - track.u.video.i_sar_num, - track.u.video.i_sar_den, - track.u.video.i_frame_rate_num, - track.u.video.i_frame_rate_den, - VideoOrientation.videoOrientation(track.u.video.i_orientation), - VideoProjection.videoProjection(track.u.video.i_projection), - track.u.video.pose.f_yaw, - track.u.video.pose.f_pitch, - track.u.video.pose.f_roll, - track.u.video.pose.f_field_of_view, - null, - codecDescription(TrackType.VIDEO, track.i_codec) + track.i_codec, + track.i_original_fourcc, + track.i_id, + track.i_profile, + track.i_level, + track.i_bitrate, + VideoLan4J.copyNativeString(track.psz_language), + VideoLan4J.copyNativeString(track.psz_description), + track.u.video.i_width, + track.u.video.i_height, + track.u.video.i_sar_num, + track.u.video.i_sar_den, + track.u.video.i_frame_rate_num, + track.u.video.i_frame_rate_den, + VideoOrientation.videoOrientation(track.u.video.i_orientation), + VideoProjection.videoProjection(track.u.video.i_projection), + track.u.video.pose.f_yaw, + track.u.video.pose.f_pitch, + track.u.video.pose.f_roll, + track.u.video.pose.f_field_of_view, + null, + codecDescription(TrackType.VIDEO, track.i_codec) ); } @@ -151,16 +150,16 @@ private static TrackInfo getAudioTrackInfo(libvlc_media_track_t track) { track.u.setType(libvlc_audio_track_t.class); track.u.read(); return new AudioTrackInfo( - track.i_codec, - track.i_original_fourcc, - track.i_id, - track.i_profile, - track.i_level, - track.i_bitrate, - NativeString.copyNativeString(track.psz_language), - NativeString.copyNativeString(track.psz_description), - track.u.audio.i_channels, - track.u.audio.i_rate, + track.i_codec, + track.i_original_fourcc, + track.i_id, + track.i_profile, + track.i_level, + track.i_bitrate, + VideoLan4J.copyNativeString(track.psz_language), + VideoLan4J.copyNativeString(track.psz_description), + track.u.audio.i_channels, + track.u.audio.i_rate, codecDescription(TrackType.AUDIO, track.i_codec) ); } @@ -169,21 +168,21 @@ private static TrackInfo getTextTrackInfo(libvlc_media_track_t track) { track.u.setType(libvlc_subtitle_track_t.class); track.u.read(); return new TextTrackInfo( - track.i_codec, - track.i_original_fourcc, - track.i_id, - track.i_profile, - track.i_level, - track.i_bitrate, - NativeString.copyNativeString(track.psz_language), - NativeString.copyNativeString(track.psz_description), - NativeString.copyNativeString(track.u.subtitle.psz_encoding), - codecDescription(TrackType.TEXT, track.i_codec) + track.i_codec, + track.i_original_fourcc, + track.i_id, + track.i_profile, + track.i_level, + track.i_bitrate, + VideoLan4J.copyNativeString(track.psz_language), + VideoLan4J.copyNativeString(track.psz_description), + VideoLan4J.copyNativeString(track.u.subtitle.psz_encoding), + codecDescription(TrackType.TEXT, track.i_codec) ); } private static String codecDescription(TrackType type, int codec) { - return libvlc_media_get_codec_description(type.intValue(), codec); + return LibVlc.libvlc_media_get_codec_description(type.intValue(), codec); } private TrackInformation() { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackType.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackType.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackType.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackType.java index 7dca02d6..f0ac4c49 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/TrackType.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/TrackType.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/UnknownTrackInfo.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/UnknownTrackInfo.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/UnknownTrackInfo.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/UnknownTrackInfo.java index f04c57f5..716b3425 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/UnknownTrackInfo.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/UnknownTrackInfo.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; /** * Unknown track info. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoOrientation.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoOrientation.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoOrientation.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoOrientation.java index 5bebc39e..c11f95d0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoOrientation.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoOrientation.java @@ -17,7 +17,7 @@ * Copyright 2009-2017 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoProjection.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoProjection.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoProjection.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoProjection.java index 7ed8cae3..5765f038 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoProjection.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoProjection.java @@ -17,7 +17,7 @@ * Copyright 2009-2017 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoTrackInfo.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoTrackInfo.java similarity index 99% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoTrackInfo.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoTrackInfo.java index 1a0972eb..46bec6f5 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/VideoTrackInfo.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/VideoTrackInfo.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; /** * Video track info. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/AbstractCallbackMedia.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/AbstractCallbackMedia.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/AbstractCallbackMedia.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/AbstractCallbackMedia.java index 124b0586..60ca182d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/AbstractCallbackMedia.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/AbstractCallbackMedia.java @@ -17,16 +17,16 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.callback; +package uk.co.caprica.vlcj.media.callback; import com.sun.jna.Pointer; import com.sun.jna.ptr.LongByReference; import com.sun.jna.ptr.PointerByReference; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_read_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_seek_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_close_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_open_cb; -import me.lib720.caprica.vlcj.binding.support.size_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_close_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_open_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_read_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_seek_cb; +import uk.co.caprica.vlcj.binding.lib.types.size_t; import java.io.IOException; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/CallbackMedia.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/CallbackMedia.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/CallbackMedia.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/CallbackMedia.java index 1a49e306..93321974 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/CallbackMedia.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/CallbackMedia.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.callback; +package uk.co.caprica.vlcj.media.callback; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_open_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_read_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_seek_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_close_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_open_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_read_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_seek_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_close_cb; /** * Specification for media provided by native callbacks. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/DefaultCallbackMedia.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/DefaultCallbackMedia.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/DefaultCallbackMedia.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/DefaultCallbackMedia.java index e8800073..877e74d0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/DefaultCallbackMedia.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/DefaultCallbackMedia.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.callback; +package uk.co.caprica.vlcj.media.callback; import com.sun.jna.Pointer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/FileInputStreamMedia.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/FileInputStreamMedia.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/FileInputStreamMedia.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/FileInputStreamMedia.java index c31dc6a3..5ed70166 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/FileInputStreamMedia.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/FileInputStreamMedia.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.callback.nonseekable; +package uk.co.caprica.vlcj.media.callback.nonseekable; import java.io.File; import java.io.FileInputStream; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/NonSeekableCallbackMedia.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/NonSeekableCallbackMedia.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/NonSeekableCallbackMedia.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/NonSeekableCallbackMedia.java index cbbe9ca9..c83cb990 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/NonSeekableCallbackMedia.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/NonSeekableCallbackMedia.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.callback.nonseekable; +package uk.co.caprica.vlcj.media.callback.nonseekable; -import me.lib720.caprica.vlcj.media.callback.DefaultCallbackMedia; +import uk.co.caprica.vlcj.media.callback.DefaultCallbackMedia; /** * Base implementation for non-seekable media. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/NonSeekableInputStreamMedia.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/NonSeekableInputStreamMedia.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/NonSeekableInputStreamMedia.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/NonSeekableInputStreamMedia.java index 09b15bd5..3e1356ca 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/NonSeekableInputStreamMedia.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/NonSeekableInputStreamMedia.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.callback.nonseekable; +package uk.co.caprica.vlcj.media.callback.nonseekable; import java.io.IOException; import java.io.InputStream; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/package-info.java similarity index 62% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/package-info.java index b4d01bb1..d6c7034c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/nonseekable/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/nonseekable/package-info.java @@ -1,4 +1,4 @@ /** * Components that implement non-seekable media, e.g. just about all Java input streams. */ -package me.lib720.caprica.vlcj.media.callback.nonseekable; +package uk.co.caprica.vlcj.media.callback.nonseekable; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/package-info.java similarity index 65% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/package-info.java index 98655ecb..b5372e24 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/package-info.java @@ -1,4 +1,4 @@ /** * Components used for media that is provided by native media callback functions. */ -package me.lib720.caprica.vlcj.media.callback; +package uk.co.caprica.vlcj.media.callback; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/RandomAccessFileMedia.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/RandomAccessFileMedia.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/RandomAccessFileMedia.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/RandomAccessFileMedia.java index e21d2fc0..929c4fde 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/RandomAccessFileMedia.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/RandomAccessFileMedia.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.callback.seekable; +package uk.co.caprica.vlcj.media.callback.seekable; import java.io.File; import java.io.FileNotFoundException; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/SeekableCallbackMedia.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/SeekableCallbackMedia.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/SeekableCallbackMedia.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/SeekableCallbackMedia.java index 7244f211..af78c4a2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/SeekableCallbackMedia.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/SeekableCallbackMedia.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.callback.seekable; +package uk.co.caprica.vlcj.media.callback.seekable; -import me.lib720.caprica.vlcj.media.callback.DefaultCallbackMedia; +import uk.co.caprica.vlcj.media.callback.DefaultCallbackMedia; /** * Base implementation for seekable media. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/package-info.java similarity index 83% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/package-info.java index ca69d225..636f3a6e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/callback/seekable/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/callback/seekable/package-info.java @@ -6,4 +6,4 @@ * It may be possible to create a Java input stream that can seek, but it would require a bespoke implementation and may * need to cache the entire media data in memory. */ -package me.lib720.caprica.vlcj.media.callback.seekable; +package uk.co.caprica.vlcj.media.callback.seekable; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscoverer.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscoverer.java similarity index 89% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscoverer.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscoverer.java index e020b398..d3e2c7f6 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscoverer.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscoverer.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.discoverer; +package uk.co.caprica.vlcj.media.discoverer; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_discoverer_t; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListRef; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_discoverer_t; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListRef; /** * Media discoverer component. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererCategory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererCategory.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererCategory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererCategory.java index c5e5d1f3..c4effcec 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererCategory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererCategory.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.discoverer; +package uk.co.caprica.vlcj.media.discoverer; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererDescription.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererDescription.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererDescription.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererDescription.java index da73b7d4..73dc8f1f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererDescription.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererDescription.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.discoverer; +package uk.co.caprica.vlcj.media.discoverer; /** * Media discoverer description. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererFactory.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererFactory.java index e4e5aefa..831e788b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/MediaDiscovererFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/MediaDiscovererFactory.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.discoverer; +package uk.co.caprica.vlcj.media.discoverer; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_discoverer_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_discoverer_t; /** * Factory to create {@link MediaDiscoverer} instances. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/package-info.java similarity index 55% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/package-info.java index 31601f96..fecb8d4c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/discoverer/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/discoverer/package-info.java @@ -1,4 +1,4 @@ /** * Provides access to native media service discovery. */ -package me.lib720.caprica.vlcj.media.discoverer; +package uk.co.caprica.vlcj.media.discoverer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaDurationChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaDurationChangedEvent.java similarity index 81% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaDurationChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaDurationChangedEvent.java index 70f01bfc..c4d8a3bb 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaDurationChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaDurationChangedEvent.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.media_duration_changed; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.media_duration_changed; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; /** * Encapsulation of a media duration changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaEvent.java similarity index 81% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaEvent.java index 6f5d4849..f5de2f81 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; -import me.lib720.caprica.vlcj.support.eventmanager.BaseEvent; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.support.eventmanager.BaseEvent; /** * Base implementation for media events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaEventFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaEventFactory.java similarity index 89% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaEventFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaEventFactory.java index d241c610..2a4950ca 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaEventFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaEventFactory.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.media.Media; /** * A factory that creates a media list event instance for a native media event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaFreedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaFreedEvent.java similarity index 77% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaFreedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaFreedEvent.java index 811a7b9a..cb103ac4 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaFreedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaFreedEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_freed; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_freed; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; /** * Encapsulation of a media freed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaMetaChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaMetaChangedEvent.java similarity index 79% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaMetaChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaMetaChangedEvent.java index 979b148b..4d665b37 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaMetaChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaMetaChangedEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.media_meta_changed; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; -import me.lib720.caprica.vlcj.media.Meta; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.media_meta_changed; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.media.Meta; /** * Encapsulation of a media meta changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaParsedChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaParsedChangedEvent.java similarity index 78% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaParsedChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaParsedChangedEvent.java index bf3e8a03..b6f9081a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaParsedChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaParsedChangedEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.media_parsed_changed; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; -import me.lib720.caprica.vlcj.media.MediaParsedStatus; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.media_parsed_changed; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.media.MediaParsedStatus; /** * Encapsulation of a media parsed changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaStateChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaStateChangedEvent.java similarity index 78% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaStateChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaStateChangedEvent.java index f6fbad88..ade1d571 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaStateChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaStateChangedEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.media_state_changed; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; -import me.lib720.caprica.vlcj.player.base.State; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.media_state_changed; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.player.base.State; /** * Encapsulation of a media state changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaSubItemAddedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaSubItemAddedEvent.java similarity index 78% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaSubItemAddedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaSubItemAddedEvent.java index 19355089..53be02e7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaSubItemAddedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaSubItemAddedEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_subitem_added; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_subitem_added; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; /** * Encapsulation of a media subitem added event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaSubItemTreeAddedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaSubItemTreeAddedEvent.java similarity index 78% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaSubItemTreeAddedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaSubItemTreeAddedEvent.java index 50fc6aa8..55f25827 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaSubItemTreeAddedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaSubItemTreeAddedEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_subitemtree_added; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_subitemtree_added; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; /** * Encapsulation of a media subitem tree added event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaThumbnailGeneratedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaThumbnailGeneratedEvent.java similarity index 77% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaThumbnailGeneratedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaThumbnailGeneratedEvent.java index 037787ca..5ec07455 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/events/MediaThumbnailGeneratedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/MediaThumbnailGeneratedEvent.java @@ -17,15 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.media.events; +package uk.co.caprica.vlcj.media.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_picture_t; -import me.lib720.caprica.vlcj.binding.internal.media_thumbnail_generated; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; -import me.lib720.caprica.vlcj.media.Picture; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_picture_t; +import uk.co.caprica.vlcj.binding.internal.media_thumbnail_generated; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.media.Picture; /** * Encapsulation of a media thumbnail generated event. diff --git a/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/package-info.java new file mode 100644 index 00000000..54da1bde --- /dev/null +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/events/package-info.java @@ -0,0 +1,4 @@ +/** + * Events relating to media. + */ +package uk.co.caprica.vlcj.media.events; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/package-info.java similarity index 54% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/package-info.java index be843c9c..20afccb0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/media/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/media/package-info.java @@ -1,4 +1,4 @@ /** * Components that encapsulate media. */ -package me.lib720.caprica.vlcj.media; +package uk.co.caprica.vlcj.media; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/BaseApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/BaseApi.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/BaseApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/BaseApi.java index ee00861b..a159a58b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/BaseApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/BaseApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_list_t; /** * Internal base implementation. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/EventApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/EventApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/EventApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/EventApi.java index d9b08d6f..25322058 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/EventApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/EventApi.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; /** * Behaviour pertaining to media list events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaApi.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaApi.java index f9454717..1c0c856b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaApi.java @@ -17,15 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.NativeString; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaFactory; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.media.callback.CallbackMedia; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaFactory; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.callback.CallbackMedia; import java.net.URL; import java.util.ArrayList; @@ -221,7 +221,7 @@ public List mrls() { List result = new ArrayList(count); for (int i = 0; i < count; i++) { libvlc_media_t item = LibVlc.libvlc_media_list_item_at_index(mediaListInstance, i); - result.add(NativeString.copyAndFreeNativeString(LibVlc.libvlc_media_get_mrl(item))); + result.add(VideoLan4J.copyAndFreeNativeString(LibVlc.libvlc_media_get_mrl(item))); LibVlc.libvlc_media_release(item); } return result; @@ -243,7 +243,7 @@ public String mrl(int index) { libvlc_media_t media = LibVlc.libvlc_media_list_item_at_index(mediaListInstance, index); if (media != null) { try { - return NativeString.copyAndFreeNativeString(LibVlc.libvlc_media_get_mrl(media)); + return VideoLan4J.copyAndFreeNativeString(LibVlc.libvlc_media_get_mrl(media)); } finally { LibVlc.libvlc_media_release(media); diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaList.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaList.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaList.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaList.java index 1fa7b162..e2872407 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaList.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaList.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_list_t; /** * A media list. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListEventAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListEventAdapter.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListEventAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListEventAdapter.java index 745019b7..0e74b680 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListEventAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListEventAdapter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListEventListener.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListEventListener.java index 0504708d..466ecb1c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListEventListener.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListFactory.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListFactory.java index 33f204a7..5640c494 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListFactory.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_list_t; /** * Factory to create {@link MediaList} and {@link MediaListRef} components. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListNativeEventManager.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListNativeEventManager.java similarity index 73% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListNativeEventManager.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListNativeEventManager.java index 136e1bdc..c673e2ff 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListNativeEventManager.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListNativeEventManager.java @@ -17,16 +17,16 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_manager_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.medialist.events.MediaListEventFactory; -import me.lib720.caprica.vlcj.support.eventmanager.EventNotification; -import me.lib720.caprica.vlcj.support.eventmanager.NativeEventManager; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_manager_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.medialist.events.MediaListEventFactory; +import uk.co.caprica.vlcj.support.eventmanager.EventNotification; +import uk.co.caprica.vlcj.support.eventmanager.NativeEventManager; final class MediaListNativeEventManager extends NativeEventManager { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListRef.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListRef.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListRef.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListRef.java index 021b12dd..28bbd4f4 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/MediaListRef.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/MediaListRef.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_list_t; /** * An opaque reference to a media list. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEndReachedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEndReachedEvent.java similarity index 84% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEndReachedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEndReachedEvent.java index d83a8ce3..ebe2d05d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEndReachedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEndReachedEvent.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist.events; +package uk.co.caprica.vlcj.medialist.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; /** * Encapsulation of a media list end reached event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEvent.java index fb99c8f0..70f6c249 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist.events; +package uk.co.caprica.vlcj.medialist.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; -import me.lib720.caprica.vlcj.support.eventmanager.BaseEvent; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.support.eventmanager.BaseEvent; /** * Base implementation for media list events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEventFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEventFactory.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEventFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEventFactory.java index 391bf81d..63f29356 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListEventFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListEventFactory.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist.events; +package uk.co.caprica.vlcj.medialist.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.medialist.MediaList; /** * A factory that creates a media list event instance for a native media list event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListItemAddedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListItemAddedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListItemAddedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListItemAddedEvent.java index fa9ec2c6..f6b9f16d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListItemAddedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListItemAddedEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist.events; +package uk.co.caprica.vlcj.medialist.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_list_item_added; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_list_item_added; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; /** * Encapsulation of a media list item added event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListItemDeletedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListItemDeletedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListItemDeletedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListItemDeletedEvent.java index aa369562..333d8f11 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListItemDeletedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListItemDeletedEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist.events; +package uk.co.caprica.vlcj.medialist.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_list_item_deleted; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_list_item_deleted; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; /** * Encapsulation of a media list item deleted event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListWillAddItemEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListWillAddItemEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListWillAddItemEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListWillAddItemEvent.java index cea261bb..95405ed2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListWillAddItemEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListWillAddItemEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist.events; +package uk.co.caprica.vlcj.medialist.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_list_will_add_item; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_list_will_add_item; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; /** * Encapsulation of a media list will add item event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListWillDeleteItemEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListWillDeleteItemEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListWillDeleteItemEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListWillDeleteItemEvent.java index d56d7422..e4ea1d21 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/events/MediaListWillDeleteItemEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/MediaListWillDeleteItemEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.medialist.events; +package uk.co.caprica.vlcj.medialist.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_list_will_delete_item; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_list_will_delete_item; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; /** * Encapsulation of a media list will delete item event. diff --git a/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/package-info.java new file mode 100644 index 00000000..a50760e4 --- /dev/null +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/events/package-info.java @@ -0,0 +1,4 @@ +/** + * Media list events. + */ +package uk.co.caprica.vlcj.medialist.events; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/package-info.java similarity index 66% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/package-info.java index 82979348..5c7688bc 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/medialist/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/medialist/package-info.java @@ -1,4 +1,4 @@ /** * Provides the classes necessary to create and control native media lists. */ -package me.lib720.caprica.vlcj.medialist; +package uk.co.caprica.vlcj.medialist; diff --git a/lib-vlcj/src/main/java/uk/co/caprica/vlcj/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/package-info.java new file mode 100644 index 00000000..477a48b3 --- /dev/null +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/package-info.java @@ -0,0 +1,6 @@ +/** + * Java framework for the VLC media player. + *

+ * Most applications should start with the {@link uk.co.caprica.vlcj.factory.MediaPlayerFactory}. + */ +package uk.co.caprica.vlcj; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioApi.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioApi.java index f96d7ba3..fc742471 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioApi.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.NativeString; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_output_device_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_equalizer_t; -import me.lib720.caprica.vlcj.player.base.callback.AudioCallback; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_output_device_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_equalizer_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.callback.AudioCallback; import java.util.ArrayList; import java.util.List; @@ -61,7 +61,7 @@ public final class AudioApi extends BaseApi implements EqualizerListener { *

* The change will not be applied until the media player has been stopped and then played again. *

- * The output name comes from {@link me.lib720.caprica.vlcj.factory.AudioApi#audioOutputs()}. + * The output name comes from {@link uk.co.caprica.vlcj.factory.AudioApi#audioOutputs()}. * * @param output name of the desired audio output * @return true if the output was successfully set, otherwise false @@ -78,7 +78,7 @@ public boolean setOutput(String output) { * @return identifier of the current audio output device, or null if not available */ public String outputDevice() { - return NativeString.copyAndFreeNativeString(LibVlc.libvlc_audio_output_device_get(mediaPlayerInstance)); + return VideoLan4J.copyAndFreeNativeString(LibVlc.libvlc_audio_output_device_get(mediaPlayerInstance)); } /** @@ -86,10 +86,10 @@ public String outputDevice() { *

* The change will not be applied until the media player has been stopped and then played again. *

- * The output name comes from {@link me.lib720.caprica.vlcj.factory.AudioApi#audioOutputs()}. + * The output name comes from {@link uk.co.caprica.vlcj.factory.AudioApi#audioOutputs()}. *

* The device id comes from the {@link AudioDevice#getDeviceId()} returned by - * {@link me.lib720.caprica.vlcj.factory.AudioApi#audioOutputs()}. + * {@link uk.co.caprica.vlcj.factory.AudioApi#audioOutputs()}. * * @param output name of the desired audio output * @param outputDeviceId id of the desired audio output device @@ -109,8 +109,8 @@ public List outputDevices() { if (audioDevices != null) { libvlc_audio_output_device_t audioDevice = audioDevices; while (audioDevice != null) { - String device = NativeString.copyNativeString(audioDevice.psz_device); - String description = NativeString.copyNativeString(audioDevice.psz_description); + String device = VideoLan4J.copyNativeString(audioDevice.psz_device); + String description = VideoLan4J.copyNativeString(audioDevice.psz_description); result.add(new AudioDevice(device, description)); audioDevice = audioDevice.p_next; } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioCallbacks.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioCallbacks.java similarity index 88% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioCallbacks.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioCallbacks.java index 314304de..f8655fde 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioCallbacks.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioCallbacks.java @@ -17,17 +17,17 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.base.callback.AudioCallback; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_drain_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_flush_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_pause_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_play_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_resume_cb; -import me.lib720.caprica.vlcj.binding.internal.libvlc_audio_set_volume_cb; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.callback.AudioCallback; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_drain_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_flush_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_pause_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_play_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_resume_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_audio_set_volume_cb; /** * Encapsulation of native audio callbacks. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioChannel.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioChannel.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioChannel.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioChannel.java index 15801aaa..18b218a8 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioChannel.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioChannel.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioDevice.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioDevice.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioDevice.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioDevice.java index 1cc01fdc..8f7aad61 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/AudioDevice.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/AudioDevice.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; /** * Description of an audio output device. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/BaseApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/BaseApi.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/BaseApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/BaseApi.java index 2b60e17f..15f132bb 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/BaseApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/BaseApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_player_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_player_t; /** * Internal base implementation. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ChapterApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ChapterApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ChapterApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ChapterApi.java index 3e8144da..16255495 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ChapterApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ChapterApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.util.ArrayList; import java.util.List; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ChapterDescription.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ChapterDescription.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ChapterDescription.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ChapterDescription.java index d5fda45c..55f4b103 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ChapterDescription.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ChapterDescription.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; /** * Chapter description. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ControlsApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ControlsApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ControlsApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ControlsApi.java index 306a7cec..550919b6 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ControlsApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ControlsApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; /** * Behaviour pertaining to media player controls. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/DeinterlaceMode.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/DeinterlaceMode.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/DeinterlaceMode.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/DeinterlaceMode.java index 8105cc17..332b6c03 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/DeinterlaceMode.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/DeinterlaceMode.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Descriptions.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Descriptions.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Descriptions.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Descriptions.java index 4090068d..dbe4a121 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Descriptions.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Descriptions.java @@ -17,17 +17,17 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import com.sun.jna.Pointer; import com.sun.jna.Structure; import com.sun.jna.ptr.PointerByReference; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.NativeString; -import me.lib720.caprica.vlcj.binding.internal.libvlc_chapter_description_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_player_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_title_description_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_track_description_t; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_chapter_description_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_player_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_title_description_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_track_description_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.util.ArrayList; import java.util.List; @@ -39,7 +39,7 @@ static List titleDescriptions(libvlc_media_player_t mediaPlaye PointerByReference titles = new PointerByReference(); int titleCount = LibVlc.libvlc_media_player_get_full_title_descriptions(mediaPlayerInstance, titles); if (titleCount != -1) { - result = new ArrayList(titleCount); + result = new ArrayList<>(titleCount); Pointer[] pointers = titles.getValue().getPointerArray(0, titleCount); for (Pointer pointer : pointers) { // WATERMeDIA PATCH - start @@ -47,11 +47,11 @@ static List titleDescriptions(libvlc_media_player_t mediaPlaye // libvlc_title_description_t titleDescription = ReflectTool.invokeWithReturn("newInstance", Structure.class, null, libvlc_title_description_t.class, pointer); // WATERMeDIA PATCH - end titleDescription.read(); - result.add(new TitleDescription(titleDescription.i_duration, NativeString.copyNativeString(titleDescription.psz_name), titleDescription.b_menu != 0)); + result.add(new TitleDescription(titleDescription.i_duration, VideoLan4J.copyNativeString(titleDescription.psz_name), titleDescription.b_menu != 0)); } LibVlc.libvlc_title_descriptions_release(titles.getValue(), titleCount); } else { - result = new ArrayList(0); + result = new ArrayList<>(0); } return result; @@ -70,11 +70,11 @@ static List chapterDescriptions(libvlc_media_player_t mediaP // libvlc_chapter_description_t chapterDescription = ReflectTool.invokeWithReturn("newInstance", Structure.class, null, libvlc_chapter_description_t.class, pointer); // WATERMeDIA PATCH - end chapterDescription.read(); - result.add(new ChapterDescription(chapterDescription.i_time_offset, chapterDescription.i_duration, NativeString.copyNativeString(chapterDescription.psz_name))); + result.add(new ChapterDescription(chapterDescription.i_time_offset, chapterDescription.i_duration, VideoLan4J.copyNativeString(chapterDescription.psz_name))); } LibVlc.libvlc_chapter_descriptions_release(chapters.getValue(), chapterCount); } else { - result = new ArrayList(0); + result = new ArrayList<>(0); } return result; } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EmbededMediaPlayerEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EmbededMediaPlayerEventListener.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EmbededMediaPlayerEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EmbededMediaPlayerEventListener.java index 51c93984..bf1fffb8 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EmbededMediaPlayerEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EmbededMediaPlayerEventListener.java @@ -1,7 +1,7 @@ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.TrackType; public class EmbededMediaPlayerEventListener implements MediaPlayerEventListener { @Override diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Equalizer.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Equalizer.java similarity index 99% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Equalizer.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Equalizer.java index 5aa6d8da..0ed10c65 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Equalizer.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Equalizer.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.ArrayList; import java.util.Arrays; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EqualizerListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EqualizerListener.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EqualizerListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EqualizerListener.java index f0b44fcf..ab64fccf 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EqualizerListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EqualizerListener.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; /** * Specification for a component interested in receiving equalizer state change notifications. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EventApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EventApi.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EventApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EventApi.java index 6f17c97e..05448997 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/EventApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/EventApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.media.MediaEventListener; -import me.lib720.caprica.vlcj.player.base.events.MediaPlayerEvent; +import uk.co.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.player.base.events.MediaPlayerEvent; /** * Behaviour pertaining to media player events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LibVlcConst.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LibVlcConst.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LibVlcConst.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LibVlcConst.java index 0438dd61..bdee573c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LibVlcConst.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LibVlcConst.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; /** * Various constants defined by LibVLC, useful for example to set ranges for slider components. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Logo.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Logo.java similarity index 99% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Logo.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Logo.java index 5cbbe385..6fe746e8 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Logo.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Logo.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.awt.image.RenderedImage; import java.io.File; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LogoApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LogoApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LogoApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LogoApi.java index a38a94ea..8426697d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LogoApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LogoApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_video_logo_option_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_video_logo_option_t; import javax.imageio.ImageIO; import java.awt.image.RenderedImage; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LogoPosition.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LogoPosition.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LogoPosition.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LogoPosition.java index 2db3983c..1e6c0188 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/LogoPosition.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/LogoPosition.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Marquee.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Marquee.java similarity index 99% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Marquee.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Marquee.java index 2249b879..3a91a200 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Marquee.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Marquee.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MarqueeApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MarqueeApi.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MarqueeApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MarqueeApi.java index 9dbc63d9..de98b360 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MarqueeApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MarqueeApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_video_marquee_option_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_video_marquee_option_t; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MarqueePosition.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MarqueePosition.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MarqueePosition.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MarqueePosition.java index e9e1399c..2015be37 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MarqueePosition.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MarqueePosition.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaApi.java index 4ef46750..96e032ca 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaApi.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; - -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.media.EventApi; -import me.lib720.caprica.vlcj.media.SubitemApi; -import me.lib720.caprica.vlcj.media.*; -import me.lib720.caprica.vlcj.media.callback.CallbackMedia; +package uk.co.caprica.vlcj.player.base; + +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.media.EventApi; +import uk.co.caprica.vlcj.media.SubitemApi; +import uk.co.caprica.vlcj.media.*; +import uk.co.caprica.vlcj.media.callback.CallbackMedia; import java.net.URL; import java.util.ArrayList; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayer.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayer.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayer.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayer.java index 47ef8f1a..54bc5f8d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayer.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayer.java @@ -19,14 +19,14 @@ // Was 2500 lines -package me.lib720.caprica.vlcj.player.base; - -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_player_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_renderer_item_t; -import me.lib720.caprica.vlcj.player.renderer.RendererItem; -import me.lib720.caprica.vlcj.support.eventmanager.TaskExecutor; +package uk.co.caprica.vlcj.player.base; + +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_player_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_renderer_item_t; +import uk.co.caprica.vlcj.player.renderer.RendererItem; +import uk.co.caprica.vlcj.support.eventmanager.TaskExecutor; /** * Base media player implementation. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerEventAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerEventAdapter.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerEventAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerEventAdapter.java index f368f997..32f56679 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerEventAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerEventAdapter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.TrackType; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerEventListener.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerEventListener.java index 5000617c..ff969585 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerEventListener.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.TrackType; /** * Specification for a component that is interested in receiving event notifications from the media player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerLatch.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerLatch.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerLatch.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerLatch.java index 4e7a30d9..839f8944 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerLatch.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerLatch.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerNativeEventManager.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerNativeEventManager.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerNativeEventManager.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerNativeEventManager.java index 1bc8ba24..3368e862 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerNativeEventManager.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerNativeEventManager.java @@ -17,17 +17,17 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.base.events.MediaPlayerEventFactory; -import me.lib720.caprica.vlcj.support.eventmanager.EventNotification; -import me.lib720.caprica.vlcj.support.eventmanager.NativeEventManager; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_manager_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.events.MediaPlayerEventFactory; +import uk.co.caprica.vlcj.support.eventmanager.EventNotification; +import uk.co.caprica.vlcj.support.eventmanager.NativeEventManager; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_manager_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; /** * Native event manager implementation for media player events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerReadyEventHandler.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerReadyEventHandler.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerReadyEventHandler.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerReadyEventHandler.java index 372f39fe..140ef400 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerReadyEventHandler.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerReadyEventHandler.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.player.base.events.MediaPlayerEventFactory; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.player.base.events.MediaPlayerEventFactory; /** * Event listener implementation that waits for the first position changed event and raises a synthetic media player diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerRole.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerRole.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerRole.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerRole.java index cd985e95..fa3e63e4 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MediaPlayerRole.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MediaPlayerRole.java @@ -17,7 +17,7 @@ * Copyright 2009-2017 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MenuApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MenuApi.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MenuApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MenuApi.java index 41a596b7..f87594cc 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/MenuApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/MenuApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_navigate_mode_e; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_navigate_mode_e; /** * Behaviour pertaining to the menu (e.g. DVD and Bluray menus). diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/OneShotMediaPlayerEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/OneShotMediaPlayerEventListener.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/OneShotMediaPlayerEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/OneShotMediaPlayerEventListener.java index 4c317250..a09b9367 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/OneShotMediaPlayerEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/OneShotMediaPlayerEventListener.java @@ -17,7 +17,7 @@ * Copyright 2009-2020 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; /** * Base implementation for a component that supports "one-shot" event listeners, i.e. event listeners attached to a diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Position.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Position.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Position.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Position.java index a365d9f6..b1adacaa 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Position.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Position.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/RepeatPlayEventHandler.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/RepeatPlayEventHandler.java similarity index 90% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/RepeatPlayEventHandler.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/RepeatPlayEventHandler.java index cc6b57a3..10fb6ebd 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/RepeatPlayEventHandler.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/RepeatPlayEventHandler.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.VideoLan4J; /** * Event listener implementation that handles auto-repeat. @@ -33,7 +33,7 @@ final class RepeatPlayEventHandler extends MediaPlayerEventAdapter { @Override public void finished(MediaPlayer mediaPlayer) { if (mediaPlayer.controls().getRepeat()) { - VideoLan4J.native$checkClassLoader(mediaPlayer.getClassLoader()); // WATERMeDIA PATCH + VideoLan4J.checkClassLoader(mediaPlayer.getClassLoader()); // WATERMeDIA PATCH // It is not allowed to call back into LibVLC from this native thread, so offload to a task to repeat play mediaPlayer.submit(new ReplayMediaTask(mediaPlayer)); } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ResetMediaEventHandler.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ResetMediaEventHandler.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ResetMediaEventHandler.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ResetMediaEventHandler.java index 09f0e53d..a0f9c261 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/ResetMediaEventHandler.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/ResetMediaEventHandler.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.VideoLan4J; /** * Event listener implementation that "resets" the media after it has finished playing. @@ -34,7 +34,7 @@ final class ResetMediaEventHandler extends MediaPlayerEventAdapter { @Override public void finished(MediaPlayer mediaPlayer) { - VideoLan4J.native$checkClassLoader(mediaPlayer.getClassLoader()); // WATERMeDIA PATCH + VideoLan4J.checkClassLoader(mediaPlayer.getClassLoader()); // WATERMeDIA PATCH // It is not allowed to call back into LibVLC from this native thread, so offload to a task to repeat play mediaPlayer.submit(new ResetMediaTask(mediaPlayer)); } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/RoleApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/RoleApi.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/RoleApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/RoleApi.java index 0b78acb0..0e3a571c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/RoleApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/RoleApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; /** * Behaviour pertaining to the role of this media player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SnapshotApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SnapshotApi.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SnapshotApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SnapshotApi.java index ea00e4e1..7ea34c89 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SnapshotApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SnapshotApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.waiter.BeforeWaiterAbortedException; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.waiter.BeforeWaiterAbortedException; import javax.imageio.ImageIO; import java.awt.image.BufferedImage; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/State.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/State.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/State.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/State.java index 35e71127..fbda1f3d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/State.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/State.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/StatusApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/StatusApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/StatusApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/StatusApi.java index 8eed0338..bcef477c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/StatusApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/StatusApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; /** * Behaviour pertaining to the status of the media player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SubitemApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SubitemApi.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SubitemApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SubitemApi.java index 54803207..11bb0f8d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SubitemApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SubitemApi.java @@ -17,16 +17,16 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.medialist.MediaListRef; -import me.lib720.caprica.vlcj.player.list.ControlsApi; -import me.lib720.caprica.vlcj.player.list.EventApi; -import me.lib720.caprica.vlcj.player.list.ListApi; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; -import me.lib720.caprica.vlcj.player.list.StatusApi; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.medialist.MediaListRef; +import uk.co.caprica.vlcj.player.list.ControlsApi; +import uk.co.caprica.vlcj.player.list.EventApi; +import uk.co.caprica.vlcj.player.list.ListApi; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.player.list.StatusApi; /** * Behaviour pertaining to media subitems. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SubpictureApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SubpictureApi.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SubpictureApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SubpictureApi.java index d2cbd709..15a422b2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SubpictureApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SubpictureApi.java @@ -17,13 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.NativeUri; -import me.lib720.caprica.vlcj.media.MediaSlavePriority; -import me.lib720.caprica.vlcj.media.MediaSlaveType; -import me.lib720.caprica.vlcj.media.SlaveApi; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.media.MediaSlavePriority; +import uk.co.caprica.vlcj.media.MediaSlaveType; +import uk.co.caprica.vlcj.media.SlaveApi; import java.io.File; import java.util.List; @@ -111,7 +110,7 @@ public void setDelay(long delay) { * @return true if successful; false on error */ public boolean setSubTitleFile(String subTitleFileName) { - return setSubTitleUri(NativeUri.encodeFileUri(subTitleFileName)); + return setSubTitleUri(subTitleFileName); } /** @@ -125,7 +124,7 @@ public boolean setSubTitleFile(String subTitleFileName) { * @return true if successful; false on error */ public boolean setSubTitleFile(File subTitleFile) { - return setSubTitleUri(NativeUri.encodeFileUri(subTitleFile.getAbsolutePath())); + return setSubTitleUri(subTitleFile.getAbsolutePath()); } /** diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SynchronisedOneShotMediaPlayerEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SynchronisedOneShotMediaPlayerEventListener.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SynchronisedOneShotMediaPlayerEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SynchronisedOneShotMediaPlayerEventListener.java index f5847b87..947202d0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/SynchronisedOneShotMediaPlayerEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/SynchronisedOneShotMediaPlayerEventListener.java @@ -17,7 +17,7 @@ * Copyright 2009-2020 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.concurrent.CountDownLatch; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TeletextApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TeletextApi.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TeletextApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TeletextApi.java index 1dabe524..8c436ae7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TeletextApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TeletextApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; /** * Behaviour pertaining to teletext. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TeletextKey.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TeletextKey.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TeletextKey.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TeletextKey.java index 12f42fe6..ffe4788c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TeletextKey.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TeletextKey.java @@ -17,7 +17,7 @@ * Copyright 2009-2017 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TitleApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TitleApi.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TitleApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TitleApi.java index 5b3a381e..77ad7462 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TitleApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TitleApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.util.List; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TitleDescription.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TitleDescription.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TitleDescription.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TitleDescription.java index efec0b69..2d159944 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TitleDescription.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TitleDescription.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; /** * Title description. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TrackDescription.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TrackDescription.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TrackDescription.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TrackDescription.java index 1a45b2f1..458c5e2f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/TrackDescription.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/TrackDescription.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; /** * Description of a track, e.g. a video or audio track. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/VideoApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/VideoApi.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/VideoApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/VideoApi.java index 2457b2f3..5044b839 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/VideoApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/VideoApi.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; import com.sun.jna.ptr.IntByReference; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.NativeString; -import me.lib720.caprica.vlcj.binding.internal.libvlc_video_adjust_option_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.libvlc_video_adjust_option_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.awt.*; import java.util.List; @@ -185,7 +185,7 @@ public void setVideoTitleDisplay(Position position, int timeout) { * @return aspect ratio */ public String aspectRatio() { - return NativeString.copyAndFreeNativeString(LibVlc.libvlc_video_get_aspect_ratio(mediaPlayerInstance)); + return VideoLan4J.copyAndFreeNativeString(LibVlc.libvlc_video_get_aspect_ratio(mediaPlayerInstance)); } /** @@ -221,7 +221,7 @@ public void setScale(float factor) { * @return crop geometry */ public String cropGeometry() { - return NativeString.copyAndFreeNativeString(LibVlc.libvlc_video_get_crop_geometry(mediaPlayerInstance)); + return VideoLan4J.copyAndFreeNativeString(LibVlc.libvlc_video_get_crop_geometry(mediaPlayerInstance)); } /** diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Viewpoint.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Viewpoint.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Viewpoint.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Viewpoint.java index 9caa3c49..cfb6f0ac 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/Viewpoint.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/Viewpoint.java @@ -18,10 +18,10 @@ */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_video_viewpoint_t; /** * Viewpoint for 360 degree video. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/WaitForSnapshot.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/WaitForSnapshot.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/WaitForSnapshot.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/WaitForSnapshot.java index 4dd64970..650912c0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/WaitForSnapshot.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/WaitForSnapshot.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; -import me.lib720.caprica.vlcj.waiter.mediaplayer.SnapshotTakenWaiter; +import uk.co.caprica.vlcj.waiter.mediaplayer.SnapshotTakenWaiter; import java.io.File; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/AudioCallback.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/AudioCallback.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/AudioCallback.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/AudioCallback.java index 9883bc70..4d210610 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/AudioCallback.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/AudioCallback.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.callback; +package uk.co.caprica.vlcj.player.base.callback; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Specification for an audio callback. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/AudioCallbackAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/AudioCallbackAdapter.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/AudioCallbackAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/AudioCallbackAdapter.java index 9ac24f38..624fdb74 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/AudioCallbackAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/AudioCallbackAdapter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.callback; +package uk.co.caprica.vlcj.player.base.callback; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of an {@link AudioCallback}. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/DefaultAudioCallbackAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/DefaultAudioCallbackAdapter.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/DefaultAudioCallbackAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/DefaultAudioCallbackAdapter.java index 256d4e8a..3bb14376 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/DefaultAudioCallbackAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/DefaultAudioCallbackAdapter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.callback; +package uk.co.caprica.vlcj.player.base.callback; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Default implementation of an {@link AudioCallbackAdapter}. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/package-info.java similarity index 66% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/package-info.java index 12311d76..0de5e98b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/callback/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/callback/package-info.java @@ -2,4 +2,4 @@ * Provides the classes necessary to support direct access to the native audio * samples buffer. */ -package me.lib720.caprica.vlcj.player.base.callback; +package uk.co.caprica.vlcj.player.base.callback; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerAudioDeviceEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerAudioDeviceEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerAudioDeviceEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerAudioDeviceEvent.java index a6a50f1a..727c7b45 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerAudioDeviceEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerAudioDeviceEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_audio_device; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_audio_device; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player audio device event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerAudioVolumeEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerAudioVolumeEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerAudioVolumeEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerAudioVolumeEvent.java index 9d63b6dc..e04af1d9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerAudioVolumeEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerAudioVolumeEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_audio_volume; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_audio_volume; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player audio volume event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerBackwardEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerBackwardEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerBackwardEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerBackwardEvent.java index c9de8927..f5cd05ee 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerBackwardEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerBackwardEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player backward event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerBufferingEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerBufferingEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerBufferingEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerBufferingEvent.java index 636c056e..1454758e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerBufferingEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerBufferingEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_buffering; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_buffering; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player buffering event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerChapterChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerChapterChangedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerChapterChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerChapterChangedEvent.java index b3457848..2194e2de 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerChapterChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerChapterChangedEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_chapter_changed; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_chapter_changed; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player chapter changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerCorkedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerCorkedEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerCorkedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerCorkedEvent.java index 10eca067..ada544b5 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerCorkedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerCorkedEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player corked event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESAddedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESAddedEvent.java similarity index 79% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESAddedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESAddedEvent.java index 0bdd7693..19fc6d0d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESAddedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESAddedEvent.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_es_changed; -import me.lib720.caprica.vlcj.media.TrackType; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_es_changed; +import uk.co.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player elementary stream added event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESDeletedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESDeletedEvent.java similarity index 79% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESDeletedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESDeletedEvent.java index 262891fd..fdf4c4e5 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESDeletedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESDeletedEvent.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_es_changed; -import me.lib720.caprica.vlcj.media.TrackType; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_es_changed; +import uk.co.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player elementary stream deleted event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESSelectedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESSelectedEvent.java similarity index 79% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESSelectedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESSelectedEvent.java index 001a1249..042b44e9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerESSelectedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerESSelectedEvent.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_es_changed; -import me.lib720.caprica.vlcj.media.TrackType; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_es_changed; +import uk.co.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player elementary stream selected event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEncounteredErrorEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEncounteredErrorEvent.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEncounteredErrorEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEncounteredErrorEvent.java index 21c5d1d7..ec998a8c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEncounteredErrorEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEncounteredErrorEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player encountered error event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEndReachedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEndReachedEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEndReachedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEndReachedEvent.java index eda3279c..b03a02ef 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEndReachedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEndReachedEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player end reached event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEvent.java similarity index 84% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEvent.java index c380018b..76f628ae 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEvent.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.support.eventmanager.EventNotification; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.support.eventmanager.EventNotification; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Base implementation for media list player events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEventFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEventFactory.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEventFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEventFactory.java index 48deff0a..be4cf0ea 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerEventFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerEventFactory.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * A factory that creates a media player event instance for a native media player event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerForwardEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerForwardEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerForwardEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerForwardEvent.java index 5ab9a777..62481418 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerForwardEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerForwardEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player forward event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerLengthChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerLengthChangedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerLengthChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerLengthChangedEvent.java index b6a055fa..325f9bc7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerLengthChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerLengthChangedEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_length_changed; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_length_changed; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player length changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerMediaChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerMediaChangedEvent.java similarity index 74% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerMediaChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerMediaChangedEvent.java index 18a30829..a431e833 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerMediaChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerMediaChangedEvent.java @@ -17,15 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; - -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_media_changed; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +package uk.co.caprica.vlcj.player.base.events; + +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_player_media_changed; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player media changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerMutedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerMutedEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerMutedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerMutedEvent.java index dae25dbd..5c5b59fa 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerMutedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerMutedEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player muted event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerNothingSpecialEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerNothingSpecialEvent.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerNothingSpecialEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerNothingSpecialEvent.java index 4f353895..d154a389 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerNothingSpecialEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerNothingSpecialEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player nothing special event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerOpeningEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerOpeningEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerOpeningEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerOpeningEvent.java index fad94618..a0a6e25b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerOpeningEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerOpeningEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player opening event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPausableChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPausableChangedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPausableChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPausableChangedEvent.java index 827001d5..fc1c8449 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPausableChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPausableChangedEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_pausable_changed; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_pausable_changed; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player pausable changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPausedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPausedEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPausedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPausedEvent.java index 426c4e18..1275c8cf 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPausedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPausedEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player paused changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPlayingEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPlayingEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPlayingEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPlayingEvent.java index 18d3b69d..8782db3b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPlayingEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPlayingEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player playing event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPositionChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPositionChangedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPositionChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPositionChangedEvent.java index 155de48b..032cf1ee 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerPositionChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerPositionChangedEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_position_changed; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_position_changed; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player position changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerReadyEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerReadyEvent.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerReadyEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerReadyEvent.java index b6bd0769..bdc4cb5f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerReadyEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerReadyEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player ready event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerScrambledChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerScrambledChangedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerScrambledChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerScrambledChangedEvent.java index a7baec09..4a2fa353 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerScrambledChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerScrambledChangedEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_scrambled_changed; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_scrambled_changed; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player scrambled changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerSeekableChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerSeekableChangedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerSeekableChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerSeekableChangedEvent.java index f9f1a7fe..73fe6557 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerSeekableChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerSeekableChangedEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_seekable_changed; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_seekable_changed; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player seekable changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerSnapshotTakenEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerSnapshotTakenEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerSnapshotTakenEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerSnapshotTakenEvent.java index 3d665792..f53e0e5c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerSnapshotTakenEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerSnapshotTakenEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_snapshot_taken; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_snapshot_taken; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player snapshot taken event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerStoppedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerStoppedEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerStoppedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerStoppedEvent.java index b8ca5c59..4c728e01 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerStoppedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerStoppedEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player stopped event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerTimeChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerTimeChangedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerTimeChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerTimeChangedEvent.java index ede561be..90f7828e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerTimeChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerTimeChangedEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_time_changed; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_time_changed; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player time changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerTitleChangedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerTitleChangedEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerTitleChangedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerTitleChangedEvent.java index f6ec6b5e..21773d7d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerTitleChangedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerTitleChangedEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_title_changed; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_title_changed; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player title changed event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerUncorkedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerUncorkedEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerUncorkedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerUncorkedEvent.java index 7cdf4aa7..f80219a4 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerUncorkedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerUncorkedEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player uncorked event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerUnmutedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerUnmutedEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerUnmutedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerUnmutedEvent.java index 1afb0e4e..a2a01cd7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerUnmutedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerUnmutedEvent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player unmuted event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerVoutEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerVoutEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerVoutEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerVoutEvent.java index 95a685a6..1b2ae48d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/MediaPlayerVoutEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/MediaPlayerVoutEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.media_player_vout; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.media_player_vout; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; /** * Encapsulation of a media player video output created event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/package-info.java similarity index 60% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/package-info.java index dd811617..b660d3ea 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/events/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/events/package-info.java @@ -1,4 +1,4 @@ /** * Components that implement full-screen behaviour for media players. */ -package me.lib720.caprica.vlcj.player.base.events; +package uk.co.caprica.vlcj.player.base.events; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/package-info.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/package-info.java index 0b611ee5..483626a8 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/base/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/base/package-info.java @@ -2,4 +2,4 @@ * This is the main package for vlcj media player applications, providing the classes necessary to create and control * native media players and associated resources. */ -package me.lib720.caprica.vlcj.player.base; +package uk.co.caprica.vlcj.player.base; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioListPlayerComponent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioListPlayerComponent.java similarity index 90% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioListPlayerComponent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioListPlayerComponent.java index d0de8756..52818a05 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioListPlayerComponent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioListPlayerComponent.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListRef; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListRef; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; /** * Implementation of an audio list player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioListPlayerComponentBase.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioListPlayerComponentBase.java similarity index 84% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioListPlayerComponentBase.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioListPlayerComponentBase.java index f83ed338..607c3b8e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioListPlayerComponentBase.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioListPlayerComponentBase.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayerEventListener; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayerEventListener; /** * Base implementation for an audio list player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioPlayerComponent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioPlayerComponent.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioPlayerComponent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioPlayerComponent.java index e11c2309..86c9ea4f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioPlayerComponent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioPlayerComponent.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of an audio player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioPlayerComponentBase.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioPlayerComponentBase.java similarity index 88% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioPlayerComponentBase.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioPlayerComponentBase.java index 2cb07533..d861aee4 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/AudioPlayerComponentBase.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/AudioPlayerComponentBase.java @@ -17,18 +17,18 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; - -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventListener; -import me.lib720.caprica.vlcj.media.MediaParsedStatus; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.media.Meta; -import me.lib720.caprica.vlcj.media.Picture; -import me.lib720.caprica.vlcj.media.TrackType; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; -import me.lib720.caprica.vlcj.player.base.State; +package uk.co.caprica.vlcj.player.component; + +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.media.MediaParsedStatus; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.Meta; +import uk.co.caprica.vlcj.media.Picture; +import uk.co.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.State; /** * Base implementation of an audio player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaListPlayerComponent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaListPlayerComponent.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaListPlayerComponent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaListPlayerComponent.java index f5b45d8e..d110a04e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaListPlayerComponent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaListPlayerComponent.java @@ -17,16 +17,16 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; - -import me.lib720.caprica.vlcj.player.component.callback.CallbackImagePainter; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListRef; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; +package uk.co.caprica.vlcj.player.component; + +import uk.co.caprica.vlcj.player.component.callback.CallbackImagePainter; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListRef; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaListPlayerComponentBase.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaListPlayerComponentBase.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaListPlayerComponentBase.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaListPlayerComponentBase.java index d79be27a..7655c3a6 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaListPlayerComponentBase.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaListPlayerComponentBase.java @@ -17,18 +17,18 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; - -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.player.component.callback.CallbackImagePainter; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayerEventListener; +package uk.co.caprica.vlcj.player.component; + +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.player.component.callback.CallbackImagePainter; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayerEventListener; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaPlayerComponent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaPlayerComponent.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaPlayerComponent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaPlayerComponent.java index 30c11f7b..3dfb130b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/CallbackMediaPlayerComponent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/CallbackMediaPlayerComponent.java @@ -17,18 +17,18 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; - -import me.lib720.caprica.vlcj.VideoLan4J; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.component.callback.CallbackImagePainter; -import me.lib720.caprica.vlcj.player.component.callback.ScaledCallbackImagePainter; -import me.lib720.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.*; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.format.RV32BufferFormat; +package uk.co.caprica.vlcj.player.component; + +import com.sun.jna.Platform; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.component.callback.CallbackImagePainter; +import uk.co.caprica.vlcj.player.component.callback.ScaledCallbackImagePainter; +import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.*; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.format.RV32BufferFormat; import javax.swing.*; import java.awt.*; @@ -164,13 +164,13 @@ public CallbackMediaPlayerComponent(MediaPlayerFactory mediaPlayerFactory, FullS return new BufferFormatCallback() { @Override public void allocatedBuffers(ByteBuffer[] buffers) { - VideoLan4J.native$checkClassLoader(mediaPlayer.getClassLoader()); + VideoLan4J.checkClassLoader(mediaPlayer.getClassLoader()); cb.allocatedBuffers(buffers); } @Override public BufferFormat getBufferFormat(int sourceWidth, int sourceHeight) { - VideoLan4J.native$checkClassLoader(mediaPlayer.getClassLoader()); + VideoLan4J.checkClassLoader(mediaPlayer.getClassLoader()); return cb.getBufferFormat(sourceWidth, sourceHeight); } }; @@ -178,7 +178,7 @@ public BufferFormat getBufferFormat(int sourceWidth, int sourceHeight) { private RenderCallback init$buildClassLoaderSafeCallback(RenderCallback cb) { return (mediaPlayer, nativeBuffers, bufferFormat) -> { - VideoLan4J.native$checkClassLoader(mediaPlayer.getClassLoader()); + VideoLan4J.checkClassLoader(mediaPlayer.getClassLoader()); cb.display(mediaPlayer, nativeBuffers, bufferFormat); }; } @@ -276,7 +276,7 @@ private MediaPlayerFactory initMediaPlayerFactory(MediaPlayerFactory mediaPlayer private void initInputEvents(InputEvents inputEvents) { if (inputEvents == null) { - inputEvents = RuntimeUtil.isNix() || RuntimeUtil.isMac() ? InputEvents.DEFAULT : InputEvents.DISABLE_NATIVE; + inputEvents = Platform.isLinux() || Platform.isMac() ? InputEvents.DEFAULT : InputEvents.DISABLE_NATIVE; } switch (inputEvents) { case NONE: diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponent.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponent.java index 7c1f87d7..29bcfc5f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; - -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListRef; -import me.lib720.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; +package uk.co.caprica.vlcj.player.component; + +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListRef; +import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponentBase.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponentBase.java similarity index 84% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponentBase.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponentBase.java index a3a4f7d5..1aad8c02 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponentBase.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaListPlayerComponentBase.java @@ -17,15 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; - -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListEventListener; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayerEventListener; +package uk.co.caprica.vlcj.player.component; + +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListEventListener; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayerEventListener; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaPlayerComponent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaPlayerComponent.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaPlayerComponent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaPlayerComponent.java index 6c73d3a7..a23a1352 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaPlayerComponent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaPlayerComponent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import com.sun.jna.Platform; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; import java.awt.*; @@ -135,7 +135,7 @@ private Component initVideoSurfaceComponent(Component videoSurfaceComponent) { private void initInputEvents(InputEvents inputEvents) { if (inputEvents == null) { - inputEvents = RuntimeUtil.isNix() || RuntimeUtil.isMac() ? InputEvents.DEFAULT : InputEvents.DISABLE_NATIVE; + inputEvents = Platform.isLinux() || Platform.isMac() ? InputEvents.DEFAULT : InputEvents.DISABLE_NATIVE; } switch (inputEvents) { case NONE: diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaPlayerComponentBase.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaPlayerComponentBase.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaPlayerComponentBase.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaPlayerComponentBase.java index c8a205cd..c1e5d376 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/EmbeddedMediaPlayerComponentBase.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/EmbeddedMediaPlayerComponentBase.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; -import me.lib720.caprica.vlcj.media.*; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; -import me.lib720.caprica.vlcj.player.base.State; +import uk.co.caprica.vlcj.media.*; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.State; import java.awt.event.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/InputEvents.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/InputEvents.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/InputEvents.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/InputEvents.java index 734394c4..6cf55121 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/InputEvents.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/InputEvents.java @@ -1,4 +1,4 @@ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; /** * Enumeration of flags for controller input (mouse and keyboard) event handling for the video surface. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerComponent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerComponent.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerComponent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerComponent.java index c1e2ee4b..86bb85ed 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerComponent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerComponent.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; /** * Minimal specification for a media player component. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerComponentDefaults.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerComponentDefaults.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerComponentDefaults.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerComponentDefaults.java index 725f1741..080fac88 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerComponentDefaults.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerComponentDefaults.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; /** * Consolidated VLC command-line options/switches/arguments used by default in the media player components when creating diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerSpecs.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerSpecs.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerSpecs.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerSpecs.java index bf87b6fd..fd0aee13 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/MediaPlayerSpecs.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/MediaPlayerSpecs.java @@ -17,15 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component; - -import me.lib720.caprica.vlcj.player.component.callback.CallbackImagePainter; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.adaptive.AdaptiveFullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.unsupported.UnsupportedFullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; +package uk.co.caprica.vlcj.player.component; + +import uk.co.caprica.vlcj.player.component.callback.CallbackImagePainter; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.adaptive.AdaptiveFullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.unsupported.UnsupportedFullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; import javax.swing.*; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/CallbackImagePainter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/CallbackImagePainter.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/CallbackImagePainter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/CallbackImagePainter.java index 91a74e27..aaa44bd7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/CallbackImagePainter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/CallbackImagePainter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component.callback; +package uk.co.caprica.vlcj.player.component.callback; -import me.lib720.caprica.vlcj.player.component.CallbackMediaPlayerComponent; +import uk.co.caprica.vlcj.player.component.CallbackMediaPlayerComponent; import javax.swing.*; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/FilledCallbackImagePainter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/FilledCallbackImagePainter.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/FilledCallbackImagePainter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/FilledCallbackImagePainter.java index 0bc9c488..567b2856 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/FilledCallbackImagePainter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/FilledCallbackImagePainter.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component.callback; +package uk.co.caprica.vlcj.player.component.callback; import javax.swing.*; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/FixedCallbackImagePainter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/FixedCallbackImagePainter.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/FixedCallbackImagePainter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/FixedCallbackImagePainter.java index 86667ec9..060933ee 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/FixedCallbackImagePainter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/FixedCallbackImagePainter.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component.callback; +package uk.co.caprica.vlcj.player.component.callback; import javax.swing.*; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/ScaledCallbackImagePainter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/ScaledCallbackImagePainter.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/ScaledCallbackImagePainter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/ScaledCallbackImagePainter.java index c9cff5f4..de09535f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/callback/ScaledCallbackImagePainter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/ScaledCallbackImagePainter.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component.callback; +package uk.co.caprica.vlcj.player.component.callback; import javax.swing.*; import java.awt.*; diff --git a/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/package-info.java new file mode 100644 index 00000000..9798fee9 --- /dev/null +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/callback/package-info.java @@ -0,0 +1,6 @@ +/** + * Components used by the {@link uk.co.caprica.vlcj.player.component.CallbackMediaPlayerComponent}. + *

+ * Provides implementations of "painter" components used to render video frames. + */ +package uk.co.caprica.vlcj.player.component.callback; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/overlay/AbstractJWindowOverlayComponent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/overlay/AbstractJWindowOverlayComponent.java similarity index 99% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/overlay/AbstractJWindowOverlayComponent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/overlay/AbstractJWindowOverlayComponent.java index 0d2043b8..9ba0ff1b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/overlay/AbstractJWindowOverlayComponent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/overlay/AbstractJWindowOverlayComponent.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.component.overlay; +package uk.co.caprica.vlcj.player.component.overlay; import com.sun.jna.platform.WindowUtils; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/overlay/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/overlay/package-info.java similarity index 66% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/overlay/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/overlay/package-info.java index 39a9c08d..188dadda 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/overlay/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/overlay/package-info.java @@ -1,4 +1,4 @@ /** * Provides higher-level components used to create overlays for use with embedded media player components. */ -package me.lib720.caprica.vlcj.player.component.overlay; +package uk.co.caprica.vlcj.player.component.overlay; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/package-info.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/package-info.java index 15350e52..cbf37df3 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/component/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/component/package-info.java @@ -4,4 +4,4 @@ * Generally, all media player components will accept null values for any of their constructor parameters * and provide reasonable defaults. */ -package me.lib720.caprica.vlcj.player.component; +package uk.co.caprica.vlcj.player.component; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/BaseApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/BaseApi.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/BaseApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/BaseApi.java index b253acce..d679d721 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/BaseApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/BaseApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded; +package uk.co.caprica.vlcj.player.embedded; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_player_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_player_t; /** * Internal base implementation. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/EmbeddedMediaPlayer.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/EmbeddedMediaPlayer.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/EmbeddedMediaPlayer.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/EmbeddedMediaPlayer.java index a8fe7aee..7fbd8e5c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/EmbeddedMediaPlayer.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/EmbeddedMediaPlayer.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded; +package uk.co.caprica.vlcj.player.embedded; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_player_t; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_player_t; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a media player that renders video to an video surface embedded in the application user interface. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/FullScreenApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/FullScreenApi.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/FullScreenApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/FullScreenApi.java index 2f8a6524..02741ad9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/FullScreenApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/FullScreenApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded; +package uk.co.caprica.vlcj.player.embedded; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; /** * Behaviour pertaining to full-screen functionality. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/InputApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/InputApi.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/InputApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/InputApi.java index 8dc94a78..277e3423 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/InputApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/InputApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded; +package uk.co.caprica.vlcj.player.embedded; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; /** * Behaviour pertaining to keyboard/mouse input-events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/OverlayApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/OverlayApi.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/OverlayApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/OverlayApi.java index eb57be01..67275305 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/OverlayApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/OverlayApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded; +package uk.co.caprica.vlcj.player.embedded; -import me.lib720.caprica.vlcj.player.embedded.videosurface.ComponentVideoSurface; +import uk.co.caprica.vlcj.player.embedded.videosurface.ComponentVideoSurface; import javax.swing.*; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/VideoSurfaceApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/VideoSurfaceApi.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/VideoSurfaceApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/VideoSurfaceApi.java index 718062ac..83c31adb 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/VideoSurfaceApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/VideoSurfaceApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded; +package uk.co.caprica.vlcj.player.embedded; -import me.lib720.caprica.vlcj.player.embedded.videosurface.VideoSurface; +import uk.co.caprica.vlcj.player.embedded.videosurface.VideoSurface; /** * Behaviour pertaining to the video surface. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/FullScreenStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/FullScreenStrategy.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/FullScreenStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/FullScreenStrategy.java index b715a6b3..e69357b4 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/FullScreenStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/FullScreenStrategy.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen; +package uk.co.caprica.vlcj.player.embedded.fullscreen; /** * Specification for a full-screen strategy implementation. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/adaptive/AdaptiveFullScreenStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/adaptive/AdaptiveFullScreenStrategy.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/adaptive/AdaptiveFullScreenStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/adaptive/AdaptiveFullScreenStrategy.java index 58dcee4f..86eb2046 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/adaptive/AdaptiveFullScreenStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/adaptive/AdaptiveFullScreenStrategy.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.adaptive; +package uk.co.caprica.vlcj.player.embedded.fullscreen.adaptive; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.exclusivemode.ExclusiveModeFullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.osx.OsxFullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.windows.Win32FullScreenStrategy; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.x.XFullScreenStrategy; +import com.sun.jna.Platform; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.exclusivemode.ExclusiveModeFullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.osx.OsxFullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.windows.Win32FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.x.XFullScreenStrategy; import java.awt.*; @@ -86,11 +86,11 @@ protected void onAfterExitFullScreen() { } private FullScreenStrategy getStrategy(Window window) { - if (RuntimeUtil.isNix()) { + if (Platform.isLinux()) { return new XFullScreenStrategy(window); - } else if (RuntimeUtil.isWindows()) { + } else if (Platform.isWindows()) { return new Win32FullScreenStrategy(window); - } else if (RuntimeUtil.isMac()) { + } else if (Platform.isMac()) { return new OsxFullScreenStrategy(window); } else { return new ExclusiveModeFullScreenStrategy(window); diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/adaptive/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/adaptive/package-info.java similarity index 64% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/adaptive/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/adaptive/package-info.java index 99c848fa..d7ef1192 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/adaptive/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/adaptive/package-info.java @@ -1,4 +1,4 @@ /** * Full-screen strategy implementation that picks the best available depending on the run-time operating system. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.adaptive; +package uk.co.caprica.vlcj.player.embedded.fullscreen.adaptive; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/exclusivemode/ExclusiveModeFullScreenStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/exclusivemode/ExclusiveModeFullScreenStrategy.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/exclusivemode/ExclusiveModeFullScreenStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/exclusivemode/ExclusiveModeFullScreenStrategy.java index b6237cc5..f8ddc664 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/exclusivemode/ExclusiveModeFullScreenStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/exclusivemode/ExclusiveModeFullScreenStrategy.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.exclusivemode; +package uk.co.caprica.vlcj.player.embedded.fullscreen.exclusivemode; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/exclusivemode/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/exclusivemode/package-info.java similarity index 62% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/exclusivemode/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/exclusivemode/package-info.java index 376407ce..31cf4698 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/exclusivemode/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/exclusivemode/package-info.java @@ -3,4 +3,4 @@ *

* This strategy is not recommended. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.exclusivemode; +package uk.co.caprica.vlcj.player.embedded.fullscreen.exclusivemode; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/libvlc/LibVlcNativeFullScreenStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/libvlc/LibVlcNativeFullScreenStrategy.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/libvlc/LibVlcNativeFullScreenStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/libvlc/LibVlcNativeFullScreenStrategy.java index a8d969d0..8991f409 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/libvlc/LibVlcNativeFullScreenStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/libvlc/LibVlcNativeFullScreenStrategy.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.libvlc; +package uk.co.caprica.vlcj.player.embedded.fullscreen.libvlc; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_player_t; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_player_t; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; /** * Implementation of a {@link FullScreenStrategy} that uses the native LibVLC fullscreen API. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/libvlc/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/libvlc/package-info.java similarity index 76% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/libvlc/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/libvlc/package-info.java index e0acb1ec..233b4afd 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/libvlc/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/libvlc/package-info.java @@ -4,4 +4,4 @@ * This strategy only works where the video surface is not embedded in your application (i.e. you allow VLC to * create the video window). */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.libvlc; +package uk.co.caprica.vlcj.player.embedded.fullscreen.libvlc; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/osx/OsxFullScreenStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/osx/OsxFullScreenStrategy.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/osx/OsxFullScreenStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/osx/OsxFullScreenStrategy.java index 3ebd8fe6..c1f3e6cd 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/osx/OsxFullScreenStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/osx/OsxFullScreenStrategy.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.osx; +package uk.co.caprica.vlcj.player.embedded.fullscreen.osx; import com.apple.eawt.AppEvent.FullScreenEvent; import com.apple.eawt.Application; import com.apple.eawt.FullScreenAdapter; import com.apple.eawt.FullScreenUtilities; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; import java.awt.*; diff --git a/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/osx/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/osx/package-info.java new file mode 100644 index 00000000..fb3ab529 --- /dev/null +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/osx/package-info.java @@ -0,0 +1,4 @@ +/** + * Native full-screen strategy for OSX. + */ +package uk.co.caprica.vlcj.player.embedded.fullscreen.osx; diff --git a/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/package-info.java new file mode 100644 index 00000000..c63b5de4 --- /dev/null +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/package-info.java @@ -0,0 +1,4 @@ +/** + * Events relating to media. + */ +package uk.co.caprica.vlcj.player.embedded.fullscreen; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/unsupported/UnsupportedFullScreenStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/unsupported/UnsupportedFullScreenStrategy.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/unsupported/UnsupportedFullScreenStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/unsupported/UnsupportedFullScreenStrategy.java index ae51a760..790176dd 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/unsupported/UnsupportedFullScreenStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/unsupported/UnsupportedFullScreenStrategy.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.unsupported; +package uk.co.caprica.vlcj.player.embedded.fullscreen.unsupported; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; /** * Simple do-nothing implementation of a full-screen strategy. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/unsupported/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/unsupported/package-info.java similarity index 62% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/unsupported/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/unsupported/package-info.java index 9cd9451e..feef8259 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/unsupported/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/unsupported/package-info.java @@ -1,4 +1,4 @@ /** * A do-nothing full-screen strategy implementation to explicitly and completely disable full-screen support. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.unsupported; +package uk.co.caprica.vlcj.player.embedded.fullscreen.unsupported; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/ExtendedUser32.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/ExtendedUser32.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/ExtendedUser32.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/ExtendedUser32.java index 3ff01506..85f7de65 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/ExtendedUser32.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/ExtendedUser32.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.windows; +package uk.co.caprica.vlcj.player.embedded.fullscreen.windows; import com.sun.jna.Native; import com.sun.jna.Pointer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenHandler.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenHandler.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenHandler.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenHandler.java index e476a33a..64ac670e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenHandler.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenHandler.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.windows; +package uk.co.caprica.vlcj.player.embedded.fullscreen.windows; import com.sun.jna.Pointer; import com.sun.jna.platform.win32.User32; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenStrategy.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenStrategy.java index 4a700b65..3a83de11 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/Win32FullScreenStrategy.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.windows; +package uk.co.caprica.vlcj.player.embedded.fullscreen.windows; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/WindowState.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/WindowState.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/WindowState.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/WindowState.java index 3802965a..eb7c2d92 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/WindowState.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/WindowState.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.windows; +package uk.co.caprica.vlcj.player.embedded.fullscreen.windows; /** * Encapsulation of window state. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/package-info.java similarity index 73% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/package-info.java index 4ca6b386..b984e47d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/windows/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/windows/package-info.java @@ -3,4 +3,4 @@ * PACKAGE WAS PATCHED. * Implementation on old Forge versions is busted, so we need to break everything to keep support ahead */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.windows; \ No newline at end of file +package uk.co.caprica.vlcj.player.embedded.fullscreen.windows; \ No newline at end of file diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenHandler.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenHandler.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenHandler.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenHandler.java index fc48f149..4faeb733 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenHandler.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenHandler.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.x; +package uk.co.caprica.vlcj.player.embedded.fullscreen.x; import com.sun.jna.Native; import com.sun.jna.NativeLong; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenStrategy.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenStrategy.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenStrategy.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenStrategy.java index 62853151..4fb3ede2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenStrategy.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/XFullScreenStrategy.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.x; +package uk.co.caprica.vlcj.player.embedded.fullscreen.x; -import me.lib720.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; -import me.lib720.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; +import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; +import uk.co.caprica.vlcj.player.embedded.fullscreen.FullScreenStrategy; import java.awt.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/package-info.java similarity index 51% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/package-info.java index e20ffdc6..0931b4e9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/fullscreen/x/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/fullscreen/x/package-info.java @@ -1,4 +1,4 @@ /** * Native full-screen strategy for the X Window System. */ -package me.lib720.caprica.vlcj.player.embedded.fullscreen.x; +package uk.co.caprica.vlcj.player.embedded.fullscreen.x; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/package-info.java similarity index 75% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/package-info.java index 3922d6a7..e5380a26 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/package-info.java @@ -2,4 +2,4 @@ * Provides the classes necessary to support the embedding of native media player video output in Swing/AWT user * interface components. */ -package me.lib720.caprica.vlcj.player.embedded; +package uk.co.caprica.vlcj.player.embedded; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/AWTVideoSurface.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/AWTVideoSurface.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/AWTVideoSurface.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/AWTVideoSurface.java index 4dcdc547..41e5fb2b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/AWTVideoSurface.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/AWTVideoSurface.java @@ -17,11 +17,11 @@ * Copyright 2009-2020 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; import com.sun.jna.Native; -import me.lib720.caprica.vlcj.binding.LibX11; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; +import com.sun.jna.Platform; +import uk.co.caprica.vlcj.binding.lib.LibX11; import java.awt.*; @@ -52,7 +52,7 @@ abstract class AWTVideoSurface extends VideoSurface { * One-time initialisation. */ static { - if (RuntimeUtil.isNix()) { + if (Platform.isLinux()) { LibX11.INSTANCE.XInitThreads(); System.loadLibrary("jawt"); } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ByteBufferFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ByteBufferFactory.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ByteBufferFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ByteBufferFactory.java index 64bf0aad..add78f23 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ByteBufferFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ByteBufferFactory.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; import sun.misc.Unsafe; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/CallbackVideoSurface.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/CallbackVideoSurface.java similarity index 89% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/CallbackVideoSurface.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/CallbackVideoSurface.java index 9f23a211..13dfd247 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/CallbackVideoSurface.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/CallbackVideoSurface.java @@ -17,17 +17,21 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; import com.sun.jna.Pointer; import com.sun.jna.ptr.IntByReference; import com.sun.jna.ptr.PointerByReference; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.*; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormatCallback; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; +import uk.co.caprica.vlcj.binding.internal.libvlc_display_callback_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_lock_callback_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_unlock_callback_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_video_cleanup_cb; +import uk.co.caprica.vlcj.binding.internal.libvlc_video_format_cb; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a video surface that uses native callbacks to receive video frame data for rendering. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ComponentIdVideoSurface.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ComponentIdVideoSurface.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ComponentIdVideoSurface.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ComponentIdVideoSurface.java index 5498570e..b5d1c67d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ComponentIdVideoSurface.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ComponentIdVideoSurface.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Encapsulation of a video surface that wraps the native component id of the video surface diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ComponentVideoSurface.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ComponentVideoSurface.java similarity index 83% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ComponentVideoSurface.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ComponentVideoSurface.java index c9b9aef7..99758860 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/ComponentVideoSurface.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/ComponentVideoSurface.java @@ -17,12 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; import com.sun.jna.Native; -import me.lib720.caprica.vlcj.binding.OsxComponentId; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; import java.awt.*; @@ -68,11 +66,6 @@ public void attach(MediaPlayer mediaPlayer) { } private long getComponentId(Component component) { - if (!RuntimeUtil.isMac()) { - return Native.getComponentID(component); - } else { - return OsxComponentId.getOsxComponentId(component); - } + return Native.getComponentID(component); } - } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/DeferredComponentIdVideoSurface.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/DeferredComponentIdVideoSurface.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/DeferredComponentIdVideoSurface.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/DeferredComponentIdVideoSurface.java index 8885301c..0c4dd127 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/DeferredComponentIdVideoSurface.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/DeferredComponentIdVideoSurface.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Encapsulation of a video surface that wraps the native component id of the video surface component - the component id diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/LinuxVideoSurfaceAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/LinuxVideoSurfaceAdapter.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/LinuxVideoSurfaceAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/LinuxVideoSurfaceAdapter.java index 5a94631d..e69b848c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/LinuxVideoSurfaceAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/LinuxVideoSurfaceAdapter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a video surface adapter for Linux. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/NativeBuffers.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/NativeBuffers.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/NativeBuffers.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/NativeBuffers.java index 81db6fcc..10cb9ef5 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/NativeBuffers.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/NativeBuffers.java @@ -17,15 +17,15 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; import com.sun.jna.NativeLong; +import com.sun.jna.Platform; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.binding.Kernel32; -import me.lib720.caprica.vlcj.binding.LibC; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.binding.support.size_t; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; +import uk.co.caprica.vlcj.binding.lib.Kernel32; +import uk.co.caprica.vlcj.binding.lib.LibC; +import uk.co.caprica.vlcj.binding.lib.types.size_t; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; import java.nio.ByteBuffer; @@ -75,7 +75,7 @@ int allocate(BufferFormat bufferFormat) { nativeBuffers[i] = buffer; pointers[i] = Pointer.createConstant(ByteBufferFactory.getAddress(buffer)); if (lockBuffers) { - if (!RuntimeUtil.isWindows()) { + if (!Platform.isWindows()) { LibC.INSTANCE.mlock(pointers[i], new NativeLong(buffer.capacity())); } else { Kernel32.INSTANCE.VirtualLock(pointers[i], new size_t(buffer.capacity())); @@ -89,7 +89,7 @@ void free() { if (nativeBuffers != null) { if (lockBuffers) { for (int i = 0; i < nativeBuffers.length; i++) { - if (!RuntimeUtil.isWindows()) { + if (!Platform.isWindows()) { LibC.INSTANCE.munlock(pointers[i], new NativeLong(nativeBuffers[i].capacity())); } else { Kernel32.INSTANCE.VirtualUnlock(pointers[i], new size_t(nativeBuffers[i].capacity())); diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/OsxVideoSurfaceAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/OsxVideoSurfaceAdapter.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/OsxVideoSurfaceAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/OsxVideoSurfaceAdapter.java index dd761010..c16fedbc 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/OsxVideoSurfaceAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/OsxVideoSurfaceAdapter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a video surface adapter for Mac. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurface.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurface.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurface.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurface.java index 4e296385..996f0f94 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurface.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurface.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Encapsulation of a video surface. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapter.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapter.java index 476b67c9..013dba2e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; import java.io.Serializable; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapters.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapters.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapters.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapters.java index c647f93e..793715fc 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapters.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/VideoSurfaceAdapters.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; +import com.sun.jna.Platform; /** * Utility class to create a {@link VideoSurfaceAdapter} for the current run-time operating system. @@ -35,11 +35,11 @@ private VideoSurfaceAdapters() { * @return video surface adapter */ public static VideoSurfaceAdapter getVideoSurfaceAdapter() { - if (RuntimeUtil.isNix()) { + if (Platform.isLinux()) { return new LinuxVideoSurfaceAdapter(); - } else if (RuntimeUtil.isWindows()) { + } else if (Platform.isWindows()) { return new WindowsVideoSurfaceAdapter(); - } else if (RuntimeUtil.isMac()) { + } else if (Platform.isMac()) { return new OsxVideoSurfaceAdapter(); } else { throw new RuntimeException("Unable to create a video surface - failed to detect a supported operating system"); diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/WindowsVideoSurfaceAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/WindowsVideoSurfaceAdapter.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/WindowsVideoSurfaceAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/WindowsVideoSurfaceAdapter.java index 9cfedc1c..eed21b17 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/WindowsVideoSurfaceAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/WindowsVideoSurfaceAdapter.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a video surface adapter for Windows. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormat.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormat.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormat.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormat.java index 9b776573..21227b9a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormat.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormat.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback; +package uk.co.caprica.vlcj.player.embedded.videosurface.callback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface; +import uk.co.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface; import java.util.Arrays; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallback.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallback.java similarity index 88% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallback.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallback.java index 3cf328c6..73959de6 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallback.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallback.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback; +package uk.co.caprica.vlcj.player.embedded.videosurface.callback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface; +import uk.co.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface; import java.nio.ByteBuffer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallbackAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallbackAdapter.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallbackAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallbackAdapter.java index 80668783..f13418fd 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallbackAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/BufferFormatCallbackAdapter.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback; +package uk.co.caprica.vlcj.player.embedded.videosurface.callback; import java.nio.ByteBuffer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/RenderCallback.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/RenderCallback.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/RenderCallback.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/RenderCallback.java index a5adbfbe..edb77e14 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/RenderCallback.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/RenderCallback.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback; +package uk.co.caprica.vlcj.player.embedded.videosurface.callback; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; import java.nio.ByteBuffer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/RenderCallbackAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/RenderCallbackAdapter.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/RenderCallbackAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/RenderCallbackAdapter.java index 7ec85f22..a6882163 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/RenderCallbackAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/RenderCallbackAdapter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback; +package uk.co.caprica.vlcj.player.embedded.videosurface.callback; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; import java.nio.ByteBuffer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/SimpleBufferFormatCallback.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/SimpleBufferFormatCallback.java similarity index 84% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/SimpleBufferFormatCallback.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/SimpleBufferFormatCallback.java index 345a387e..447ffee8 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/SimpleBufferFormatCallback.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/SimpleBufferFormatCallback.java @@ -1,6 +1,6 @@ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback; +package uk.co.caprica.vlcj.player.embedded.videosurface.callback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface; +import uk.co.caprica.vlcj.player.embedded.videosurface.CallbackVideoSurface; // WATERMeDIA PATCH public interface SimpleBufferFormatCallback { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/format/RV32BufferFormat.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/format/RV32BufferFormat.java similarity index 88% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/format/RV32BufferFormat.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/format/RV32BufferFormat.java index b47ec5e1..5916cde0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/format/RV32BufferFormat.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/format/RV32BufferFormat.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback.format; +package uk.co.caprica.vlcj.player.embedded.videosurface.callback.format; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; /** * Implementation of a buffer format for RV32. diff --git a/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/format/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/format/package-info.java new file mode 100644 index 00000000..88216307 --- /dev/null +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/format/package-info.java @@ -0,0 +1,4 @@ +/** + * Provides default buffer format implementations. + */ +package uk.co.caprica.vlcj.player.embedded.videosurface.callback.format; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/package-info.java similarity index 63% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/package-info.java index eb0e0237..8783dd43 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/callback/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/callback/package-info.java @@ -1,4 +1,4 @@ /** * Full-screen strategy implementation that picks the best available depending on the run-time operating system. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface.callback; +package uk.co.caprica.vlcj.player.embedded.videosurface.callback; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/package-info.java similarity index 63% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/package-info.java index c0576c18..70113019 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/embedded/videosurface/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/embedded/videosurface/package-info.java @@ -2,4 +2,4 @@ * Provides the classes necessary to create user interface components that * render native video. */ -package me.lib720.caprica.vlcj.player.embedded.videosurface; +package uk.co.caprica.vlcj.player.embedded.videosurface; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/BaseApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/BaseApi.java similarity index 87% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/BaseApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/BaseApi.java index 74ad766f..72bcd9cc 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/BaseApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/BaseApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_player_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_list_player_t; /** * Internal base implementation. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/ControlsApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/ControlsApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/ControlsApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/ControlsApi.java index c4591679..474e6820 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/ControlsApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/ControlsApi.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; /** * Behaviour pertaining to media list player controls, like play, pause, stop of the list as a whole, play a specific diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/EventApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/EventApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/EventApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/EventApi.java index 5468afbf..bf8836d8 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/EventApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/EventApi.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; /** * Behaviour pertaining to media list player events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/ListApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/ListApi.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/ListApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/ListApi.java index 03de2168..8fc0cd6d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/ListApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/ListApi.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.medialist.EventApi; -import me.lib720.caprica.vlcj.medialist.MediaApi; -import me.lib720.caprica.vlcj.medialist.MediaList; -import me.lib720.caprica.vlcj.medialist.MediaListRef; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.medialist.EventApi; +import uk.co.caprica.vlcj.medialist.MediaApi; +import uk.co.caprica.vlcj.medialist.MediaList; +import uk.co.caprica.vlcj.medialist.MediaListRef; /** * Behaviour pertaining to the list of media items. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayer.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayer.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayer.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayer.java index 82bf15f9..146a2ff8 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayer.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayer.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_list_player_t; -import me.lib720.caprica.vlcj.support.eventmanager.TaskExecutor; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_list_player_t; +import uk.co.caprica.vlcj.support.eventmanager.TaskExecutor; /** * Implementation of a media list player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerEventAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerEventAdapter.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerEventAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerEventAdapter.java index a7bd1dd5..10b8849e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerEventAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerEventAdapter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.MediaRef; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerEventListener.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerEventListener.java index db8d22a2..9838a8a7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerEventListener.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.MediaRef; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerNativeEventManager.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerNativeEventManager.java similarity index 73% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerNativeEventManager.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerNativeEventManager.java index 68f30145..41fcca77 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaListPlayerNativeEventManager.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaListPlayerNativeEventManager.java @@ -17,16 +17,16 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_manager_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.player.list.events.MediaListPlayerEventFactory; -import me.lib720.caprica.vlcj.support.eventmanager.EventNotification; -import me.lib720.caprica.vlcj.support.eventmanager.NativeEventManager; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_manager_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.player.list.events.MediaListPlayerEventFactory; +import uk.co.caprica.vlcj.support.eventmanager.EventNotification; +import uk.co.caprica.vlcj.support.eventmanager.NativeEventManager; final public class MediaListPlayerNativeEventManager extends NativeEventManager { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaPlayerApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaPlayerApi.java similarity index 88% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaPlayerApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaPlayerApi.java index 30eb5c9f..2d217064 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/MediaPlayerApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/MediaPlayerApi.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.SubitemApi; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.embedded.EmbeddedMediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.SubitemApi; /** * Behaviour pertaining to the associated media player. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/PlaybackMode.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/PlaybackMode.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/PlaybackMode.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/PlaybackMode.java index be4b73cd..b9649f87 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/PlaybackMode.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/PlaybackMode.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; import java.util.HashMap; import java.util.Map; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/StatusApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/StatusApi.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/StatusApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/StatusApi.java index d0020aaa..c6bf1c26 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/StatusApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/StatusApi.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.player.base.State; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.player.base.State; /** * Behaviour pertaining to media list player status. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerEvent.java similarity index 80% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerEvent.java index fae8c889..586c4eb9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerEvent.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list.events; +package uk.co.caprica.vlcj.player.list.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayerEventListener; -import me.lib720.caprica.vlcj.support.eventmanager.BaseEvent; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayerEventListener; +import uk.co.caprica.vlcj.support.eventmanager.BaseEvent; /** * Base implementation for media list player events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerEventFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerEventFactory.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerEventFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerEventFactory.java index 0384c97b..fa061411 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerEventFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerEventFactory.java @@ -17,12 +17,12 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list.events; +package uk.co.caprica.vlcj.player.list.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; /** * A factory that creates a media list player event instance for a native media list player event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerNextItemSetEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerNextItemSetEvent.java similarity index 77% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerNextItemSetEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerNextItemSetEvent.java index ac86edc2..ca9719c9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerNextItemSetEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerNextItemSetEvent.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list.events; +package uk.co.caprica.vlcj.player.list.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.binding.internal.media_list_player_next_item_set; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.binding.internal.media_list_player_next_item_set; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayerEventListener; /** * Encapsulation of a media list player next item set event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerPlayedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerPlayedEvent.java similarity index 85% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerPlayedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerPlayedEvent.java index 6744258f..8519bcaa 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerPlayedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerPlayedEvent.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list.events; +package uk.co.caprica.vlcj.player.list.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayerEventListener; /** * Encapsulation of a media list player played event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerStoppedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerStoppedEvent.java similarity index 84% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerStoppedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerStoppedEvent.java index c80627bc..11c6e373 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/events/MediaListPlayerStoppedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/MediaListPlayerStoppedEvent.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.list.events; +package uk.co.caprica.vlcj.player.list.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.player.list.MediaListPlayer; -import me.lib720.caprica.vlcj.player.list.MediaListPlayerEventListener; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.player.list.MediaListPlayer; +import uk.co.caprica.vlcj.player.list.MediaListPlayerEventListener; /** * Encapsulation of a media list player stopped event. diff --git a/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/package-info.java new file mode 100644 index 00000000..a0468053 --- /dev/null +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/events/package-info.java @@ -0,0 +1,4 @@ +/** + * Media list player events. + */ +package uk.co.caprica.vlcj.player.list.events; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/package-info.java similarity index 67% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/package-info.java index efd80b1a..64912a71 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/list/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/list/package-info.java @@ -1,4 +1,4 @@ /** * Provides the classes necessary to create and control native media list players. */ -package me.lib720.caprica.vlcj.player.list; +package uk.co.caprica.vlcj.player.list; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/package-info.java similarity index 82% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/package-info.java index 1950eb4c..3dcbef81 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/package-info.java @@ -2,4 +2,4 @@ * This is the main package for media player components, sub-packages provide the classes necessary to create and * control native media players and associated resources. */ -package me.lib720.caprica.vlcj.player; +package uk.co.caprica.vlcj.player; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/BaseApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/BaseApi.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/BaseApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/BaseApi.java index 4d1177c8..d36b8cb0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/BaseApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/BaseApi.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; abstract class BaseApi { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/EventApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/EventApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/EventApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/EventApi.java index a4995c01..20566250 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/EventApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/EventApi.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; /** * Behaviour pertaining to renderer discoverer events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/ListApi.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/ListApi.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/ListApi.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/ListApi.java index 44c8b6fb..276505e0 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/ListApi.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/ListApi.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; import java.util.ArrayList; import java.util.List; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscoverer.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscoverer.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscoverer.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscoverer.java index 292d6e5e..1863a787 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscoverer.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscoverer.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_renderer_discoverer_t; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_renderer_discoverer_t; /** * Encapsulation of a native renderer discoverer instance. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererDescription.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererDescription.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererDescription.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererDescription.java index 6913bdcf..28f12456 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererDescription.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererDescription.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; /** * Description of a renderer discoverer. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererEventAdapter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererEventAdapter.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererEventAdapter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererEventAdapter.java index 8e3813a9..28f413ab 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererEventAdapter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererEventAdapter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererEventListener.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererEventListener.java similarity index 94% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererEventListener.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererEventListener.java index a89833bf..555d6bfc 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererEventListener.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererEventListener.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; import javax.swing.*; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererNativeEventManager.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererNativeEventManager.java similarity index 76% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererNativeEventManager.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererNativeEventManager.java index 51ec6b1e..e7cedd55 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererDiscovererNativeEventManager.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererDiscovererNativeEventManager.java @@ -17,16 +17,16 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_manager_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.player.renderer.events.RendererDiscovererEventFactory; -import me.lib720.caprica.vlcj.support.eventmanager.EventNotification; -import me.lib720.caprica.vlcj.support.eventmanager.NativeEventManager; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_manager_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.player.renderer.events.RendererDiscovererEventFactory; +import uk.co.caprica.vlcj.support.eventmanager.EventNotification; +import uk.co.caprica.vlcj.support.eventmanager.NativeEventManager; /** * Native event manager implementation for the {@link RendererDiscoverer}. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererItem.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererItem.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererItem.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererItem.java index 974021a7..93baf5f3 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererItem.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererItem.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.libvlc_renderer_item_t; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.binding.lib.LibVlc; +import uk.co.caprica.vlcj.binding.internal.libvlc_renderer_item_t; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Encapsulation of a renderer item. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererItemListEventHandler.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererItemListEventHandler.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererItemListEventHandler.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererItemListEventHandler.java index abaa7366..cbb9168f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/RendererItemListEventHandler.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/RendererItemListEventHandler.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; final class RendererItemListEventHandler implements RendererDiscovererEventListener { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererEvent.java similarity index 82% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererEvent.java index 60ecc4c7..ed073e0a 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererEvent.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer.events; +package uk.co.caprica.vlcj.player.renderer.events; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscoverer; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscovererEventListener; -import me.lib720.caprica.vlcj.support.eventmanager.EventNotification; +import uk.co.caprica.vlcj.player.renderer.RendererDiscoverer; +import uk.co.caprica.vlcj.player.renderer.RendererDiscovererEventListener; +import uk.co.caprica.vlcj.support.eventmanager.EventNotification; /** * Specification for a renderer discoverer event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererEventFactory.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererEventFactory.java similarity index 89% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererEventFactory.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererEventFactory.java index 7d7d285d..951cfdf5 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererEventFactory.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererEventFactory.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer.events; +package uk.co.caprica.vlcj.player.renderer.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_e; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscoverer; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_e; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.player.renderer.RendererDiscoverer; /** * A factory that creates a media player event instance for a native discoverer event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererItemAddedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererItemAddedEvent.java similarity index 77% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererItemAddedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererItemAddedEvent.java index f7b314b8..6b96f1c7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererItemAddedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererItemAddedEvent.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer.events; +package uk.co.caprica.vlcj.player.renderer.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.renderer_discoverer_item_added; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscoverer; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscovererEventListener; -import me.lib720.caprica.vlcj.player.renderer.RendererItem; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.renderer_discoverer_item_added; +import uk.co.caprica.vlcj.player.renderer.RendererDiscoverer; +import uk.co.caprica.vlcj.player.renderer.RendererDiscovererEventListener; +import uk.co.caprica.vlcj.player.renderer.RendererItem; /** * Native event used when a new item was added to the renderer discoverer. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererItemDeletedEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererItemDeletedEvent.java similarity index 77% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererItemDeletedEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererItemDeletedEvent.java index 41f41499..101d9594 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/RendererDiscovererItemDeletedEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/RendererDiscovererItemDeletedEvent.java @@ -17,13 +17,13 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.player.renderer.events; +package uk.co.caprica.vlcj.player.renderer.events; -import me.lib720.caprica.vlcj.binding.internal.libvlc_event_t; -import me.lib720.caprica.vlcj.binding.internal.renderer_discoverer_item_deleted; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscoverer; -import me.lib720.caprica.vlcj.player.renderer.RendererDiscovererEventListener; -import me.lib720.caprica.vlcj.player.renderer.RendererItem; +import uk.co.caprica.vlcj.binding.internal.libvlc_event_t; +import uk.co.caprica.vlcj.binding.internal.renderer_discoverer_item_deleted; +import uk.co.caprica.vlcj.player.renderer.RendererDiscoverer; +import uk.co.caprica.vlcj.player.renderer.RendererDiscovererEventListener; +import uk.co.caprica.vlcj.player.renderer.RendererItem; /** * Native event used when an item was deleted from the renderer discoverer. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/package-info.java similarity index 60% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/package-info.java index f71d0521..c854d779 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/events/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/events/package-info.java @@ -1,4 +1,4 @@ /** * Factory for components that encapsulate native renderer discoverer events. */ -package me.lib720.caprica.vlcj.player.renderer.events; +package uk.co.caprica.vlcj.player.renderer.events; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/package-info.java similarity index 71% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/package-info.java index 265b9b3c..3c7eb14d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/player/renderer/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/player/renderer/package-info.java @@ -1,4 +1,4 @@ /** * Provides components that can be used to automatically discover alternate media "renderers" like Chromecast. */ -package me.lib720.caprica.vlcj.player.renderer; +package uk.co.caprica.vlcj.player.renderer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/Info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/Info.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/Info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/Info.java index 76608cfa..de741f8e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/Info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/Info.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.support; +package uk.co.caprica.vlcj.support; -import me.lib720.caprica.vlcj.support.version.Version; +import uk.co.caprica.vlcj.support.version.Version; import java.util.Properties; @@ -197,7 +197,7 @@ public String dyldFallbackLibraryPath() { private Version getVlcjVersion() { try { Properties properties = new Properties(); - properties.load(getClass().getResourceAsStream("/me/lib720/caprica/vlcj/build.properties")); + properties.load(getClass().getResourceAsStream("/uk/co/caprica/vlcj/build.properties")); return new Version(properties.getProperty("build.version")); } catch(Exception e) { diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/BaseEvent.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/BaseEvent.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/BaseEvent.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/BaseEvent.java index 806162c7..cf0c429e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/BaseEvent.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/BaseEvent.java @@ -17,11 +17,11 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.support.eventmanager; +package uk.co.caprica.vlcj.support.eventmanager; -import me.lib720.caprica.vlcj.binding.internal.libvlc_instance_t; -import me.lib720.caprica.vlcj.binding.internal.libvlc_media_t; -import me.lib720.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.binding.internal.libvlc_instance_t; +import uk.co.caprica.vlcj.binding.internal.libvlc_media_t; +import uk.co.caprica.vlcj.media.MediaRef; /** * Base implementation for an event. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/EventNotification.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/EventNotification.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/EventNotification.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/EventNotification.java index bdd8c84e..7434726f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/EventNotification.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/EventNotification.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.support.eventmanager; +package uk.co.caprica.vlcj.support.eventmanager; /** * Specification for a event that notifies another component. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/NativeEventManager.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/NativeEventManager.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/NativeEventManager.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/NativeEventManager.java index bfdf8283..0eb18f36 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/NativeEventManager.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/NativeEventManager.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.support.eventmanager; +package uk.co.caprica.vlcj.support.eventmanager; import com.sun.jna.CallbackThreadInitializer; import com.sun.jna.Native; import com.sun.jna.Pointer; -import me.lib720.caprica.vlcj.VideoLan4J; -import me.lib720.caprica.vlcj.binding.LibVlc; -import me.lib720.caprica.vlcj.binding.internal.*; +import uk.co.caprica.vlcj.VideoLan4J; +import uk.co.caprica.vlcj.binding.internal.*; +import uk.co.caprica.vlcj.binding.lib.LibVlc; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; @@ -173,7 +173,7 @@ private void removeNativeEventListener() { * @param event event to raise, may be null and if so will be ignored */ public final void raiseEvent(EventNotification event) { - VideoLan4J.native$checkClassLoader(classLoader); // WATERMeDIA PATCH + VideoLan4J.checkClassLoader(classLoader); // WATERMeDIA PATCH if (event != null && !eventListenerList.isEmpty()) { for (L listener : eventListenerList) { event.notify(listener); @@ -203,7 +203,7 @@ private EventCallback() { @Override public void callback(libvlc_event_t event, Pointer userData) { - VideoLan4J.native$checkClassLoader(classLoader); // WATERMeDIA PATCH + VideoLan4J.checkClassLoader(classLoader); // WATERMeDIA PATCH raiseEvent(onCreateEvent(libvlcInstance, event, eventObject)); } diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/TaskExecutor.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/TaskExecutor.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/TaskExecutor.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/TaskExecutor.java index dcae6515..0f1d67f7 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/TaskExecutor.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/TaskExecutor.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.support.eventmanager; +package uk.co.caprica.vlcj.support.eventmanager; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/package-info.java similarity index 81% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/package-info.java index 2349e64a..4d5e7e2f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/eventmanager/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/eventmanager/package-info.java @@ -4,4 +4,4 @@ *

* This package is not public API. */ -package me.lib720.caprica.vlcj.support.eventmanager; +package uk.co.caprica.vlcj.support.eventmanager; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/package-info.java similarity index 69% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/package-info.java index 7aac104c..e9baf0ef 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/package-info.java @@ -1,4 +1,4 @@ /** * Provides various support classes, not generally useful for client applications. */ -package me.lib720.caprica.vlcj.support; +package uk.co.caprica.vlcj.support; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/LibVlcVersion.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/LibVlcVersion.java similarity index 95% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/LibVlcVersion.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/LibVlcVersion.java index 935444de..08022d2f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/LibVlcVersion.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/LibVlcVersion.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.support.version; +package uk.co.caprica.vlcj.support.version; -import me.lib720.caprica.vlcj.binding.LibVlc; +import uk.co.caprica.vlcj.binding.lib.LibVlc; /** * Holder for runtime LibVLC version information. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/Version.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/Version.java similarity index 98% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/Version.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/Version.java index 5111e646..d76deef6 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/Version.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/Version.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.support.version; +package uk.co.caprica.vlcj.support.version; import java.util.regex.Matcher; import java.util.regex.Pattern; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/package-info.java similarity index 52% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/package-info.java index 6add5b40..db015ab2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/support/version/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/support/version/package-info.java @@ -1,4 +1,4 @@ /** * Provides various version-related classes. */ -package me.lib720.caprica.vlcj.support.version; +package uk.co.caprica.vlcj.support.version; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/BeforeWaiterAbortedException.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/BeforeWaiterAbortedException.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/BeforeWaiterAbortedException.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/BeforeWaiterAbortedException.java index b87fc05f..a183deb5 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/BeforeWaiterAbortedException.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/BeforeWaiterAbortedException.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter; +package uk.co.caprica.vlcj.waiter; /** * Exception thrown when a media player condition instance triggers aborts by returning false in an diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/ResultStatus.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/ResultStatus.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/ResultStatus.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/ResultStatus.java index c80e759c..21808f82 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/ResultStatus.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/ResultStatus.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter; +package uk.co.caprica.vlcj.waiter; /** * Enumeration of result status. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/UnexpectedWaiterErrorException.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/UnexpectedWaiterErrorException.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/UnexpectedWaiterErrorException.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/UnexpectedWaiterErrorException.java index b74b458f..462d1eba 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/UnexpectedWaiterErrorException.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/UnexpectedWaiterErrorException.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter; +package uk.co.caprica.vlcj.waiter; /** * Exception thrown when a media player condition instance triggers in response to an error. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/UnexpectedWaiterFinishedException.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/UnexpectedWaiterFinishedException.java similarity index 96% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/UnexpectedWaiterFinishedException.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/UnexpectedWaiterFinishedException.java index 6790dc0a..ce6a59c3 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/UnexpectedWaiterFinishedException.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/UnexpectedWaiterFinishedException.java @@ -17,7 +17,7 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter; +package uk.co.caprica.vlcj.waiter; /** * Exception thrown when a media player condition instance triggers in response to the media finishing (reaching the diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/Waiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/Waiter.java similarity index 97% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/Waiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/Waiter.java index 4beb3bcb..eda2f493 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/Waiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/Waiter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter; +package uk.co.caprica.vlcj.waiter; -import me.lib720.caprica.vlcj.waiter.media.MediaWaiter; -import me.lib720.caprica.vlcj.waiter.mediaplayer.MediaPlayerWaiter; +import uk.co.caprica.vlcj.waiter.media.MediaWaiter; +import uk.co.caprica.vlcj.waiter.mediaplayer.MediaPlayerWaiter; import java.util.concurrent.CountDownLatch; import java.util.concurrent.atomic.AtomicBoolean; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/MediaWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/MediaWaiter.java similarity index 86% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/MediaWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/MediaWaiter.java index 2876301c..909165de 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/MediaWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/MediaWaiter.java @@ -17,17 +17,17 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.media; - -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaEventAdapter; -import me.lib720.caprica.vlcj.media.MediaEventListener; -import me.lib720.caprica.vlcj.media.MediaParsedStatus; -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.media.Meta; -import me.lib720.caprica.vlcj.media.Picture; -import me.lib720.caprica.vlcj.player.base.State; -import me.lib720.caprica.vlcj.waiter.Waiter; +package uk.co.caprica.vlcj.waiter.media; + +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaEventAdapter; +import uk.co.caprica.vlcj.media.MediaEventListener; +import uk.co.caprica.vlcj.media.MediaParsedStatus; +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.Meta; +import uk.co.caprica.vlcj.media.Picture; +import uk.co.caprica.vlcj.player.base.State; +import uk.co.caprica.vlcj.waiter.Waiter; /** * Base implementation for a conditional waiter for media events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/ParsedWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/ParsedWaiter.java similarity index 89% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/ParsedWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/ParsedWaiter.java index a1efd850..3cf4af2d 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/ParsedWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/ParsedWaiter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.media; +package uk.co.caprica.vlcj.waiter.media; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.MediaParsedStatus; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.MediaParsedStatus; /** * Implementation of a condition that waits for the media player to report that media has been parsed successfully. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/ThumbnailGeneratedWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/ThumbnailGeneratedWaiter.java similarity index 90% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/ThumbnailGeneratedWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/ThumbnailGeneratedWaiter.java index 2a04f2ae..6bfc002c 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/ThumbnailGeneratedWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/ThumbnailGeneratedWaiter.java @@ -17,10 +17,10 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.media; +package uk.co.caprica.vlcj.waiter.media; -import me.lib720.caprica.vlcj.media.Media; -import me.lib720.caprica.vlcj.media.Picture; +import uk.co.caprica.vlcj.media.Media; +import uk.co.caprica.vlcj.media.Picture; /** * Implementation of a condition that waits for the media player to report that a thumbnail picture has been generated diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/package-info.java similarity index 74% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/package-info.java index 9070b96f..2c145958 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/media/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/media/package-info.java @@ -2,4 +2,4 @@ * Default implementations for commonly needed media conditional waiters used with the synchronous programming * framework. */ -package me.lib720.caprica.vlcj.waiter.media; +package uk.co.caprica.vlcj.waiter.media; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/LengthChangedWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/LengthChangedWaiter.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/LengthChangedWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/LengthChangedWaiter.java index 99ab5e90..cd5a829e 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/LengthChangedWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/LengthChangedWaiter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a condition that waits for the media player to report that the media length has changed. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/MediaPlayerWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/MediaPlayerWaiter.java similarity index 92% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/MediaPlayerWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/MediaPlayerWaiter.java index dac0da6e..664fffb3 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/MediaPlayerWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/MediaPlayerWaiter.java @@ -17,14 +17,14 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; - -import me.lib720.caprica.vlcj.media.MediaRef; -import me.lib720.caprica.vlcj.media.TrackType; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventAdapter; -import me.lib720.caprica.vlcj.player.base.MediaPlayerEventListener; -import me.lib720.caprica.vlcj.waiter.Waiter; +package uk.co.caprica.vlcj.waiter.mediaplayer; + +import uk.co.caprica.vlcj.media.MediaRef; +import uk.co.caprica.vlcj.media.TrackType; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventAdapter; +import uk.co.caprica.vlcj.player.base.MediaPlayerEventListener; +import uk.co.caprica.vlcj.waiter.Waiter; /** * Base implementation for a conditional waiter for media player events. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PausedWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PausedWaiter.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PausedWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PausedWaiter.java index 0c4de89c..3523e3f3 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PausedWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PausedWaiter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a condition that waits for the media player to report that it is paused. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PlayingWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PlayingWaiter.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PlayingWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PlayingWaiter.java index 616d59b2..dfd8e47f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PlayingWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PlayingWaiter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a condition that waits for the media player to report that it is playing. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PositionReachedWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PositionReachedWaiter.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PositionReachedWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PositionReachedWaiter.java index 348f4678..fce9e3d2 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/PositionReachedWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/PositionReachedWaiter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a condition that waits for the media player to report that it has reached/passed a particular diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/ReadyWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/ReadyWaiter.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/ReadyWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/ReadyWaiter.java index b258084f..5953c990 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/ReadyWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/ReadyWaiter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a condition that waits for the media player to report that it is "ready". diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/SnapshotTakenWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/SnapshotTakenWaiter.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/SnapshotTakenWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/SnapshotTakenWaiter.java index 3dfd4ec6..4c03a654 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/SnapshotTakenWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/SnapshotTakenWaiter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a condition that waits for the media player to report that it has finished taking a snapshot. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/TimeReachedWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/TimeReachedWaiter.java similarity index 93% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/TimeReachedWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/TimeReachedWaiter.java index 1a96f47d..876593c9 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/TimeReachedWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/TimeReachedWaiter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a condition that waits for the media player to report that it has reached/passed a particular point diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/VideoOutputCreatedWaiter.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/VideoOutputCreatedWaiter.java similarity index 91% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/VideoOutputCreatedWaiter.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/VideoOutputCreatedWaiter.java index 3dc7e161..b865418f 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/VideoOutputCreatedWaiter.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/VideoOutputCreatedWaiter.java @@ -17,9 +17,9 @@ * Copyright 2009-2019 Caprica Software Limited. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.MediaPlayer; /** * Implementation of a condition that waits for the media player to report that a video output has been created. diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/package-info.java similarity index 74% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/package-info.java index e27400c7..5d8ae834 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/mediaplayer/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/mediaplayer/package-info.java @@ -2,4 +2,4 @@ * Default implementations for commonly needed media media player conditional waiters used with the synchronous * programming framework. */ -package me.lib720.caprica.vlcj.waiter.mediaplayer; +package uk.co.caprica.vlcj.waiter.mediaplayer; diff --git a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/package-info.java b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/package-info.java similarity index 89% rename from lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/package-info.java rename to lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/package-info.java index 89b7cf7b..5c09af5b 100644 --- a/lib-vlcj/src/main/java/me/lib720/caprica/vlcj/waiter/package-info.java +++ b/lib-vlcj/src/main/java/uk/co/caprica/vlcj/waiter/package-info.java @@ -7,4 +7,4 @@ * Most applications are not expected to use this synchronous approach, but there are some use-cases where it can be * convenient. */ -package me.lib720.caprica.vlcj.waiter; +package uk.co.caprica.vlcj.waiter; diff --git a/lib-vlcj/src/main/resources/META-INF/services/me.lib720.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider b/lib-vlcj/src/main/resources/META-INF/services/me.lib720.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider deleted file mode 100644 index c1a9a159..00000000 --- a/lib-vlcj/src/main/resources/META-INF/services/me.lib720.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider +++ /dev/null @@ -1,8 +0,0 @@ -me.lib720.caprica.vlcj.factory.discovery.provider.CustomDirectoryProvider -me.lib720.caprica.vlcj.factory.discovery.provider.ConfigurationFileDiscoveryDirectoryProvider -me.lib720.caprica.vlcj.factory.discovery.provider.JnaLibraryPathDirectoryProvider -me.lib720.caprica.vlcj.factory.discovery.provider.LinuxWellKnownDirectoryProvider -me.lib720.caprica.vlcj.factory.discovery.provider.OsxWellKnownDirectoryProvider -me.lib720.caprica.vlcj.factory.discovery.provider.SystemPathDirectoryProvider -me.lib720.caprica.vlcj.factory.discovery.provider.UserDirDirectoryProvider -me.lib720.caprica.vlcj.factory.discovery.provider.WindowsInstallDirectoryProvider \ No newline at end of file diff --git a/lib-vlcj/src/main/resources/META-INF/services/uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider b/lib-vlcj/src/main/resources/META-INF/services/uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider new file mode 100644 index 00000000..6daac33c --- /dev/null +++ b/lib-vlcj/src/main/resources/META-INF/services/uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider @@ -0,0 +1,7 @@ +uk.co.caprica.vlcj.factory.discovery.provider.ConfigurationFileDiscoveryDirectoryProvider +uk.co.caprica.vlcj.factory.discovery.provider.JnaLibraryPathDirectoryProvider +uk.co.caprica.vlcj.factory.discovery.provider.LinuxWellKnownDirectoryProvider +uk.co.caprica.vlcj.factory.discovery.provider.OsxWellKnownDirectoryProvider +uk.co.caprica.vlcj.factory.discovery.provider.SystemPathDirectoryProvider +uk.co.caprica.vlcj.factory.discovery.provider.UserDirDirectoryProvider +uk.co.caprica.vlcj.factory.discovery.provider.WindowsInstallDirectoryProvider \ No newline at end of file diff --git a/src/main/java/me/srrapero720/watermedia/OperativeSystem.java b/src/main/java/me/srrapero720/watermedia/OperativeSystem.java index 0e980c6b..3497e611 100644 --- a/src/main/java/me/srrapero720/watermedia/OperativeSystem.java +++ b/src/main/java/me/srrapero720/watermedia/OperativeSystem.java @@ -1,6 +1,7 @@ package me.srrapero720.watermedia; import com.sun.jna.Platform; +import me.srrapero720.watermedia.runtime.UnsupportedArchitechtureException; import static me.srrapero720.watermedia.WaterMedia.IT; import static me.srrapero720.watermedia.WaterMedia.LOGGER; @@ -60,7 +61,7 @@ private static OperativeSystem getOs() { } return DUMMY; } else { - throw new IllegalStateException("32 BITS IS NOT SUPPORTED"); + throw new UnsupportedArchitechtureException(); } } } \ No newline at end of file diff --git a/src/main/java/me/srrapero720/watermedia/api/config/support/CustomDirectoryProvider.java b/src/main/java/me/srrapero720/watermedia/api/config/support/CustomDirectoryProvider.java new file mode 100644 index 00000000..626e1e83 --- /dev/null +++ b/src/main/java/me/srrapero720/watermedia/api/config/support/CustomDirectoryProvider.java @@ -0,0 +1,21 @@ +package me.srrapero720.watermedia.api.config.support; + +import me.srrapero720.watermedia.WaterMedia; +import uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider; + +public class CustomDirectoryProvider implements DiscoveryDirectoryProvider { + @Override + public int priority() { + return 5; + } + + @Override + public boolean supported() { + return true; + } + + @Override + public String[] directories() { + return new String[] {WaterMedia.getLoader().tempDir().resolve("videolan").toAbsolutePath().toString()}; + } +} diff --git a/src/main/java/me/srrapero720/watermedia/api/player/PlayerAPI.java b/src/main/java/me/srrapero720/watermedia/api/player/PlayerAPI.java index ad7cca31..348c8c59 100644 --- a/src/main/java/me/srrapero720/watermedia/api/player/PlayerAPI.java +++ b/src/main/java/me/srrapero720/watermedia/api/player/PlayerAPI.java @@ -1,8 +1,6 @@ package me.srrapero720.watermedia.api.player; -import me.lib720.caprica.vlcj.VideoLan4J; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.factory.discovery.NativeDiscovery; +import com.sun.jna.Platform; import me.srrapero720.watermedia.OperativeSystem; import me.srrapero720.watermedia.WaterMedia; import me.srrapero720.watermedia.api.WaterMediaAPI; @@ -15,6 +13,8 @@ import org.apache.commons.lang3.ArrayUtils; import org.apache.logging.log4j.Marker; import org.apache.logging.log4j.MarkerManager; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.factory.discovery.NativeDiscovery; import java.io.File; import java.io.IOException; @@ -165,7 +165,7 @@ public void start(ILoader bootCore) throws Exception { } // VLCJ INIT - VideoLan4J.init(dir.toAbsolutePath()); +// VideoLan4J.init(dir.toAbsolutePath()); // // VLC INIT, this need to be soft-crashed because api and game can still work without VLC try { diff --git a/src/main/java/me/srrapero720/watermedia/api/player/SyncBasePlayer.java b/src/main/java/me/srrapero720/watermedia/api/player/SyncBasePlayer.java index 213639c6..0d1aad3a 100644 --- a/src/main/java/me/srrapero720/watermedia/api/player/SyncBasePlayer.java +++ b/src/main/java/me/srrapero720/watermedia/api/player/SyncBasePlayer.java @@ -1,21 +1,21 @@ package me.srrapero720.watermedia.api.player; -import me.lib720.caprica.vlcj.binding.RuntimeUtil; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.media.InfoApi; -import me.lib720.caprica.vlcj.media.MediaType; -import me.lib720.caprica.vlcj.player.base.EmbededMediaPlayerEventListener; -import me.lib720.caprica.vlcj.player.base.MediaPlayer; -import me.lib720.caprica.vlcj.player.base.State; -import me.lib720.caprica.vlcj.player.component.CallbackMediaPlayerComponent; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.SimpleBufferFormatCallback; +import com.sun.jna.Platform; import me.srrapero720.watermedia.api.url.UrlAPI; import me.srrapero720.watermedia.api.url.fixers.URLFixer; import me.srrapero720.watermedia.core.annotations.Experimental; import me.srrapero720.watermedia.core.tools.ThreadTool; import org.apache.logging.log4j.Marker; import org.apache.logging.log4j.MarkerManager; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.media.InfoApi; +import uk.co.caprica.vlcj.media.MediaType; +import uk.co.caprica.vlcj.player.base.EmbededMediaPlayerEventListener; +import uk.co.caprica.vlcj.player.base.MediaPlayer; +import uk.co.caprica.vlcj.player.base.State; +import uk.co.caprica.vlcj.player.component.CallbackMediaPlayerComponent; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.RenderCallback; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.SimpleBufferFormatCallback; import java.net.URL; @@ -100,6 +100,7 @@ public void startPaused(CharSequence url, String[] vlcArgs) { }); } + @Deprecated public State getRawPlayerState() { if (raw == null) return State.ERROR; return raw.mediaPlayer().status().state(); @@ -271,7 +272,7 @@ public void setMuteMode(boolean mode) { */ public long getDuration() { if (raw == null) return 0L; - if (!isValid() || (RuntimeUtil.isNix() && getRawPlayerState().equals(State.STOPPED))) return 0L; + if (!isValid() || (Platform.isLinux() && getRawPlayerState().equals(State.STOPPED))) return 0L; return raw.mediaPlayer().status().length(); } diff --git a/src/main/java/me/srrapero720/watermedia/api/player/SyncMusicPlayer.java b/src/main/java/me/srrapero720/watermedia/api/player/SyncMusicPlayer.java index 1bba768d..00749aeb 100644 --- a/src/main/java/me/srrapero720/watermedia/api/player/SyncMusicPlayer.java +++ b/src/main/java/me/srrapero720/watermedia/api/player/SyncMusicPlayer.java @@ -1,6 +1,6 @@ package me.srrapero720.watermedia.api.player; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; /** * Player variant with NO VIDEO diff --git a/src/main/java/me/srrapero720/watermedia/api/player/SyncVideoPlayer.java b/src/main/java/me/srrapero720/watermedia/api/player/SyncVideoPlayer.java index 5f1ea7af..55e9fcfd 100644 --- a/src/main/java/me/srrapero720/watermedia/api/player/SyncVideoPlayer.java +++ b/src/main/java/me/srrapero720/watermedia/api/player/SyncVideoPlayer.java @@ -1,11 +1,11 @@ package me.srrapero720.watermedia.api.player; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; import me.srrapero720.watermedia.api.rendering.RenderAPI; import org.apache.logging.log4j.Marker; import org.apache.logging.log4j.MarkerManager; import org.lwjgl.opengl.GL11; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; import java.awt.*; import java.nio.ByteBuffer; diff --git a/src/main/java/me/srrapero720/watermedia/api/player/vlc/VideoPlayer.java b/src/main/java/me/srrapero720/watermedia/api/player/vlc/VideoPlayer.java index 425a95cd..291831df 100644 --- a/src/main/java/me/srrapero720/watermedia/api/player/vlc/VideoPlayer.java +++ b/src/main/java/me/srrapero720/watermedia/api/player/vlc/VideoPlayer.java @@ -1,7 +1,5 @@ package me.srrapero720.watermedia.api.player.vlc; -import me.lib720.caprica.vlcj.factory.MediaPlayerFactory; -import me.lib720.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; import me.srrapero720.watermedia.api.player.PlayerAPI; import me.srrapero720.watermedia.api.player.SyncBasePlayer; import me.srrapero720.watermedia.api.rendering.RenderAPI; @@ -12,6 +10,8 @@ import org.lwjgl.opengl.GL12; import org.lwjgl.opengl.GL15; import org.lwjgl.opengl.GL21; +import uk.co.caprica.vlcj.factory.MediaPlayerFactory; +import uk.co.caprica.vlcj.player.embedded.videosurface.callback.BufferFormat; import java.awt.*; import java.nio.Buffer; diff --git a/src/main/java/me/srrapero720/watermedia/runtime/UnsupportedArchitechtureException.java b/src/main/java/me/srrapero720/watermedia/runtime/UnsupportedArchitechtureException.java new file mode 100644 index 00000000..6d1e260d --- /dev/null +++ b/src/main/java/me/srrapero720/watermedia/runtime/UnsupportedArchitechtureException.java @@ -0,0 +1,7 @@ +package me.srrapero720.watermedia.runtime; + +public class UnsupportedArchitechtureException extends UnsupportedOperationException { + public UnsupportedArchitechtureException() { + super("32 bits are not supported"); + } +} diff --git a/src/main/resources/META-INF/services/uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider b/src/main/resources/META-INF/services/uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider new file mode 100644 index 00000000..6ee90850 --- /dev/null +++ b/src/main/resources/META-INF/services/uk.co.caprica.vlcj.factory.discovery.provider.DiscoveryDirectoryProvider @@ -0,0 +1 @@ +me.srrapero720.watermedia.api.config.support.CustomDirectoryProvider \ No newline at end of file