add autoHeight option

This commit is contained in:
Harvey committed 2021-12-31 13:30:59 +08:00
1 parent f890f83a61
commit 6cb75858bb
16 files changed
+85 -3

No files matched your search

-1
View File
@@ -10,7 +10,6 @@ html, body {
.artplayer-app {
width: 100%;
height: 50%;
}
.tip {
+1
View File
@@ -6,6 +6,7 @@ var art = new Artplayer({
title: 'One More Time One More Chance',
poster: '/assets/sample/poster.jpg',
autoSize: true,
autoHeight: true,
loop: true,
mutex: true,
theme: '#ffad00',
+5
View File
@@ -212,6 +212,11 @@ type Option = {
*/
autoMini?: boolean;
/**
* Set the container height based on the video length aspect ratio and the container width
*/
autoHeight?: boolean;
/**
* Whether video auto loop
*/