我目前正在尝试将一些div映射到Vimeo / Youtube视频的不同时间戳,并跳转到某些时间戳。我了解到将视频直接嵌入HTML中后,我可以在JS中使用currentTime来跟踪和操纵时间戳。但是,Youtube /视频视频是否有类似内容,如果可以,该怎么办?
非常感谢。
答案 0 :(得分:0)
Vimeo的播放器库提供了两种方法,setCurrentTime和getCurrentTime,在此处介绍:https://github.com/vimeo/player.js#getcurrenttime-promisenumber-error