mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-04 09:47:33 +08:00
新增支持播发器画面秒开功能
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user