Send YouTube to your Fire TV. Queue it, don't interrupt it.
TubeQueue puts a Send to TV button on YouTube in Chrome and gives you a Telegram bot you can share links to from your phone. Videos play in SmartTube on your Fire TV, and anything you send while something is playing waits its turn in a real play queue.
Python helper with no dependencies · Raspberry Pi, Linux or Windows · Chrome extension · Fire TV, Fire TV Stick and other Android TVs

Your phone and browser become a Fire TV remote for YouTube
Find a video anywhere, send it to the living room in one tap, and keep sending. TubeQueue lines them up and plays them in order.
One-click Send to TV
A TV button in YouTube's player controls, or Alt+Shift+T. The TV picks up at the same timestamp and your browser pauses.
Share from Telegram
Share a YouTube link to your own bot from any phone. Timestamps like &t=90 are kept, and several links in one message queue in order.
A real play queue
Links sent while something plays are queued, and the next one starts when the current video ends. Nothing gets cut off mid-video.
Skip, back and now
skip to jump ahead, back to replay the previous video (again and again), now to play a link immediately.
SmartTube first
Plays in SmartTube, the ad-free YouTube client for Android TV, and falls back to the official YouTube app if SmartTube isn't installed.
Runs on a Raspberry Pi
A small stdlib-only Python helper running as a systemd service. Your PC can be off and the bot still works. Windows works too.
Private and locked down
No ports opened to the internet: the bot uses outbound long polling. Only Telegram users on your allow list can control the TV.
Finds your TV again
If the Fire TV gets a new IP address, the helper rediscovers it on your network with SSDP and updates its config.
See the TV on your PC
tvscreen.py mirrors the Fire TV's screen to a window on your computer with scrcpy. Use your keyboard as the remote, or record it to a file.
How it works
Fire TV blocks other apps from launching YouTube over DIAL, so TubeQueue talks to the TV over ADB on your Wi-Fi, the same debugging connection developers use.
- Knows when a video ends. The helper reads the TV's media session (play state and position) every few seconds and compares it with the video's length.
- Notices autoplay. If SmartTube jumps to a suggested video on its own, the queue takes over with your next pick.
- Doesn't fight you. If you stop playback or pause and leave SmartTube, the TV counts as free and new links play right away.
- Tells you what's next. When the queue moves on by itself, the bot messages you "Up next from queue".
- Remembers history. The last 50 videos you sent are saved, so
backworks even after a restart. - One click stays one click. The Chrome button always plays immediately. Queued videos resume after it ends.
Telegram bot commands
Send a YouTube link to play or queue it. Commands work with or without the leading /.
| Send | What happens |
|---|---|
| A YouTube link | Plays now if the TV is free, otherwise "📋 Queued #2: title [length]" |
| Several links | All of them are queued, in the order you sent them |
now <link> | Interrupts and plays the link right away. The rest of the queue is kept. |
queue · q | Shows what's playing and what's waiting |
skip · next | Plays the next queued video now |
back · prev | Replays the previous video. Send it again to go further back. |
clear | Empties the queue |
pause | Toggles play and pause on the TV |
status | Checks the connection to the TV |
Set it up in about ten minutes
You need Python 3.10 or newer and adb on the machine that runs the helper. Nothing is installed on the TV except the one-time ADB permission.
- Turn on ADB debugging on the Fire TV. Settings → My Fire TV → About → select the device name 7 times to unlock Developer options. Then Developer options → ADB debugging: On. Install SmartTube if you want ad-free playback.
- Install the helper on an always-on Raspberry Pi or Linux box (recommended), or on a Windows PC:
git clone https://github.com/248Tech/TubeQueue cd TubeQueue ./install.sh # Raspberry Pi / Linux (systemd user service) .\install.ps1 # Windows (starts at login) - Allow the connection on the TV. The first time the helper connects, the Fire TV asks "Allow USB debugging?". Tick Always allow from this computer and press OK.
- Add the Chrome extension. Open
chrome://extensions, turn on Developer mode, choose Load unpacked and pick theextensionfolder (or unzip it from the release). If the helper runs on a Pi, enter its address in the extension's options. - Create your Telegram botoptional. Message @BotFather, send
/newbotand copy the token. Run thetelegram-setupscript and paste it there, so the token never ends up in chat or shell history. Message your bot, then add the user id it replies with to the allow list.
FAQ
Is TubeQueue free?
Yes. It's free and open source under the MIT license. The code is on GitHub.
Do I need to root my Fire TV?
No. TubeQueue only uses the ADB debugging switch in Developer options, which every Fire TV and Fire TV Stick has. No root, no custom launcher.
Does my PC have to stay on?
Only if the helper runs on your PC. Put it on a Raspberry Pi (or any always-on Linux machine) and the Telegram bot works around the clock with your PC off. The Chrome extension just needs to be able to reach the helper on your network.
Is it safe?
The Telegram bot uses outbound long polling, so nothing is exposed to the internet. Only Telegram user ids on your allow list can control the TV, and everyone else is ignored and logged. The helper only accepts requests carrying the extension's header and rejects web pages. Keep the helper on your home network.
Does it work with the official YouTube app?
Yes. SmartTube is preferred, and TubeQueue falls back to the official YouTube app for Fire TV when SmartTube isn't installed. You can pick the app in config.json.
Does it work on other Android TVs?
Usually, yes. Anything that accepts ADB over the network and has SmartTube or YouTube installed (Android TV, Google TV, Nvidia Shield) should work the same way.
Why not just cast?
Fire TV has no Chromecast, and it rejects YouTube launches from other apps over DIAL. ADB is the reliable way to open a specific video at a specific time, and it lets TubeQueue watch playback to run the queue.
What about live streams?
Live streams have no fixed length, so they never end on their own. Send skip to move on to the next queued video.