新增支持播发器画面秒开功能

This commit is contained in:
xiongziliang
2017-06-20 11:46:17 +08:00
parent 24bbdb48cb
commit f3b5c8f75b
3 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ public:
RtmpMediaSource(const string &strApp, const string &strId) :
m_strApp(strApp),
m_strId(strId),
m_pRing( new RingBuffer<RtmpPacket>(1)),
m_pRing(new RingBuffer<RtmpPacket>()),
m_thPool( MediaSender::sendThread()) {
}
virtual ~RtmpMediaSource() {
@@ -120,7 +120,7 @@ public:
}
auto _ring = m_pRing;
m_thPool.async([_ring,pkt]() {
_ring->write(pkt);
_ring->write(pkt,pkt.isVideoKeyFrame());
});
}
bool seekTo(uint32_t ui32Stamp) {