[Enhancement]: cast local media #357

Open
opened 2026-04-24 23:17:41 +02:00 by adam · 4 comments
Owner

Originally created by @sluggathor on GitHub (Dec 7, 2022).

Describe the feature/enhancement

Right now we can only cast media steamed from the server. It would be nice to cast local media for situations where there is no connection to the server.

Thank you for your good work!

Originally created by @sluggathor on GitHub (Dec 7, 2022). ### Describe the feature/enhancement Right now we can only cast media steamed from the server. It would be nice to cast local media for situations where there is no connection to the server. Thank you for your good work!
adam added the enhancementandroid labels 2026-04-24 23:17:41 +02:00
Author
Owner

@ghTravis commented on GitHub (Jun 16, 2024):

Is there any possibility that this will be looked at in the near future? Really interested in this feature and was surprised to see that I can't do this already.

@ghTravis commented on GitHub (Jun 16, 2024): Is there any possibility that this will be looked at in the near future? Really interested in this feature and was surprised to see that I can't do this already.
Author
Owner

@advplyr commented on GitHub (Jun 16, 2024):

Yeah I'd like to do it.
The cast SDK requires passing a URL to the chromecast receiver, so in order to do this the app has to start a local server on the device. I'm not sure how this would be done because I'm pretty sure that the URL is required to be https.
If anyone has example code of this being implemented that would be really helpful.

@advplyr commented on GitHub (Jun 16, 2024): Yeah I'd like to do it. The cast SDK requires passing a URL to the chromecast receiver, so in order to do this the app has to start a local server on the device. I'm not sure how this would be done because I'm pretty sure that the URL is required to be `https`. If anyone has example code of this being implemented that would be really helpful.
Author
Owner

@ghTravis commented on GitHub (Jun 17, 2024):

I've seen a different player seems to be able to do this called Smart Audiobook Player (also on Android). It appears to start some kind of local server on the device because when I was troubleshooting firewall rules for isolated IoT devices (Nest mini) and my phone (on a different network and vlan), the nest mini appears to connect to the phone on a random port between 32000-65000 so I think it can definitely be done.

@ghTravis commented on GitHub (Jun 17, 2024): I've seen a different player seems to be able to do this called Smart Audiobook Player (also on Android). It appears to start some kind of local server on the device because when I was troubleshooting firewall rules for isolated IoT devices (Nest mini) and my phone (on a different network and vlan), the nest mini appears to connect to the phone on a random port between 32000-65000 so I think it can definitely be done.
Author
Owner

@advplyr commented on GitHub (Jun 17, 2024):

Yeah I know it can be done but I'm not sure how at this point so a code example would be helpful

@advplyr commented on GitHub (Jun 17, 2024): Yeah I know it can be done but I'm not sure how at this point so a code example would be helpful
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#357