startVideoStreaming()
Starts streaming video with audio using the specified settings.
int startVideoStreaming(VideoQuality quality,
StreamingBufferCallback videoBufferCallback,
StreamingBufferCallback audioBufferCallback,
StreamingEventCallback streamingEventCallback)
Parameters
quality
This specifies the resolution and bit rate of the video taken using the VIVE AI Glasses camera.
videoBufferCallback
This is the callback that receives the video data.
audioBufferCallback
This is the callback that receives the audio data.
streamingEventCallback
This is the callback that receives the streaming event.
Return value
0 if function calling is successful; otherwise, -1 .
Exception
The following exceptions may be thrown: UnregisteredAppException, GlassesPermissionDeniedException.
See also
Video streaming
void stopVideoStreaming ()
Stops the video session and releases all associated resources.
boolean isVideoStreaming ()
Checks if there is an ongoing video session.
Responding from VIVE AI Glasses event
interface StreamingEventCallback
This protocol defines the methods for handling the asynchronous streaming event received from VIVE AI Glasses.
interface StreamingBufferCallback
This protocol defines the methods for handling asynchronous streaming data transmissions received from VIVE AI Glasses.
Enumerations
enum VideoQuality
This defines the resolution and bit rate for videos taken using the VIVE AI Glasses camera.
enum StreamingEvent
This defines the lifecycle state of a media stream.
Error handling and exceptions
This represents an error thrown by the VIVE AI Glasses SDK.