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

Set appMode for webui #146

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Set appMode for webui #146

merged 1 commit into from
Sep 29, 2020

Conversation

nielsvanvelzen
Copy link
Member

@nielsvanvelzen nielsvanvelzen commented Sep 28, 2020

The webui needs the appMode property set to either cordova or android for some behavior. We didn't do that.

Relevant code in web: https://github.com/jellyfin/jellyfin-web/blob/692d404285c19e1700a74fec23b4804273d12ac3/src/components/castSenderApi.js#L3

As you can see, if the app mode is not set it will always load the cast_sender JavaScript from Google, this JS would then overwrite our own injected code. By setting the appMode it doesn't do that.

It doesn't fix most chromecast issues though.

@nielsvanvelzen
Copy link
Member Author

Thanks to @neopc10 since #145 made me wonder why the nightly cast client didn't work. When digging into the webui code I found out we needed to set appMode and didn't. I know we've had some other issues complaining about casting not working but couldn't provide additional details before.

@nielsvanvelzen
Copy link
Member Author

I've noticed this doesn't actually fix chromecast issues but only appeared to do so while testing on one of my devices. Nothing changed on another device I have.

But in the end we still need to add the app mode so I'll change the PR title to not say a thing about casting 😂

@nielsvanvelzen nielsvanvelzen changed the title Fix casting issues Set appMode for webui Sep 29, 2020
@Maxr1998 Maxr1998 merged commit f30cb21 into jellyfin:master Sep 29, 2020
@neopc10
Copy link

neopc10 commented Sep 29, 2020

I just sideloaded this RC7. This merge appears to have borked the server connection process on Pixel 3 running vanilla Android 11.
Jellyfin10.6

@CarlosOlivo
Copy link
Contributor

CarlosOlivo commented Sep 29, 2020

See #153 (comment)

@Maxr1998
Copy link
Member

Oh my, we really need to get rid of the web client and build a native one that we actually control..
thanks for the detailed info @CarlosOlivo, could you add them to the issue opened at #153?

@nielsvanvelzen nielsvanvelzen deleted the appmode branch November 22, 2020 16:02
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.

4 participants