hls.js
hls.js copied to clipboard
Can I directly load the content of the m3u8 file instead of requesting the m3u8 url to get the content?
What do you want to do with Hls.js?
Can I directly load the content of the m3u8 file instead of requesting the m3u8 url to get the content?
What have you tried so far?
No relevant API found in the documentation
Officially, no. Unofficially, try triggering MANIFEST_LOADED.
Officially, no. Unofficially, try triggering MANIFEST_LOADED.
@robwalch Thanks, I'll give it a try
The other options are to create a custom loader or use xhrSetup to capture a request for a "custom URL" and return the content via a fake response (loadSource('custom://replace-with-network-filter')
) .
You could also encode the content in a data URL and pass that to loadSource.