cookpete / react-player

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
https://cookpete.github.io/react-player
MIT License
8.89k stars 1.12k forks source link

feat: ability to disable HLS subtitles by default #1753

Closed ryparker closed 3 weeks ago

ryparker commented 2 months ago

Current Behavior

Subtitles are loaded by default.

Expected Behavior

Ability to configure wether the subtitles should be enabled by default or not.

Steps to Reproduce

  1. Render the ReactPlayer with this Senate floor livestream URL: https://www-senate-gov-media-srs.akamaized.net/hls/live/2096634/stv/stv022924/master.m3u8 (note this livestream will be disabled after it ends)

Environment

Other Information

I've only encountered this with this particular HLS. It must be something that the host is configuring on the stream. However I still expected to have the ability to override the subtitle defaults on the player/UI side.