Skip to content

Commit

Permalink
build: 0.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
toxic-johann committed Jun 20, 2018
1 parent a1811df commit ec97387
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 78 deletions.
2 changes: 1 addition & 1 deletion bundle-size/common.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h1>RollUp Visualizer</h1>
</div>
</div>
</div>
<script>window.nodesData = {"name":"root","children":[{"name":"kernels","children":[{"name":"native.js","children":[],"size":2224,"originalSize":1489}]},{"name":"dispatcher","children":[{"name":"kernel.js","children":[],"size":5228,"originalSize":4443},{"name":"video-wrapper.js","children":[],"size":21963,"originalSize":14224},{"name":"plugin.js","children":[],"size":11500,"originalSize":9887},{"name":"dom.js","children":[],"size":16628,"originalSize":12359},{"name":"bus.js","children":[],"size":17943,"originalSize":13895},{"name":"binder.js","children":[],"size":21524,"originalSize":13863},{"name":"index.js","children":[],"size":31057,"originalSize":25308}]},{"name":"helper","children":[{"name":"const.js","children":[],"size":1568,"originalSize":1913},{"name":"checker.js","children":[],"size":821,"originalSize":838}]},{"name":"config","children":[{"name":"video.js","children":[],"size":12110,"originalSize":9141},{"name":"container.js","children":[],"size":111,"originalSize":99},{"name":"vessel.js","children":[],"size":1002,"originalSize":1106},{"name":"global.js","children":[],"size":2874,"originalSize":1500}]},{"name":"index.js","children":[],"size":9377,"originalSize":4185}]};</script>
<script>window.nodesData = {"name":"root","children":[{"name":"kernels","children":[{"name":"native.js","children":[],"size":2224,"originalSize":1489}]},{"name":"dispatcher","children":[{"name":"kernel.js","children":[],"size":5141,"originalSize":4439},{"name":"video-wrapper.js","children":[],"size":21963,"originalSize":14224},{"name":"plugin.js","children":[],"size":11500,"originalSize":9887},{"name":"dom.js","children":[],"size":16628,"originalSize":12359},{"name":"bus.js","children":[],"size":17943,"originalSize":13895},{"name":"binder.js","children":[],"size":21524,"originalSize":13863},{"name":"index.js","children":[],"size":31152,"originalSize":25434}]},{"name":"helper","children":[{"name":"const.js","children":[],"size":1568,"originalSize":1913},{"name":"checker.js","children":[],"size":821,"originalSize":838}]},{"name":"config","children":[{"name":"video.js","children":[],"size":12110,"originalSize":9141},{"name":"container.js","children":[],"size":111,"originalSize":99},{"name":"vessel.js","children":[],"size":1002,"originalSize":1106},{"name":"global.js","children":[],"size":2874,"originalSize":1500}]},{"name":"index.js","children":[],"size":9377,"originalSize":4185}]};</script>
<script charset="UTF-8">
(function () {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion bundle-size/es.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ <h1>RollUp Visualizer</h1>
</div>
</div>
</div>
<script>window.nodesData = {"name":"root","children":[{"name":"kernels","children":[{"name":"native.js","children":[],"size":2185,"originalSize":1489}]},{"name":"dispatcher","children":[{"name":"kernel.js","children":[],"size":5098,"originalSize":4443},{"name":"video-wrapper.js","children":[],"size":21109,"originalSize":14224},{"name":"plugin.js","children":[],"size":10972,"originalSize":9887},{"name":"dom.js","children":[],"size":15966,"originalSize":12359},{"name":"bus.js","children":[],"size":17515,"originalSize":13895},{"name":"binder.js","children":[],"size":21127,"originalSize":13863},{"name":"index.js","children":[],"size":29774,"originalSize":25308}]},{"name":"helper","children":[{"name":"const.js","children":[],"size":1568,"originalSize":1913},{"name":"checker.js","children":[],"size":795,"originalSize":838}]},{"name":"config","children":[{"name":"video.js","children":[],"size":11442,"originalSize":9141},{"name":"container.js","children":[],"size":111,"originalSize":99},{"name":"vessel.js","children":[],"size":963,"originalSize":1106},{"name":"global.js","children":[],"size":2800,"originalSize":1500}]},{"name":"index.js","children":[],"size":9039,"originalSize":4185}]};</script>
<script>window.nodesData = {"name":"root","children":[{"name":"kernels","children":[{"name":"native.js","children":[],"size":2185,"originalSize":1489}]},{"name":"dispatcher","children":[{"name":"kernel.js","children":[],"size":5011,"originalSize":4439},{"name":"video-wrapper.js","children":[],"size":21109,"originalSize":14224},{"name":"plugin.js","children":[],"size":10972,"originalSize":9887},{"name":"dom.js","children":[],"size":15966,"originalSize":12359},{"name":"bus.js","children":[],"size":17515,"originalSize":13895},{"name":"binder.js","children":[],"size":21127,"originalSize":13863},{"name":"index.js","children":[],"size":29869,"originalSize":25434}]},{"name":"helper","children":[{"name":"const.js","children":[],"size":1568,"originalSize":1913},{"name":"checker.js","children":[],"size":795,"originalSize":838}]},{"name":"config","children":[{"name":"video.js","children":[],"size":11442,"originalSize":9141},{"name":"container.js","children":[],"size":111,"originalSize":99},{"name":"vessel.js","children":[],"size":963,"originalSize":1106},{"name":"global.js","children":[],"size":2800,"originalSize":1500}]},{"name":"index.js","children":[],"size":9039,"originalSize":4185}]};</script>
<script charset="UTF-8">
(function () {
'use strict';
Expand Down
2 changes: 1 addition & 1 deletion bundle-size/min.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle-size/umd.html

Large diffs are not rendered by default.

47 changes: 23 additions & 24 deletions lib/index.browser.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.10.2
* chimee v0.10.3
* (c) 2017-2018 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -4833,9 +4833,24 @@
var boxSuffixMap = {
flv: '.flv',
hls: '.m3u8',
mp4: '.mp4'
native: '.mp4'
};

// return the config box
// or choose the right one according to the src
function getLegalBox(_ref) {
var src = _ref.src,
box = _ref.box;

if (isString(box) && box) return box;
src = src.toLowerCase();
for (var key in boxSuffixMap) {
var suffix = boxSuffixMap[key];
if (src.indexOf(suffix) > -1) return key;
}
return 'native';
}

var ChimeeKernel = function () {
/**
* kernelWrapper
Expand All @@ -4861,7 +4876,7 @@
key: 'initVideoKernel',
value: function initVideoKernel() {
var config = this.config;
var box = this.chooseBox(config);
var box = getLegalBox(config);
this.box = box;
var VideoKernel = this.chooseVideoKernel(this.box, config.preset);

Expand All @@ -4877,24 +4892,6 @@
this.videoKernel = new VideoKernel(this.videoElement, config, customConfig);
}

// return the config box
// or choose the right one according to the src

}, {
key: 'chooseBox',
value: function chooseBox(_ref) {
var src = _ref.src,
box = _ref.box;

if (isString(box) && box) return box;
src = src.toLowerCase();
for (var key in boxSuffixMap) {
var suffix = boxSuffixMap[key];
if (src.indexOf(suffix) > -1) return key;
}
return 'native';
}

// choose the right video kernel according to the box setting

}, {
Expand Down Expand Up @@ -7734,7 +7731,7 @@
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.10.2';
_this.VERSION = '0.10.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -10426,14 +10423,16 @@
_option2$isLive = _option2.isLive,
isLive = _option2$isLive === undefined ? videoConfig.isLive : _option2$isLive,
_option2$box = _option2.box,
box = _option2$box === undefined ? videoConfig.box : _option2$box,
box = _option2$box === undefined ? getLegalBox({ src: src, box: videoConfig.box }) : _option2$box,
_option2$preset = _option2.preset,
preset = _option2$preset === undefined ? videoConfig.preset : _option2$preset,
_option2$kernels = _option2.kernels,
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels,
isFirst = _option2.isFirst;

delete option.isFirst;
if (box !== 'native' || box !== oldBox || !isEmpty(option)) {
option.isFirst = isFirst;
var video = document.createElement('video');
var config = { isLive: isLive, box: box, preset: preset, src: src, kernels: kernels };
var kernel = this._createKernel(video, config);
Expand Down Expand Up @@ -11246,7 +11245,7 @@
}), _descriptor2$1 = _applyDecoratedDescriptor$8(_class2$2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.10.2';
return '0.10.3';
}
}), _descriptor3$1 = _applyDecoratedDescriptor$8(_class2$2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
47 changes: 23 additions & 24 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.10.2
* chimee v0.10.3
* (c) 2017-2018 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -122,9 +122,24 @@ var LOG_TAG = 'chimee';
var boxSuffixMap = {
flv: '.flv',
hls: '.m3u8',
mp4: '.mp4'
native: '.mp4'
};

// return the config box
// or choose the right one according to the src
function getLegalBox(_ref) {
var src = _ref.src,
box = _ref.box;

if (chimeeHelper.isString(box) && box) return box;
src = src.toLowerCase();
for (var key in boxSuffixMap) {
var suffix = boxSuffixMap[key];
if (src.indexOf(suffix) > -1) return key;
}
return 'native';
}

var ChimeeKernel = function () {
/**
* kernelWrapper
Expand All @@ -150,7 +165,7 @@ var ChimeeKernel = function () {
key: 'initVideoKernel',
value: function initVideoKernel() {
var config = this.config;
var box = this.chooseBox(config);
var box = getLegalBox(config);
this.box = box;
var VideoKernel = this.chooseVideoKernel(this.box, config.preset);

Expand All @@ -166,24 +181,6 @@ var ChimeeKernel = function () {
this.videoKernel = new VideoKernel(this.videoElement, config, customConfig);
}

// return the config box
// or choose the right one according to the src

}, {
key: 'chooseBox',
value: function chooseBox(_ref) {
var src = _ref.src,
box = _ref.box;

if (chimeeHelper.isString(box) && box) return box;
src = src.toLowerCase();
for (var key in boxSuffixMap) {
var suffix = boxSuffixMap[key];
if (src.indexOf(suffix) > -1) return key;
}
return 'native';
}

// choose the right video kernel according to the box setting

}, {
Expand Down Expand Up @@ -1296,7 +1293,7 @@ var Plugin = (_dec$2 = toxicDecorators.autobindClass(), _dec$2(_class$2 = functi
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.10.2';
_this.VERSION = '0.10.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -3492,14 +3489,16 @@ var Dispatcher = (_dec$6 = toxicDecorators.before(convertNameIntoId), _dec2$5 =
_option2$isLive = _option2.isLive,
isLive = _option2$isLive === undefined ? videoConfig.isLive : _option2$isLive,
_option2$box = _option2.box,
box = _option2$box === undefined ? videoConfig.box : _option2$box,
box = _option2$box === undefined ? getLegalBox({ src: src, box: videoConfig.box }) : _option2$box,
_option2$preset = _option2.preset,
preset = _option2$preset === undefined ? videoConfig.preset : _option2$preset,
_option2$kernels = _option2.kernels,
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels,
isFirst = _option2.isFirst;

delete option.isFirst;
if (box !== 'native' || box !== oldBox || !chimeeHelper.isEmpty(option)) {
option.isFirst = isFirst;
var video = document.createElement('video');
var config = { isLive: isLive, box: box, preset: preset, src: src, kernels: kernels };
var kernel = this._createKernel(video, config);
Expand Down Expand Up @@ -4103,7 +4102,7 @@ var Chimee = (_dec$7 = toxicDecorators.autobindClass(), _dec$7(_class$8 = (_clas
}), _descriptor2$1 = _applyDecoratedDescriptor$7(_class2$1.prototype, 'version', [toxicDecorators.frozen], {
enumerable: true,
initializer: function initializer() {
return '0.10.2';
return '0.10.3';
}
}), _descriptor3$1 = _applyDecoratedDescriptor$7(_class2$1.prototype, 'config', [toxicDecorators.frozen], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion lib/index.min.js

Large diffs are not rendered by default.

47 changes: 23 additions & 24 deletions lib/index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/**
* chimee v0.10.2
* chimee v0.10.3
* (c) 2017-2018 toxic-johann
* Released under MIT
*/
Expand Down Expand Up @@ -118,9 +118,24 @@ var LOG_TAG = 'chimee';
var boxSuffixMap = {
flv: '.flv',
hls: '.m3u8',
mp4: '.mp4'
native: '.mp4'
};

// return the config box
// or choose the right one according to the src
function getLegalBox(_ref) {
var src = _ref.src,
box = _ref.box;

if (isString(box) && box) return box;
src = src.toLowerCase();
for (var key in boxSuffixMap) {
var suffix = boxSuffixMap[key];
if (src.indexOf(suffix) > -1) return key;
}
return 'native';
}

var ChimeeKernel = function () {
/**
* kernelWrapper
Expand All @@ -146,7 +161,7 @@ var ChimeeKernel = function () {
key: 'initVideoKernel',
value: function initVideoKernel() {
var config = this.config;
var box = this.chooseBox(config);
var box = getLegalBox(config);
this.box = box;
var VideoKernel = this.chooseVideoKernel(this.box, config.preset);

Expand All @@ -162,24 +177,6 @@ var ChimeeKernel = function () {
this.videoKernel = new VideoKernel(this.videoElement, config, customConfig);
}

// return the config box
// or choose the right one according to the src

}, {
key: 'chooseBox',
value: function chooseBox(_ref) {
var src = _ref.src,
box = _ref.box;

if (isString(box) && box) return box;
src = src.toLowerCase();
for (var key in boxSuffixMap) {
var suffix = boxSuffixMap[key];
if (src.indexOf(suffix) > -1) return key;
}
return 'native';
}

// choose the right video kernel according to the box setting

}, {
Expand Down Expand Up @@ -1292,7 +1289,7 @@ var Plugin = (_dec$2 = autobindClass(), _dec$2(_class$2 = function (_VideoWrappe
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.10.2';
_this.VERSION = '0.10.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -3488,14 +3485,16 @@ var Dispatcher = (_dec$6 = before(convertNameIntoId), _dec2$5 = before(checkPlug
_option2$isLive = _option2.isLive,
isLive = _option2$isLive === undefined ? videoConfig.isLive : _option2$isLive,
_option2$box = _option2.box,
box = _option2$box === undefined ? videoConfig.box : _option2$box,
box = _option2$box === undefined ? getLegalBox({ src: src, box: videoConfig.box }) : _option2$box,
_option2$preset = _option2.preset,
preset = _option2$preset === undefined ? videoConfig.preset : _option2$preset,
_option2$kernels = _option2.kernels,
kernels = _option2$kernels === undefined ? videoConfig.kernels : _option2$kernels,
isFirst = _option2.isFirst;

delete option.isFirst;
if (box !== 'native' || box !== oldBox || !isEmpty(option)) {
option.isFirst = isFirst;
var video = document.createElement('video');
var config = { isLive: isLive, box: box, preset: preset, src: src, kernels: kernels };
var kernel = this._createKernel(video, config);
Expand Down Expand Up @@ -4099,7 +4098,7 @@ var Chimee = (_dec$7 = autobindClass(), _dec$7(_class$8 = (_class2$1 = (_temp =
}), _descriptor2$1 = _applyDecoratedDescriptor$7(_class2$1.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.10.2';
return '0.10.3';
}
}), _descriptor3$1 = _applyDecoratedDescriptor$7(_class2$1.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chimee",
"version": "0.10.2",
"version": "0.10.3",
"description": "a video-player aims to bring wonderful experience on browser",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down

0 comments on commit ec97387

Please sign in to comment.