从 vimeo 存储时间戳

Store timestamp from vimeo

我目前在我的网站上有一个带有 vimeo 播放器的 iframe。 我需要的是:在用户暂停视频或关闭的那一刻,存储时间戳,以便在另一个用户 returns 观看视频时,它 returns 在存储的时间戳处。像 Netflix 视频播放器。 可能吗?

可以使用 Vimeo's Player Api. Making use of the timeupdate listener, the current playback position can be saved. As for how the timestamp is saved, there are many different options (you could store the data client side, server side, in a db, etc...). Then when a user returns to the page you could check if a timestamp exists and set the video's playback position accordingly with setCurrentTime()

访问时间戳