Git Product home page Git Product logo

你好,由于sinavideo_playersdk使用的SurfaceView作为显示图像的控件,所以在将sdk放在一个listView的item上时,很容易发生闪屏,请问有什么比较好的解决办法么? about sinavideo_playersdk HOT 5 OPEN

sinavddeveloper avatar sinavddeveloper commented on August 18, 2024
你好,由于sinavideo_playersdk使用的SurfaceView作为显示图像的控件,所以在将sdk放在一个listView的item上时,很容易发生闪屏,请问有什么比较好的解决办法么?

from sinavideo_playersdk.

Comments (5)

leftatrium2 avatar leftatrium2 commented on August 18, 2024

这个,我暂时想不到别的方案,因为视频播放的特殊性,是没办法使用同步的View来处理的,只能使用异步的View,所以,当初选择了surfaceview

from sinavideo_playersdk.

rooneyGG avatar rooneyGG commented on August 18, 2024

如果没有ListView这类空间,使用surfaceview还是能完全满足条件的。之前微视中播放控件是能扔ListView上面的,不知道那边是用的什么办法? 另外,能否讲解一下项目中引入DLNA这个主要是干什么?谢谢了

from sinavideo_playersdk.

leftatrium2 avatar leftatrium2 commented on August 18, 2024

其实,我很奇怪你的问题,因为基本我知道的播放器都使用surfaceview/glsurfaceview来作为显示

from sinavideo_playersdk.

rooneyGG avatar rooneyGG commented on August 18, 2024

你好,因为之前在ListView上放的Item有surfaceview播放视频,这样容易闪屏,没找到好的解决办法;另外,demo中的那个listview也有同样的问题;用TetureView 解决问题,但是在比较高的版本才能使用;望帮助,谢谢!

from sinavideo_playersdk.

a354425558 avatar a354425558 commented on August 18, 2024

我用了demo后, 出现视频掉帧,卡顿现象,我在play的时候, 直接调的本地地址file://...........................这是什么原因

from sinavideo_playersdk.

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.