• 请不要在回答技术问题时复制粘贴 AI 生成的内容
liuxu
V2EX  ›  程序员

有人做过录像类时间轴吗

  •  
  •   liuxu · Jul 10, 2017 · 2203 views
  •   You need to sign in to view this topic
    This topic created in 3268 days ago, the information mentioned may be changed or developed.
    直播的时候一边轮播图演示,一边网页摄像头视频讲解
    摄像头录像后台有开始和结束时间记录

    现在产品有需求,需要录像功能,让轮播图和视频录像能在一个网页同步播放

    我目前想的是做一个时间轴,用 js 每秒发送当前轮播图 id 到后台
    后台就用当前时间戳,轮播图 id 和当前演示 id,一起存到数据库
    视频录像的开始 /结束时间和当前演示 id 也存到数据库

    这样在播放的时候,就可以依据时间戳计算来同步定位轮播图和视频,保证同步播放


    不知道大家有没有其他好的方案?
    我这个数据库用 redis 可以吗?可能同时几十人或更多人使用
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5701 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 06:41 · PVG 14:41 · LAX 23:41 · JFK 02:41
    ♥ Do have faith in what you're doing.