Package com.igrium.videolib.api
Class VideoHandle.FileVideoHandle
java.lang.Object
com.igrium.videolib.api.VideoHandle.FileVideoHandle
- All Implemented Interfaces:
VideoHandle
- Enclosing interface:
- VideoHandle
A video handle based on a given file.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.igrium.videolib.api.VideoHandle
VideoHandle.FileVideoHandle, VideoHandle.UrlVideoHandle
-
Constructor Summary
Constructors -
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.toString()
-
Constructor Details
-
FileVideoHandle
-
-
Method Details
-
getAddress
Description copied from interface:VideoHandle
Get an accessible URL that can be passed directly to a playback implementation.- Specified by:
getAddress
in interfaceVideoHandle
- Returns:
- The address, or an empty optional if this video can only be accessed
through the handle's
openStream
function.
-
openStream
Description copied from interface:VideoHandle
Open an input stream with the contents of this video file.- Specified by:
openStream
in interfaceVideoHandle
- Returns:
- The input stream.
- Throws:
FileNotFoundException
-
toString
-