To use the SabrStreamingAdapter, instantiate it with a SabrOptions object. A playerAdapter (implementing SabrPlayerAdapter) is a required property in the options object. You can also configure caching behavior via enableCaching, maxCacheSizeMB, and maxCacheAgeSeconds.
import { SabrStreamingAdapter } from './src/core/SabrStreamingAdapter.js';
const adapter = new SabrStreamingAdapter({
playerAdapter: myPlayerAdapter, // Must implement SabrPlayerAdapter
enableCaching: true,
maxCacheSizeMB: 5,
maxCacheAgeSeconds: 600
});