the API for streaming (streamVideo(api_dev_key, video_id, offset, codec, resolution)
) dictates it returns a Stream
to the client app (presumably making use of HTTP 2.0?).
It’s unclear to me how introducing a CDN would work given this API. If the server is no longer serving the content, and instead relying on the client to stream from the CDN, then the return type of this contract appears to be broken.
Is the assumption that the client would first check the CDN, and if the video is not found, it would then hit the stream()
endpoint?