Giter Club home page Giter Club logo

njs-emby-extlink's Introduction

NJS Emby Enhancer

A module enhances Emby to call external video players to play media on your hosted server, powered by njs (NGINX JavaScript).

Table of Contents

Features

  • Supporting Emby WebUI/iOS Client/Android Client

  • Supporting multiple media sources

  • Auto-detection for platform & system, only showing available players

  • Additional Components: Concealing the real address of the server to avoid IP leakage

Screenshot

WebUI
Android Emby

Usage

  1. Download dist/njs-emby-extlink.js and put it in nginx working folder

  2. Insert a line in nginx.conf to load NJS engine

    # Load NJS Engine
    load_module modules/ngx_http_js_module.so;
  3. Add this entry in the first line of emby’s reverse proxy configuration file (emby.conf)

    # change the path from "path-to/njs-emby-extlink.js"
    js_import embyPlugin from path-to/njs-emby-extlink.js;
  4. Add a rewrite rule for root path in emby.conf

    location / {
      ...
    	## Emby Nginx Plugin: ExtPlay
    	rewrite ^/Videos/(\d+)/ExtPlay/ /emby/videos/$1/stream redirect;
    }
  5. Add/change the following sections in emby.conf

    location ~* /Users/(\w+)/Items/(\d+) {
    	js_header_filter embyPlugin.contentTypeJson;
    	js_body_filter embyPlugin.addExtLinkFilter buffer_type=string;
      ## Others
      proxy_pass http://emby;
      ...
    }
    location /Emby/Addons/ExtPlay {
    	js_content embyPlugin.handleExtPlay;
    }
  6. Optional: Add/change the following sections to conceal system info

    location ~* /System/Info {
    	js_header_filter embyPlugin.contentTypeJson;
    	js_body_filter embyPlugin.concealPublicInfo buffer_type=string;
    	## Others
      proxy_pass http://emby;
      ...
    }

License

This project is licensed under AGPL-3.0 License. It used a portion of codes from njs-typescript-starter, which is licensed under MIT License

njs-emby-extlink's People

Contributors

etnperlong 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.