fyhertz / libstreaming

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

SenderReport causing dropped frames #216

Open dcerisano opened 8 years ago

dcerisano commented 8 years ago

The SenderReport seems to hard configured for TCP, but the RTSPSession is still only UDP. What seems to be happening is the Report packet is sent with a TCP header down a UDP stream.

This is causing jank in most players every 3 seconds (the report interval). Eg, VLC seems to tolerate this, but ff/avplay does not.

By switching the SenderReport stream to UDP, and removing the TCP header and sync block, it seems to work, at least with ff/avplay (which most players are based on).

TCP is still WIP, so perhaps a roll back of SenderReport is in order.