Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 574 Bytes

example.md

File metadata and controls

16 lines (10 loc) · 574 Bytes

Basic Example

  1. Start golang server go run cmd/server/main.go

  2. Start stream using ffmpeg go run cmd/source/main.go -file music.mp3 -url http://localhost:8001/source -user sourceuser -pass sourcepass

export CGO_CFLAGS="-I/opt/homebrew/include"
export CGO_LDFLAGS="-L/opt/homebrew/lib"`
  1. Start stream from microphone go run cmd/source/main.go -url http://localhost:8001/source -user sourceuser -pass sourcepass
  • Install brew install pkg-config portaudio lame
  1. Open browser and go to http://localhost:8001/stream to listen to the stream