mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
add HLS encryption feature
This commit is contained in:
parent
0d78b908a7
commit
52596a0b04
8 changed files with 378 additions and 11 deletions
|
@ -1236,6 +1236,26 @@ public:
|
|||
* whether reap the ts when got keyframe.
|
||||
*/
|
||||
virtual bool get_hls_wait_keyframe(std::string vhost);
|
||||
/**
|
||||
* encrypt ts or not
|
||||
*/
|
||||
virtual bool get_hls_keys(std::string vhost);
|
||||
/**
|
||||
* how many fragments can one key encrypted.
|
||||
*/
|
||||
virtual int get_hls_fragments_per_key(std::string vhost);
|
||||
/**
|
||||
* get the HLS key file path template.
|
||||
*/
|
||||
virtual std::string get_hls_key_file(std::string vhost);
|
||||
/**
|
||||
* get the HLS key file store path.
|
||||
*/
|
||||
virtual std::string get_hls_key_file_path(std::string vhost);
|
||||
/**
|
||||
* get the HLS key file url which will be put in m3u8
|
||||
*/
|
||||
virtual std::string get_hls_key_url(std::string vhost);
|
||||
/**
|
||||
* get the size of bytes to read from cdn network, for the on_hls_notify callback,
|
||||
* that is, to read max bytes of the bytes from the callback, or timeout or error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue