Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukasmalkmus/grpc-mp3-stream
MP3 file streaming example using gRPC.
https://github.com/lukasmalkmus/grpc-mp3-stream
go golang grpc grpc-go grpc-stream mp3 mp3-streaming streaming streaming-audio
Last synced: about 2 months ago
JSON representation
MP3 file streaming example using gRPC.
- Host: GitHub
- URL: https://github.com/lukasmalkmus/grpc-mp3-stream
- Owner: lukasmalkmus
- License: mit
- Created: 2019-08-29T22:30:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-26T08:09:29.000Z (about 1 year ago)
- Last Synced: 2024-05-02T06:05:09.084Z (8 months ago)
- Topics: go, golang, grpc, grpc-go, grpc-stream, mp3, mp3-streaming, streaming, streaming-audio
- Language: Go
- Size: 109 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lukasmalkmus/stream
> A quick mp3 streaming example.
---
I put this together to really quickly demonstrate streaming a mp3 file using
gRPC. This example doesn't just chunk the file and send it to the client before
decoding and playing it, it really "streams" it by utilizing Go's powerful
io.Reader interface. The `bytestream` package provides a io.Reader
implementation on top of gRPC.Package `bytestream` is essentially https://godoc.org/google.golang.org/api/transport/bytestream
but trimmed down for simplicity. It omits all the io.Writer bits.`bytestream.proto` is essentially https://github.com/googleapis/googleapis/blob/master/google/bytestream/bytestream.proto but trimmed down as well.