mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-25 08:01:20 -08:00
add autoHeight option
This commit is contained in:
1 parent
f890f83a61
commit
6cb75858bb
16 files changed
+85
-3
No files matched your search
@@ -10,7 +10,6 @@ html, body {
|
||||
|
||||
.artplayer-app {
|
||||
width: 100%;
|
||||
height: 50%;
|
||||
}
|
||||
|
||||
.tip {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Vendored
+5
@@ -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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user