-
Hi folks thank you for the excellent work you're doing! I've got vidstack installed and running properly via the HLS provider. In this particular case i'm passing also a poster and a vtt file build to spec to server the thumbnails. The problem i'm having is the following- For all of the assets i serve, i pipe the request through authentication and autorization.
Then on
This works excellently. Now my poster url and thumbnails.vtt url also have a token. The problem arises when the player tries to fetch parts of the
So my authorisation fails. Makes sense. As i said, for the hls stream i solve this by intercepting xhr requests. Is there a way for me to intercept the call that is made to get the relevant thumbnail section as instructed in the vtt? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey Sidis! We currently don't have an API defined for modifying the thumbnail fetch request. We're loading/displaying thumbnail images via the native |
Beta Was this translation helpful? Give feedback.
Hey Sidis! We currently don't have an API defined for modifying the thumbnail fetch request. We're loading/displaying thumbnail images via the native
<img>
element which doesn't expose such API. We could usefetch
and expose hooks if this functionality is a common use-case, but for most I've seen so far thumbnails are unprotected. A more practical approach might be securing via CORS headers or cookies?