Giter Site home page Giter Site logo

Comments (4)

icywind avatar icywind commented on June 22, 2024

[copying my comment from Slack]
There are two issues here. First the Web demo has a canvas to show contents with cropping. So it is not a perfect example to examine the issue. Secondly, it is true that the encoder only takes certain resolution ratio. You can verify this by register the OnVideoSizeChanged callback. When the ipad (mine is 1536x2048) starts to run, you can see the callback returns the changed size to 720x1280. Which is the ratio of cropped image you see in Editor.

from agora-unity-quickstart.

plutoless avatar plutoless commented on June 22, 2024

@ROBYER1 and to add the reason why web is cropping the content is because it's using "cover" mode for content hint option. if you use "contain" it will display all content (but you will see black edges)

from agora-unity-quickstart.

ROBYER1 avatar ROBYER1 commented on June 22, 2024

@ROBYER1 and to add the reason why web is cropping the content is because it's using "cover" mode for content hint option. if you use "contain" it will display all content (but you will see black edges)

This doesn't apply to me I am using Unity Editor and a built app on IOS/Android, I can see the raw exact video feed coming in and it is cropped as @icywind mentioned.

What you mention with the image fitting is a different problem that can be easily fixed.

from agora-unity-quickstart.

icywind avatar icywind commented on June 22, 2024

Rob, I've updated the Adv. Demo+ with fall back dimension to avoid cropping.

from agora-unity-quickstart.

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.