Giter Club home page Giter Club logo

Comments (5)

Viish avatar Viish commented on June 8, 2024

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.

LoyaiHai avatar LoyaiHai commented on June 8, 2024

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:

prerotation:
deviceA
deviceA_rotate_before_F
deviceB
deviceB_before_F

post-rotation:
deviceA
deviceA_rotate_after_F

deviceB
deviceB_after_F

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.

LoyaiHai avatar LoyaiHai commented on June 8, 2024

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.

Viish avatar Viish commented on June 8, 2024

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.

LoyaiHai avatar LoyaiHai commented on June 8, 2024

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)

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.