0.18.0 - Web
September 29th, 2025
Added
- setBeforeContentPlayCallback API: New method to intercept and modify video URLs before content playback
- Enables URL tokenization for protected video content
- Supports both synchronous and asynchronous callback functions
- Automatic fallback to original URL on callback errors
- Requires
enableClientPlaybackModification: 'true'in app configuration
New Interfaces
BeforeContentPlayContext: Contains the original video URL to be processedBeforeContentPlayResult: Contains the modified URL for playbackBeforeContentPlayCallback: Function type for URL modification callbacks
Use Cases
- Token-based authentication for protected content
- URL signing with time-limited access tokens
- Dynamic CDN endpoint selection
- Analytics parameter injection
- DRM and content protection integration
Breaking Changes
- None
Notes
- Callback execution should be kept minimal to avoid playback delays
