{"_id":"@ahfarmer/dashjs","_rev":"1-2b74f8841960d7e068be855852f0c849","name":"@ahfarmer/dashjs","dist-tags":{"latest":"3.1.4"},"versions":{"3.1.4":{"name":"@ahfarmer/dashjs","version":"3.1.4","description":"A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.","main":"build/es5/index.js","types":"build/typings/index.d.ts","scripts":{"build":"grunt","debug-mocha":"iron-node node_modules/mocha/bin/_mocha --require mochahook","test":"mocha test/unit --require mochahook","test-functional":"node node_modules/intern/runner.js config=test/functional/config.js selenium=remote app=remote","dev":"grunt dev","prepublish":"grunt githooks","prepublishOnly":"grunt prepublish","debug":"iron-mocha --require mochahook","coverage":"istanbul cover node_modules/mocha/bin/_mocha --require mochahook -- test/"},"devDependencies":{"babel":"^5.3.1","babel-preset-env":"^1.7.0","babelify":"^6.1.0","browserify-derequire":"^0.9.6","bs-html-injector":"^3.0.3","bundle-collapser":"^1.3.0","chai":"^3.4.1","chai-spies":"^1.0.0","grunt":"^1.0.4","grunt-babel":"^6.0.0","grunt-browser-sync":"^2.2.0","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-clean":"^2.0.0","grunt-contrib-connect":"^2.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-jshint":"^0.11.2","grunt-contrib-uglify":"^4.0.1","grunt-contrib-watch":"^1.1.0","grunt-exorcise":"^2.1.1","grunt-ftp-push":"^1.2.1","grunt-githash":"^0.1.3","grunt-githooks":"^0.6.0","grunt-jscs":"^2.5.0","grunt-jsdoc":"^2.4.0","grunt-mocha-istanbul":"^5.0.2","grunt-string-replace":"^1.3.1","ink-docstrap":"^1.3.2","intern":"3.4.6","iron-mocha":"^1.0.3","iron-node":"^3.0.23","istanbul":"^0.4.5","jsdoc":"^3.6.2","jsdom":"^13.2.0","load-grunt-tasks":"^4.0.0","mocha":"^2.3.4","sinon":"^7.3.2","time-grunt":"^2.0.0","uglify-js":"^3.6.0"},"dependencies":{"codem-isoboxer":"0.3.6","fast-deep-equal":"2.0.1","imsc":"^1.0.2","html-entities":"^1.2.1","localforage":"^1.7.1","request":"^2.87.0","request-promise":"^4.2.2"},"repository":{"type":"git","url":"git+https://github.com/Dash-Industry-Forum/dash.js.git"},"author":{"name":"Dash Industry Forum"},"license":"BSD-3-Clause","gitHead":"c3967e07f73ab451bb4637422f44223e1a1a8057","bugs":{"url":"https://github.com/Dash-Industry-Forum/dash.js/issues"},"homepage":"https://github.com/Dash-Industry-Forum/dash.js#readme","_id":"@ahfarmer/dashjs@3.1.4","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-XR4QopGTnZFPt+OL7VgH4pY6Act3ahbkjNPFPlED1VuTre0Vn++HJ4/8kcsPJmMVD+GmUhNqeGAFFB1OMS+CwQ==","shasum":"c4a02ea3c69a5851a7303478a8f6ef0932e2ba0c","tarball":"https://registry.npmjs.org/@ahfarmer/dashjs/-/dashjs-3.1.4.tgz","fileCount":765,"unpackedSize":34798629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJficraCRA9TVsSAnZWagAAeukP/igTAQDEzMjk9+wN+a9r\nuV1rSI6cowFYP8Sx9Hmdv1Ik8Yf2afz/ImU+L9Y9xZIJ57dfMUGFPSXcj1fn\n2U89COX+EmJ0+XoZ8i3rWAUvmcZL/oERW30m2qsvPtwmawi1jQVQezJIYnXj\nSHkMg8HfvHd+PFRDHpmSsMMdH+PJ7sdSP+q7grrreO2+n5Ewv16Kmo0Te3yP\n1na3w1/GCpv1A4hd+SkH1IwUtxhD+9ytB6t24ipDUiMbIY5wy57qM/CFBl+K\nW/5SJdd7DuvWyH6dw/pr5GDuRxRTdCmD9T33vng71zUE9k5to1t1muSLSHMe\n3JM+WvjwNyg9uiJD6vDGWJQOOk4kwU7sgmiIykhYyJJllINIjVV9IZ2yuXw5\n0ITHJmVFolLJE0nBfvfsurYTyAj6GtBaLTDscpeIwHKMCXHxR+sayznJN1PN\nAawe2s6FvRjSd/FAweFnRHxhbl50Ssfwh7JPXBn4zCOz09NFlR0uqlgM0+Oy\nNDEzbGG3DhKxbI8Y6uQ0pzalqVslKTthuZbVsW/qYg+16EsiXRVcm/iiCvdV\nYcy/xrFVX6CZLJPhXmNx6BrJlUOwx214GhJhLYok8Oyp2jHnvKVkNGRo0oDJ\nkTXEX7DnKkKMlKPpAuyDY+/572MrmQNA6mqLhcKMgpcJsUPYDR53s3ZSonwl\nsz/p\r\n=Mona\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDdWD1aAw4ojRqqYLrNrcvkrbyOelPaJTm4f17xiiyEiAiAPIVuP1PhNoHbpNlzvH+tASHsUb3auptJdz0WvIXNP4Q=="}]},"maintainers":[{"name":"ahfarmer","email":"ahfarmer@gmail.com"}],"_npmUser":{"name":"ahfarmer","email":"ahfarmer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dashjs_3.1.4_1602865881514_0.23787708133213203"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-16T16:31:21.476Z","3.1.4":"2020-10-16T16:31:21.934Z","modified":"2022-04-04T12:12:14.849Z"},"maintainers":[{"name":"ahfarmer","email":"ahfarmer@gmail.com"}],"description":"A reference client implementation for the playback of MPEG DASH via Javascript and compliant browsers.","homepage":"https://github.com/Dash-Industry-Forum/dash.js#readme","repository":{"type":"git","url":"git+https://github.com/Dash-Industry-Forum/dash.js.git"},"author":{"name":"Dash Industry Forum"},"bugs":{"url":"https://github.com/Dash-Industry-Forum/dash.js/issues"},"license":"BSD-3-Clause","readme":"\n<img src=\"https://cloud.githubusercontent.com/assets/2762250/7824984/985c3e76-03bc-11e5-807b-1402bde4fe56.png\" width=\"400\">\n\nBuild status (CircleCI): [![CircleCI](https://circleci.com/gh/Dash-Industry-Forum/dash.js/tree/development.svg?style=svg)](https://circleci.com/gh/Dash-Industry-Forum/dash.js/tree/development)\n\n[Join #dashjs on Slack!](https://join.slack.com/t/dashif/shared_invite/zt-egme869x-JH~UPUuLoKJB26fw7wj3Gg)\n\n## Overview\nA reference client implementation for the playback of MPEG DASH via JavaScript and [compliant browsers](http://caniuse.com/#feat=mediasource). Learn more about DASH IF Reference Client on our [wiki](https://github.com/Dash-Industry-Forum/dash.js/wiki).\n\nIf your intent is to use the player code without contributing back to this project, then use the MASTER branch which holds the approved and stable public releases.\n\nIf your goal is to improve or extend the code and contribute back to this project, then you should make your changes in, and submit a pull request against, the DEVELOPMENT branch. Read our [CONTRIBUTION.md](https://github.com/Dash-Industry-Forum/dash.js/blob/development/CONTRIBUTING.md) file for a walk-through of the contribution process.\n\nAll new work should be in the development branch. Master is now reserved for tagged builds.\n\n## Demo and reference players\nAll these reference builds and minified files are available under both http and https.\n\n### Samples\nMultiple [dash.js samples](https://reference.dashif.org/dash.js/latest/samples/index.html) covering a wide set of common use cases.\n\n### Reference players\nThe released [pre-built reference players ](http://reference.dashif.org/dash.js/) if you want direct access without writing any Javascript.\n\nThe [nightly build of the /dev branch reference player](http://reference.dashif.org/dash.js/nightly/samples/dash-if-reference-player/index.html), is pre-release but contains the latest fixes. It is a good place to start if you are debugging playback problems.\n\n\n### CDN hosted files\nThe latest minified files have been hosted on a global CDN and are free to use in production:\n\n- [dash.all.min.js](http://cdn.dashjs.org/latest/dash.all.min.js)\n- [dash.all.debug.js](http://cdn.dashjs.org/latest/dash.all.debug.js)\n\nIn addition, all the releases are available under the following urls. Replace \"vx.x.x\" with the release version, for instance \"v3.1.0\".\n\n- [http://cdn.dashjs.org/vx.x.x/dash.all.min.js](http://cdn.dashjs.org/v3.1.0/dash.all.min.js)\n- [http://cdn.dashjs.org/vx.x.x/dash.all.debug.js](http://cdn.dashjs.org/v3.1.0/dash.all.debug.js)\n\n\n\n## Documentation\nFull [API Documentation](http://cdn.dashjs.org/latest/jsdoc/module-MediaPlayer.html) is available describing all public methods, interfaces, properties, and events.\n\nFor help, join our [Slack channel](https://dashif-slack.azurewebsites.net), our [email list](https://groups.google.com/d/forum/dashjs) and read our [wiki](https://github.com/Dash-Industry-Forum/dash.js/wiki).\n\nIf you are migrating from dash.js v2.x to dash.js v3.x please read the migration document found [here](https://github.com/Dash-Industry-Forum/dash.js/wiki/Migration-3.0).\n\n\n## Getting Started\n\nThe standard setup method uses javascript to initialize and provide video details to dash.js. `MediaPlayerFactory` provides an alternative declarative setup syntax.\n\n### Standard Setup\n\nCreate a video element somewhere in your html. For our purposes, make sure the controls attribute is present.\n```html\n<video id=\"videoPlayer\" controls></video>\n```\nAdd dash.all.min.js to the end of the body.\n```html\n<body>\n  ...\n  <script src=\"yourPathToDash/dash.all.min.js\"></script>\n</body>\n```\nNow comes the good stuff. We need to create a MediaPlayer and initialize it.\n``` js\n\nvar url = \"https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd\";\nvar player = dashjs.MediaPlayer().create();\nplayer.initialize(document.querySelector(\"#videoPlayer\"), url, true);\n\n```\n\nWhen it is all done, it should look similar to this:\n```html\n<!doctype html>\n<html>\n    <head>\n        <title>Dash.js Rocks</title>\n        <style>\n            video {\n                width: 640px;\n                height: 360px;\n            }\n        </style>\n    </head>\n    <body>\n        <div>\n            <video id=\"videoPlayer\" controls></video>\n        </div>\n        <script src=\"yourPathToDash/dash.all.min.js\"></script>\n        <script>\n            (function(){\n                var url = \"https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd\";\n                var player = dashjs.MediaPlayer().create();\n                player.initialize(document.querySelector(\"#videoPlayer\"), url, true);\n            })();\n        </script>\n    </body>\n</html>\n```\n\n### Module Setup\n\nWe publish dash.js to [npm](https://www.npmjs.com/package/dashjs). Examples of how to use dash.js in different module\nbundlers can be found in the [`samples/modules`](https://github.com/Dash-Industry-Forum/dash.js/tree/development/samples/modules) directory.\n\n### MediaPlayerFactory Setup\n\nAn alternative way to build a Dash.js player in your web page is to use the MediaPlayerFactory.  The MediaPlayerFactory will automatically instantiate and initialize the MediaPlayer module on appropriately tagged video elements.\n\nCreate a video element somewhere in your html and provide the path to your `mpd` file as src. Also ensure that your video element has the `data-dashjs-player` attribute on it.\n```html\n<video data-dashjs-player autoplay src=\"https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd\" controls>\n</video>\n\n```\n\nAdd dash.all.min.js to the end of the body.\n```html\n<body>\n  ...\n  <script src=\"yourPathToDash/dash.all.min.js\"></script>\n</body>\n```\n\nWhen it is all done, it should look similar to this:\n```html\n<!doctype html>\n<html>\n    <head>\n        <title>Dash.js Rocks</title>\n        <style>\n            video {\n                width: 640px;\n                height: 360px;\n            }\n        </style>\n    </head>\n    <body>\n        <div>\n            <video data-dashjs-player autoplay src=\"https://dash.akamaized.net/envivio/EnvivioDash3/manifest.mpd\" controls>\n            </video>\n        </div>\n        <script src=\"yourPathToDash/dash.all.min.js\"></script>\n    </body>\n</html>\n```\n\n## Quick Start for Developers\n\n1. Install Core Dependencies\n    * [install nodejs](http://nodejs.org/)\n    * [install grunt](http://gruntjs.com/getting-started)\n        * ```npm install -g grunt-cli```\n2. Checkout project repository (default branch: development)\n    * ```git clone https://github.com/Dash-Industry-Forum/dash.js.git```\n3. Install dependencies\n    * ```npm install```\n4. Build, watch file changes and launch samples page, which has links that point to reference player and to other examples (basic examples, captioning, ads, live, etc).\n    * ```grunt dev```\n\n\n### Other Grunt Tasks to Build / Run Tests on Commandline.\n\n1. Individual tasks:\n    * Quickest build\n        * ```grunt debug```\n    * Lint\n        * ```grunt lint```\n    * Run unit tests\n        * ```grunt test```\n    * Build distribution files (minification included)\n        * ```grunt dist```\n    * Build distribution files, lint, run unit tests and generate documentation\n        * ```grunt release```\n2. GruntFile.js default task (equivalent to ```grunt dist && grunt test```)\n    * ```grunt```\n\n### License\ndash.js is released under [BSD license](https://github.com/Dash-Industry-Forum/dash.js/blob/development/LICENSE.md)\n\n### Tested With\n\n[<img src=\"https://cloud.githubusercontent.com/assets/7864462/12837037/452a17c6-cb73-11e5-9f39-fc96893bc9bf.png\" alt=\"Browser Stack Logo\" width=\"300\">](https://www.browserstack.com/)\n","readmeFilename":"README.md"}