Skip to content

Commit

Permalink
[build] 0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
toxic-johann committed Jan 9, 2018
1 parent ce3fcbd commit c0595a2
Show file tree
Hide file tree
Showing 9 changed files with 78 additions and 48 deletions.
2 changes: 1 addition & 1 deletion bundle-size/common.html

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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.

34 changes: 22 additions & 12 deletions lib/index.browser.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* chimee v0.8.2
* (c) 2017 toxic-johann
* chimee v0.8.3
* (c) 2017-2018 toxic-johann
* Released under MIT
*/

Expand Down Expand Up @@ -7653,9 +7653,7 @@ var accessorMap = {
var val = value ? '' : undefined;
this.dom.setAttr('video', 'playsinline', val);
this.dom.setAttr('video', 'webkit-playsinline', val);
// fix android wechat bug
this.dom.setAttr('video', 'x5-playsinline', val);
this.dom.setAttr('video', 'x5-video-player-type', value ? 'h5' : undefined);
return value;
}
}), boolean$1()],
Expand All @@ -7668,6 +7666,17 @@ var accessorMap = {
}
}), accessorCustomAttribute('x5-video-player-fullscreen', true)],
x5VideoOrientation: [accessor({ set: stringOrVoid }), accessorCustomAttribute('x5-video-orientation')],
x5VideoPlayerType: [accessor({
set: function set(value) {
if (!this.dispatcher.videoConfigReady) return value;
var val = value === 'h5' ? 'h5' : undefined;
this.dom.setAttr('video', 'x5-video-player-type', val);
return value;
},
get: function get() {
return this.dom.getAttr('video', 'x5-video-player-type') ? 'h5' : undefined;
}
})],
xWebkitAirplay: [accessor({
set: function set(value) {
return !!value;
Expand All @@ -7686,10 +7695,7 @@ var VideoConfig = (_dec$5 = boolean(), _dec2$3 = string(function (str) {
return str.toLocaleLowerCase();
}), _class$5 = function () {

// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错
// 转为供 kernel 使用的内部参数
function VideoConfig(dispatcher, config) {
_classCallCheck(this, VideoConfig);

Expand Down Expand Up @@ -7721,6 +7727,7 @@ var VideoConfig = (_dec$5 = boolean(), _dec2$3 = string(function (str) {
this.playsInline = false;
this.x5VideoPlayerFullscreen = false;
this.x5VideoOrientation = undefined;
this.x5VideoPlayerType = undefined;
this.xWebkitAirplay = false;
this.playbackRate = 1;
this.defaultPlaybackRate = 1;
Expand All @@ -7747,7 +7754,10 @@ var VideoConfig = (_dec$5 = boolean(), _dec2$3 = string(function (str) {
deepAssign(this, config);
}

// 转为供 kernel 使用的内部参数
// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错


_createClass(VideoConfig, [{
Expand Down Expand Up @@ -7797,7 +7807,7 @@ var VideoConfig = (_dec$5 = boolean(), _dec2$3 = string(function (str) {
}), _descriptor7 = _applyDecoratedDescriptor$4(_class$5.prototype, '_realDomAttr', [frozen], {
enumerable: true,
initializer: function initializer() {
return ['src', 'controls', 'width', 'height', 'crossOrigin', 'loop', 'muted', 'preload', 'poster', 'autoplay', 'playsInline', 'x5VideoPlayerFullscreen', 'x5VideoOrientation', 'xWebkitAirplay', 'playbackRate', 'defaultPlaybackRate', 'autoload', 'disableRemotePlayback', 'defaultMuted', 'volume'];
return ['src', 'controls', 'width', 'height', 'crossOrigin', 'loop', 'muted', 'preload', 'poster', 'autoplay', 'playsInline', 'x5VideoPlayerFullscreen', 'x5VideoOrientation', 'xWebkitAirplay', 'playbackRate', 'defaultPlaybackRate', 'autoload', 'disableRemotePlayback', 'defaultMuted', 'volume', 'x5VideoPlayerType'];
}
}), _class$5);

Expand Down Expand Up @@ -8366,7 +8376,7 @@ var Plugin = (_dec$3 = autobindClass(), _dec$3(_class$3 = function (_VideoWrappe
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.8.2';
_this.VERSION = '0.8.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -10451,7 +10461,7 @@ var Chimee = (_dec = autobindClass(), _dec(_class = (_class2 = (_temp = _class3
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.8.2';
return '0.8.3';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
34 changes: 22 additions & 12 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* chimee v0.8.2
* (c) 2017 toxic-johann
* chimee v0.8.3
* (c) 2017-2018 toxic-johann
* Released under MIT
*/

Expand Down Expand Up @@ -1007,9 +1007,7 @@ var accessorMap = {
var val = value ? '' : undefined;
this.dom.setAttr('video', 'playsinline', val);
this.dom.setAttr('video', 'webkit-playsinline', val);
// fix android wechat bug
this.dom.setAttr('video', 'x5-playsinline', val);
this.dom.setAttr('video', 'x5-video-player-type', value ? 'h5' : undefined);
return value;
}
}), toxicDecorators.alwaysBoolean()],
Expand All @@ -1022,6 +1020,17 @@ var accessorMap = {
}
}), accessorCustomAttribute('x5-video-player-fullscreen', true)],
x5VideoOrientation: [toxicDecorators.accessor({ set: stringOrVoid }), accessorCustomAttribute('x5-video-orientation')],
x5VideoPlayerType: [toxicDecorators.accessor({
set: function set(value) {
if (!this.dispatcher.videoConfigReady) return value;
var val = value === 'h5' ? 'h5' : undefined;
this.dom.setAttr('video', 'x5-video-player-type', val);
return value;
},
get: function get() {
return this.dom.getAttr('video', 'x5-video-player-type') ? 'h5' : undefined;
}
})],
xWebkitAirplay: [toxicDecorators.accessor({
set: function set(value) {
return !!value;
Expand All @@ -1040,10 +1049,7 @@ var VideoConfig = (_dec$5 = toxicDecorators.initBoolean(), _dec2$3 = toxicDecora
return str.toLocaleLowerCase();
}), _class$5 = function () {

// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错
// 转为供 kernel 使用的内部参数
function VideoConfig(dispatcher, config) {
_classCallCheck(this, VideoConfig);

Expand Down Expand Up @@ -1075,6 +1081,7 @@ var VideoConfig = (_dec$5 = toxicDecorators.initBoolean(), _dec2$3 = toxicDecora
this.playsInline = false;
this.x5VideoPlayerFullscreen = false;
this.x5VideoOrientation = undefined;
this.x5VideoPlayerType = undefined;
this.xWebkitAirplay = false;
this.playbackRate = 1;
this.defaultPlaybackRate = 1;
Expand All @@ -1101,7 +1108,10 @@ var VideoConfig = (_dec$5 = toxicDecorators.initBoolean(), _dec2$3 = toxicDecora
chimeeHelper.deepAssign(this, config);
}

// 转为供 kernel 使用的内部参数
// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错


_createClass(VideoConfig, [{
Expand Down Expand Up @@ -1151,7 +1161,7 @@ var VideoConfig = (_dec$5 = toxicDecorators.initBoolean(), _dec2$3 = toxicDecora
}), _descriptor7 = _applyDecoratedDescriptor$4(_class$5.prototype, '_realDomAttr', [toxicDecorators.frozen], {
enumerable: true,
initializer: function initializer() {
return ['src', 'controls', 'width', 'height', 'crossOrigin', 'loop', 'muted', 'preload', 'poster', 'autoplay', 'playsInline', 'x5VideoPlayerFullscreen', 'x5VideoOrientation', 'xWebkitAirplay', 'playbackRate', 'defaultPlaybackRate', 'autoload', 'disableRemotePlayback', 'defaultMuted', 'volume'];
return ['src', 'controls', 'width', 'height', 'crossOrigin', 'loop', 'muted', 'preload', 'poster', 'autoplay', 'playsInline', 'x5VideoPlayerFullscreen', 'x5VideoOrientation', 'xWebkitAirplay', 'playbackRate', 'defaultPlaybackRate', 'autoload', 'disableRemotePlayback', 'defaultMuted', 'volume', 'x5VideoPlayerType'];
}
}), _class$5);

Expand Down Expand Up @@ -1720,7 +1730,7 @@ var Plugin = (_dec$3 = toxicDecorators.autobindClass(), _dec$3(_class$3 = functi
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.8.2';
_this.VERSION = '0.8.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -3521,7 +3531,7 @@ var Chimee = (_dec = toxicDecorators.autobindClass(), _dec(_class = (_class2 = (
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [toxicDecorators.frozen], {
enumerable: true,
initializer: function initializer() {
return '0.8.2';
return '0.8.3';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.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.

34 changes: 22 additions & 12 deletions lib/index.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

/**
* chimee v0.8.2
* (c) 2017 toxic-johann
* chimee v0.8.3
* (c) 2017-2018 toxic-johann
* Released under MIT
*/

Expand Down Expand Up @@ -1003,9 +1003,7 @@ var accessorMap = {
var val = value ? '' : undefined;
this.dom.setAttr('video', 'playsinline', val);
this.dom.setAttr('video', 'webkit-playsinline', val);
// fix android wechat bug
this.dom.setAttr('video', 'x5-playsinline', val);
this.dom.setAttr('video', 'x5-video-player-type', value ? 'h5' : undefined);
return value;
}
}), alwaysBoolean()],
Expand All @@ -1018,6 +1016,17 @@ var accessorMap = {
}
}), accessorCustomAttribute('x5-video-player-fullscreen', true)],
x5VideoOrientation: [accessor({ set: stringOrVoid }), accessorCustomAttribute('x5-video-orientation')],
x5VideoPlayerType: [accessor({
set: function set(value) {
if (!this.dispatcher.videoConfigReady) return value;
var val = value === 'h5' ? 'h5' : undefined;
this.dom.setAttr('video', 'x5-video-player-type', val);
return value;
},
get: function get() {
return this.dom.getAttr('video', 'x5-video-player-type') ? 'h5' : undefined;
}
})],
xWebkitAirplay: [accessor({
set: function set(value) {
return !!value;
Expand All @@ -1036,10 +1045,7 @@ var VideoConfig = (_dec$5 = initBoolean(), _dec2$3 = initString(function (str) {
return str.toLocaleLowerCase();
}), _class$5 = function () {

// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错
// 转为供 kernel 使用的内部参数
function VideoConfig(dispatcher, config) {
_classCallCheck(this, VideoConfig);

Expand Down Expand Up @@ -1071,6 +1077,7 @@ var VideoConfig = (_dec$5 = initBoolean(), _dec2$3 = initString(function (str) {
this.playsInline = false;
this.x5VideoPlayerFullscreen = false;
this.x5VideoOrientation = undefined;
this.x5VideoPlayerType = undefined;
this.xWebkitAirplay = false;
this.playbackRate = 1;
this.defaultPlaybackRate = 1;
Expand All @@ -1097,7 +1104,10 @@ var VideoConfig = (_dec$5 = initBoolean(), _dec2$3 = initString(function (str) {
deepAssign(this, config);
}

// 转为供 kernel 使用的内部参数
// 此处 box 只能置空,因为 kernel 会自动根据你的安装 kernel 和相关地址作智能判断。
// 曾经 bug 详见 https://github.com/Chimeejs/chimee-kernel/issues/1

// kernels 不在 videoConfig 上设置默认值,防止判断出错


_createClass(VideoConfig, [{
Expand Down Expand Up @@ -1147,7 +1157,7 @@ var VideoConfig = (_dec$5 = initBoolean(), _dec2$3 = initString(function (str) {
}), _descriptor7 = _applyDecoratedDescriptor$4(_class$5.prototype, '_realDomAttr', [frozen], {
enumerable: true,
initializer: function initializer() {
return ['src', 'controls', 'width', 'height', 'crossOrigin', 'loop', 'muted', 'preload', 'poster', 'autoplay', 'playsInline', 'x5VideoPlayerFullscreen', 'x5VideoOrientation', 'xWebkitAirplay', 'playbackRate', 'defaultPlaybackRate', 'autoload', 'disableRemotePlayback', 'defaultMuted', 'volume'];
return ['src', 'controls', 'width', 'height', 'crossOrigin', 'loop', 'muted', 'preload', 'poster', 'autoplay', 'playsInline', 'x5VideoPlayerFullscreen', 'x5VideoOrientation', 'xWebkitAirplay', 'playbackRate', 'defaultPlaybackRate', 'autoload', 'disableRemotePlayback', 'defaultMuted', 'volume', 'x5VideoPlayerType'];
}
}), _class$5);

Expand Down Expand Up @@ -1716,7 +1726,7 @@ var Plugin = (_dec$3 = autobindClass(), _dec$3(_class$3 = function (_VideoWrappe
var _this = _possibleConstructorReturn(this, (Plugin.__proto__ || _Object$getPrototypeOf(Plugin)).call(this));

_this.destroyed = false;
_this.VERSION = '0.8.2';
_this.VERSION = '0.8.3';
_this.__operable = true;
_this.__level = 0;

Expand Down Expand Up @@ -3517,7 +3527,7 @@ var Chimee = (_dec = autobindClass(), _dec(_class = (_class2 = (_temp = _class3
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'version', [frozen], {
enumerable: true,
initializer: function initializer() {
return '0.8.2';
return '0.8.3';
}
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'config', [frozen], {
enumerable: true,
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chimee",
"version": "0.8.2",
"version": "0.8.3",
"description": "a video-player aims to bring wonderful experience on browser",
"main": "lib/index.js",
"module": "lib/index.mjs",
Expand Down Expand Up @@ -50,7 +50,7 @@
"toxic-decorators": "^0.3.8"
},
"devDependencies": {
"babel-eslint": "^8.0.2",
"babel-eslint": "^8.2.1",
"babel-jest": "^22.0.4",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
Expand All @@ -66,13 +66,13 @@
"chimee-plugin-center-state": "0.0.8",
"chimee-plugin-controlbar": "^0.4.0",
"chimee-plugin-danmu": "0.0.9",
"eslint": "^4.13.0",
"eslint": "^4.15.0",
"eslint-config-egg": "^6.0.0",
"eslint-plugin-flowtype": "^2.39.1",
"eslint-plugin-jest": "^21.5.0",
"flow-bin": "^0.62.0",
"eslint-plugin-flowtype": "^2.41.0",
"eslint-plugin-jest": "^21.6.1",
"flow-bin": "^0.63.1",
"husky": "^0.14.3",
"jest": "^22.0.4",
"jest": "^22.0.5",
"npm-check-updates": "^2.13.0",
"pkg-ok": "^1.1.0",
"rollup": "^0.53.2",
Expand Down

0 comments on commit c0595a2

Please sign in to comment.