Streaming Audio Files with WebRTC and NodeJS

3,758 views
Skip to first unread message

daslicht

unread,
Jul 2, 2013, 9:15:02 AM7/2/13
to discuss...@googlegroups.com
Hello,
I am looking forward to stream audio files using WebRTC and NodeJS to clients.
It should also be possible to seek in the files.

Background:
Essentially I like to create a 'pseudo radio' where long prerecorded non stop DJ Mixes are streamed to the clients. (no i dont want to use ice cast)

Song information, as well its position in the mix (start time) is stored in a db.
A server side timer, which increments from 0 to the length of the mix, represents the current playback position.

Once a client connects to the node server the mix should be returned (streamed) from the timers position to the client,
so that all listener will hear the same song.  Besides that connected clients will be provided with song information via socket.io.

Anyone like to help me please with the streaming part (read audio, stream to client form any position)?

Best Regards
Marc

Silvia Pfeiffer

unread,
Jul 6, 2013, 10:00:00 AM7/6/13
to discuss...@googlegroups.com
You don't need WebRTC to stream from a node server.
See for example:
http://stackoverflow.com/questions/16465305/video-stream-through-websocket-to-video-tag

But if you are keen to do so, check out:
https://github.com/muaz-khan/WebRTC-Experiment

Good luck,
Silvia.
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "discuss-webrtc" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to discuss-webrt...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Yusuf Çınar

unread,
Jul 9, 2013, 10:47:48 AM7/9/13
to discuss...@googlegroups.com
I think peer connection addstream API is only expecting local user media coming from microphone and camera - local file cannot be fed to it as far as I know.
Reply all
Reply to author
Forward
0 new messages