bricks/dist/docs/cn.old/widgets/audioplayer.md
yumoqing 2e22085122 feat: 401后登录成功自动重试原始请求
- withLoginInfo 改为接收完整 opts(含 method/headers/params)
- 等待 login_window 的 destroy 事件(=登录成功信号)
- 登录成功后重试原始请求
- 重试仍401则返回null(避免死循环)
- 用户手动关闭登录窗口时也触发重试,401则返回null
2026-05-27 15:39:34 +08:00

34 lines
619 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AudioPlayer
音频播放器
## 父类
[JsWidget](jswidget.md)
## 构建参数
options = {
* url:音频源的url
* autoplay自动播放如果是true音频在导入后自动播放
}
## 方法
### set_urlurl
此方法设置新的音频源如果autoplay为真新设置的资源会立即播放
### toggle_play
如果当前资源正在播放,则停止播放,否则开始播放
### play
播放资源
## 事件
## 使用例子
```
{
"id":"audioplayer",
"widgettype":"AudioPlayer",
"options":{
"autoplay":true,
"url":"http://kimird.com/songs/sample-mp3-file.mp3"
}
}
```