Score:0

Is it possible to use Chromecast from the desktop in Ubuntu 21.10?

ls flag

I'm talking from either Gnome Shell, or any other desktop environment. I can already cast from Chrome, but I'd like to cast the entire desktop + audio (if possible), without Chrome.

cc flag
Casting the desktop is a choice in the Chrome/sources. What are you trying to do?
RolandiXor avatar
ls flag
@ubfan1 I've since tested in Chrome. It's possible to cast the desktop, I realized, but not with audio. In any case, I was looking for a solution that works without Chrome, similarly to this extension: https://extensions.gnome.org/extension/2977/cast-to-tv-desktop-stream-add-on/ (which appears unmaintained, along with the extension it depends on).
cc flag
Does mkchromecast and mkchromecast-pulseaudio (or ...alsa) with necessary dependencies seem to be what you want? Check the apt-cache show descriptions. Looks like there is some way your audio casting would work.
RolandiXor avatar
ls flag
@ubfan1 I haven't tested it yet, largely because it only supports streaming video files (as far as I can tell, not the actual desktop), and if I'm not mistaken, not audio-only.
br flag
Make up your mind, do you want Chrome, as you say in title (`Is it possible to use Chrome`) or not (as you say at the end: `if possible without Chrome`)??
RolandiXor avatar
ls flag
@cipricus I will edit the title to make "Chromecast" one word, but I'm clearly referring to a technology, not a program.
br flag
Oh, now I see (there is no Chrome browser in title): chromecast without using Google Chrome.
Score:2
br flag

With Chrome:

cast the entire desktop + audio is not very clear. (Does that mean mirroring? Or just access the files as with a file manager? It seems you tried that with Chrome but that Chrome doesn't play files with audio.)

Chrome can browse folders and files (open a folder in it). With Ctrl-O it can select files to open. Audio files and some video files (mp4) can be played in Chrome and cast.

Maybe accessing folders with Chrome and casting that is a solution.

(Oddly, at some point there was no sound in Chrome on the PC for local files, but there was when casting on the TV. That may be a solution to the problem you suggested, that there is no sound in Chrome for local audio files. When completely disconnected from chromecast devices - after a restart - Chrome was able to play audio on the laptop too.)


Without Chrome:

To cast video or audio files the simplest way is VLC. Connecting the PC to the same network (Wifi), your chromecasting device should appear in VLC under Playback - Renderer. (From one of the comments you seem to be looking for audio-only? VLC does it.)

enter image description here

For the whole desktop, a Gnome solution available on Flathub is GNOME Network Displays. (Cannot confirm it will work though, I'm in Kubuntu.)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.