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

Commit 445df01

Browse files
author
Alan Shaw
authored
docs: fix browser video streaming example (#1831)
pgc-13/hlsjs-ipfs-loader#7 was merged and released so this can now be fixed. License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
1 parent 43cd983 commit 445df01

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: browser-video-streaming/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ The most important piece of information to note down is the name you choose for
3939

4040
## Putting it all together
4141

42-
For a demo of the final result, see https://ipfs.io/ipfs/QmdBZhDLEsooVKkmgRgNzjo2JirSbddp8FvnccJ4c2orH2/
43-
4442
*Note:* If you try to run the example straight from disk, some browsers (e.g Chrome) might, for security reasons, prevent some resources from loading correctly. To get around this, simply cd into the directory of this example and use http-server from npm:
4543

4644
```bash
@@ -53,4 +51,3 @@ You should then be able to stream Big Buck Bunny by pointing your browser at htt
5351
In addition to video streaming, plain audio streaming works fine as well. Simply use the same ffmpeg + ipfs procedure as described above, but with your audio file as input. You may also want to change the video tag to `audio` (video tags will play plain audio as well, but the player looks a bit strange).
5452

5553
On a final note, without diving too deep into what the specific ffmpeg HLS options above mean, it's worth mentioning the `hls_time` option, which defines the length of each HLS chunk (in seconds) and is potentially interesting for performance tuning (see for example [this article](https://bitmovin.com/mpeg-dash-hls-segment-length/)).
56-

Diff for: browser-video-streaming/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<body>
33
<video id="video" controls></video>
44
<script src="https://unpkg.com/ipfs/dist/index.js"></script>
5-
<script src="https://unpkg.com/hlsjs-ipfs-loader@0.1.2/dist/index.js"></script>
5+
<script src="https://unpkg.com/hlsjs-ipfs-loader@0.1.3/dist/index.js"></script>
66
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
77
<script src="streaming.js"></script>
88
</body>

0 commit comments

Comments
 (0)