Yes, I've tried that flow and not works for me, besides that I want to cast a .mp4 video not audio. I also read all the thread, but I can't make it work.
This is my flow:
[{"id":"e2b4811b.1cd0e","type":"cast-to-client","z":"948b0244.fb211","name":"","url":"","contentType":"video/mp4","message":"","language":"de","ip":"","port":"","volume":"","x":530,"y":480,"wires":[["76a8afb7.13159"]]},{"id":"76a8afb7.13159","type":"debug","z":"948b0244.fb211","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":690,"y":480,"wires":[]},{"id":"4e34322.f96becc","type":"http in","z":"948b0244.fb211","name":"","url":"/myVideo","method":"get","upload":false,"swaggerDoc":"","x":210,"y":420,"wires":[["ed25f4b3.55e2f8","e6fc7dd4.e375c"]]},{"id":"b0676984.a910f8","type":"http response","z":"948b0244.fb211","name":"","statusCode":"","headers":{"content-type":"video/mp4"},"x":610,"y":420,"wires":[]},{"id":"ed25f4b3.55e2f8","type":"file in","z":"948b0244.fb211","name":"UnderWater.mp4","filename":"C:\\Users\\David y Sara\\.node-red\\underWater.mp4","format":"","chunk":false,"sendError":false,"x":430,"y":420,"wires":[["b0676984.a910f8","a4921095.b5c51"]]},{"id":"46341e37.a7271","type":"inject","z":"948b0244.fb211","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":480,"wires":[["a80b5206.8dcee"]]},{"id":"a80b5206.8dcee","type":"change","z":"948b0244.fb211","name":"","rules":[{"t":"set","p":"ip","pt":"msg","to":"192.168.0.50","tot":"str"},{"t":"set","p":"url","pt":"msg","to":"/myVideo","tot":"str"},{"t":"set","p":"contentType","pt":"msg","to":"video/mp4","tot":"str"},{"t":"set","p":"streamType","pt":"msg","to":"BUFFERED","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":480,"wires":[["e2b4811b.1cd0e"]]},{"id":"a4921095.b5c51","type":"debug","z":"948b0244.fb211","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":630,"y":360,"wires":[]},{"id":"e6fc7dd4.e375c","type":"debug","z":"948b0244.fb211","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":390,"y":360,"wires":[]}]
And this is the debug node outputs:
Also I can play the video from browser with http://127.0.0.1:1880/myVideo but I have another problem: this is a test video (1780KB) because the real video I want to cast is 5GB, and with this video I CAN'T play it from browser, I don't know why.
Finally say that my chromecast works fine: I've send a YouTube video from Node-Red with "node-red-contrib-cast" and works perfectly. The problem is with local files.
I am very thankfull for your help