Class DummyVideoManager

java.lang.Object
com.igrium.videolib.dummy.DummyVideoManager
All Implemented Interfaces:
VideoManager, AutoCloseable

public class DummyVideoManager extends Object implements VideoManager
The video manager that gets loaded when no implementation is found.
  • Constructor Details

    • DummyVideoManager

      public DummyVideoManager()
  • Method Details

    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • getPlayer

      public VideoPlayer getPlayer(net.minecraft.util.Identifier id)
      Description copied from interface: VideoManager
      Get a video player by its identifier.
      Specified by:
      getPlayer in interface VideoManager
      Parameters:
      id - Identifier to use.
      Returns:
      Corresponding video player, or null if no video player by this ID exists.
    • getOrCreate

      public VideoPlayer getOrCreate(net.minecraft.util.Identifier id)
      Description copied from interface: VideoManager
      Get a video player by its identifier, or create it if it does not exist.
      Specified by:
      getOrCreate in interface VideoManager
      Parameters:
      id - Identifier to use.
      Returns:
      The video player.
    • closePlayer

      public boolean closePlayer(net.minecraft.util.Identifier id)
      Description copied from interface: VideoManager
      Close a video player and remove it from this manager's pool.
      Specified by:
      closePlayer in interface VideoManager
      Parameters:
      id - Video player ID.
      Returns:
      If this video player was found.
    • getReloadListener

      public net.fabricmc.fabric.api.resource.IdentifiableResourceReloadListener getReloadListener()
      Description copied from interface: VideoManager
      Get a resource reload listener responsible for loading video files.
      Specified by:
      getReloadListener in interface VideoManager
      Returns:
      Reload listener.
    • supportedExtensions

      public Collection<String> supportedExtensions()
      Description copied from interface: VideoManager
      Get the extensions that this implementation supports.
      Specified by:
      supportedExtensions in interface VideoManager
      Returns:
      A collection of extensions, excluding the period. ('mp4', NOT '.mp4')
    • getVideoHandleFactory

      public VideoHandleFactory getVideoHandleFactory()
      Description copied from interface: VideoManager
      Get a video handle factory that will create handles compatible with this video manager.
      Specified by:
      getVideoHandleFactory in interface VideoManager
      Returns:
      The video handle factory.