Comments (1)
@gkj17 目前弹幕SDK共有两个接口可以为其提供,sendDanmu & updateComments。我想你是想问有没有可以批量更新数据的接口
单条:sendDanmu,适合用户主动发布弹幕场景
批量:updateComments,适合通过数据源,批量设置给弹幕SDK
// 批量更新弹幕数据,适合在从接口中获取到批量数据时调用
danmu.updateComments([
{
duration: 15000,
id: 'id',
start: 3000, //不提供该项则立即发送
txt: '弹幕内容',
},
...
])
from xgplayer.
Related Issues (20)
- flv loadTimeout配置在chorme中无法生效,firefox中正常
- QQ 浏览器会将播放器给重置成qq浏览器内置的样子,包括操作限制 HOT 2
- 如何在播放m3u8的时候关闭视频轨道仅仅播放音频 HOT 6
- xgplayer-flv插件总时长显示为00:00
- 播放flv直播流时setEventsMiddleware添加play事件中间件的问题 HOT 1
- 支持yuvj420p格式的flv视频流吗?
- 支持yuvj420p格式的flv视频流吗? HOT 1
- 关于hls插件的onPreM3U8Parse参数 HOT 1
- 国际化能支持泰文吗 HOT 1
- 自定义样式是不是有版本要求,3.0.18以上的版本执行npx xgplayer eject ./ custom 报错 HOT 1
- 使用FlvPlugin播放直播流时使用ignores属性禁用loading内置插件的问题 HOT 2
- srt 格式字幕无法正常显示 HOT 1
- 官方的xgplayer-hls插件解析m3u8 不支持默认起播时间startTime并且自动播放 HOT 3
- micro-app微前端环境下部分图标按钮append失败
- 视频视口显示异常,video无法随id="mse"的宽高自动变化 HOT 6
- 西瓜播放器可以任意时间段进行预加载吗?例如当前播放第3秒,然后加载第30-35秒的视频数据,达到跳转的时候不卡顿的效果 HOT 1
- 去除默认的全局样式,使用更为精细化的方式实现 HOT 2
- 苹果手机播放MP4视频提示不支持的视频格式,刷新后正常播放 HOT 1
- 如何更改倍速文字颜色(默认色和选中色)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xgplayer.