Closed pglowacky closed 1 year ago
The problem is, we can't distinguish between "started" and "inactive" from the Player with only the playbackId
. Unless we add additional info to the playback info
endpoint, we will not be able to implement this cc @victorges
Related, here is the approach api.video takes
I think I was wrong on this, feedback from Victor let me know that this info is returned from the playback info endpoint here: https://github.com/livepeer/livepeer-com/blob/919536ffd76df4b6f81d8040e65e934284cbef28/packages/api/src/controllers/playback.ts#L16
@0xcadams Added a note above -- we should report via telemetry when users receive errors and what kind of errors they get.
@0xcadams Thinking about this more...is the player able to differentiate between livestreams and VOD assets? The error message "Stream is Offline" only applies to livestreams, so we'd want the error message to be different if we're unable to give a different experience between live and VOD.
Yes, we get a response including "live" | "vod" | "recording"
from the backend, so we can distinguish
Here are the "Offline" and "Private" view designs by Vadym.
https://www.figma.com/file/dgNNV2zARuwL0hizYqdJxl/UI?node-id=410%3A234&t=pUf3uCp9Gpfnw9t9-1
Currently, when the player is using an HLS URL that contains either content that has not begun yet or the user is not using a signed URL for token-gated content, the player will display an infinite spinner. This gives the impression that the content will begin shortly; when it doesn't, the user assumes that something has gone wrong.
An ideal solution looks like:
signed
, "It looks like you don't have permission to view this content"EDITED by @0xcadams:
Future iterations might include: