|
Flyby SDK v0.3.0
|
The base stream class. More...
#include <stream.h>


Public Member Functions | |
| Stream (const std::string &name) | |
| Creates a new named stream. | |
| Stream (std::string name, unsigned int endpoint_idx, std::string uuid) | |
| Internal stream constructor. | |
| void | register_camera (std::shared_ptr< CameraInterface > camera) final |
| Register a camera that can publish through this stream. | |
| void | start_stream (unsigned int endpoint_idx, std::function< void(std::string)> set_alive_callback) override |
| Register a camera that can publish through this stream. | |
| void | set_active_camera (unsigned int camera_idx) override |
| Set the active camera. | |
| unsigned int | get_endpoint_idx () const final |
| Get the stream endpoint index. | |
| const std::vector< std::shared_ptr< const CameraInterface > > & | get_cameras_const () const final |
| Get the stream cameras. | |
The base stream class.
This class should be extended by overriding the start_stream method.
| flyby::Stream::Stream | ( | std::string | name, |
| unsigned int | endpoint_idx, | ||
| std::string | uuid ) |
Internal stream constructor.
Note that this constructor should not be used, since the index will be overwritten. This is only used internally.
|
nodiscardfinal |
Get the stream cameras.
|
nodiscardfinal |
Get the stream endpoint index.
|
override |
Set the active camera.
This function should be overridden to handle camera switching
|
override |
Register a camera that can publish through this stream.
This function should be overridden to create and publish a stream to the corresponding stream endpoint of the drone RTSP server.
This function should call the set_alive_callback when the stream is active and publishing.