Git Product home page Git Product logo

lit-livepeer-stream-gating's Introduction

Lit - Livepeer Starter

This is a starter project for building a Livepeer powered video streaming application with token gated access using Lit.

Getting Started

Rename .env.example to .env and update the values accordingly.

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Access Control conditions:

For the purpose of this demo, we are using a Color Token NFT as an access control condition. Your stream viewers are required to have a Color Token NFT(CLRT). If they dont have one, Ask them to mint one here: https://color-marketplace.vercel.app/

You can use any access control conditions of Lit Protocol. For more info, visit: https://developer.litprotocol.com/coreConcepts/accessControl/intro

I'm planning to add user defined access control conditions in the future.

// Your stream viewers are required to have a Color Token NFT(CLRT)
const accessControlConditions = [
  {
    contractAddress: "0xB56946D84E4Dd277A8E575D5Dae551638010C6A8", // Color Token NFT address on Mumbai Testnet
    standardContractType: "ERC721",
    chain: "mumbai",
    method: "balanceOf",
    parameters: [":userAddress"],
    returnValueTest: {
      comparator: ">",
      value: "0"
    }
  }
];

Demo

livepeer-acl-error.mp4
lit-livepeer-v1-demo.mp4

lit-livepeer-stream-gating's People

Contributors

salmandabbakuti avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

onlyne-io

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.