Search code examples
node.jshttp-live-streamingchromecast

Chromecast from a node media server


I used npm hls-server to setup an hls streaming server on my dev machine. Then i took android sample app and tried adding another video with url that of my localhost. The video plays fine inside the sample app but i am unable to cast it to chromecast. I tried changing mediatype and also setup cors proxy using npm package cors-anywhere.

I used ffmpeg to generate hls playlist and .ts files. Would be great if someone can help out.


Solution

  • The problem was with my HLS stream. What I did was to use sample receiver app from google and attached debugger to see error code/exceptions. Then i took another video and used ffmpeg to produce hls again which worked out quite fine.