Package com.igrium.videolib.api
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 ClassesModifier and TypeInterfaceDescriptionstatic class
A video handle based on a given file.static class
A video handle based on a given URL. -
Method Summary
Modifier and TypeMethodDescriptionGet 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
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
Open an input stream with the contents of this video file.- Returns:
- The input stream.
- Throws:
IOException
- If the stream cannot be opened.
-