1.0.10 • Published 6 months ago

adaptive-media-player v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

adaptive-media-player

This package facilitates the HTML5 Akamai Adaptive Media Player integration with projects using JavaScript module imports.

Installation

npm install adaptive-media-player --save-dev

Usage

import React, { useEffect } from 'react';
import  AMP  from  'adaptive-media-player'

function PlayerExample() {
  useEffect(() => {
	const config = {
		 autoplay: true,
		 media: { src: "https://example.com/video/bbb.mp4" }
	}
	
    AMP.create("customerApiKey", "#player", config)
   });
   
  return (
    <div id="player"></div>
  );
}

Resources

AMP for Web Docs

1.0.10

6 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.0.6

9 months ago

1.0.5

11 months ago

9.1.32

11 months ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.7

3 years ago