Hovsep
Hovsep

Reputation: 377

Stream audio from web browser

Is it possible to capture all audio stream on my PC (from web browser) and stream it via LAN ?

I use Yandex Music (music.yandex.ru) service. So I logged into my yandex account and I have no any audio files, just online stream. I want to make something like LAN-radio. Users will visit an HTML-page located on our server and listen my audio stream.

Can I use icecast or similar software to stream non-file audio? Or should I connect my PC's line out to line IN (or mic) and read audio stream via Java or flash? Any ideas?

Upvotes: 0

Views: 3631

Answers (2)

sçuçu
sçuçu

Reputation: 3070

You can try WebRTC and MediaStream API for that. You can get audio from user's audio device or a stream they are playing in browser. You can find dcoumentation on those APIs from MDN pages.

Upvotes: 0

PicnicTripper
PicnicTripper

Reputation: 305

Have you tried looking at things like Jack and Soundflower? These allow you to reroute the audio from one program to another. You could then reroute the sound into Java or flash and go from there.

https://rogueamoeba.com/freebies/soundflower/

http://jackaudio.org/

Upvotes: 1

Related Questions