Increase sender report interval to 4 per second per track instead of 1 per second per track
This commit is contained in:
		
							parent
							
								
									78a1cd240d
								
							
						
					
					
						commit
						90f0228483
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		|  | @ -1401,10 +1401,7 @@ namespace Mist{ | |||
|     } | ||||
| 
 | ||||
|     WebRTCTrack &rtcTrack = *trackPointer; | ||||
| 
 | ||||
|     uint64_t timestamp = thisPacket.getTime(); | ||||
|     uint64_t newTime = timestamp * SDP::getMultiplier(&M, thisIdx); | ||||
|     rtcTrack.rtpPacketizer.setTimestamp(newTime); | ||||
|     rtcTrack.rtpPacketizer.setTimestamp(thisPacket.getTime() * SDP::getMultiplier(&M, thisIdx)); | ||||
| 
 | ||||
|     bool isKeyFrame = thisPacket.getFlag("keyframe"); | ||||
|     didReceiveKeyFrame = isKeyFrame; | ||||
|  | @ -1430,8 +1427,8 @@ namespace Mist{ | |||
|     rtcTrack.rtpPacketizer.sendData(&udp, onRTPPacketizerHasDataCallback, dataPointer, dataLen, | ||||
|                                     rtcTrack.payloadType, M.getCodec(thisIdx)); | ||||
| 
 | ||||
|     if (!lastSR.count(thisIdx) || lastSR[thisIdx] != Util::bootSecs()){ | ||||
|       lastSR[thisIdx] = Util::bootSecs(); | ||||
|     if (!lastSR.count(thisIdx) || lastSR[thisIdx] < Util::bootMS() + 250){ | ||||
|       lastSR[thisIdx] = Util::bootMS(); | ||||
|       rtcTrack.rtpPacketizer.sendRTCP_SR((void *)&udp, onRTPPacketizerHasRTCPDataCallback); | ||||
|     } | ||||
|   } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Thulinma
						Thulinma