// // Created by Matthew on 2025/3/11. // #ifndef MICROPHOTO_STREAMING_H #define MICROPHOTO_STREAMING_H #include #include #include extern "C" { #include #include #include #include } class Streaming { public: virtual ~Streaming() {} virtual void start() {} virtual void stop() {} }; #if 0 class StreamForwarder : public Streaming { private: AVFormatContext* inputCtx = nullptr; AVFormatContext* outputCtx = nullptr; bool isRunning = false; public: StreamForwarder() = default; virtual ~StreamForwarder(); bool initialize(const std::string& inputUrl, const std::string& outputUrl); virtual void start(); virtual void stop(); private: bool openInput(const std::string& inputUrl); bool openOutput(const std::string& outputUrl); void forwardPackets(); }; #endif #endif //MICROPHOTO_STREAMING_H