mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #459, dvr support apply filter for ng-control dvr module.
This commit is contained in:
parent
8f9cfcdcf4
commit
2a1b2b69a0
13 changed files with 273 additions and 98 deletions
|
@ -35,6 +35,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
|
||||
#include <srs_app_reload.hpp>
|
||||
|
||||
class SrsRequest;
|
||||
class SrsFileWriter;
|
||||
class SrsAmf0Object;
|
||||
class SrsAmf0StrictArray;
|
||||
|
@ -1115,6 +1116,11 @@ public:
|
|||
* whether dvr is enabled.
|
||||
*/
|
||||
virtual bool get_dvr_enabled(std::string vhost);
|
||||
/**
|
||||
* get the filter of dvr to apply to.
|
||||
* @remark user can use srs_config_apply_filter(conf, req):bool to check it.
|
||||
*/
|
||||
virtual SrsConfDirective* get_dvr_apply(std::string vhost);
|
||||
/**
|
||||
* get the dvr path, the flv file to save in.
|
||||
*/
|
||||
|
@ -1308,8 +1314,9 @@ namespace _srs_internal
|
|||
|
||||
/**
|
||||
* deep compare directive.
|
||||
*/
|
||||
*/
|
||||
extern bool srs_directive_equals(SrsConfDirective* a, SrsConfDirective* b);
|
||||
extern bool srs_directive_equals(SrsConfDirective* a, SrsConfDirective* b, std::string except);
|
||||
|
||||
/**
|
||||
* helper utilities, used for compare the consts values.
|
||||
|
@ -1324,6 +1331,8 @@ extern bool srs_config_dvr_is_plan_append(std::string plan);
|
|||
extern bool srs_stream_caster_is_udp(std::string caster);
|
||||
extern bool srs_stream_caster_is_rtsp(std::string caster);
|
||||
extern bool srs_stream_caster_is_flv(std::string caster);
|
||||
// whether the dvr_apply active the stream specified by req.
|
||||
extern bool srs_config_apply_filter(SrsConfDirective* dvr_apply, SrsRequest* req);
|
||||
|
||||
/**
|
||||
* convert bool in str to on/off
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue