...
Current endpoint example |
---|
https://demo.com/api/channel/38/stream/103/play?userEmail=boox6%40cloudpvr.nl&service=delta_test&ajax=1&startover=false&stream_type=hls&service=delta_test |
Using the new endpoint
Client behaviour should be nearly identical.
You will call the endpoint, receive the information, and then perform the redirection.
Differences between old and new
Our new endpoint PlayableStream related to Channel (live) returns similar information, but is more detailed.
...
- The "startover" parameter is renamed to "restart_at_beginning"
- The following parameters are no longer required or supported:
- service
- ajax
- stream_type
- The API will return a number of different stream_types and let the client pick which one to display
- The "suggested_devices" key in the response will be empty until we implement this feature. We will be linking transcode profiles to these suggestions to allow creating streams that are better suited for specific devices. Currently this is planned for H2 2018
...
- An exception is for when the customer has implemented Broadpeak CDN in which case there may be a stream for the suggested type "nanoCDN"
Example response
Below is an actual example returned for an npvr stream. Note that the protection type does not require protection keys so this is omitted in this response.
...