Code Monkey home page Code Monkey logo

Comments (5)

LonelyCpp avatar LonelyCpp commented on May 20, 2024

Unfortunately, programatically setting video quality is not allowed by youtube.

API Doc | Youtube Doc

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.

LonelyCpp avatar LonelyCpp commented on May 20, 2024

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.

Krosnoz avatar Krosnoz commented on May 20, 2024

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.

chrome_LdJ7o5XDsJ

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.

Screenshot_20200805-103418
Screenshot_20200805-103422

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.

LonelyCpp avatar LonelyCpp commented on May 20, 2024

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 ☚ī¸ The link to the 2019 revision history (in my previous comment) is all the info we have on quality

from react-native-youtube-iframe.

Krosnoz avatar Krosnoz commented on May 20, 2024

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)

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.