Giter Club home page Giter Club logo

Comments (1)

Serkali-sudo avatar Serkali-sudo commented on June 1, 2024

I dont think there is a simple solution for this problem.

But i do have some elaborate ideas:

  1. Disable recyclerview scroll when user scrolls scrollable views (only y axis is enough recyclerview doesnt intercept scrolls x axis) in youtubeplayerview.
  • To do that you need to check for visibility of scrollable views in youtubeplayerview by editing html and adding callback js to java
  • when you ensure that scrollable view is visible you can disable recylerview scroll and youtubeplayerview will scroll
  • But after scrolling in youtubeplayerview done you have to activate recyclerview scroll again so user can scroll through videos
  • To make this transcation between player and recyclerview stable and seamless you need to get coordinates(x,y) of scrollable view and touch coordinates and check if touched coordinates are in scrollable view coordinates then disable recyclerview scroll but if it is not then enable recyclerview scroll.

In summary check visibility of scrollable elements and get their coordinates check if element is visible and inside the touch coordinates then it means user wants to scroll but if the scrollable element is not visibile or not in the touched coordinates then means user wants to scroll recyclerview so enable recyclerview scroll.

Btw to implement this idea you will need to edit the html and add a callback and send touched coordinates to js ext. which means you are gonna have to edit the library

from android-youtube-player.

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.