mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 00:31:20 -08:00
remove autoHeight option
This commit is contained in:
1 parent
a74c6194be
commit
8404a8c5cd
19 files changed
+61
-78
No files matched your search
@@ -5,7 +5,6 @@ export default function resizeInit(art, events) {
|
||||
|
||||
const resizeFn = throttle(() => {
|
||||
if (player.normalSize) {
|
||||
player.autoHeight = option.autoHeight;
|
||||
player.autoSize = option.autoSize;
|
||||
}
|
||||
player.aspectRatioReset = true;
|
||||
|
||||
@@ -126,7 +126,6 @@ export default class Artplayer extends Emitter {
|
||||
autoplay: false,
|
||||
autoSize: false,
|
||||
autoMini: false,
|
||||
autoHeight: false,
|
||||
loop: false,
|
||||
flip: false,
|
||||
rotate: false,
|
||||
|
||||
@@ -92,7 +92,6 @@ export default function eventInit(art, player) {
|
||||
// });
|
||||
|
||||
art.once('video:loadedmetadata', () => {
|
||||
player.autoHeight = option.autoHeight;
|
||||
player.autoSize = option.autoSize;
|
||||
if (isMobile) {
|
||||
art.loading.show = false;
|
||||
|
||||
@@ -15,7 +15,6 @@ const nativeScreenfull = (art, player) => {
|
||||
screenfull.request($player).then(() => {
|
||||
addClass($player, 'art-fullscreen');
|
||||
player.aspectRatioReset = true;
|
||||
player.autoHeight = false;
|
||||
player.autoSize = false;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreen', true);
|
||||
@@ -24,7 +23,6 @@ const nativeScreenfull = (art, player) => {
|
||||
screenfull.exit().then(() => {
|
||||
removeClass($player, 'art-fullscreen');
|
||||
player.aspectRatioReset = true;
|
||||
player.autoHeight = art.option.autoHeight;
|
||||
player.autoSize = art.option.autoSize;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreen');
|
||||
|
||||
@@ -11,14 +11,12 @@ export default function fullscreenWebMix(art, player) {
|
||||
if (value) {
|
||||
addClass($player, 'art-fullscreen-web');
|
||||
player.aspectRatioReset = true;
|
||||
player.autoHeight = false;
|
||||
player.autoSize = false;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreenWeb', true);
|
||||
} else {
|
||||
removeClass($player, 'art-fullscreen-web');
|
||||
player.aspectRatioReset = true;
|
||||
player.autoHeight = art.option.autoHeight;
|
||||
player.autoSize = art.option.autoSize;
|
||||
art.emit('resize');
|
||||
art.emit('fullscreenWeb');
|
||||
|
||||
@@ -55,7 +55,6 @@ export default function miniMix(art, player) {
|
||||
},
|
||||
set(value) {
|
||||
if (value) {
|
||||
player.autoHeight = false;
|
||||
player.autoSize = false;
|
||||
cacheStyle = $player.style.cssText;
|
||||
addClass($player, 'art-mini');
|
||||
@@ -88,7 +87,6 @@ export default function miniMix(art, player) {
|
||||
setStyle($player, 'left', null);
|
||||
player.aspectRatio = false;
|
||||
player.playbackRate = false;
|
||||
player.autoHeight = option.autoHeight;
|
||||
player.autoSize = option.autoSize;
|
||||
art.emit('mini');
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ export default function switchMix(art, player) {
|
||||
player.playbackRate = false;
|
||||
player.aspectRatio = false;
|
||||
player.flip = 'normal';
|
||||
player.autoHeight = option.autoHeight;
|
||||
player.autoSize = option.autoSize;
|
||||
player.currentTime = currentTime;
|
||||
art.notice.show = '';
|
||||
|
||||
@@ -39,7 +39,6 @@ export default {
|
||||
autoplay: b,
|
||||
autoSize: b,
|
||||
autoMini: b,
|
||||
autoHeight: b,
|
||||
loop: b,
|
||||
flip: b,
|
||||
rotate: b,
|
||||
|
||||
Reference in new issue
Block a user