JavaScript SDK

Document created by Domitian Tamas-Selicean Employee on Mar 1, 2017Last modified by Alan Green on Apr 21, 2017
Version 10Show Document
  • View in full screen mode

Current version

 

Releases

 

v1.2.2

Supported Media Players

Media PlayerVersionOther dependencies
dash.js2.4.0N/A
hls.js0.6.19 - 0.7.3N/A
Shaka Player2.0.4N/A
video.js - hls.js5.6.0hls.js v0.6.19
video.js  MPEG-DASH5.6.0dash.js v2.4.0, videojs-contrib-dash v2.6.1

 

Known Issues:   Update: 28th March 2017 

A bug introduced in hls.js v0.7.4 makes this version incompatible with MASDK. Please see bug report #1068 for further details.

      

 

SDK Location

Media PlayerSDK Location
dash.jshttps://media-acceleration-host.akamaized.net/sdk/js/1.2.2/dashjs.min.js
hls.jshttps://media-acceleration-host.akamaized.net/sdk/js/1.2.2/hlsjs.min.js
Shaka Playerhttps://media-acceleration-host.akamaized.net/sdk/js/1.2.2/shaka-player.min.js
video.js - hls.jshttps://media-acceleration-host.akamaized.net/sdk/js/1.2.2/videojs-hlsjs.min.js
video.js MPEG-DASHhttps://media-acceleration-host.akamaized.net/sdk/js/1.2.2/videojs-dash.min.js

 

SDK versioning

The SDK releases are versioned using semantic versioning, where each version is denoted by <major-version>.<minor-version>.<patch>.

 

Each SDK release is available as a minified JavaScript file for each supported media player, accessible at the following locations:

  • https://media-acceleration-host.akamaized.net/sdk/js/latest/<player>.min.js -- delivers the latest version of the SDK (stable or unstable). Not recommended for production.
  • https://media-acceleration-host.akamaized.net/sdk/js/stable/<player>.min.js -- delivers the latest stable version of the SDK.
  • https://media-acceleration-host.akamaized.net/sdk/js/stable/<major-version>/<player>.min.js -- delivers the latest stable version of the SDK for the specified major version. Recommended for production use.
  • https://media-acceleration-host.akamaized.net/sdk/js/stable/<major-version>.<minor-version>/<player>.min.js -- delivers the latest stable version of the SDK for the specified major and minor version. Recommended for production use.
  • https://media-acceleration-host.akamaized.net/sdk/js/<major-version>.<minor-version>.<patch>/<player>.min.js -- delivers the SDK for the specified version.

 

 

Running the Sample Players

 

Prerequisites

  • A web server
  • A web browser (e.g., Mozilla Firefox or Google Chrome)

 

To run the sample players, you need to deploy the sample players to a web server and point your browser to the sample players. Assuming your web server is running on port <PORT_NUMBER>, and you deployed the examples folder to the web server directory, browse to localhost:<PORT_NUMBER>/examples/<media-player>/ where <media-player> is one of the supported media players.

2 people found this helpful

Attachments

Outcomes