Git Product home page Git Product logo

Comments (1)

meikaiss avatar meikaiss commented on June 28, 2024

@renhuan 用我这份代码,两个单独的视频应该是不行的。因为无法保证两个视频播放的进度同步。 A视频在某一时间点的一帧画面的透明度,由B视频在同一时间点的画面来决定, 而用两个MediaPlayer是无法保证绝对同步的。

当然,如果有其它方法保证解码两个视频的绝对同步,那理论上也是可以的。比如使用 MediaExtractor 或 FFmpeg 去解码视频流,然后把两个流的画面通过opengl去做透明度叠加,也是可行的。但这样就搞复杂了,需要开发者自己去处理视频流

from giftvideoplayer.

Related Issues (9)

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.