Streaming Audio Files
This page describes how to stream audio files from 7digital
Last updated
This page describes how to stream audio files from 7digital
Last updated
To stream audio you need to build your own URL to call our streaming service
https://stream.svc.7digital.net/stream/catalogue
You need to pass in two parameters on the call
Parameter
Reason
&shopId=2020
To stream songs from the UMG catalog
&trackId={int}
The 7digital trackId of the song you want to stream
Most importantly you need to sign each call with Oauth 1.0 headers using the consumer key and secret provided for this hackathon
consumer_key = 7d4vr6cgb392
consumer_secret = m4ntskavq56rddsa
We have created a form to help build and sign streaming URLs
Do not use Postman - it does not correctly sign our URLs
Instructions
Enter the streaming service URL as shown
Enter your consumer_key & consumer_secret
Enter shopId & trackId
Click [refresh both] button to sign API call with Oauth headers
Click URL to test stream
If you want to stream part of a track, you can use the range request
curl -v -o partial.mp4 -H "Range:bytes=81920-" "{url to aac stream}"
You will need to calculate the number of bytes that you want to start and/or finish at