Skip to content

Releases: Chimeejs/chimee

0.10.0-alpha.9

19 May 14:14
Compare
Choose a tag to compare
0.10.0-alpha.9 Pre-release
Pre-release
  • fix event binding bug when we use class plugin
  • fix kernel event binding bug

0.10.0-alpha.8

16 May 16:06
Compare
Choose a tag to compare
0.10.0-alpha.8 Pre-release
Pre-release
  • We will seek to the current time when you are using silentload with immediate as true

Please download this version with follow command

npm install chimee@next

0.10.0-alpha.6

10 May 16:03
Compare
Choose a tag to compare
0.10.0-alpha.6 Pre-release
Pre-release
  • support dynamic $autoFocus

You can change plugin's autoFocus setting whenever you want.

To get the package, install like follow

npm install chimee@next

0.10.0-alpha.5

09 May 16:08
Compare
Choose a tag to compare
0.10.0-alpha.5 Pre-release
Pre-release
  • fix video style lost bug (#117)
  • support videoRequiredGuardedAttributes

0.10.0-alpha.4

26 Apr 15:39
Compare
Choose a tag to compare
0.10.0-alpha.4 Pre-release
Pre-release
  • suppor useStyleFullscreen on global config

In some situation, the browser's fullscreen api do not perform well. We can use css to simulate fullscreen. You can just set useStyleFullscreen to be true like this:

Chimee.config.useStyleFullscreen = true;

You can download this version through this command.

npm install chimee@next

0.10.0-alpha.3

25 Apr 05:40
Compare
Choose a tag to compare
0.10.0-alpha.3 Pre-release
Pre-release
  • merge chimee-kernel into chimee

0.10.0-alpha.2

25 Apr 04:40
Compare
Choose a tag to compare
0.10.0-alpha.2 Pre-release
Pre-release
  • use latest chimee-kernel

0.10.0-alpha

24 Apr 14:11
Compare
Choose a tag to compare
0.10.0-alpha Pre-release
Pre-release

You can install this version like this:

npm install chimee@next --save-dev

event options

In this version, we make a refactor on our event system, which can help us to solve the problem described in #106 and #102.

We now can pass in event option to provide more info for event.

The event options including two parameter, target and stage, they are both optional.

target

target means the target you need to listen on, you can value below.

'kernel' | 'container' | 'wrapper' | 'video' | 'video-dom' | 'plugin' | 'esFullscreen'

For example, you used to listen on container by c_.

// what you used to do
player.on('c_click', event => console.log(event));

// what you can do now
player.on('click', event => console.log(event),  { target: 'container' });

stage

stage means the event stage, it includes 'before' | 'main' | 'after' | '_'

so you can listen on before play event like this:

// what you used to do
player.on('beforePlay', event => console.log(event));

// what you can do now
player.on('play', event => console.log(event), { stage: 'before' });

emit

So you can clarify the target of your event emit.

player.emit({
  name: 'click',
  target: 'container',
});

registerEvents

In some situation, the developer may create their own kernel events. So we provide a new interface for developer to register events.

But we can just register kernel events now.

import Chimee from 'chimee'

Chimee.registerEvents({
  name: 'test',
  target: 'kernel',
});

0.10.0-alpha.1

24 Apr 14:37
3eb63be
Compare
Choose a tag to compare
0.10.0-alpha.1 Pre-release
Pre-release

export kernelEvents.

0.9.5

10 Mar 04:22
Compare
Choose a tag to compare
0.9.5 Pre-release
Pre-release