mccree-core

1.1.1 • Public • Published

mccree-core

Mccree core.

Install

npm install --save mccree-core

Usage

import Mccree from 'mccree-core';
let mccree = new Mccree(modules, config, plugins);

Extend

class SomenameMccree extend Mccree {
  // Do something 
}

Interface

index.js

Mccree core workflow

destroy()

The function to destroy mccree.

attachMedia(media)

Use to attach a media profile.

detachMedia()

Use to detach the the media profile.

attachMediaElement(media)

Use to attach the the media element.

detachMediaElement()

Use to detach the the media element.

load(url)

Load the resource.

url - The resource url.

unload()

Unload from the resource. Returns a promise.

events.js

The events of Mccree workflow

media-info.js

The data structure of media informations.

media.js

The data structure of media profile include trucks.

initTracks()

Initailize all tracks.

initTracks()

Initailize all tracks.

initTracks()

Reset all tracks.

getTrack(key)

Get a track.

key - the key of track.

destoryTracks()

Destory all tracks.

Readme

Keywords

none

Package Sidebar

Install

npm i mccree-core

Weekly Downloads

0

Version

1.1.1

License

UNLICENSED

Unpacked Size

17.3 kB

Total Files

8

Last publish

Collaborators

  • yqjiang