Code Monkey home page Code Monkey logo

Comments (2)

unash avatar unash commented on August 18, 2024 2

『如果播放视频到15s,快退5s,这时是10s的时候。之前10s-15s播放过的弹幕不会再播放吗,需要再等到视频15s的时候才能继续播弹幕?』
如果 10s~15s之间出来的弹幕已经从屏幕上消失的话,那么从10s开始,这部分弹幕会再重新播一遍;但是如果在这之间的弹幕已经在屏幕上了,就不会再播放。

『如果要实现10s-15s的时候播放快退前播放过的弹幕,应该怎么处理这块逻辑?』
*你在代理方法 - (NSTimeInterval)timeForBarrageRenderer:(BarrageRenderer )renderer 中返回正确的当前播放时间轴时间,就可以了。

from barragerenderer.

GeoMonstar avatar GeoMonstar commented on August 18, 2024
  • (NSTimeInterval)timeForBarrageRenderer:(BarrageRenderer *)renderer
    {
    //返回视频播放的时间轴
    return (CGFloat)CMTimeGetSeconds([_player currentTime]);
    }

from barragerenderer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.