mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-22 21:31:20 -08:00
expose danmuku option
This commit is contained in:
1 parent
c043498280
commit
2ca2eb88a0
2 files changed
+4
No files matched your search
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
- 广告插件添加 `option.muted` 选项,用于静音自动播放广告
|
- 广告插件添加 `option.muted` 选项,用于静音自动播放广告
|
||||||
- 弹幕库暴露 `reset` 方法,用于清空当前弹幕显示
|
- 弹幕库暴露 `reset` 方法,用于清空当前弹幕显示
|
||||||
|
- 弹幕库暴露 `option` 属性,用于获取当前弹幕配置
|
||||||
- 修复在 `IOS` 全屏模式下,字幕失效的问题
|
- 修复在 `IOS` 全屏模式下,字幕失效的问题
|
||||||
- 添加西班牙语支持
|
- 添加西班牙语支持
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ export default function artplayerPluginDanmuku(option) {
|
|||||||
hide: danmuku.hide.bind(danmuku),
|
hide: danmuku.hide.bind(danmuku),
|
||||||
show: danmuku.show.bind(danmuku),
|
show: danmuku.show.bind(danmuku),
|
||||||
reset: danmuku.reset.bind(danmuku),
|
reset: danmuku.reset.bind(danmuku),
|
||||||
|
get option() {
|
||||||
|
return danmuku.option;
|
||||||
|
},
|
||||||
get isHide() {
|
get isHide() {
|
||||||
return danmuku.isHide;
|
return danmuku.isHide;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user