Skip to content

Add ability to change RTMP adaptive bitrate algorithms - #382

Open
dimadesu wants to merge 1 commit into
mainfrom
rtmp-adaptive-bitrate-tweaks
Open

dimadesu wants to merge 1 commit into
mainfrom
rtmp-adaptive-bitrate-tweaks

Conversation

@dimadesu

@dimadesu dimadesu commented Sep 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

@dimadesu
dimadesu force-pushed the rtmp-adaptive-bitrate-tweaks branch 2 times, most recently from 1108f2f to c7c7eb1 Compare September 2, 2026 01:18
@dimadesu dimadesu changed the title RTMP adaptive bitrate tweaks All adaptive bitrate tweaks: polish start at 1 Mbps, deduplicate code. Add ability to change RTMP bitrate algorithms Sep 2, 2026
@dimadesu dimadesu changed the title All adaptive bitrate tweaks: polish start at 1 Mbps, deduplicate code. Add ability to change RTMP bitrate algorithms All adaptive bitrate tweaks: polish start at 1 Mbps, deduplicate code. Add ability to change RTMP adaptive bitrate algorithms Sep 2, 2026
@dimadesu dimadesu changed the title All adaptive bitrate tweaks: polish start at 1 Mbps, deduplicate code. Add ability to change RTMP adaptive bitrate algorithms All adaptive bitrate tweaks: refine logic to start at 1 Mbps, deduplicate code. Add ability to change RTMP adaptive bitrate algorithms Sep 2, 2026
@dimadesu
dimadesu force-pushed the rtmp-adaptive-bitrate-tweaks branch 3 times, most recently from a3113a4 to 597f111 Compare September 2, 2026 01:55
Add a settings dropdown to switch between two RTMP bitrate regulation
algorithms, mirroring the existing SRT algorithm dropdown:

- Send duration (LS custom): RtmpSendDurationBitrateRegulator using
  socket write fill-ratio as congestion signal (default, existing behavior)
- SP Simple (packets lost): StreamPack's SimpleBitrateRegulator reacting
  to packetsWriteDropped + packetsWriteLost (what SP camera demo uses)

New RtmpRegulatorMode enum, DataStore flow, ListPreference UI, and
updated wiring in PreviewViewModel and CameraStreamerService (including
mid-stream switching via the combine observer).

Add visibility logic for RTMP bitrate algorithm dropdown

Wire rtmpRegulatorModePreference visibility in SettingsFragment:
- Initial load (shown only when RTMP + adaptive bitrate enabled)
- RTMP enable switch toggle
- Endpoint type change handler
@dimadesu
dimadesu force-pushed the rtmp-adaptive-bitrate-tweaks branch from 597f111 to c180d41 Compare September 2, 2026 02:05
@dimadesu dimadesu changed the title All adaptive bitrate tweaks: refine logic to start at 1 Mbps, deduplicate code. Add ability to change RTMP adaptive bitrate algorithms Add ability to change RTMP adaptive bitrate algorithms Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant