Skip to content

fix(player): apply playback speed when audio is passthrough or tunneled - #1119

Merged
Quick104 merged 4 commits into
mainfrom
fix/video-playback-speed
Dec 1, 2026
Merged

Quick104 merged 4 commits into
mainfrom
fix/video-playback-speed

Conversation

@Quick104

@Quick104 Quick104 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #1089
Related issue: N/A
Validation tasks: changes #345 C1

Other clients: Apple N/A (its player decodes audio itself and claims no passthrough, so speed changes already apply); Roku N/A (no playback speed control, a documented scope exclusion); Web N/A (the browser decodes audio and applies the speed)

On many Android TV boxes, picking a playback speed other than 1x saved the setting, but video kept playing at 1x. Media3's audio sink changes speed only on audio the device decodes itself. It holds passthrough (Dolby or DTS sent to a receiver), offload, and tunneled audio at 1x, and because the audio renderer is the playback clock, the video falls back to 1x with it. Every TV box except the Google TV Streamer tunnels, and the Streamer in #1089 passes Dolby through to the receiver. Phones rarely use either path. This change switches the audio to local decoding while a speed other than 1x is set.

Approach

While solo playback runs at a speed other than 1x:

  • The audio sink refuses a bitstream that a platform decoder or the FFmpeg extension can decode, so the renderer decodes it to PCM. Audio with no local decoder still passes through at 1x, rather than losing the track.
  • TV track-selection presets turn tunneling off. Media3 resets the audio renderer on that change, so a tunneled box switches straight away.
  • A stream that is already bitstreaming without tunneling (the Streamer's case) gets no renderer reset, so the player mounts the same route again at the current position. TV uses the existing transport-mount nonce; phone uses reopenSameRoute. While a load, recovery, or another mount holds the remount off, the screen retries until the stream decodes.
  • The player applies the saved speed again whenever a new AudioTrack starts, because Media3 keeps 1x after it reverts a speed.
  • A speed change applies its presets at once, but it waits out a route settle that an HDMI or Bluetooth change already started.

At 1x, passthrough and tunneling return: straight away on a tunneled box, and at the next title after a remount.

Watch Party is unchanged. It ignores the saved speed, and its short sync corrections behave as before.

The decisions live in PlaybackSpeedAudioPolicy, the retry in DecodedAudioRemountEffect, and the settle pacing in TrackSelectionSettle. The rest is wiring through the player factory, the playback backend, and the phone and TV player screens.

Validation

  • Unit tests (testDebugUnitTest for :android-shared, :androidApp, :androidTvApp): passed, including new tests for the speed policy, the tunneling rule, and settle pacing.
  • Lint (lintDebug for the same three modules): passed.
  • Phone and TV debug builds: passed.
  • NVIDIA SHIELD TV Pro with an E-AC3 5.1 title passed through to a receiver: reproduced on the previous build, fixed on this branch (Evidence below). That run predates the review fixes in 31d938296, dfc5ae423, and 1233fe55e (remount retry and busy guards, settle pacing, AudioTrack numbering, decoder capability check, subtitle restore across the TV remount), which have unit tests, lint, and builds but no device run yet.
  • Android TV and phone emulators: 1.5x holds mid-play and from the start of a title, 1x is unchanged, and there were no extra reloads or errors.
  • Not tested on the Google TV Streamer, the reporter's device. The SHIELD's mid-play switch ran the same remount path the Streamer uses.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-android/pr-1119/

NVIDIA SHIELD TV Pro (Android TV 11), Android TV debug build. Before is the previously installed build; after is this change on be26d2e2e, which rebased onto current main without conflicts. The title is E-AC3 5.1 at original quality. Speed is media position advance over wall-clock time; the audio output comes from the device's AudioFlinger dump.

Build Scenario Measured speed Audio output
Before 1.5x saved, start the title 1.0x (28 s of media in 27.8 s) E-AC3 bitstream (offload)
After 1.5x saved, start the title 1.50x (16.0 s in 10.7 s) 6-channel PCM
After 1x, restart the title 1.0x (8.7 s in 8.7 s) E-AC3 bitstream (offload)
After 1x to 1.5x mid-play 1.50x (15.9 s in 10.6 s), one remount 6-channel PCM

Control: an AAC title already played at 1.5x on the previous build, because the SHIELD decodes AAC without tunneling.

Risks

  • While a speed other than 1x is set, Dolby and DTS play as decoded PCM, so Atmos and other bitstream formats don't reach the receiver.
  • On the Streamer and other untunneled passthrough setups, the first speed change in a title rebuffers briefly, and passthrough returns at the next title rather than as soon as the speed is back at 1x.
  • On a phone that bitstreams a downloaded title over HDMI or USB audio, a speed change mid-play still stays at 1x until the next start, because a download has no planned route to remount. A download started with a non-1x speed saved decodes from the start. A remount path for downloads is planned as a follow-up pull request after this one merges.
  • After merge, re-check Device & override auditing — Android TV #345 C1: a speed override now takes effect on passthrough and tunneled TVs, and switches the audio to PCM while it is set.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code, GitHub CLI, Gradle, adb
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; the device checks were run by the agent at the maintainer's direction, and human review is pending
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Apply playback speed to passthrough and tunneled audio via decoded-audio remount

  • Speeds other than 1x now require decoded audio: PlaybackSpeedAudioPolicy decides when the sink should decode a bitstream and when the mounted stream needs a remount, based on the output path, tunneling state, and renderer input format tracked by PlaybackAnalyticsListener.
  • When decoded audio is required, TV presets disable tunneling (TvPlaybackOutputPolicy.shouldEnableTunneling), and phone and TV players request decoded audio via speed-aware track-selection presets outside watch parties.
  • If a mounted stream still passes through a decodable bitstream, PlayerViewModel.remountForDecodedAudio and TvPlayerViewModel.remountForDecodedAudio reopen the same route with passthrough disabled. DecodedAudioRemountEffect retries the remount after one second when it is refused.
  • TrackSelectionSettle keeps the existing route settle wait across speed-only changes, and playback speed is reapplied when a new AudioTrack is reported on phone and TV.
  • Behavioral Change: playback at non-1x speed disables audio tunneling and passthrough by reopening the route; VideoPlaybackBackend.needsRemountForDecodedAudio defaults to false, so backends that do not override it skip remounts.

Macroscope summarized 1233fe5.

Media3's DefaultAudioSink holds speed at 1x for passthrough, offload, and
tunneled audio, and the audio renderer is the playback clock, so video
played at 1x on any TV that sends Dolby to a receiver or tunnels.

While solo playback runs at a speed other than 1x, the sink now refuses
a bitstream it can decode locally, TV presets turn tunneling off, and a
stream that is already bitstreaming without tunneling remounts at its
current position. Speed is re-applied when a new AudioTrack starts.
At 1x, passthrough and tunneling return.

Fixes #1089

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added the size/L 200–499 added + deleted lines (all files); change volume, not priority. label Dec 1, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T16:46:42.473469Z 1233fe5 New commits
🔒 Security Review ✅ Completed 2026-12-01T16:48:49.797951Z 1233fe5 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-kody

silo-kody Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

Playback-speed changes now feed a decoded-audio policy across Android and Android TV. The players report audio output and input format, update track selection and tunneling, and can remount eligible streams without passthrough. Playback-speed effects rerun when audio output changes.

Changes: Playback Speed Audio Handling

Layer / File(s) Summary
Audio state and decode policy
android-shared/.../PlaybackAnalyticsListener.kt, android-shared/.../PlaybackSpeedAudioPolicy.kt, android-shared/.../SiloPlayerFactory.kt, android-shared/.../TrackSelectionPresets.kt, android-shared/src/androidUnitTest/.../PlaybackSpeedAudioPolicyTest.kt, android-shared/src/androidUnitTest/.../TvPlaybackOutputPolicyTest.kt
The analytics listener records and clears audio output and input format. The speed policy and player factory determine when to decode audio and when an untunneled stream needs a remount. TV track selection disables tunneling when decoded audio is required. Tests cover speed, decoder, remount, and tunneling decisions.
Backend track-selection and remount API
android-shared/.../backend/VideoPlaybackBackend.kt, android-shared/.../backend/Media3VideoPlaybackBackend.kt
The backend API forwards the decoded-audio requirement and reports whether a remount is needed.
Guarded decoded-audio remounts
android-shared/.../DecodedAudioRemountEffect.kt, androidApp/.../PlayerViewModel.kt, androidTvApp/.../TvPlayerViewModel.kt
Both view models expose audio output and add guarded operations to remount playback with audio passthrough disabled. The shared effect retries while a remount is needed.
Player screen speed and preset flow
android-shared/.../TrackSelectionSettle.kt, android-shared/src/androidUnitTest/.../TrackSelectionSettleTest.kt, androidApp/.../PlayerScreen.kt, androidTvApp/.../TvPlayerScreen.kt, androidTvApp/.../TvWatchPartyPlayer.kt
The screens apply the decoded-audio requirement with track presets and use route inputs to determine preset settling. Playback-speed effects rerun when audio output changes.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix · Severity of issue fixed: Medium

Sequence Diagram(s)

sequenceDiagram
  participant PlayerScreen
  participant VideoPlaybackBackend
  participant SiloPlayerFactory
  participant PlaybackAnalyticsListener
  participant PlayerViewModel
  PlayerScreen->>VideoPlaybackBackend: Apply track selection with decodedAudioForSpeed
  VideoPlaybackBackend->>SiloPlayerFactory: Forward track-selection presets
  SiloPlayerFactory->>PlaybackAnalyticsListener: Read audio output and input format
  PlayerScreen->>PlayerViewModel: Request decoded-audio remount
  PlayerViewModel-->>PlayerScreen: Return whether remount started
Loading

Suggested reviewers: rxwatcher, rhainland, d3v1l1989

Merge Risk: Low · up to dfc5a

Speed changes may still stay at 1x for some streams: downloaded files, a seek rollback during a remount, and possibly offloaded audio. These are narrow cases with a safe fallback, so the change is mergeable with owner awareness of the follow-ups.

Security architecture risk: Low · up to dfc5a

The change is limited to Android playback. It addresses the previously identified retry and timing problems, but a speed change made while the player is between media items can still leave the previous audio mode in effect until another change occurs. No new access to accounts, servers, or other viewers’ sessions was identified.

Retained concerns

  • Trivial · reliability · inferred: The factory updates the decoder-policy flag even when it skips track selection because the player is idle or has an empty timeline. Neither screen keys preset application on the player becoming ready, and the remount effect requires a successful decoded-audio preset application. If the skip occurs during startup, recovery, or a return to 1× and the other keys remain unchanged, the sink policy and applied track-selection parameters can diverge. On TV this can leave tunneling in its previous mode until another selection input changes.
  • Trivial · architecture · inferred: The new decode flag belongs to the process-wide factory, not the active player or mount. Creating or releasing a player does not reset it. A replacement player can therefore inherit the previous solo session’s decode policy until a screen writes its own policy. A normal preset call overwrites the flag even if track selection is skipped, so the exposure is limited to the handoff before that call.

View findings in the submitted review

Security review details

Security Blast Radius

  • inferred — The reviewed change expands when selected media is processed by an existing on-device decoder rather than a passthrough sink. The demonstrated exposure is the active Android client processing that media; the reviewed flow does not show added service, tenant, or credential authority.

Trust Boundaries and Controls

  • observed — Media format influences decoder selection after the client requests decoded audio. The nonsecure codec query is a capability check; it does not set the renderer’s secure-decoder requirement or grant the media source authority to select a new route.

Resilience and Maintainability Implications

  • observed — Phone mount generations and TV transport nonces guard the handoff to the replacement media item. Acknowledgement means the item was installed, not that a new audio track initialized. The speed-specific effect does not independently verify recovery after an accepted remount fails before audio initialization.
Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(player): apply playback speed when audio is passthrough or tunneled" matches the main change. The PR makes non-1x playback speed take effect when audio would otherwise use passthrough o…
Linked Issues check Passed [#1089] The issue asks that changing playback speed in Options → Video takes effect on a Google TV Streamer 4K. The reported symptom is that a speed above 1x saves, but video stays at 1x. The changes …
Out of Scope Changes check Passed Each changed area connects to the speed fix for #1089:
- PlaybackAnalyticsListener: adds audioOutput (path, tunneling, track number) and the audio input format. The remount and speed-reapply logic rea…
Description check Passed The description is specific and on-topic. It explains the problem (playback speed other than 1x ignored on Android TV boxes that passthrough or tunnel audio), the approach (decoded-audio policy, TV tu…
Full details: Title check

Explanation

The title "fix(player): apply playback speed when audio is passthrough or tunneled" matches the main change. The PR makes non-1x playback speed take effect when audio would otherwise use passthrough or tunneling, by switching to local decoding, disabling TV tunneling, and remounting when needed. The title is short, specific, and states the primary fix.

Full details: Linked Issues check

Explanation

[#1089] The issue asks that changing playback speed in Options → Video takes effect on a Google TV Streamer 4K. The reported symptom is that a speed above 1x saves, but video stays at 1x. The changes address the cause that the PR describes. Media3 holds passthrough, offload, and tunneled audio at 1x. The changes in the diff:

  • PlaybackSpeedAudioPolicy.needsDecodedAudio returns true for finite speeds that differ from 1.0 by more than 0.001.
  • PlaybackSpeedAudioPolicy.shouldDecode and SiloPlayerFactory refuse bitstreams that a local decoder can handle while speed is not 1x. Audio with no local decoder still passes through.
  • TrackSelectionPresets.buildTvParameters and TvPlaybackOutputPolicy.shouldEnableTunneling turn tunneling off when decodedAudioForSpeed is true.
  • PlaybackSpeedAudioPolicy.needsRemount, SiloPlayerFactory.needsRemountForDecodedAudio, and DecodedAudioRemountEffect remount the same route at the current position when the stream still bitstreams. The effect retries once per second while a remount is declined.
  • TvPlaybackSpeedEffect and the phone playback-speed effect reapply the saved speed when audioOutput changes, so speed holds after a new AudioTrack starts.
  • TrackSelectionSettle delays preset application after a route change. It does not delay speed-only changes.
    Unit tests cover the speed policy, the decode rule, the remount rule, the tunneling rule, and settle pacing. The author reports SHIELD TV Pro results: 1.5x with 6-channel PCM output and a measured speed of 1.50x. That device run predates the review fixes in 31d9382 and dfc5ae4. Those fixes have unit tests and builds but no device run. The Google TV Streamer, the reporter's device, was not tested. The Streamer result therefore rests on code evidence and the SHIELD run, which uses the same remount path. The code supports the requirement.
Full details: Out of Scope Changes check

Explanation

Each changed area connects to the speed fix for #1089:

  • PlaybackAnalyticsListener: adds audioOutput (path, tunneling, track number) and the audio input format. The remount and speed-reapply logic reads these values.
  • PlaybackSpeedAudioPolicy, SiloPlayerFactory, TrackSelectionPresets, TvPlaybackOutputPolicy, Media3VideoPlaybackBackend, VideoPlaybackBackend: carry the decoded-audio requirement and the remount decision from the policy to the player and backend.
  • DecodedAudioRemountEffect and TrackSelectionSettle: retry the remount and pace preset application. Both serve the remount and route-settle behavior that the fix needs.
  • PlayerScreen, TvPlayerScreen, PlayerViewModel, TvPlayerViewModel: apply the requirement, remount when needed, and rerun the speed effect when audioOutput changes.
  • TvWatchPartyPlayer: adds audioOutput as a trigger for TvPlaybackSpeedEffect. The PR states that Watch Party ignores the saved speed. The screen code excludes Watch Party from the decoded-audio requirement.
  • Tests: PlaybackSpeedAudioPolicyTest, TvPlaybackOutputPolicyTest, and TrackSelectionSettleTest cover the new rules.
    The known side effects are that Dolby and DTS decode to PCM while speed is not 1x, and that untunneled passthrough setups rebuffer once on the first speed change. The PR Risks section discloses both. They follow from the chosen approach and do not indicate unrelated work.
Full details: Description check

Explanation

The description is specific and on-topic. It explains the problem (playback speed other than 1x ignored on Android TV boxes that passthrough or tunnel audio), the approach (decoded-audio policy, TV tunneling off, same-route remount, retry, settle pacing), validation (unit tests, lint, builds, a SHIELD TV Pro device run with a table), and risks. It matches the changeset in the raw summary.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@macroscopeapp

macroscopeapp Bot commented Dec 1, 2026

Copy link
Copy Markdown

Solo playback speed now takes effect for decodable passthrough/offload/tunneled audio, switching to PCM and sometimes remounting. Evidence is missing on Android phone, tablet, foldable folded and open, and Android TV; please add before-and-after recordings demonstrating the playback-speed change on each (including both foldable states). The TV measurements are useful validation, but do not show the change itself.

Automated check: Macroscope check run agent (gpt-6-luna). Evidence was not reviewed for correctness.

Posted via Macroscope — Visible change evidence

@silo-triage silo-triage Bot added bug Something isn't working impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish labels Dec 1, 2026
Comment on lines +1705 to +1707
if (decodedAudioForSpeed && backend.needsRemountForDecodedAudio()) {
viewModel.remountForDecodedAudio()
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kody code-review Bug high

Returning to 1x leaves untunneled audio decoded

Passthrough and receiver bitstream output remain unavailable until another mount. Remount when the policy returns to 1x if the renderer was forced to decode, and apply the same fix to the phone screen.

Prompt for LLM
File androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt, lines 1705-1707:

Returning to 1x leaves untunneled audio decoded

Returning to 1x leaves an untunneled stream on the PCM decoder because the only remount is conditional on `decodedAudioForSpeed`, so passthrough and receiver bitstream output do not return until another mount. Remount when the policy changes back to 1x if the current renderer was forced to decode, and apply the same correction to the phone screen.

Talk to Kody by mentioning @kody

Was this suggestion helpful? React with 👍 or 👎 to help Kody learn from this interaction.

​

​

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏛️ Architecture findings (2)

Advisory architecture findings (2)

  • Trivial — A required same-route remount can be dropped while the player is loading, transitioning, or recovering. Both screens record the preset as applied before calling a guard that can return without remounting. Clearing that guard does not itself rerun the preset effect, so an untunneled bitstream can remain at 1× until another qualifying event or mount.
  • Trivial — A speed-mode change skips the existing settling delay even if an HDMI or Bluetooth route change is still rebuilding the audio sink. If those events overlap, the new immediate reselection can enter the renderer state that the previous delay was intended to protect. This is a device-local failure-containment risk, not an observed crash.

💬 Code review

Actionable comments posted (4)

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 291e3c6c-3eb6-40a2-a9cf-1e3526aac888
Commits

Reviewing files that changed from the base of the PR and between cf81afa and 4513137.

Files selected for processing: 13

  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackAnalyticsListener.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackSpeedAudioPolicy.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlayerFactory.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/TrackSelectionPresets.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/backend/Media3VideoPlaybackBackend.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/backend/VideoPlaybackBackend.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/PlaybackSpeedAudioPolicyTest.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/TvPlaybackOutputPolicyTest.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvWatchPartyPlayer.kt

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

…ecoder limits

- Retry the decoded-audio remount until the stream decodes: the player
  refuses one during a load, recovery, or another mount, and nothing
  re-requested it afterwards.
- A speed change no longer cuts short a route settle that a capability
  change started; it waits out the remainder.
- Count AudioTracks so a replacement configured like its predecessor
  still re-applies the speed.
- Decode locally only when a platform decoder supports the stream's
  profile, sample rate, and channel count, as the renderer requires.
- Opt in to the unstable Media3 APIs lint flagged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-triage silo-triage Bot added size/XL 500–999 added + deleted lines (all files); change volume, not priority. and removed size/L 200–499 added + deleted lines (all files); change volume, not priority. labels Dec 1, 2026
@silo-kody

silo-kody Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 31d938296f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

The decoded-audio remount restored the player's selected subtitle track,
which can still be Off while the subtitle adapter mounts a selection, and
re-armed Off over it. Reopen through reopenSameRoute, which restores the
adapter's pending mount, with the PCM claim applied as a plan edit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏛️ Architecture findings (2)

Advisory architecture findings (2)

  • Trivial — The factory updates the decoder-policy flag even when it skips track selection because the player is idle or has an empty timeline. Neither screen keys preset application on the player becoming ready, and the remount effect requires a successful decoded-audio preset application. If the skip occurs during startup, recovery, or a return to 1× and the other keys remain unchanged, the sink policy and applied track-selection parameters can diverge. On TV this can leave tunneling in its previous mode until another selection input changes.
  • Trivial — The new decode flag belongs to the process-wide factory, not the active player or mount. Creating or releasing a player does not reset it. A replacement player can therefore inherit the previous solo session’s decode policy until a screen writes its own policy. A normal preset call overwrites the flag even if track selection is skipped, so the exposure is limited to the handoff before that call.

💬 Code review

Actionable comments posted (2)

Review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d85289d4-54a8-4bd4-9149-3736f60091b0
Commits

Reviewing files that changed from the base of the PR and between 4513137 and dfc5ae4.

Files selected for processing: 10

  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/DecodedAudioRemountEffect.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackAnalyticsListener.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/PlaybackSpeedAudioPolicy.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/SiloPlayerFactory.kt
  • android-shared/src/androidMain/kotlin/org/siloserver/silo/common/player/TrackSelectionSettle.kt
  • android-shared/src/androidUnitTest/kotlin/org/siloserver/silo/common/player/TrackSelectionSettleTest.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerScreen.kt
  • androidApp/src/androidMain/kotlin/org/siloserver/silo/android/ui/screens/player/PlayerViewModel.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerScreen.kt
  • androidTvApp/src/androidMain/kotlin/org/siloserver/silo/tv/ui/screens/player/TvPlayerViewModel.kt

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

The remount guards missed a server seek recovery, whose rollback can drop
a mount generation the remount just requested. Both view models now reuse
the busy checks that hold off the buffering controller's same-route
reload, which also cover subtitle transactions. A download has no planned
route to reopen, so the phone stops retrying the remount for one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@silo-kody

silo-kody Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104
Quick104 merged commit 9a443da into main Dec 1, 2026
11 checks passed
@Quick104
Quick104 deleted the fix/video-playback-speed branch December 1, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: playback Can't play, stalls, or wrong media priority: P2 Limited scope, workaround exists, or polish size/XL 500–999 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Speed above 1X not working

1 participant