Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is very slow to rotate camera in PiP mode #1348

Closed
RainyTunes opened this issue Dec 7, 2023 · 4 comments · Fixed by #1351
Closed

It is very slow to rotate camera in PiP mode #1348

RainyTunes opened this issue Dec 7, 2023 · 4 comments · Fixed by #1351
Milestone

Comments

@RainyTunes
Copy link
Sponsor

RainyTunes commented Dec 7, 2023

Describe the bug

I find it is very smooth to rotate the camera in single-camera mode,
but it is very slow to rotate cameras in PiP mode.

It usually takes about 7 seconds to wait for the cameras to work again.

To Reproduce

  1. RTMPStream.attachMulticamera()
  2. RTMPStream.attachCamera()
  3. MTHKView.attachStream()
  4. watch the MTHKView and it is working normally.
  5. use a button to trigger rotateCamera() // I used the implementation in the Example project
  6. watch the MTHKView again, and it will get stuck for about 7 seconds.

Expected behavior

Dont get stuck when rotating cameras.

Version

1.7.1

Smartphone info.

iPhone14 pro

Additional context

No response

Screenshots

No response

Relevant log output

No response

@RainyTunes
Copy link
Sponsor Author

WhatsApp.Video.2023-12-07.at.3.26.17.PM.mp4

@RainyTunes
Copy link
Sponsor Author

RainyTunes commented Dec 7, 2023

It got stuck for about 10 seconds in the above video.

By the way, I would greatly appreciate it if you could explain a little bit further about _the following comment,

as I really care about whether I can switch smoothly between the multi-camera mode and the single-camera mode.

// If you're using multi-camera functionality, please make sure to call the attachMultiCamera method first. 
// This is required for iOS 14 and 15, among others.

@shogo4405 shogo4405 added this to the 1.7.2 milestone Dec 8, 2023
@shogo4405
Copy link
Owner

Thank you for the report.

  1. It has been fixed.
  2. Regarding the issue, I believe fixing it would benefit the overall system. However, as for whether it meets your specific requirements or not, I do not provide free guidance for individual issues. Please consider sponsorship or paid consulting for personalized support.

@RainyTunes
Copy link
Sponsor Author

分かりました。必要に応じてご連絡させていただきますので、よろしくお願いいたします。 @shogo4405

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants