mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-20 23:32:22 +08:00
无音频时生成静音音频,防止播放器加载画面太慢
修复MAC下SDL必须在主线程渲染的问题
This commit is contained in:
@@ -55,17 +55,20 @@ public:
|
||||
|
||||
void play(const char* strUrl) override;
|
||||
bool shutDown() override;
|
||||
private:
|
||||
void initMedia();
|
||||
void rePlay(const string &strUrl,int iFailedCnt);
|
||||
void makeMuteAudio(uint32_t stamp);
|
||||
private:
|
||||
bool m_bEnableHls;
|
||||
bool m_bEnableMp4;
|
||||
int m_iRetryCount;
|
||||
DevChannel::Ptr m_pChn;
|
||||
string m_strVhost;
|
||||
string m_strApp;
|
||||
string m_strSrc;
|
||||
private:
|
||||
void initMedia();
|
||||
void rePlay(const string &strUrl,int iFailedCnt);
|
||||
string m_strVhost;
|
||||
string m_strApp;
|
||||
string m_strSrc;
|
||||
bool m_haveAudio = false;
|
||||
int m_iAudioIndex = 0;
|
||||
};
|
||||
|
||||
} /* namespace Player */
|
||||
|
||||
Reference in New Issue
Block a user