Giter Site home page Giter Site logo

竖版视频全屏播放 about bywebview HOT 3 CLOSED

vivian688 avatar vivian688 commented on June 2, 2024
竖版视频全屏播放

from bywebview.

Comments (3)

youlookwhat avatar youlookwhat commented on June 2, 2024

可以的:


可手动处理视频全屏播放时的横竖屏:

OnTitleProgressCallback里增加了onHandleScreenOrientation(boolean isShow)

    /**
     * 全屏显示时处理横竖屏。
     * 默认返回false,全屏时为横屏,全屏还原后为竖屏
     * 如果要手动处理,需要返回true!
     *
     * @param isShow 是否显示了全屏视频 ture点击了全屏显示,false全屏视频还原
     */
    public boolean onHandleScreenOrientation(boolean isShow) {
        return false;
    }

from bywebview.

youlookwhat avatar youlookwhat commented on June 2, 2024

1.2.1 版本已增加

from bywebview.

vivian688 avatar vivian688 commented on June 2, 2024

可以的:

可手动处理视频全屏播放时的横竖屏:

OnTitleProgressCallback里增加了onHandleScreenOrientation(boolean isShow)

    /**
     * 全屏显示时处理横竖屏。
     * 默认返回false,全屏时为横屏,全屏还原后为竖屏
     * 如果要手动处理,需要返回true!
     *
     * @param isShow 是否显示了全屏视频 ture点击了全屏显示,false全屏视频还原
     */
    public boolean onHandleScreenOrientation(boolean isShow) {
        return false;
    }

OK,通过前端返回的标识在该方法内处理了。

from bywebview.

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.