Skip to content

Update WebOsVideo.js#128

Open
cmax24 wants to merge 1 commit intoStremio:masterfrom
cmax24:patch-1
Open

Update WebOsVideo.js#128
cmax24 wants to merge 1 commit intoStremio:masterfrom
cmax24:patch-1

Conversation

@cmax24
Copy link
Copy Markdown

@cmax24 cmax24 commented Mar 6, 2026

  • Improves webOS compatibility by updating codec handling, event logic, and capability detection.
  • Fixes incorrect event handler usage by replacing canplaythrough with the correct oncanplaythrough event.
  • Adds enhanced codec capability detection, combining EDID checks and webOS.deviceInfo() to properly enable model‑specific codecs (e.g., DTS, DTS‑HD, DTS:X, AC‑4).
  • Introduces codec normalization, mapping inconsistent codec labels (e.g., “DTS‑HD MA”, “TrueHD Atmos”) into unified identifiers so the filtering logic works consistently.
  • Implements probe‑and‑fallback logic for audio tracks: when selectTrack fails, the codec is marked as unsupported and the player automatically falls back to a compatible track.
  • Adds playback‑speed gating: setPlayRate now applies only to progressive sources (MP4/MKV), avoiding failures on HLS/DASH streams which do not support rate changes reliably.
  • Increases robustness of mediaId acquisition with extended retry logic (12 attempts ≈ 3.6s).
  • Reduces event noise via buffered‑event throttling (250 ms).
  • Adds optional forceEnableCodecs parameter for advanced/edge‑case configurations (e.g., rooted TVs or known‑supported codecs not advertised by EDID).
  • Keeps full backward compatibility with previous webOS versions and existing app behavior.

@tymmesyde tymmesyde force-pushed the master branch 2 times, most recently from 64e6eb5 to 3035ba2 Compare March 30, 2026 11:38
@kKaskak kKaskak added the WebOsVideo LG webOS TV implementation label Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WebOsVideo LG webOS TV implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants