Hi, this is a project where a Unity Game reproduces an audio file that I download and stream from a REST API.
- The projects on this repo:
- MediaAPI:
- It's a REST API implemented using Clean Architechture;
- It has only a service, one that retrieves an audio file in the .wav format.
- MediaReproducer:
- It's a simple game made in Unity where you control a ball, and you have 2 platforms;
- If you step on the grey one, it will download an audio file from MediaAPI and reproduce it on the game;
- Setting on the white one will also reproduce the same audio file from MediaAPI, but the file will be streamed instead of downloaded;
- I used UniTask on this project, as it makes code more similar to what I'm used to, as a Software Developer on my job.
- MediaAPI:
I have here a diagram that shows better how this project works:
You can also see this video that I recorded that shows this working:
Hope you enjoy! If you are interested in discussing any idea, you can contact me through my portfolio or email me!
The song that is used in this game is the Level 1, in the 5 Action Chiptunes, made by Juhani Junkala. You can find them here.