This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
VOD HLS streaming for BunnyCDN with Token authentication V2 | |
NOTES: | |
> Credits to Dejan from BunnyCDN Support for the function for token authentication V2 | |
> I've created this snippet to show how to use HLS streaming with the directory tokens. | |
This is a workaround which works by appending the token query string for every request to the TS segments (see JS below) |