mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #2508, Support features query by API. 4.0.149
This commit is contained in:
parent
86e506e6ec
commit
ee376da0c6
6 changed files with 251 additions and 41 deletions
|
@ -643,6 +643,7 @@ private:
|
|||
public:
|
||||
// Whether the forwarder enabled.
|
||||
virtual bool get_forward_enabled(std::string vhost);
|
||||
virtual bool get_forward_enabled(SrsConfDirective* vhost);
|
||||
// Get the forward directive of vhost.
|
||||
virtual SrsConfDirective* get_forwards(std::string vhost);
|
||||
|
||||
|
@ -686,6 +687,7 @@ public:
|
|||
// Whether vhost http-hooks enabled.
|
||||
// @remark, if not enabled, donot callback all http hooks.
|
||||
virtual bool get_vhost_http_hooks_enabled(std::string vhost);
|
||||
virtual bool get_vhost_http_hooks_enabled(SrsConfDirective* vhost);
|
||||
// Get the on_connect callbacks of vhost.
|
||||
// @return the on_connect callback directive, the args is the url to callback.
|
||||
virtual SrsConfDirective* get_vhost_on_connect(std::string vhost);
|
||||
|
@ -761,6 +763,7 @@ public:
|
|||
public:
|
||||
// Whether the secrity of vhost enabled.
|
||||
virtual bool get_security_enabled(std::string vhost);
|
||||
virtual bool get_security_enabled(SrsConfDirective* vhost);
|
||||
// Get the security rules.
|
||||
virtual SrsConfDirective* get_security_rules(std::string vhost);
|
||||
// vhost transcode section
|
||||
|
@ -843,6 +846,7 @@ private:
|
|||
public:
|
||||
// Whether the exec is enabled of vhost.
|
||||
virtual bool get_exec_enabled(std::string vhost);
|
||||
virtual bool get_exec_enabled(SrsConfDirective* vhost);
|
||||
// Get all exec publish directives of vhost.
|
||||
virtual std::vector<SrsConfDirective*> get_exec_publishs(std::string vhost);
|
||||
// vhost ingest section
|
||||
|
@ -880,6 +884,7 @@ private:
|
|||
public:
|
||||
// Whether DASH is enabled.
|
||||
virtual bool get_dash_enabled(std::string vhost);
|
||||
virtual bool get_dash_enabled(SrsConfDirective* vhost);
|
||||
// Get the duration of segment in srs_utime_t.
|
||||
virtual srs_utime_t get_dash_fragment(std::string vhost);
|
||||
// Get the period to update MPD in srs_utime_t.
|
||||
|
@ -897,6 +902,7 @@ private:
|
|||
public:
|
||||
// Whether HLS is enabled.
|
||||
virtual bool get_hls_enabled(std::string vhost);
|
||||
virtual bool get_hls_enabled(SrsConfDirective* vhost);
|
||||
// Get the HLS m3u8 list ts segment entry prefix info.
|
||||
virtual std::string get_hls_entry_prefix(std::string vhost);
|
||||
// Get the HLS ts/m3u8 file store path.
|
||||
|
@ -954,6 +960,7 @@ private:
|
|||
public:
|
||||
// Whether HDS is enabled.
|
||||
virtual bool get_hds_enabled(const std::string &vhost);
|
||||
virtual bool get_hds_enabled(SrsConfDirective* vhost);
|
||||
// Get the HDS file store path.
|
||||
virtual std::string get_hds_path(const std::string &vhost);
|
||||
// Get the hds fragment time, in srs_utime_t.
|
||||
|
@ -968,6 +975,7 @@ private:
|
|||
public:
|
||||
// Whether dvr is enabled.
|
||||
virtual bool get_dvr_enabled(std::string vhost);
|
||||
virtual bool get_dvr_enabled(SrsConfDirective* 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);
|
||||
|
@ -1043,6 +1051,7 @@ public:
|
|||
public:
|
||||
// Get whether vhost enabled http flv live stream
|
||||
virtual bool get_vhost_http_remux_enabled(std::string vhost);
|
||||
virtual bool get_vhost_http_remux_enabled(SrsConfDirective* vhost);
|
||||
// Get the fast cache duration for http audio live stream.
|
||||
virtual srs_utime_t get_vhost_http_remux_fast_cache(std::string vhost);
|
||||
// Get the http flv live stream mount point for vhost.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue