Installation
Install the extension via Composer:
composer require mfd/adaptive-video
vendor/bin/typo3 extension:setup
Copied!
Requirements
- PHP 8.2+
- TYPO3 13.4 or 14
- b13/poster-image 2.x
ffmpegandffprobeon the host that runs the worker
Setup
- Install
ffmpegandffprobeon the host that runs the worker. - Add the site set Adaptive Video (
mfd/) to the sites that should deliver streams.adaptive- video - Enable processing in exactly the environments that encode (see Configuration), schedule the scan and run the worker (see Usage).
- Configure the web server and allow
blob:in your Content Security Policy, see below.
Web server and CDN
The artifact directory is served as static files. Make sure that
-
.m3u8is delivered asapplication/andvnd. apple. mpegurl .m4sasvideo/(oriso. segment video/), e.g. for Apache:mp4 AddType application/vnd.apple.mpegurl .m3u8 AddType video/iso.segment .m4sCopied! - the files may be cached for a long time: every version has its own directory, so the content behind a URL never changes.
- streams are served from the same host as the page. Otherwise the host has to be allowed in the CSP and send CORS headers.
Content Security Policy
The extension does not change the CSP. hls.js needs blob: for the media
source and its web worker:
media-src 'self' blob:;
worker-src 'self' blob:;
Copied!
Without it, streams do not play in browsers without native HLS (Chrome, Firefox, Edge). Check the browser console for CSP violations when testing.