mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 17:51:20 -08:00
update artplayer.d.ts
This commit is contained in:
1 parent
71fad99a6a
commit
a3b767f15d
9 files changed
+36
-32
No files matched your search
@@ -15,7 +15,7 @@ export default function artplayerPluginHlsQuality(option) {
|
||||
const defaultHtml = defaultLevel ? getResolution(defaultLevel) : auto;
|
||||
|
||||
if (option.control) {
|
||||
art.controls.add({
|
||||
art.controls.update({
|
||||
name: 'hls-quality',
|
||||
position: 'right',
|
||||
html: defaultHtml,
|
||||
@@ -36,7 +36,7 @@ export default function artplayerPluginHlsQuality(option) {
|
||||
}
|
||||
|
||||
if (option.setting) {
|
||||
art.setting.add({
|
||||
art.setting.update({
|
||||
name: 'hls-quality',
|
||||
tooltip: defaultHtml,
|
||||
html: title,
|
||||
@@ -59,6 +59,7 @@ export default function artplayerPluginHlsQuality(option) {
|
||||
}
|
||||
|
||||
art.on('ready', update);
|
||||
art.on('restart', update);
|
||||
|
||||
return {
|
||||
name: 'artplayerPluginHlsQuality',
|
||||
|
||||
Reference in new issue
Block a user