Comments (10)
@pelaxa overlays on the player is not allowed by youtube's ToS. The app will definitely not pass the android store review if detected.
a more native web way would be the ideal solution (similar to chrome)
however you can try your implementation on top of this pacakge and report if it works, as a proof of concept. (others might find it helpful incase they are not planning to put it on the play/app store)
from react-native-youtube-iframe.
Dropping this gem for you it should help you
from react-native-youtube-iframe.
what is the status of this?
from react-native-youtube-iframe.
@LonelyCpp Any progress here? Do you know of any other valid approach besides hooking into iOS fullscreen APIs (seen this in the other youtube & video libs)?
from react-native-youtube-iframe.
Haven't found any solutions yet :(
Since expo support is critical, native code is not an option
from react-native-youtube-iframe.
Hi @LonelyCpp
Any solution? I'm using bare workflow.
from react-native-youtube-iframe.
Hi @LonelyCpp! Any progress here?
from react-native-youtube-iframe.
@LonelyCpp I found this recent comment here https://bugs.webkit.org/show_bug.cgi?id=174626
webkitfullscreenchange is dispatched on element fullscreen, not on video fullscreen.
For video fullscreen we dispatch:
webkitbeginfullscreenEvent / webkitendfullscreenEvent
However, when using the new element fullscreen, you should now see webkitfullscreenchange, but not webkitpresentationmodechanged or webkitbeginfullscreenEvent
from react-native-youtube-iframe.
An alternative may be to not use the player controls but instead use an overlay for controls which would allow you to detect the orientation. This will also allow further customization of the player for some use cases.
from react-native-youtube-iframe.
Thanks for pointing this out. I did find them here: https://developers.google.com/youtube/terms/required-minimum-functionality#overlays-and-frames
from react-native-youtube-iframe.
Related Issues (20)
- Can I play YouTube clip video ? HOT 4
- Automatically unmutes on play and pause HOT 1
- How to disable watch on youtube from the iframe HOT 3
- The Player is not shown when the parent View is aligned to center HOT 1
- SIGSEGV Error on android HOT 1
- React native FlatList last gallery item disappers after Youtube full screen
- Add enablejsapi property HOT 1
- Programmatically paused video shows a black screen instead of the paused video HOT 1
- height is not working HOT 1
- How to toggle fullscreen programmatically HOT 1
- Video Unavailable - Video is restricted Error HOT 5
- Add a fullscreen prop to control the fullscreen state from outside the component HOT 1
- Android devices crash when YouTubeVideoPlayer is on screen with expo-router navigation HOT 1
- Android only - Encountered an error loading page HOT 5
- How to resume music played in background by other app, after my app finishes playing own file
- Android!!! App getting exited without any console error while scroll down. (YoutubePlayer) HOT 2
- Hide title and share HOT 1
- Bug Version Android HOT 2
- Portrait Viewports HOT 1
- Possible to move the header to the bottom? 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 react-native-youtube-iframe.