Interface VideoHandleFactory

All Known Implementing Classes:
DummyVideoManager.DummyVideoHandleFactory, VLCVideoManager.VLCVideoHandleFactory

public interface VideoHandleFactory
Creates or loads video handles that are compatible with a given video manager.
  • Method Details

    • getVideoHandle

      @Nullable VideoHandle getVideoHandle(net.minecraft.util.Identifier id)
      Get a video handle from an identifier.
      Parameters:
      id - The identifier.
      Returns:
      The handle, or null if no video by this ID exists.
    • getVideoHandle

      VideoHandle getVideoHandle(URL url)
      Get a video handle from a URL.
      Parameters:
      url - The URL.
      Returns:
      The handle.
    • getVideoHandle

      default VideoHandle getVideoHandle(String url) throws MalformedURLException
      Get a video from a URL in string form.
      Parameters:
      url - The URL.
      Returns:
      The handle.
      Throws:
      MalformedURLException - If URL is improperly formatted.