question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Playing local files

See original GitHub issue

Can this play local files?

e.g. contentId: 'file:///Users/cameron/Video.mp4

As when I do that I get the error Load failed here:

      player.load(media, { autoplay: true }, function(err, status) {

        console.log('camstatus', err);

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
thibautscommented, Jan 31, 2015

The URL passed to load is sent to the Chromecast. Then the Chromecast tries to GET it. So yes, if you send localhost your chromecast will try to connect to itself. You have to find your local IP address (local network) and use it instead.

If you don’t know how to do it, either look it up on google or check the networkInterfaces function of the node os module.

0reactions
iamdrizcommented, Feb 2, 2015

Okay! Thanks, that’s what I wanted to know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Local files
Along with the millions of tracks we offer, the Local Files feature lets you use the Spotify app to play any other audio...
Read more >
How to Add Local Files to Spotify
1. Open your Spotify desktop app. 2. Go to Settings on the left sidebar. Select Edit and then Preferences. 3. Find Local Files...
Read more >
How to Add Files to Spotify and Listen on Your Mobile Device
1. Create a new playlist in Spotify and add the songs you want from the “Local Files” folder to the desired playlist. You...
Read more >
Trouble Syncing Spotify Local Files? Here's How You Can ...
To play local files on Android, you will first need to put them into a playlist on the Desktop app. Here's a quick...
Read more >
How to Play Your Local Music Collection on Spotify
Launch the Spotify desktop app and head to Menu > Edit > Preferences. Then scroll down the settings page and turn on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found