Giter Site home page Giter Site logo

hlsjs-ipfs-loader's Introduction

hlsjs-ipfs-loader

A js-ipfs loader for the hls.js JavaScript HLS client

Building

To build hlsjs-ipfs-loader, make sure you have the latest version of npm installed. Then simply run the following commands from the hlsjs-ipfs-loader project root:

npm install
npm run build

This will write a self-contained JS bundle to dist/index.js

Browser example

Include script tags for HLS.js, js-ipfs and hlsjs-ipfs-loader:

<script src="https://unpkg.com/ipfs/dist/index.js"></script>
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
<script src="dist/index.js"></script>

After including these dependencies, add your own script that hooks everything up. Please see this example for more details.

NOTE: Chrome's strict security policies block the example from running locally, so you will either have to spin up a local web server to host it from (unless you want to explicitly fiddle with the policies), or run it in Firefox where this restriction currently doesn't exist.

hlsjs-ipfs-loader's People

Watchers

Kengi Chan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.