mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-05-24 16:42:30 +00:00
Stremio - Freedom to Stream
Fix #2564 — audio language not applied on stream re-open (LG webOS). On stream re-open the auto-selection effect calls video.setAudioTrack(id) exactly once when the audioTracks list first becomes available, then sets defaultAudioTrackSelected.current = true and never retries. On platforms where the underlying player hasn't fully initialized at that moment (e.g. LG webOS Smart TV), the call is silently ignored — the UI state (selectedAudioTrackId in core) reflects the desired track, but actual playback uses the player's default track. The user observes that the correct language is highlighted in the menu, yet re-clicking it is what actually switches the audio. Patch: - Don't mark the selection as 'done' on the first setAudioTrack call. Wait until video.state.selectedAudioTrackId === desired id. Once it matches, we know the player has actually applied the selection. - Include video.state.selectedAudioTrackId in the effect deps so the effect re-runs when the player updates its state, giving us a chance to retry if the first call didn't take. setAudioTrack is idempotent on the core side, so re-issuing the same id on subsequent renders is safe. |
||
|---|---|---|
| .github | ||
| .well-known | ||
| assets | ||
| src | ||
| tests | ||
| .gitignore | ||
| .nvmrc | ||
| CODE_OF_CONDUCT.md | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| http_server.js | ||
| LICENSE.md | ||
| manifest.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| tsconfig.json | ||
| webpack.config.js | ||
Stremio - Freedom to Stream
Stremio is a modern media center that's a one-stop solution for your video entertainment. You discover, watch and organize video content from easy to install addons.
Build
Prerequisites
- Node.js 12 or higher
- pnpm 10 or higher
Install dependencies
pnpm install
Start development server
pnpm start
Production build
pnpm run build
Run with Docker
docker build -t stremio-web .
docker run -p 8080:8080 stremio-web
Screenshots
Board
Discover
Meta Details
License
Stremio is copyright 2017-2023 Smart code and available under GPLv2 license. See the LICENSE file in the project for more information.


