mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-25 19:32:21 +08:00
AI automatically translates all comments in the code into English (#3917)
This commit is contained in:
@@ -29,26 +29,42 @@ public:
|
||||
|
||||
/**
|
||||
* 获取媒体源的环形缓冲
|
||||
* Get the circular buffer of the media source
|
||||
|
||||
* [AUTO-TRANSLATED:75ac76b6]
|
||||
*/
|
||||
const RingType::Ptr &getRing() const { return _ring; }
|
||||
|
||||
/**
|
||||
* 获取播放器个数
|
||||
* Get the number of players
|
||||
|
||||
* [AUTO-TRANSLATED:a451c846]
|
||||
*/
|
||||
int readerCount() override { return _ring ? _ring->readerCount() : 0; }
|
||||
|
||||
/**
|
||||
* 设置或清空m3u8索引文件内容
|
||||
* Set or clear the m3u8 index file content
|
||||
|
||||
* [AUTO-TRANSLATED:71db921d]
|
||||
*/
|
||||
void setIndexFile(std::string index_file);
|
||||
|
||||
/**
|
||||
* 异步获取m3u8文件
|
||||
* Asynchronously get the m3u8 file
|
||||
|
||||
* [AUTO-TRANSLATED:e962b3ad]
|
||||
*/
|
||||
void getIndexFile(std::function<void(const std::string &str)> cb);
|
||||
|
||||
/**
|
||||
* 同步获取m3u8文件
|
||||
* Synchronously get the m3u8 file
|
||||
|
||||
|
||||
* [AUTO-TRANSLATED:52b228df]
|
||||
*/
|
||||
std::string getIndexFile() const {
|
||||
std::lock_guard<std::mutex> lck(_mtx_index);
|
||||
|
||||
Reference in New Issue
Block a user