Code Monkey home page Code Monkey logo

Comments (4)

marinaserranomontes avatar marinaserranomontes commented on June 12, 2024

Hi @lby1992,

Please take a look to the capturer resolution in landscape and portrait modes and the container size you have. You need to play with them to adjust the image to the desired aspect ratio.

More info:
https://tokbox.com/developer/guides/audio-video/android/#custom_capturer
https://tokbox.com/developer/guides/customize-ui/android/#custom_renderer

from opentok-android-sdk-samples.

lby1992 avatar lby1992 commented on June 12, 2024

Hi, @marinaserranomontes .
I had got the CustomVideoCapturer.java from demo code, and set the resolution to 640Ɨ480. Under landscape mode, it looks correctly. But the camera seems captured 480Ɨ640 when the screen rotate to protrait. Can you tell me why?

from opentok-android-sdk-samples.

marinaserranomontes avatar marinaserranomontes commented on June 12, 2024

Hi @lby1992 ,

In the CustomVideoCapturer we are going to use the closest resolution supported to the preferred setting. And also, please note, the width and height sizes are based on camera orientation.
Applications need to consider the display orientation while setting preview size.
https://developer.android.com/reference/android/hardware/Camera.Parameters.html#setPreviewSize(int,%20int)

Best,
Marina

from opentok-android-sdk-samples.

marinaserranomontes avatar marinaserranomontes commented on June 12, 2024

Iā€™m closing this issue because it has been inactive for a few weeks. This probably means that it is not reproducible or it has been fixed.

Please reopen if you still encounter this issue You can also contribute directly by providing a patch.

Thank you!

from opentok-android-sdk-samples.

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.