diff --git a/src/Player/PlayerBase.cpp b/src/Player/PlayerBase.cpp index 6e3f1c53..526c8ffc 100644 --- a/src/Player/PlayerBase.cpp +++ b/src/Player/PlayerBase.cpp @@ -48,7 +48,7 @@ PlayerBase::Ptr PlayerBase::createPlayer(const EventPoller::Ptr &poller,const st return PlayerBase::Ptr(new RtmpPlayerImp(poller),releasePlayer); } - if (strcasecmp("http",prefix.data()) == 0 && end_of(strUrl, ".m3u8")) { + if ((strcasecmp("http",prefix.data()) == 0 || strcasecmp("https",prefix.data()) == 0) && end_of(strUrl, ".m3u8")) { return PlayerBase::Ptr(new HlsPlayerImp(poller),releasePlayer); }