Coder Social home page Coder Social logo

Comments (5)

yuliskov avatar yuliskov commented on July 17, 2024

Hi. There are problems down there.

  1. Android devices unable to report video output resolution. All I can get is interface resolution. One may differs depending on device. For example 4K boxes claim that they have 1080p resolution.
  2. Another chance would be to use codec capabilities. Yes, I can get list of supported codecs for your device. But again, most of device do it wrongly. I tested myself. Devices that unable to play specific codec/resolution often report that they can.

As you can see both soluton aren't perfect.

Resume. For now, the best practice would be to choose the resolution manually. All that I can promise is to maintain selected quality as long as possible.

from smarttubelegacy.

Maikell84 avatar Maikell84 commented on July 17, 2024

Hi Thank you for your detailled explanation. Ok if you cannot get the real video-output resolution it doesn't make sense do implement this feature.

Does a variable make sense to you, where you set the maximum possible stream-quality in the code? Maybe a static enum with values: 240p, 360p, 480p, ... and so on which defaults to 4k.

For my special use-case I have resolved it, by not displaying resolutions higher than 720p in TrackSelectionHelper.java, and by limiting the stream-Quality in PlayerActivity.java

I think you can close this issue.
Thank you.

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

Hi. I could apply fix specifically for your device. For this purpose I need your the patch and device id (from CPU-Z).

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

Closed. Can't do precise resolution detection on api < 23.

from smarttubelegacy.

yuliskov avatar yuliskov commented on July 17, 2024

duplicate of #99

from smarttubelegacy.

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.