UNPKG

unified-video-framework

Version:

Cross-platform video player framework supporting iOS, Android, Web, Smart TVs (Samsung/LG), Roku, and more

13 lines 587 B
import { BUNNY_NET_BASE_URL, BUNNY_NET_ENDPOINTS } from '../types/BunnyNetTypes.js'; export class BunnyNetProvider { static createConfig(bunnyConfig) { const base = `${BUNNY_NET_BASE_URL}/${bunnyConfig.libraryId}/${bunnyConfig.videoId}`; return { type: 'fairplay', licenseUrl: `${base}${BUNNY_NET_ENDPOINTS.license}`, certificateUrl: `${base}${BUNNY_NET_ENDPOINTS.certificate}`, headers: bunnyConfig.token ? { 'AccessKey': bunnyConfig.token } : undefined, }; } } //# sourceMappingURL=BunnyNetProvider.js.map