Comments (5)
HI @LoyaiHai,
When I was using the official demo, I found that there would be a pause interval when switching between horizontal and vertical screens in a video call. Is this normal?
Yes, it takes a small amount of time to stop & restart the camera capture.
Another question: I am currently using Java native code, and in kotlin's code, I have a hard time finding a place for screen rotation, can you tell me which class screen rotation is implemented in video calls?
There is nothing to find, as we do nothing. Android is handling the screen rotation directly, our app doesn't care of the screen orientation, there's no listener for such event.
Cheers,
from linphone-android.
Hi
@Viish
I'm so sorry, maybe there's something wrong with my expression, so let me reframe it.
I used device A and B to make A video call, and at this time device A and B were forced to portrait. When both devices are in portrait mode, the display is normal. When I rotate device A 90 degrees counterclockwise, the local camera display in device A also rotates 90 degrees counterclockwise. At this time, when I looked at the remote camera of device B, I found that the actual display result was inconsistent with the display effect of the local camera in device A. Similarly, the remote camera of device A did not display properly,As shown in the picture below:
Could you please tell me whether there is an interface to input rotation Angle to dynamically change the direction of the displayed camera?
Another question is, is there a callback interface that listens to the remote device that has rotated the screen?
Thanks Viish
Cheers!
from linphone-android.
Hi
@Viish
I tried using Core.setDeviceRotation(90), but this interface changes the direction of the local camera on the current device, and the direction of the remote camera seen on the other device also changes
May I ask if there are two interfaces that can be realized: one interface controls the rotation direction of the local camera, and the other interface controls the rotation direction of the camera before the local code is transmitted to the remote end?
Thanks Viish
Cheers!
from linphone-android.
HI @LoyaiHai,
No you don't need to do anything, everything is handled by the Core itself (computing the device rotation degrees and correcting the preview orientation) as long as you are using CaptureTextureView object from our SDK.
From your screen I'd say the issue is simply that you disabled device rotation because the status bar isn't on top when your device is in landscape mode.
Cheers,
from linphone-android.
Hi
@Viish
Control I use your CaptureTextureView control, then according to what you said, I disable device rotation, then how can I achieve the effect I want?
Thanks Viish
Cheers!
from linphone-android.
Related Issues (20)
- How to Register Linphone Account on Specific Ports in SDK v5.2.107 HOT 2
- lftp not uploading HOT 2
- Create contacts without Addressbook permissions HOT 1
- Login occur:Method Not Allowed HOT 5
- How to make the H264 codec not rely on hardware HOT 2
- On Android 6 H264 MediaCodecEncoder: could not configure encoder HOT 2
- Instant messaging is not working with account HOT 1
- Abort message: 'Scudo ERROR: internal map failure (NO MEMORY) requesting 4KB' HOT 8
- Seems the old "Phone number seems to start by international prefix but without '+', adding it" bug is back again HOT 15
- Create Account issue when using three digits country codes like Libya HOT 3
- Assistant screen should be scrollable
- Create Account issue when using three digits country codes like Libya HOT 1
- No audio on outside local network with xiaomi HOT 1
- [Proxy/TUN] Not working with Routr Server for Local SIP Server HOT 3
- Self Signed Certificates on Android HOT 1
- download bandwidth is 0 kbits/s
- F-Droid build failed HOT 6
- SIP/2.0 401 Unauthorized when Registering Sip Account HOT 5
- How to Enable and Retrieve Detailed SIP Traces in Linphone SDK? HOT 1
- contacts can not be created in phonebook without at least a last name (contact, phone book, address book) HOT 1
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 linphone-android.