ThibaultBee / StreamPack

SRT/RTMP/RTMPS live streaming libraries for Android
https://thibaultbee.github.io/StreamPack/index.html
Apache License 2.0
175 stars 67 forks source link

[Feat]: Get current bitrate of the stream #71

Open ciddarthjrj opened 1 year ago

ciddarthjrj commented 1 year ago

Version

2.5.2

Environment that reproduces the issue

Pixel 5a

Use case description

I would like to show the current bitrate to the user, but I am not able to get the bitrate

Proposed solution

A value in the setting object or something would be nice, or a callback of sorts on bitrate change

Alternative solutions

No response

ThibaultBee commented 1 year ago

Hi,

Sorry I missed this issue. What protocol are you looking at? What bitrate are you insteresting about? video, audio, network,... ?

starcheek commented 10 months ago

@ThibaultBee Hi,

I am interested in network sent via RTMP protocol during screen capture.

ThibaultBee commented 7 months ago

Hi,

Under the hood, StreamPack uses librtmp/rtmpdump. It is quiet old, really hard to maintain or to add new features. If you find this feature in librtmp/rtmpdump, I will be glad to make it till StreamPack API.

Otherwise, this feature will have to wait till I find a better implementation (maybe a new implementation). But it will take a while because it is a huge work, I have 1000 other ideas for this library and of course not enough time.