fyhertz / libstreaming

A solution for streaming H.264, H.263, AMR, AAC using RTP on Android
Apache License 2.0
3.47k stars 1.07k forks source link

PPS and SPS packets want to send every 10 seconds #289

Open rajcooltyagi opened 5 years ago

rajcooltyagi commented 5 years ago

H264Packetizer.java

if (type == 5 && sps != null && pps != null) { buffer = socket.requestBuffer(); socket.markNextPacket(); socket.updateTimestamp(ts); System.arraycopy(stapa, 0, buffer, rtphl, stapa.length); super.send(rtphl + stapa.length); }

Above code executing every 65-66 seconds in my device I want to execute it every 10 seconds. I tried by adding interval manually but it not working because packets not there for pps and sps at that time. So anybody please tell me how can I achieve this.

Thanks.