mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #179, refine dvr code to more simple.
This commit is contained in:
parent
3d225e1bc7
commit
95b4baee7c
6 changed files with 609 additions and 429 deletions
|
@ -60,6 +60,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#define SRS_CONF_DEFAULT_DVR_PATH "./objs/nginx/html"
|
||||
#define SRS_CONF_DEFAULT_DVR_PLAN_SESSION "session"
|
||||
#define SRS_CONF_DEFAULT_DVR_PLAN_SEGMENT "segment"
|
||||
#define SRS_CONF_DEFAULT_DVR_PLAN_API "api"
|
||||
#define SRS_CONF_DEFAULT_DVR_PLAN SRS_CONF_DEFAULT_DVR_PLAN_SESSION
|
||||
#define SRS_CONF_DEFAULT_DVR_DURATION 30
|
||||
#define SRS_CONF_DEFAULT_TIME_JITTER "full"
|
||||
|
@ -921,14 +922,18 @@ public:
|
|||
*/
|
||||
virtual std::string get_dvr_plan(std::string vhost);
|
||||
/**
|
||||
* get the duration of dvr flv, for segment plan.
|
||||
* get the duration of dvr flv.
|
||||
*/
|
||||
virtual int get_dvr_duration(std::string vhost);
|
||||
/**
|
||||
* whether wait keyframe to reap segment, for segment plan.
|
||||
* whether wait keyframe to reap segment.
|
||||
*/
|
||||
virtual bool get_dvr_wait_keyframe(std::string vhost);
|
||||
/**
|
||||
* whether autostart for dvr. wait api to start dvr if false.
|
||||
*/
|
||||
virtual bool get_dvr_autostart(std::string vhost);
|
||||
/**
|
||||
* get the time_jitter algorithm for dvr.
|
||||
*/
|
||||
virtual int get_dvr_time_jitter(std::string vhost);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue