cookpete / react-player

A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
https://cookpete.github.io/react-player
MIT License
9.43k stars 1.15k forks source link

Authentication using JWT tokens #1892

Open AronBuzogany opened 1 month ago

AronBuzogany commented 1 month ago

Current Behavior

I can't find how to authorize requests with JWT token.

Expected Behavior

I want to be able to display video's which require authorization by JWT token.

Steps to Reproduce

Set the URL to any video which requires a JWT token as authentication

specifically the HTTP header: Authorization: "Bearer {token}"

Environment

Other Information

The videos I am trying to stream are MP4.