Giter VIP home page Giter VIP logo

Comments (15)

qq294685358 avatar qq294685358 commented on May 22, 2024

image
这是连播的逻辑,其中的handler是因为如果不设置一个延迟时间的话,就会导致只有声音,但是黑屏。如果设置了比如2秒过后再自动播放,就正常

from gsyvideoplayer.

CarGuo avatar CarGuo commented on May 22, 2024

一般我都是延时500毫秒,后面我看看怎么优化。

from gsyvideoplayer.

qq294685358 avatar qq294685358 commented on May 22, 2024

能说下进入activity直接全屏的方法吗,找不到。。

from gsyvideoplayer.

CarGuo avatar CarGuo commented on May 22, 2024

直接全屏?参考detailplayer吧~github主页的各个版本说明可以当做接口文档!如果你是打开activity的时候就横屏全屏的话,直接设置activity为锁定横屏和全屏的style就好啦,不要弄旋转的utils这样。

from gsyvideoplayer.

qq294685358 avatar qq294685358 commented on May 22, 2024

直接设置横屏的话效果是可以,但是就没办法在横屏下按返回键变成竖屏了,会变成直接退出activity

from gsyvideoplayer.

CarGuo avatar CarGuo commented on May 22, 2024

不是很理解。是点击按键就竖屏全屏,还是横屏全屏?如果是竖屏全屏为什么需要返回键返回竖屏?
下方第一个是旋转工具类让 控件返回到竖屏,第二个是旋转工具类模拟点击全屏按键改变状态,第三个是列表全屏的返回非全屏。

if (orientationUtils != null) {
    orientationUtils.backToProtVideo();
}

 orientationUtils.resolveByClick();

if (StandardGSYVideoPlayer.backFromWindowFull(this)) {
            return;
 }

from gsyvideoplayer.

qq294685358 avatar qq294685358 commented on May 22, 2024

image
能告诉我这个方法是干嘛的吗,为什么写出来了又没有用上去

from gsyvideoplayer.

CarGuo avatar CarGuo commented on May 22, 2024

这个是以前旧版本的全屏和退出全屏的方式,demo里的detailplayer。

from gsyvideoplayer.

qq294685358 avatar qq294685358 commented on May 22, 2024

image
大兄弟,我这集成了你的播放器有个这个BUG,很急,今天内要交差,你能直接加我QQ说吗,比较方便。我QQ 294685358

from gsyvideoplayer.

qq294685358 avatar qq294685358 commented on May 22, 2024

上面这个BUG是在我进入页面后,点击播放,先点击全屏,然后再退出全屏,就变成这样了

from gsyvideoplayer.

qq294685358 avatar qq294685358 commented on May 22, 2024

我刚刚试了下,发现是有虚拟按键的手机才会这样,有一台魅族没有虚拟按键,就正常

from gsyvideoplayer.

CarGuo avatar CarGuo commented on May 22, 2024

你加首页的那个qq群,然后这个应该是你设置隐藏虚拟按键之后,也设置隐藏actionbar,在全屏的时候。

from gsyvideoplayer.

CarGuo avatar CarGuo commented on May 22, 2024

还有看看是不是最新版本喔!

from gsyvideoplayer.

qq294685358 avatar qq294685358 commented on May 22, 2024

我上午才下的最新版本,我是直接下载你的demo,把你的demo里的library复制到我工程里去的

from gsyvideoplayer.

CarGuo avatar CarGuo commented on May 22, 2024

你试试类似demo里面recyclerView的那种方式吧

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.