Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discard chrome and safari on Tizen and webOS #6080

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

dmitrylyzo
Copy link
Contributor

@dmitrylyzo dmitrylyzo commented Sep 17, 2024

We consider safari to be an actual Safari browser and chrome to be an actual Chrome browser.
Tizen and webOS may be "Safari" (WebKit) or "Chrome", but their capabilities are different from Safari and Chrome.

When testing #6073 webOS 1.2 (WebKit) tried to play TS+H264 using HLS.js.
Here we should check the transcoding codec, but we check the codec of the original media source:

if (!browser.iOS && browser.safari && mediaSource.MediaStreams.some(x => x.Codec === 'vp9')) {

Although the use of HLS.js is caused by another bug, the mentioned inconsistency can cause problems when generating a device profile.

Changes
Discard chrome and safari on Tizen and webOS.

Issues
N/A

Alternatively, we could add && !browser.web0s && !browser.tizen everywhere, but that's too wordy.

Notes
Chromecast will be disabled on Tizen and webOS.

jellyfin-web/src/index.jsx

Lines 150 to 152 in 0ae080a

} else if (!browser.chrome && !browser.edgeChromium && !browser.opera) {
// Disable chromecast player in unsupported browsers
list = list.filter(plugin => !plugin.startsWith('chromecastPlayer'));

@dmitrylyzo dmitrylyzo added bug Something isn't working p: webos This PR or issue mainly concerns WebOS clients p: tizen This PR or issue mainly concerns Tizen clients labels Sep 17, 2024
@dmitrylyzo dmitrylyzo added this to the v10.10.0 milestone Sep 17, 2024
@dmitrylyzo dmitrylyzo requested a review from a team as a code owner September 17, 2024 11:17
Copy link

@jellyfin-bot
Copy link
Collaborator

Cloudflare Pages deployment

Latest commit 393db341a6a624b20a070961d94cb2c4f93f96bc
Status ✅ Deployed!
Preview URL https://fce27f44.jellyfin-web.pages.dev
Type 🔀 Preview

@gnattu
Copy link
Member

gnattu commented Sep 17, 2024

Here we should check the transcoding codec, but we check the codec of the original media source:

The problem is that we don't know the actual transcoding codec until the client loads the HLS stream and play it and we need a player to load HLS first.

@thornbill thornbill merged commit 610cbdc into jellyfin:master Sep 20, 2024
12 checks passed
@dmitrylyzo dmitrylyzo deleted the discard-chrome-safari branch September 23, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p: tizen This PR or issue mainly concerns Tizen clients p: webos This PR or issue mainly concerns WebOS clients
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants