-
-
Notifications
You must be signed in to change notification settings - Fork 44
Android TV: playing Youtube links opens the app but does not play video #691
Description
Describe the bug
When I send a media URL to be played on my TV the video doesn't play.
There are two cases:
- If the app isn't running already, it'll start but open to a blank screen with no content.
- If the app is running already, the current screen will be displayed but the video doesn't start playing.
To Reproduce
In my real setup, I'm sending media URLs through home assistant which I can't describe how to reproduce exactly, but if I let the YouTube app handle the link the video starts playing, so my guess is the problem is not that part.
I see the same behavior when using ADB to open a link, and that is easily reproducible.
App not already running:
$ adb shell am start -a android.intent.action.VIEW -d "https://www.youtube.com/watch?v=JmyjJgItMNU"
Starting: Intent { act=android.intent.action.VIEW dat=https://www.youtube.com/... }
and it opens to a blank screen.
App already running:
$ adb shell am start -a android.intent.action.VIEW -d "https://www.youtube.com/watch?v=J
myjJgItMNU"
Starting: Intent { act=android.intent.action.VIEW dat=https://www.youtube.com/... }
Warning: Activity not started, its current task has been brought to the front
app opens to the current screen, but the video doesn't start playing.
Expected behavior
The video starts playing.
General Information:
- Device: TCL QM6K
- OS: Android TV OS 12
- Version: App version 1.22.8
- Invidious-Instance: Local instance on 192.168.0.xxx
Additional context
I needed to enable Clipious receiving deep links on my TV as by default they're not enabled and the android TV UI does not offer a way to enable them, so I used ADB:
adb shell pm set-app-links --package com.github.lamarios.clipious 2 all
Maybe this is related to #541? I'm not sure.
Thanks for making clipious, it's great :)