Feature: change rtmp channel of video

pull/221/head
xufuji456 2 years ago
parent 9e62e6872a
commit 81de600d4c
  1. 2
      Live/src/main/cpp/VideoStream.cpp

@ -175,7 +175,7 @@ void VideoStream::sendSpsPps(uint8_t *sps, uint8_t *pps, int sps_len, int pps_le
//video //video
packet->m_packetType = RTMP_PACKET_TYPE_VIDEO; packet->m_packetType = RTMP_PACKET_TYPE_VIDEO;
packet->m_nBodySize = bodySize; packet->m_nBodySize = bodySize;
packet->m_nChannel = 10; packet->m_nChannel = 0x10;
//sps and pps no timestamp //sps and pps no timestamp
packet->m_nTimeStamp = 0; packet->m_nTimeStamp = 0;
packet->m_hasAbsTimestamp = 0; packet->m_hasAbsTimestamp = 0;

Loading…
Cancel
Save