Im playing around with the C# Web API and built a RESTfull API to access resources in my Database.
What i want to achieve is a HTML5 Audio Tag is playing a mp3 loaded from the database. As the src attribute i make a request, and on the server i respond with a ByteArrayContent
The MP3 is playing ... so far so good. Im displaying the controls of the audio tag, but i cant seek through the MP3.
My Questions:
- Do i serve the right response for Seeking?
- Do i need to make a ranged request?
- Do i need any javascript to seek, or is the audio tag all i need?
- Does someone has an example to achieve this?