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
How to extend HTTPLoader? #4424
Comments
What do you mean exactly by " it got recursive call"? Please provide more information on what you are seeing and what you expect to see. |
I want to hook the HTTPLoader to add some custom logic, in my custom loader it can call the original HTTPLoader function like .load() and .abort() |
I dont think it is possible that way. From the API defintion
This means you are recursively calling As a workaround you might be able to use this for v4 https://reference.dashif.org/dash.js/v4_nightly/samples/advanced/extend.html or this for v5 https://reference.dashif.org/dash.js/nightly/samples/network-interceptor/index.html to change the requests. |
My code is like below:
But it got recursive call, any help?
The text was updated successfully, but these errors were encountered: