Comparing version 1.4.1-beta.3 to 1.4.1
@@ -80,2 +80,18 @@ "use strict"; | ||
} | ||
}, | ||
showMuteBtn: { | ||
type: Boolean, | ||
value: true | ||
}, | ||
showPlayBtn: { | ||
type: Boolean, | ||
value: true | ||
}, | ||
showFullscreenBtn: { | ||
type: Boolean, | ||
value: true | ||
}, | ||
showCenterPlayBtn: { | ||
type: Boolean, | ||
value: true | ||
} | ||
@@ -82,0 +98,0 @@ }, |
@@ -37,2 +37,12 @@ "use strict"; | ||
common.autoPlay = playControl === 'play' || autoPlay; | ||
if (_universalEnv.isWeb && common.autoPlay === false) { | ||
delete common.autoPlay; // In W3C standard, if the attribute is set, it will be treated as true regardless of its value | ||
} | ||
if (_universalEnv.isWeChatMiniProgram || _universalEnv.isMiniApp) { | ||
common.autoplay = common.autoPlay; | ||
delete common.autoPlay; | ||
} | ||
(0, _rax.useEffect)(function () { | ||
@@ -39,0 +49,0 @@ if (!_universalEnv.isWeex) { |
@@ -55,2 +55,18 @@ "use strict"; | ||
value: '' | ||
}, | ||
showMuteBtn: { | ||
type: Boolean, | ||
value: true | ||
}, | ||
showPlayBtn: { | ||
type: Boolean, | ||
value: true | ||
}, | ||
showFullscreenBtn: { | ||
type: Boolean, | ||
value: true | ||
}, | ||
showCenterPlayBtn: { | ||
type: Boolean, | ||
value: true | ||
} | ||
@@ -57,0 +73,0 @@ }, |
{ | ||
"name": "rax-video", | ||
"version": "1.4.1-beta.3", | ||
"version": "1.4.1", | ||
"description": "Video component for Rax.", | ||
@@ -9,6 +9,5 @@ "license": "BSD-3-Clause", | ||
"clean": "rm -rf ./lib && rm -rf ./package-lock.json && rm -f ./yarn.lock && rm -rf demo/miniapp/lib", | ||
"build": "npm run clean && rax-scripts build", | ||
"start": "rax-scripts start", | ||
"prepublishOnly": "npm run build", | ||
"test": "npm run build && rax-scripts test" | ||
"build": "npm run clean && ../../node_modules/.bin/build-scripts build --config ../../build.json", | ||
"start": "../../node_modules/.bin/build-scripts start --config ../../build.json", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
@@ -44,3 +43,3 @@ "files": [ | ||
"devDependencies": { | ||
"@rax-types/rax": "^1.0.5", | ||
"@types/rax": "^1.0.0", | ||
"@types/ali-app": "^1.0.0", | ||
@@ -54,6 +53,4 @@ "@types/classnames": "^2.2.9", | ||
"rax": "^1.0.0", | ||
"rax-plugin-component": "^0.1.9", | ||
"rax-scripts": "^2.0.0", | ||
"rax-test-renderer": "^1.0.0", | ||
"rax-text": "^1.1.0-0", | ||
"rax-text": "^1.3.1", | ||
"rax-view": "^1.1.0-0", | ||
@@ -60,0 +57,0 @@ "typescript": "^3.6.2" |
@@ -29,2 +29,7 @@ [![npm](https://img.shields.io/npm/v/rax-video.svg)](https://www.npmjs.com/package/rax-video) | ||
| onEnded | `function` | - | ✘ | 当视频播放完成时调用的 callback 函数 | <img alt="browser" src="https://gw.alicdn.com/tfs/TB1uYFobGSs3KVjSZPiXXcsiVXa-200-200.svg" width="25px" height="25px" /> <img alt="Weex" src="https://gw.alicdn.com/tfs/TB1jM0ebMaH3KVjSZFjXXcFWpXa-200-200.svg" width="25px" height="25px" /> <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /> <img alt="wechatMiniprogram" src="https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg" width="25px" height="25px"> <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg" width="25px" height="25px" /><img alt="quickApp" src="https://gw.alicdn.com/tfs/TB1MP7EwQT2gK0jSZPcXXcKkpXa-200-200.svg" width="25px" height="25px">| | ||
| showMuteBtn | `boolean` | true | ✘ | 是否展示工具栏上的静音按钮 | <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /><img alt="wechatMiniprogram" src="https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg" width="25px" height="25px"><img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg" width="25px" height="25px" /> | | ||
| showPlayBtn | `boolean` | true | ✘ | 是否显示视频底部控制栏的播放按钮 | <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /><img alt="wechatMiniprogram" src="https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg" width="25px" height="25px"><img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg" width="25px" height="25px" /> | | ||
| showFullscreenBtn | `boolean` | true | ✘ | 是否显示全屏按钮 | <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /><img alt="wechatMiniprogram" src="https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg" width="25px" height="25px"><img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg" width="25px" height="25px" /> | | ||
| showCenterPlayBtn | `boolean` | true | ✘ | 是否显示视频中间的播放按钮 | <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /><img alt="wechatMiniprogram" src="https://img.alicdn.com/tfs/TB1slcYdxv1gK0jSZFFXXb0sXXa-200-200.svg" width="25px" height="25px"><img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1jFtVzO_1gK0jSZFqXXcpaXXa-200-200.svg" width="25px" height="25px" /> | | ||
| showThinProgressBar | `boolean` | false | ✘ | 当底部工具条隐藏时,是否显示细进度条(controls=false 时设置无效) | <img alt="miniApp" src="https://gw.alicdn.com/tfs/TB1bBpmbRCw3KVjSZFuXXcAOpXa-200-200.svg" width="25px" height="25px" /> | | ||
@@ -31,0 +36,0 @@ ## 示例 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
26519
13
382
0
54