Avihay Menahem
Avihay Menahem

Reputation: 238

Node-Webkit audio using local file

So i was trying to attach embed tag to the page with the following address: file:///C:/Users/avihay/Downloads/Imagine Dragons - Radioactive.mp3 (even with backslahes as well) but couldn't operate the situation. for some reason the file cant be played when coming from local address (even when its allowed on node-webkit) does anyone knows the perfect solution to this situation? :)

Upvotes: 0

Views: 740

Answers (2)

fisch2
fisch2

Reputation: 2763

node-webkit doesn't support mp3 by default, but you can workaround that limitation by using custom built, platform-specific versions of libffmpeg as described here.

Upvotes: 1

ruffrey
ruffrey

Reputation: 6138

It is likely because .mp3 audio is not supported for node-webkit. Use .ogg instead.

Upvotes: 0

Related Questions