mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 21:31:20 -08:00
update
This commit is contained in:
1 parent
00150073b9
commit
6c8b8e188a
5 files changed
+17
-57
No files matched your search
@@ -256,7 +256,7 @@ var art = new Artplayer({
|
||||
- 类型: `Boolean`
|
||||
- 默认: `false`
|
||||
|
||||
是否显示视频旋转功能,目前只出现在 `设置面板` 里,所以需要同时设置 `setting` 为 `true`
|
||||
是否显示视频旋转功能,需要同时设置 `setting` 和 `autoSize` 为 `true`
|
||||
|
||||
<div className="run-code">▶ Run Code</div>
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@ export default function rotateMix(art, player) {
|
||||
setStyle($video, 'transform', null);
|
||||
} else {
|
||||
player.flip = false;
|
||||
art.autoSize = true;
|
||||
$player.dataset.rotate = deg;
|
||||
|
||||
const getScaleValue = () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { def } from '../utils';
|
||||
|
||||
export default function switchMix(art, player) {
|
||||
const { i18n, notice } = art;
|
||||
const { i18n, option, notice } = art;
|
||||
|
||||
function switchUrl(url, name, currentTime) {
|
||||
if (url === player.url) return;
|
||||
@@ -12,7 +12,7 @@ export default function switchMix(art, player) {
|
||||
player.playbackRate = false;
|
||||
player.aspectRatio = false;
|
||||
player.flip = 'normal';
|
||||
player.autoSize = true;
|
||||
player.autoSize = option.autoSize;
|
||||
player.currentTime = currentTime;
|
||||
if (playing) {
|
||||
player.play();
|
||||
|
||||
Reference in new issue
Block a user