Class StreamerInterface
Defined in File streamer.hpp
Inheritance Relationships
Derived Type
public web_video_server::StreamerBase(Class StreamerBase)
Class Documentation
-
class StreamerInterface
A common interface for all streaming plugins.
Subclassed by web_video_server::StreamerBase
Public Functions
-
inline virtual ~StreamerInterface()
-
virtual void start() = 0
Starts the streaming process.
-
virtual bool is_inactive() = 0
Returns true if the streamer is inactive and should be deleted.
This could be because the connection was closed or snapshot was successfully sent (in case of snapshot streamers).
-
virtual void restream_frame(std::chrono::duration<double> max_age) = 0
Restreams the last received image frame if older than max_age.
-
virtual std::string get_topic() = 0
Returns the topic being streamed.
-
inline virtual ~StreamerInterface()