Class DummyVideoManager.DummyVideoHandle

java.lang.Object
com.igrium.videolib.dummy.DummyVideoManager.DummyVideoHandle
All Implemented Interfaces:
VideoHandle
Enclosing class:
DummyVideoManager

public static class DummyVideoManager.DummyVideoHandle extends Object implements VideoHandle
  • Constructor Details

    • DummyVideoHandle

      public DummyVideoHandle()
  • Method Details

    • getAddress

      public Optional<String> getAddress()
      Description copied from interface: VideoHandle
      Get an accessible URL that can be passed directly to a playback implementation.
      Specified by:
      getAddress in interface VideoHandle
      Returns:
      The address, or an empty optional if this video can only be accessed through the handle's openStream function.
    • openStream

      public InputStream openStream() throws IOException
      Description copied from interface: VideoHandle
      Open an input stream with the contents of this video file.
      Specified by:
      openStream in interface VideoHandle
      Returns:
      The input stream.
      Throws:
      IOException - If the stream cannot be opened.