v1.0 Free and open source · self-hosted

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

A phone chatting with the TubeQueue Telegram bot to queue YouTube videos, next to a TV playing one in SmartTube with an Up next list

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.

Chrome extensionButton on YouTube
Telegram botShare from your phone
link
TubeQueue helperPython on a Raspberry Pi, Linux box or Windows PC. Holds the queue and history.
ADB over Wi-Fi
Fire TVOpens the video in SmartTube (or the official YouTube app)
  • 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 back works 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 /.

SendWhat happens
A YouTube linkPlays now if the TV is free, otherwise "📋 Queued #2: title [length]"
Several linksAll 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 · qShows what's playing and what's waiting
skip · nextPlays the next queued video now
back · prevReplays the previous video. Send it again to go further back.
clearEmpties the queue
pauseToggles play and pause on the TV
statusChecks 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.

  1. 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.
  2. 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)
  3. 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.
  4. Add the Chrome extension. Open chrome://extensions, turn on Developer mode, choose Load unpacked and pick the extension folder (or unzip it from the release). If the helper runs on a Pi, enter its address in the extension's options.
  5. Create your Telegram botoptional. Message @BotFather, send /newbot and copy the token. Run the telegram-setup script 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.

Line up tonight's videos.

Free, open source and self-hosted.