完成PlayerProxy改造

This commit is contained in:
xiongziliang
2018-10-26 17:14:39 +08:00
parent f26076635d
commit 097cf273d5
7 changed files with 89 additions and 81 deletions

View File

@@ -38,7 +38,9 @@ using namespace toolkit;
namespace mediakit {
class PlayerProxy :public MediaPlayer, public std::enable_shared_from_this<PlayerProxy> , public MediaSourceEvent {
class PlayerProxy :public MediaPlayer,
public std::enable_shared_from_this<PlayerProxy> ,
public MediaSourceEvent{
public:
typedef std::shared_ptr<PlayerProxy> Ptr;
@@ -58,7 +60,7 @@ public:
private:
void initMedia();
void rePlay(const string &strUrl,int iFailedCnt);
void makeMuteAudio(uint32_t stamp);
void onPlaySuccess();
private:
bool _bEnableHls;
bool _bEnableMp4;
@@ -67,8 +69,6 @@ private:
string _strVhost;
string _strApp;
string _strSrc;
bool _haveAudio = false;
int _iAudioIndex = 0;
};
} /* namespace mediakit */