public interface IVideoSource extends IInvocable
IVideoSource
- video source.Modifier and Type | Interface and Description |
---|---|
static interface |
IVideoSource.IListener
IListener - video source listener. |
IInvocable.Method
Modifier and Type | Method and Description |
---|---|
VideoFrame |
capture()
Captures video frame from the source.
|
java.lang.String |
getName() |
VideoTrackInfo |
getTrackInfo() |
boolean |
isStarted()
Checks if video source is started.
|
void |
start(IVideoSource.IListener listener)
Opens and starts video source stream.
|
void |
stop()
Stops and closes video source.
|
invoke
java.lang.String getName()
VideoTrackInfo getTrackInfo()
null
if source is not started yetboolean isStarted()
true
if source is runningvoid start(IVideoSource.IListener listener) throws java.lang.Exception
listener
- source listenerjava.lang.Exception
- if an exception occurredVideoFrame capture() throws java.lang.Exception
java.lang.Exception
- if an exception occurredvoid stop()