w3c / danmaku

Bullet Chatting Proposal
https://w3c.github.io/danmaku/
Other
264 stars 22 forks source link

Any API to seek bullet comments list? #4

Open tiansh opened 5 years ago

tiansh commented 5 years ago

It is normal that bullet comments are used on a <video> element. And user may seek the video to some timestamp. This require an API to seek the bullet comments too. Is there any API for this action?

MagicJuly commented 5 years ago

@tiansh Bullet Chatting Proposal describes how to render Bullet Chatting, excluding a data list for Bullet Chatting, You can get <bulletchat> through <bulletchatlist> element at the current time. does not all scenarios rely on <video> element or in live video scene, there is no requirement for a Bullet Chatting data list.

In a common scenario that Video on-demand with Bullet Chatting, there is often a Bullet Chatting data list order by start time similar to webvtt, which requires developer to add <bulletchat> sync on video time. this API needs developer to provide also.

tiansh commented 5 years ago

So, what is the point of delay style?

DIYgod commented 5 years ago

@tiansh If you already pre-insert some <bulletchat> with bulletchat-delay style, when you seek the video, you should update the value of bulletchat-delay in the meantime.

But if you have many <bulletchat>, adding sync on video time is a better way for a better performance.