Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jefferson de Andrade Santos
    @jersobh
    I have the frontend up and running, but it only works if the browser is open
    I want to put it on a service running on a server
    To create that stream on server si de
    Chinmay Pendharkar
    @notthetup
    yea.. the frontend will only work if the browser is open..
    that's how browsers work
    so you wanted to have a mock server to test the streaming server?
    Jefferson de Andrade Santos
    @jersobh
    I was trying to say that the music can only be played while the browser is open
    so I need to create the streaming service
    I've already sync. the playlist with socket.io
    so when I open the frontend, it loads all the configs for the streaming, as the playlist
    but I need to play it on node's side, so when the browser is closed, it still plays
    Jefferson de Andrade Santos
    @jersobh
    this is how I connect it

    var webcast = this.audioCtx.createWebcastSource(4096, 2);

    this.outputNode.connect(webcast);

    webcast.connect(this.audioCtx.destination);

    webcast.connectSocket(encoder, this.url);

    I need to do this but from node, and the encoder param is the encoded audio
    Chinmay Pendharkar
    @notthetup
    sorry still confused :(
    createWebcastSource is from https://webcast.github.io/ right? So you're trying to stream FROM the browser TO some server?
    let's start from the beginning (for my sake) :)
    You have a audio streaming server that uses liquidsoap/icecast to stream out the audio
    are you trying to build a client that will receive that audio from the icecast server? or?
    Jefferson de Andrade Santos
    @jersobh
    That's what I'm already doing
    Streaming from the browser to a server
    Chinmay Pendharkar
    @notthetup
    oh! streaming from the browser to the server
    not from the server to the browser
    Sorry I was confused.
    Jefferson de Andrade Santos
    @jersobh
    This is what I'm already doing
    but I want to play the songs from the server instead
    take a look at this :)
    ignore the playlist
    there's an audio tag that does it
    Chinmay Pendharkar
    @notthetup
    yup
    just putting the src of an audio tag will stream the audio from your icecast stream
    Jefferson de Andrade Santos
    @jersobh
    it's not from, but to
    the browser streams to icecast
    Chinmay Pendharkar
    @notthetup
    ahh ok..
    so you want to stream from the browser to icecast using the webcast
    Jefferson de Andrade Santos
    @jersobh
    Many guys said it was impossible ant irc@freenode
    but there it is :)
    Chinmay Pendharkar
    @notthetup
    so browser (webcast ) -> websockets -> nodeserver -> icecast
    Jefferson de Andrade Santos
    @jersobh
    now I want browser -> nodeserver || nodeserver (alone) -> icecast
    But I"m just about switching to python
    It has a more mature structure for this I guess
    Chinmay Pendharkar
    @notthetup
    i think it's not a question of maturity
    i think you're looking in the wrong place
    webaudio API wasn't designed for streaming audio
    webcast is kind of a hack on top of ScriptProcessorNode
    Jefferson de Andrade Santos
    @jersobh
    but is there another way beside web audio api?
    Chinmay Pendharkar
    @notthetup
    on which side? browser or server?
    Jefferson de Andrade Santos
    @jersobh
    server's