mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01: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
@@ -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 = '';
|
||||
|
||||
Reference in new issue
Block a user