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

有人做过录像类时间轴吗

  •  
  •   liuxu · Jul 10, 2017 · 2184 views
    This topic created in 3253 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   ·   1126 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:09 · PVG 02:09 · LAX 11:09 · JFK 14:09
    ♥ Do have faith in what you're doing.