Learn how to add access control to a content with Livepeer UI Kit, using JWTs
@livepeer/react
in a React
application.ACCESS_CONTROL_PRIVATE_KEY
and NEXT_PUBLIC_ACCESS_CONTROL_PUBLIC_KEY
./api/create-signed-jwt
API route we created in the previous step.
Livepeer-Jwt
, to the backend,
for WebRTC and HLS playback. For MP4 playback, it uses a query parameter,
jwt
.jwt
prop, which will use that JWT to prove
access to the content!
Livepeer-Jwt
,
when you perform WebRTC SDP negotiation, or when you play back from a m3u8 URL.
For WebRTC SDP negotiation, here is an example of the header being passed: