FreeTubeApp / FreeTubeApp/FreeTube

[Bug]: Livestream fails to play due to YouTube enforcing SABR

Open
#9,545 3 comments 7 reactions 0 assignees View on GitHub
B: inconsistent behavior
Dominant language
Vue
Stars
21.9k
Forks
1.5k
Avg merge
1d 14h
Merged PRs (30d)
62

Description

### Guidelines

- [x] I have encountered this bug in the [latest release of FreeTube](https://github.com/FreeTubeApp/FreeTube/releases).
- [x] I have encountered this bug in the [official downloads of FreeTube](https://github.com/FreeTubeApp/FreeTube#official-downloads). **The only official downloads are from the [https://freetubeapp.io](https://freetubeapp.io/#download) website, the [FreeTubeApp/FreeTube GitHub repository](https://github.com/FreeTubeApp/FreeTube/releases) and the [io.freetubeapp.FreeTube flatpak](https://flathub.org/en/apps/io.freetubeapp.FreeTube) from Flathub.**
- [x] I have [searched the issue tracker for **open and closed** issues](https://github.com/FreeTubeApp/FreeTube/issues?q=is%3Aissue+sort%3Arelevance-desc) that are similar to the bug report I want to file, without success.
- [x] I have searched the [documentation](https://docs.freetubeapp.io/) for information that matches the description of the bug I want to file, without success.
- [x] This issue contains only one bug.
- [x] I have read and agree to follow the [rules](https://docs.freetubeapp.io/community/rules/).

### Describe the bug

Its possible that you need to a few tries to repro this

1. Go to https://youtu.be/X4VbdwhkE10
2. See that player is stuck and throws `TypeError: Cannot read properties of null (reading 'match')`

### Expected Behavior

Stream plays and doesnt throw this error

### Issue Labels

inconsistent behavior

### FreeTube Version

v0.25.1-nightly-7565 Beta

### Operating System Version

Windows 11 IoT Enterprise LTSC 24H2

### Installation Method

.exe

### Primary API used

Local API

### Last Known Working FreeTube Version (If Any)

_No response_

### Upload screenshots or videos

_No response_

### Additional Information

_No response_

### Nightly Build

- [x] I have encountered this bug in the latest **official** [nightly build](https://docs.freetubeapp.io/development/nightly-builds), do not check this box if you are using an unofficial or custom build.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing https://youtu.be/X4VbdwhkE10 in FreeTube v0.25.1-nightly-7565 using the Local API and inspect the player path that throws the null `match` error. Done means the livestream plays reliably without that error despite YouTube's SABR behavior.

Written by the indexing model from the issue text.

Assessment

Domain
desktop-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.