Coder Social home page Coder Social logo

hlsproxy's Introduction

hlsproxy

hlsproxy is a Node.JS library to fetch or proxy HLS streams. It provides the right primitives for request handlers in Express servers.

Working principles

M3U file type is a manifest file that contains the references to other media resources. In other words, the main manifest file unravels an interconnected set of resources, like an upside down tree.

Proxying an HLS request starts with reading the manifest file. The next step is modifying the URI's of the referenced media resources in order to make the client use the proxy server again for all the resources. The request handler serves any multimedia content untouched.

hlsproxy exports a request handler and expects a URL encoder and decoder. When the manifest file is modified, the actual URI of the resource should be embedded into the proxy URL. The encoder and decoder help the request handler to read and write this information when necessary. Those functions are also capable of storing additional information in the URL. For instance, it might be useful to set custom headers for authentication. If any headers are provided to the request handler as a parameter, the headers will propagate to the proxied calls via encoded information in the URLs.

Quick Start

API

Roadmap

It is planned to implement following features in the upcoming releases.

Major

[] Generic request handler to support any type of server

Minor

[] Adding e2e tests [] Support for redirected URIs [] Complete HLS manifest parsing capabilities

hlsproxy's People

Contributors

alicanerdogan avatar

Watchers

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