◆ close()
| void livekit::VideoStream::close |
( |
| ) |
|
Signal that we are no longer interested in video frames.
This disposes the underlying FFI video stream, unregisters the listener from FfiClient, marks the stream as closed, and wakes any blocking read(). After calling close(), further calls to read() will return false.
◆ read()
Blocking read: waits until a VideoFrameEvent is available in the internal queue, or the stream reaches EOS / is closed.
- Parameters
-
| out | On success, filled with the next video frame event. |
- Returns
- true if a frame was delivered; false if the stream ended (end-of-stream or close()) and no more data is available.
The documentation for this class was generated from the following file: