Skip to content

Conversation

@ronalduQualabs
Copy link
Contributor

This change updates the video player logic to use MSE by default if its not Safari since. Chromium-based browsers with native HLS support were experiencing issues with captions not available. By defaulting to MSE except on Safari, we ensure captions work consistently across browsers.

Changes:

  • Replaced Chrome detection with Safari detection.
  • Updated logic to fallback to MSE for non-Safari browsers.
  • Maintains native HLS for Safari for optimal compatibility.

@ronalduQualabs ronalduQualabs requested a review from a team as a code owner December 9, 2025 19:07
@vercel
Copy link

vercel bot commented Dec 9, 2025

@ronalduQualabs is attempting to deploy a commit to the Mux Team on Vercel.

A member of the Team first needs to authorize it.

@snyk-io
Copy link

snyk-io bot commented Dec 9, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ronalduQualabs ronalduQualabs requested a review from luwes December 9, 2025 19:14
@luwes luwes requested a review from Copilot December 9, 2025 20:19
@vercel
Copy link

vercel bot commented Dec 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
elements-demo-nextjs Ready Ready Preview Comment Dec 9, 2025 8:21pm

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the video player logic to default to MSE (Media Source Extensions) for all browsers except Safari, replacing the previous Chrome-specific detection. This change ensures caption availability works consistently across Chromium-based browsers while maintaining native HLS playback for Safari.

Key changes:

  • Replaced Chrome version detection with Safari user agent detection
  • Inverted the logic to use MSE by default for non-Safari browsers
  • Removed unused browserBrands variable

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@luwes luwes changed the title Fix/default to mse except safari fix: default to MSE except safari Dec 9, 2025
Copy link
Contributor

@luwes luwes left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Tested in MacOS Edge, Google Chrome, iOS Safari, iOS Safari with prefer playback mse

@luwes luwes merged commit f2411ad into muxinc:main Dec 10, 2025
11 of 15 checks passed
@github-actions github-actions bot mentioned this pull request Dec 10, 2025
luwes pushed a commit that referenced this pull request Dec 10, 2025
🤖 I have created a release *beep* *boop*
---


<details><summary>@mux/mux-audio: 0.15.18</summary>

##
[0.15.18](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected])
(2025-12-10)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @mux/playback-core bumped from 0.32.0 to 0.32.1
</details>

<details><summary>@mux/mux-audio-react: 0.15.18</summary>

##
[0.15.18](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected])
(2025-12-10)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @mux/playback-core bumped from 0.32.0 to 0.32.1
</details>

<details><summary>@mux/mux-player: 3.10.1</summary>

##
[3.10.1](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected])
(2025-12-10)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @mux/mux-video bumped from 0.29.0 to 0.29.1
    * @mux/playback-core bumped from 0.32.0 to 0.32.1
</details>

<details><summary>@mux/mux-player-astro: 3.10.1</summary>

##
[3.10.1](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected])
(2025-12-10)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @mux/mux-player bumped from 3.10.0 to 3.10.1
    * @mux/playback-core bumped from 0.32.0 to 0.32.1
</details>

<details><summary>@mux/mux-player-react: 3.10.1</summary>

##
[3.10.1](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected])
(2025-12-10)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @mux/mux-player bumped from 3.10.0 to 3.10.1
    * @mux/playback-core bumped from 0.32.0 to 0.32.1
</details>

<details><summary>@mux/mux-video: 0.29.1</summary>

##
[0.29.1](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected])
(2025-12-10)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @mux/playback-core bumped from 0.32.0 to 0.32.1
</details>

<details><summary>@mux/mux-video-react: 0.29.1</summary>

##
[0.29.1](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected])
(2025-12-10)


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @mux/playback-core bumped from 0.32.0 to 0.32.1
</details>

<details><summary>@mux/playback-core: 0.32.1</summary>

##
[0.32.1](https://github.com/muxinc/elements/compare/@mux/[email protected]...@mux/[email protected])
(2025-12-10)


### Bug Fixes

* default to MSE except safari
([#1254](#1254))
([f2411ad](f2411ad))
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants