Comments (1)
I dont think there is a simple solution for this problem.
But i do have some elaborate ideas:
- 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)
- Does not count watch time and views HOT 1
- Sample Chromecast does not play/pause, do I need to register my own receiver? HOT 2
- Failed to transform artifact 'lifecycle-runtime-ktx.aar (androidx.lifecycle:lifecycle-runtime-ktx)' to match attributes {artifactType=jar} HOT 2
- changing YouTube player view on click new video in existing YouTube player view HOT 2
- Can you please share java file for fullscreen example? As my whole project is in java and i have to use it. I tried to resolve but could not resolve onBackpressedcallback function.
- Chromecast always return UNSTARTED
- Full screen not working after much try HOT 2
- HD Resolution Problem
- Video starts playing on recyclerview scroll HOT 1
- Is there any method avaliable to hide overflow menu(Share option) hide or click disble? HOT 2
- Disable auto-Play (cueVideo) not working HOT 3
- how can i add auto play next video from list in my app ??? HOT 1
- Add API to set arbitrary playback speed HOT 3
- leakcary of 12.1.0 HOT 2
- Full screen has margin from the screen HOT 3
- Video Unavailable on Android 13
- Bottom Bar Time is Not Show and Popup is Cut HOT 12
- Why this library want access to device camera and bluethooth permissions? HOT 7
- Regarding the problem of dual-screen video display, use Presentation to implement it HOT 5
- Automatic Video Playback Issue While Scrolling Videos HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-youtube-player.