UNPKG

unified-video-framework

Version:

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

18 lines (16 loc) 465 B
import { ExtendedDRMConfig } from '../types/DRMTypes'; export class GenericProvider { static createConfig(config: { licenseUrl: string; certificateUrl?: string; headers?: Record<string, string>; type?: ExtendedDRMConfig['type']; }): ExtendedDRMConfig { return { type: config.type || 'auto', licenseUrl: config.licenseUrl, certificateUrl: config.certificateUrl, headers: config.headers, }; } }