MistServer  2.5.3-Pro-19-gf5e75b1 ( Generic_64)
output_rtmp.h
Go to the documentation of this file.
1 #include "output.h"
2 #include <mist/flv_tag.h>
3 #include <mist/amf.h>
4 #include <mist/rtmpchunks.h>
5 
6 
7 namespace Mist {
8 
9  class OutRTMP : public Output {
10  public:
12  ~OutRTMP();
13  static void init(Util::Config * cfg);
14  void onRequest();
15  void sendNext();
16  void sendHeader();
17  protected:
18  void parseVars(std::string data);
19  std::string app_name;
21  void parseAMFCommand(AMF::Object & amfData, int messageType, int streamId);
22  void sendCommand(AMF::Object & amfReply, int messageType, int streamId);
23  };
24 }
25 
std::string app_name
Definition: output_rtmp.h:19
void parseVars(std::string data)
Definition: output_rtmp.cpp:40
Definition: input_buffer.h:8
A buffer made out of std::string objects that can be efficiently read from and written to...
Definition: socket.h:28
OutRTMP(Socket::Connection &conn)
Definition: output_rtmp.cpp:11
void parseAMFCommand(AMF::Object &amfData, int messageType, int streamId)
Parses a single AMF command message, and sends a direct response through sendCommand().
Definition: output_rtmp.cpp:345
static void init(Util::Config *cfg)
Definition: output_rtmp.cpp:95
Definition: output_rtmp.h:9
Recording to file.
Definition: input.cpp:13
void parseChunk(Socket::Buffer &inputBuffer)
Gets and parses one RTMP chunk at a time.
Definition: output_rtmp.cpp:781
The output class is intended to be inherited by MistOut process classes.
Definition: output.h:41
Deals with parsing configuration from commandline options.
Definition: config.h:18
Recursive class that holds AMF0 objects.
Definition: amf.h:55
~OutRTMP()
Definition: output_rtmp.cpp:38
void sendNext()
Definition: output_rtmp.cpp:124
void sendHeader()
Definition: output_rtmp.cpp:285
This class is for easy communicating through sockets, either TCP or Unix.
Definition: socket.h:47
void sendCommand(AMF::Object &amfReply, int messageType, int streamId)
Sends a RTMP command either in AMF or AMF3 mode.
Definition: output_rtmp.cpp:315
void onRequest()
Definition: output_rtmp.cpp:307
Mist::OutRTMP mistOut
Definition: output_rtmp.h:26