feat: update android sdk - #10
Merged
Merged
Conversation
jakubboguski
approved these changes
Sep 2, 2026
TenGosc007
force-pushed
the
update-android-sdk
branch
from
September 2, 2026 08:26
aea339f to
9786a3d
Compare
…ation for live streaming support
…eamPlayerView with bridge-owned ViewModel
… and disabling auto-contrast text
…ntrols and clarify progress text color comment
…er source identity key generation
…DK snapshot The build:android job fails because the `net.bunny:player`/`api:4.0.0-live.shadow.1-SNAPSHOT` artifacts are local-only snapshots that are not resolvable in CI. Disable the job until a public or otherwise resolvable Maven artifact is available. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
TenGosc007
force-pushed
the
update-android-sdk
branch
from
September 2, 2026 08:30
9786a3d to
e082993
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds native live streaming support to the Android bridge on top of Bunny Stream SDK 4.0.0, and fixes theming issues in the native player controls. Targets
player-state(which already ships the VOD bridge anduseBunnyStreamPlayerhook).What's included
Native live player
BunnyLiveStreamPlayerViewhosting the SDK's ComposeBunnyLiveStreamPlayerinside aComposeView, with a bridge-ownedBunnyLiveStreamPlayerViewModel+ViewModelStore/LifecycleOwnerso polling and lifecycle are fully controlled by the bridge (no double polling, no leaked ViewModel when the RN view unmounts).BunnyLiveStreamPlayerViewManager(Fabric) with Codegen props/commands and newonLiveStateChange/onLiveErrorevents forwarding the SDK's live state machine (loading/offline/countdown/trailer/live/vod,isLive, DVR window, countdown target) to JS.BunnyPlayerLeasearbitration: mounting the live view revokes the VOD player's lease on the sharedDefaultBunnyPlayersingleton (and vice versa).JS/TS API
BunnyStreamPlayersourceextended with alivevariant ({ type: 'live', libraryId, videoId, ... }); the component picks the right native host.useBunnyStreamPlayerhook consumesonLiveStateChange/onLiveErrorand exposesliveState/liveError, withsourceKey-based reset on source change.BunnyLiveStreamPlayerNativeComponent.tsCodegen spec.Example app
LivePlayerScreenshowing current live state, DVR window, and countdown, plus aDirectLivePlayModalfor manualvideoId/streamIdtesting.Fixes — native control theming
PopupMenurequires an AppCompat parent theme. AddedBunnyReactNativePlayerTheme(parentTheme.AppCompat.DayNight.NoActionBar) and applied it viaContextThemeWrappertoBunnyStreamPlayerView, so the menu now follows the system light/dark setting.BunnyPlayerView) instead of the SDK's auto-contrast sampler, for consistent legibility over any video background.releaseAutoProgressTextColorResources(no longer exposed onBunnyStreamPlayer) that broke the debug build.androidx.appcompat:appcompatdependency.Testing
yarn typecheck,yarn lint,yarn testpass.yarn androidinexample/builds and installs on a Pixel 9 (API 35) emulator; manually verified live playback, live state transitions, and the settings menu in both light and dark system themes.