apivideo/api.video-reactnative-live-stream

[Bug]: Bitrate is not set correctly on initial render

Pitros opened this issue · 3 comments

Pitros commented

Version

v1.2.3

Which operating systems have you used?

  • Android
  • iOS

Environment that reproduces the issue

Samsung Galaxy S20 - Android 13 - wrong initial bitrate
Samsung Galaxy S9 - Android 10 - works fine

Is it reproducible in the example application?

Yes

RTMP Server

restream.io

Reproduction steps

  1. Start streaming with some bitrate (eg. 0.5Mb)
  2. On any page that shows bitrate (eg. restram.io) bitrate will not match
  3. Change bitrate in video params object via code while streaming is active or with any controls
  4. Bitrate will change to valid one (eg. 1Mb)

Expected result

Bitrate is accepted

Actual result

For params below streaming is started with 2.6Mbps

{
  fps: 30,
  resolution: '720p',
  bitrate: 1 * 1024 * 1024, // # 2 Mbps
}

Additional context

Works fine on S9 with Android 10.

Relevant logs output

No response

Hi,

As it seems device dependent, it is going to be difficult to test.
I will try to recheck with my Pixel 4a.