Giter Site home page Giter Site logo

Comments (9)

CarGuo avatar CarGuo commented on June 16, 2024

额··· 我这边测试没有复现这个问题

from gsyvideoplayer.

mlxiaoxiao avatar mlxiaoxiao commented on June 16, 2024

播放不同的视频,就是视频是个列表,点击 进入播放,返回的是,关闭播放view,掉用了 GSYVideoManager.releaseAllVideos()

好像是掉用了Exo2PlayerManager 才出现的,为了支持 m3u8 设置了

    PlayerFactory.setPlayManager(Exo2PlayerManager.class);
    CacheFactory.setCacheManager(ExoPlayerCacheManager.class);

尝试了以前只播放mp4 的版本好像没有这个问题

搜了一下相关的问题 Failed to initialize OMX.qcom.video.encoder.avc, error 0xfffffff4
https://blog.csdn.net/look_up_at/article/details/99864814
不知道是不是和这个相关,个人感觉有点像,好像哪里没释放掉。可是找不到地方。

补充下,好像解码器确实有限制
https://www.jianshu.com/p/ec7ff19ddbff
我的测试机上 avc 大概也是 16个

from gsyvideoplayer.

CarGuo avatar CarGuo commented on June 16, 2024

我感觉可能是释放没成功,你断点看看
Exo2PlayerManager 下的 mediaPlayer.release();
IjkExo2MediaPlayer 下的 mInternalPlayer.release();

是不是每次调用 GSYVideoManager.releaseAllVideos 都会被执行

from gsyvideoplayer.

mlxiaoxiao avatar mlxiaoxiao commented on June 16, 2024

试了一下,是会掉用release 的

image-20240109165744386

from gsyvideoplayer.

CarGuo avatar CarGuo commented on June 16, 2024

那就很奇怪了·····release 调用了····居然没释放么·····

from gsyvideoplayer.

mlxiaoxiao avatar mlxiaoxiao commented on June 16, 2024

这个issue 先不要关闭,我研究一下,看看是什么问题提在这里。

from gsyvideoplayer.

CarGuo avatar CarGuo commented on June 16, 2024

ok,只要有活跃就不关

from gsyvideoplayer.

mlxiaoxiao avatar mlxiaoxiao commented on June 16, 2024

这边改动过代码之后,这个问题没发复现了。非常的奇怪,
之前做的两个改动,一个是没有设置 URL 就掉用了startplaylogic,另外一个重复调用了startplaylogic, 即 onPageSelected 中 掉用了 播放,同时触发了网络函数,回调之后有再次调用了播放函数(两次调用中间触发了 releaseAllVideos)。只改动了这两个地方,但是还原回去,就无法重现了。非常的奇怪。

from gsyvideoplayer.

CarGuo avatar CarGuo commented on June 16, 2024

这么诡异………

from gsyvideoplayer.

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.