tcp客户端支持指定网卡

This commit is contained in:
xiongziliang
2018-05-21 23:18:17 +08:00
parent 3b73e77710
commit 18bf6ec201
5 changed files with 10 additions and 5 deletions

View File

@@ -37,6 +37,7 @@ using namespace ZL::Rtsp;
namespace ZL {
namespace Player {
const char PlayerBase::kNetAdapter[] = "net_adapter";
PlayerBase::Ptr PlayerBase::createPlayer(const char* strUrl) {
string prefix = FindField(strUrl, NULL, "://");

View File

@@ -51,7 +51,8 @@ public:
RTP_MULTICAST = 2,
} eRtpType;
static Ptr createPlayer(const char* strUrl);
static const char kNetAdapter[];
PlayerBase(){};
virtual ~PlayerBase(){};
virtual void play(const char* strUrl) {};
@@ -79,8 +80,6 @@ public:
virtual float getDuration() const { return 0;};
virtual float getProgress() const { return 0;};
virtual void seekTo(float fProgress) {};
protected:
virtual void onShutdown(const SockException &ex) {};
virtual void onPlayResult(const SockException &ex) {};