AI automatically translates all comments in the code into English (#3917)

This commit is contained in:
alex
2024-09-19 14:53:50 +08:00
committed by GitHub
parent 046de691cb
commit 4152dcd409
279 changed files with 10602 additions and 3038 deletions

View File

@@ -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);