expose danmuku option

This commit is contained in:
Harvey Zack committed 2022-09-16 13:05:30 +08:00
1 parent c043498280
commit 2ca2eb88a0
2 files changed
+4

No files matched your search

+1
View File
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
## [Unreleased]
- 广告插件添加 `option.muted` 选项,用于静音自动播放广告
- 弹幕库暴露 `reset` 方法,用于清空当前弹幕显示
- 弹幕库暴露 `option` 属性,用于获取当前弹幕配置
- 修复在 `IOS` 全屏模式下,字幕失效的问题
- 添加西班牙语支持
@@ -25,6 +25,9 @@ export default function artplayerPluginDanmuku(option) {
hide: danmuku.hide.bind(danmuku),
show: danmuku.show.bind(danmuku),
reset: danmuku.reset.bind(danmuku),
get option() {
return danmuku.option;
},
get isHide() {
return danmuku.isHide;
},