aws-samples/amazon-kinesis-video-streams-media-viewer

Streaming Session token expired error

Closed this issue · 1 comments

I am trying to retrieve an HLS streaming session for a Kinesis video stream and play it back in a webpage. To do that I am using GetHLSStreamingSessionURL API which works fine until 5 min of live streaming after which it returns an error saying "Streaming session token is expired" with status 403.

Can anyone help me with resolving this issue?

The Expires field in the GetHLSStreamingSessionURL parameters enables you to control the expiration. The default is 5 minutes. The max is 12 hours.