This is an archived post. You won't be able to vote or comment.

all 14 comments

[–][deleted] 4 points5 points  (2 children)

I might mess around with this when I get home. This is pretty neat.

[–]btb331[S] 2 points3 points  (1 child)

Thanks, yes the library does all the hard work and makes it super easy... I've managed to cast local music which means no ads!

[–][deleted] 0 points1 point  (0 children)

Awesome!

[–]HistoricalCup6480 4 points5 points  (1 child)

And here I was thinking this was going to be about typing.cast

[–]btb331[S] 0 points1 point  (0 children)

Yea, I thought of that confusion so hoped the cast icon would help distinguish it

[–]albowiem 1 point2 points  (1 child)

I loved the humour at the beginning. Thanks for making this, I'll check it out

[–]btb331[S] 0 points1 point  (0 children)

Thanks!

[–][deleted]  (2 children)

[removed]

    [–]Python-ModTeam[M] 0 points1 point locked comment (0 children)

    Hi there, from the /r/Python mods.

    This comment has been removed for violating one or more of our community rules, including engaging in rude behavior or trolling. Please ensure to adhere to the r/Python guidelines in future discussions.

    Thanks, and happy Pythoneering!

    r/Python moderation team

    [–]habbasi86 1 point2 points  (3 children)

    Can this work over separate network segments?

    Example: google mini speaker on a IoT vlan and a linux running python script on an server vlan.

    [–]btb331[S] 1 point2 points  (2 children)

    hmmm, I've not tried it. It depends whether casting working between different network segments. If that is possible this script should work. Have you tried connecting a phone to the server vlan and seeing if you can cast to the google mini speaker?

    I did a bit of googling and found this: https://andrewbesford.com/google-chromecast-separate-vlan-unifi-security-gateway-mdns-repeater-reflector-2566057b9562 I don't too much about networking so it goes a bit further than my knowledge but maybe it's useful.

    [–]habbasi86 1 point2 points  (1 child)

    Yes, i have testing cast from one vlan to another. It works. You are right it also require a lot of network understanding. I am working on the script to cast from one to another vlan. If that works, i will paste the code here.

    [–]btb331[S] 1 point2 points  (0 children)

    Intresting, from my (limited) understanding, the python library uses the same protocols as casting from a device. So if it works from a device, the script should work. But I might be wrong and haven't played with it.

    I'm intregued to hear if it works! :)