How to prevent audio streaming from buffering data? #1303
Closed
Description
- Use srs_aac_raw_publish to push the stream and use srs_play to play it. Close the publish, connect using play, and print out a frame of data first.
String onStatus
Object (1 items)
Property 'code' String NetStream.Data.Start
[2019-01-18 17:26:01.35] Audio packet id=0/0.0/0.0, type=Audio, dts=44, pts=44, ndiff=0, diff=0, size=4, AAC(22KHz,16bit,Stereo,SH)
Why does SRS need to cache this frame of data? Can it be not cached? Because if we use srs_audio_raw_publish to push G711U stream, the encoding information will change. The player will first receive a frame of AAC data, and the subsequent data will be G711U. This will cause decoding issues.
TRANS_BY_GPT3