Comments (4)
[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.
@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 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.
Rob, I've updated the Adv. Demo+ with fall back dimension to avoid cropping.
from agora-unity-quickstart.
Related Issues (20)
- test
- So many errors (with error code CS0246,CS0234,CS0115) even after importing the SDK HOT 3
- Unity Cloud Build Failure because of Linked Frameworks HOT 6
- Error 110 - attempting to use BasicVideoCallScene HOT 2
- User Joined event not triggering all the the time HOT 1
- 请问支持HoloLens 2平台吗? HOT 1
- Unity Android and iOS (possible) phone overheat HOT 1
- Challenges with Code Signing on Mac Following Agora Integration HOT 4
- How to resolve the error : - [d3d11] attempting to ReadPixels outside of RenderTexture bounds! Reading (0, 0, 215, 383) from (215, 382) ? HOT 2
- Video feed rotated 180° HOT 1
- Desktop ScreenRect crash error HOT 4
- Does this support the uwp platform HOT 2
- initialize engine fail HOT 1
- 音频在ipad pro上会导致声音变成听筒模式 HOT 3
- Sometimes OnUserJoin dose not trigger for newly joined users HOT 2
- Can not open Example Scene with 2019 or 2020 HOT 2
- Create engine failed, error code: -7 , with Fetching the Token scene HOT 3
- Demo演示,3D物体上的视频不会渲染,而UI正常 HOT 5
- Token is Invalid HOT 2
- Are Android and IOS screenshare support? HOT 2
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 agora-unity-quickstart.