Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit 902bc8f

Browse files
docs: updated usage in example
1 parent a73db5d commit 902bc8f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: examples/basic_usage.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@
1818

1919
function handleInit(node) {
2020
const testhash = "QmdpAidwAsBGptFB3b6A9Pyi5coEbgjHrL3K2Qrsutmj9K";
21-
Hls.DefaultConfig.loader = HlsjsIpfsLoader;
21+
Hls.DefaultConfig.loader = HlsjsIPFSLoaderFactory(node);
2222
Hls.DefaultConfig.debug = false;
2323
if (Hls.isSupported()) {
2424
const video = document.getElementById('video');
2525
const hls = new Hls();
26-
hls.config.ipfs = node;
2726
hls.config.ipfsHash = testhash;
2827
hls.loadSource('master.m3u8');
2928
hls.attachMedia(video);

0 commit comments

Comments
 (0)