|
|
|
@ -566,8 +566,8 @@ public:
|
|
|
|
|
// for play live stream,
|
|
|
|
|
// used to specified the stop when exceed the duration.
|
|
|
|
|
// @see https://github.com/ossrs/srs/issues/45
|
|
|
|
|
// in ms.
|
|
|
|
|
double duration;
|
|
|
|
|
// in srs_utime_t.
|
|
|
|
|
srs_utime_t duration;
|
|
|
|
|
// the token in the connect request,
|
|
|
|
|
// used for edge traverse to origin authentication,
|
|
|
|
|
// @see https://github.com/ossrs/srs/issues/104
|
|
|
|
@ -911,7 +911,7 @@ public:
|
|
|
|
|
* @stream_name, output the client publish/play stream name. @see: SrsRequest.stream
|
|
|
|
|
* @duration, output the play client duration. @see: SrsRequest.duration
|
|
|
|
|
*/
|
|
|
|
|
virtual srs_error_t identify_client(int stream_id, SrsRtmpConnType& type, std::string& stream_name, double& duration);
|
|
|
|
|
virtual srs_error_t identify_client(int stream_id, SrsRtmpConnType& type, std::string& stream_name, srs_utime_t& duration);
|
|
|
|
|
/**
|
|
|
|
|
* set the chunk size when client type identified.
|
|
|
|
|
*/
|
|
|
|
@ -983,12 +983,12 @@ public:
|
|
|
|
|
return protocol->expect_message<T>(pmsg, ppacket);
|
|
|
|
|
}
|
|
|
|
|
private:
|
|
|
|
|
virtual srs_error_t identify_create_stream_client(SrsCreateStreamPacket* req, int stream_id, SrsRtmpConnType& type, std::string& stream_name, double& duration);
|
|
|
|
|
virtual srs_error_t identify_create_stream_client(SrsCreateStreamPacket* req, int stream_id, SrsRtmpConnType& type, std::string& stream_name, srs_utime_t& duration);
|
|
|
|
|
virtual srs_error_t identify_fmle_publish_client(SrsFMLEStartPacket* req, SrsRtmpConnType& type, std::string& stream_name);
|
|
|
|
|
virtual srs_error_t identify_haivision_publish_client(SrsFMLEStartPacket* req, SrsRtmpConnType& type, std::string& stream_name);
|
|
|
|
|
virtual srs_error_t identify_flash_publish_client(SrsPublishPacket* req, SrsRtmpConnType& type, std::string& stream_name);
|
|
|
|
|
private:
|
|
|
|
|
virtual srs_error_t identify_play_client(SrsPlayPacket* req, SrsRtmpConnType& type, std::string& stream_name, double& duration);
|
|
|
|
|
virtual srs_error_t identify_play_client(SrsPlayPacket* req, SrsRtmpConnType& type, std::string& stream_name, srs_utime_t& duration);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|