Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/danmu.js
/ functions
Functions
129 in github.com/bytedance/danmu.js
⨍
Functions
129
◇
Types & classes
18
Method
play
()
src/danmu.js:141
Method
removeComment
(id)
src/danmu.js:361
Method
restartComment
(id)
src/danmu.js:289
Method
sendComment
* @param {CommentData} comment
src/danmu.js:171
Method
setAllDuration
* 设置所有弹幕播放时长 * @param {number} duration
src/danmu.js:404
Method
setArea
(area)
src/danmu.js:492
Method
setCommentDuration
(id, duration)
src/danmu.js:237
Method
setCommentID
(oldID, newID)
src/danmu.js:213
Method
setCommentLike
(id, like)
src/danmu.js:263
Method
setDirection
* @param {'r2l'|'b2t'} direction
src/danmu.js:521
Method
setFontSize
( size, channelSize, options = { reflow: true } )
src/danmu.js:455
Method
setFontSize
(size)
src/bullet.js:459
Method
setItem
(channels, i)
src/channel.js:612
Method
setOpacity
(opacity)
src/danmu.js:447
Method
setPlayRate
* 设置弹幕播放速率,在弹幕播放速度上乘以一个系数,控制速度的变化 * @param {number} val
src/danmu.js:432
Function
setup
(api)
rslib.config.js:59
Method
show
(mode = 'scroll')
src/danmu.js:510
Method
start
()
src/danmu.js:131
Method
state
()
src/danmu.js:101
Method
status
()
src/main.js:63
Method
status
()
src/danmu.js:97
Method
stop
()
src/main.js:226
Function
toggleClass
(el, className)
src/utils/util.js:55
Method
updateBottomQueue
(i)
src/channel.js:640
Method
updateChannelsGreater
(channels, fontSize)
src/channel.js:679
Method
updateChannelsLower
(channels, fontSize)
src/channel.js:629
Method
updateComments
* @param {Array<CommentData>} comments * @param {boolean} isClear
src/danmu.js:389
Method
updateQueue
({ bullet })
src/main.js:91
Method
updateTopScrollQueue
(i)
src/channel.js:630
← previous
101–129 of 129, ranked by callers