Interface VideoHandle

All Known Implementing Classes:
DummyVideoManager.DummyVideoHandle, VideoHandle.FileVideoHandle, VideoHandle.UrlVideoHandle

public interface VideoHandle
A reference to a video that can be played by a media player.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A video handle based on a given file.
    static class 
    A video handle based on a given URL.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get an accessible URL that can be passed directly to a playback implementation.
    Open an input stream with the contents of this video file.
  • Method Details

    • getAddress

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

      InputStream openStream() throws IOException
      Open an input stream with the contents of this video file.
      Returns:
      The input stream.
      Throws:
      IOException - If the stream cannot be opened.