Open sdebasek opened 8 years ago
StreamingProfile.SendingBufferProfile(0.2f, 0.8f, 3.0f, 20 * 1000));
This line achieves exactly that, it notches up/down the bitrate depending on the buffer during streaming. Basically if the buffer is too full, then the bitrate goes down and vice versa.
The explanation for the values are given in the wiki
@gouravd Thank you - this is now clear to me, but I cannot find how to modify framerate while streaming.
I was looking at this code:
mProfile.setVideoQuality(StreamingProfile.VIDEO_QUALITY_HIGH3) .setAudioQuality(StreamingProfile.AUDIO_QUALITY_MEDIUM2) // .setPreferredVideoEncodingSize(960, 544) .setEncodingSizeLevel(Config.ENCODING_LEVEL) .setEncoderRCMode(StreamingProfile.EncoderRCModes.QUALITY_PRIORITY) .setAVProfile(avProfile) .setDnsManager(getMyDnsManager()) .setStreamStatusConfig(new StreamingProfile.StreamStatusConfig(3)) // .setEncodingOrientation(StreamingProfile.ENCODING_ORIENTATION.PORT) .setSendingBufferProfile(new StreamingProfile.SendingBufferProfile(0.2f, 0.8f, 3.0f, 20 * 1000));
And my questions is - is it possible to set some of those parameters during streaming? I would like to achieve adaptive streaming solution, so the streaming settings will adapt to current network conditions.