-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FetchLoader export #6707
Comments
v1.6 will provide named exports in the es module library along with the default Source files are not included in the npm distro. Aborting requests should be performed using HLS.js either by calling hls.stopLoad() or abort on a loader instance. Handling of external aborts on fetch or XHR instances used by internal loaders is not supported. |
…ntroller, requestMediaKeySystemAccess in ESM output (hls.mjs) Fix: Disable progressive callbacks in fLoader when progressive mode is disabled Resolves #6707
Hi @austinh, #6733 should address this issue. With this change you can import FetchLoader from hls.mjs. <script type="module">
import { Hls, FetchLoader, XhrLoader } from 'hls.mjs';
var video = document.getElementById('video');
if (Hls.isSupported()) {
var hls = (window.hls = new Hls({
fLoader: FetchLoader,
pLoader: XhrLoader, Let me know if this works for you. Thanks! |
What do you want to do with Hls.js?
Hello, I am trying to import FetchLoader and use it in my config as the default loader, but it doesn't seem this api is exposed by the package on npm. Is there some other way to use this class?
Also second question, is it possible to get a reference to the AbortController signal of a FetchLoader fetch request?
.
What have you tried so far?
see stackblitz.
https://stackblitz.com/edit/vitejs-vite-hu52ve?file=src%2FCustomLoader.ts
The text was updated successfully, but these errors were encountered: