Comments (5)
Unfortunately, programatically setting video quality is not allowed by youtube.
the API no longer supports functions for setting or retrieving playback quality. To give you the best viewing experience, YouTube adjusts the quality of your video stream based on your viewing conditions.
The user can still manually change quality by clicking on the three dots on the top right corner, for which there is a callback if you want - doc
from react-native-youtube-iframe.
Its safe to assume that users who have reasonably good internet will get a better video quality by default, and bad internet is paired with poor quality.
from react-native-youtube-iframe.
Hello, thank you for your answer, in spite of that, I think that the problem is not related to the connection, I currently have the fiber, I am in wifi but the speed goes very well.
Another thing, I don't have the parameters to change the quality, here is what happens when I click on the three little dots, and the general controls.
I'm currently debugging on a OnePlus 6 Android OxygenOS 10.3.4, the size I get back from Dimensions.get('window') is 400x800, I also read that YouTube automatically changes the quality related to the size of the device. So I tried to just multiply x 4 the received value (it's ugly I know), but it doesn't change my problem.
So I wanted to try something else, I debugged on an android emulator, and I get the "large" callback so full HD, I don't understand why on my phone, it doesn't work. This one returns 400x800 also in size, the code is the same and still no possibility to change the quality.
Thanks for your time.
from react-native-youtube-iframe.
You are right, there isn't a quality selector in the menu. My bad..
I get the "large" callback so full HD
That sounds right, only callbacks to the quality change are accessible as of now
from react-native-youtube-iframe.
Hello, thanks for the answer, I guess it's my version of android that's the problem, I'll deal with it, thanks!
from react-native-youtube-iframe.
Related Issues (20)
- SeekTo function not working for live video while tring to seek To previous duration in iOS
- Fullscreen video turns half black during playback HOT 1
- Cannot scroll ScrollView: iframe intercepts pan HOT 2
- Video not work in android and ios build release HOT 1
- modestbranding flag not working with initialPlayerParams prop HOT 2
- Moving forward + better web support HOT 5
- share button is not disabled when i go fullscreen HOT 2
- Volume prop not affecting volume at all on YoutubePlayer
- 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
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.