From dec91ac0a24df222181aa7a8c493909646b29743 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 18 Jan 2019 11:37:24 +0000 Subject: [PATCH 1/2] docs: fix browser video streaming example https://github.com/moshisushi/hlsjs-ipfs-loader/pull/7 was merged and released so this can now be fixed. License: MIT Signed-off-by: Alan Shaw --- examples/browser-video-streaming/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/browser-video-streaming/index.html b/examples/browser-video-streaming/index.html index 0a695291e9..c8d36cae46 100644 --- a/examples/browser-video-streaming/index.html +++ b/examples/browser-video-streaming/index.html @@ -2,7 +2,7 @@ - + From 1979f2476c3eef69aaac9e86a250e41b959161d3 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Mon, 21 Jan 2019 16:43:34 +0000 Subject: [PATCH 2/2] fix: remove broken demo link License: MIT Signed-off-by: Alan Shaw --- examples/browser-video-streaming/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/browser-video-streaming/README.md b/examples/browser-video-streaming/README.md index d53478510d..4b91f9b407 100644 --- a/examples/browser-video-streaming/README.md +++ b/examples/browser-video-streaming/README.md @@ -39,8 +39,6 @@ The most important piece of information to note down is the name you choose for ## Putting it all together -For a demo of the final result, see https://ipfs.io/ipfs/QmdBZhDLEsooVKkmgRgNzjo2JirSbddp8FvnccJ4c2orH2/ - *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: ```bash @@ -53,4 +51,3 @@ You should then be able to stream Big Buck Bunny by pointing your browser at htt 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). 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/)). -