mirror of
				https://github.com/Monibuca/plugin-rtsp.git
				synced 2025-10-31 19:03:05 +08:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | fbc24a1253 | ||
|   | e19b9a34ba | 
| @@ -97,6 +97,14 @@ func (sh *RTSPServer) OnDescribe(ctx *gortsplib.ServerHandlerOnDescribeCtx) (*ba | ||||
| 			} | ||||
| 			var st uint32 | ||||
| 			onVideo := func(ts uint32, pack *engine.VideoPack) { | ||||
| 				if pack.IDR { | ||||
| 					for _, nalu := range sub.vt.ExtraData.NALUs { | ||||
| 						for _, packet := range vpacketer.Packetize(nalu, 0) { | ||||
| 							buf, _ := packet.Marshal() | ||||
| 							stream.WritePacketRTP(trackId, buf) | ||||
| 						} | ||||
| 					} | ||||
| 				} | ||||
| 				for i, nalu := range pack.NALUs { | ||||
| 					var samples uint32 | ||||
| 					if i == len(pack.NALUs)-1 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user