Git Product home page Git Product logo

ott-nott's Introduction

Build Status license

NOTT - New OTT

In the three-post series, we’re going to build:

Architecture

an overview of the NOTT project

How to use it

# make sure you're using MacOS
git clone https://github.com/leandromoreira/nott.git
cd nott
make run

# wait until the platform is up and running
# and run the video generator in another tab
make broadcast_tvshow

# ^ for linux users, you might need to use --network=host 
# and your IP instead of this docker.for.mac.host.internal
# for windows user I dunno =(
# but you can use OBS and point to your own machine

# open your browser and point it to http://localhost:8080/app

# in a different tab - you can test the stream
http http://localhost:8080/hls/colorbar.m3u8

# in another tab - let's add CU to redis
# -- first need to discovery the redis cluster id
docker ps | grep redis

# -- then let's connect to the redis cluster
docker exec -it f44ed71b3056 redis-cli -c -p 7000
# inside redis-cluster let's add the CU
set authentication "rewrite||local token = ngx.var.arg_token or ngx.var.cookie_superstition \n if token ~= 'token' then \n return ngx.exit(ngx.HTTP_FORBIDDEN) \n else \n ngx.header['Set-Cookie'] = {'superstition=token'} \n end"
sadd coding_units authentication

# go back and test the stream response - you should eventually (after max 20s)
# receive 403 as response
http http://localhost:8080/hls/colorbar.m3u8

# add the token and it'll work again
http http://localhost:8080/hls/colorbar.m3u8?token=token

UI

NOTT's UI

TODOs

  • - Admin
  • - Add Vod (NGINX-based MP4 Repackager)
  • - Add Nginx::Tests

ott-nott's People

Contributors

leandromoreira avatar

Watchers

James Cloos 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.