Step 4. Test the solution
After all the components and configurations that integrate your video delivery workload with the solution are in place, you can use the demo website to test the end-to-end workflow.
-
From the Outputs tab of the solution’s CloudFormation stack, refer to the output starting with ApiEndpointsDistributionDomainName and select the link which will take you to the demo website.
-
You will see two buttons, one for each format – HLS and DASH, each corresponding to the video assets with ID attributes 1 and 2 respectively, configured previously in video assets DynamoDB table.
-
Choose either HLS or DASH to initiate an API call from the web client requesting playback URL and secure token.
-
If the playback URL and token were retrieved successfully the video playback will start. You can switch between the streams at any time.
-
Upon successful API request that returned a playback URL with the token, a demo website displays the details about the content of the token, showing the claims included in its body. These can be helpful in performing troubleshooting activities.
-
To test manual session revocation, select Revoke current session to see how current playback session will get blocked when the session ID corresponding to the used token will start being blocked by AWS WAF.
-
If you need to generate a new token and refresh current playback session, select the Refresh token option on the website.