Giter Site home page Giter Site logo

codeforus / radiant-medialyzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yashilanka/radiant-medialyzer

0.0 2.0 0.0 379 KB

Radiant MediaLyzer is a JavaScript API to detect media features for web-based environnements.

Home Page: http://www.radiantmedialyzer.net

License: Other

JavaScript 99.53% HTML 0.47%

radiant-medialyzer's Introduction

Radiant MediaLyzer

Home Page: http://www.radiantmedialyzer.net

Radiant MediaLyzer is a JavaScript API to detect media features for web-based environnements. It includes feature detection for Media Source Extensions, Apple HLS, common video/audio codecs, HTML5 media elements, Web Audio API and more.

Radiant MediaLyzer is an open source project released under MIT license and sponsored by Radiant Media Player an HTML5-first video player with MPEG-DASH, HLS & Wowza support, HTML5 video ads and an advanced Flash fallback.

Included features:

  • Media features detection for over 30 media related features
  • Built with vanilla JavaScript (no dependency)
  • Jasmine unit tested and JSHint compliant
  • Works on most devices of the current market from mobile phones to TVs
  • Error resilience
  • Complete documentation with JSDoc 3 commented sources
  • Available on jsDelivr CDN or self-hosted
  • Available on bower: bower install radiant-medialyzer
  • Pick the whole library or browse the source code to get the function you need
  • Lightweight: only 4 kB minified

Complete documentation

[http://www.radiantmedialyzer.net/documentation.html] (http://www.radiantmedialyzer.net/documentation.html)

Install

Bower

bower install radiant-medialyzer

GitHub

Checkout sources or download ZIP package from GitHub

jsDelivr

<script src="//cdn.jsdelivr.net/radiant-medialyzer/1.2.4/rml.min.js"></script>

Quick start guide

Include Radiant MediaLyzer JavaScript file:

<script src="js/rml.min.js"></script>

Create a new instance:

var rml = new RadiantML();

Start making calls to the API:

rml.mp4H264AAC();
rml.mse();
rml.getUserMedia();

Do something with the result:

var mse = rml.mse();
var mp4H264AAC = rml.mp4H264AAC('high40');
var m4aHEAACv2 = rml.m4aHEAACv2();
if (mse && mp4H264AAC && m4aHEAACv2) {
    // DASH264 support do something (assuming you are using dash.js or equivalent)
} else {
    // No go for DASH264 do something different
}

Done! :bowtie:

Contributors

Thanks to @jcready for various code optimization

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.