go-chromecast icon indicating copy to clipboard operation
go-chromecast copied to clipboard

Add flag for custom server streaming ip

Open AbdullahGheith opened this issue 4 years ago • 2 comments

When playing something, the ip of the network interface will be used for streaming.

Problem is when using go-chromecast from inside a VM (or docker in my case), the ip is bogus and can't be used by my Chromecast. If I could type in my host ip as a flag, then it will work as my host will redirect my traffic to my docker through the forwarded ports.

AbdullahGheith avatar Nov 22 '21 23:11 AbdullahGheith

Until this is added, my workaround is creating a http-server that exposes my mp3s, then call go-chromecast load http://host-ip:port/song.mp3

AbdullahGheith avatar Nov 22 '21 23:11 AbdullahGheith

This would be a nice feature. Would need to be passed through and used here: https://github.com/vishen/go-chromecast/blob/master/application/application.go#L975

vishen avatar Nov 23 '21 04:11 vishen