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

Update OTSessionManager.java - Fix camera lifecycle #654

Merged
merged 5 commits into from
Jun 27, 2023

Conversation

cnx-carlosvogt
Copy link
Contributor

@cnx-carlosvogt cnx-carlosvogt commented Mar 7, 2023

Contributing checklist

  • [ x] Code must follow existing styling conventions
  • [x ] Added a descriptive commit message
  • [ x] Sample apps updated if needed

Bugfix #150
This PR fixes the problem of the camera freezing in certain situations, such as when another application takes control of the camera and when returning to opentok the camera remains frozen, with this correction this no longer occurs.

Solves issue(s)

@cnx-carlosvogt cnx-carlosvogt changed the title Update OTSessionManager.java Update OTSessionManager.java - Fix camera lifecycle Mar 7, 2023
@cnx-renansoares
Copy link

Hi guys,

We are using the lib for a while and had this problem. We solved this doing what @cnx-carlosvogt mentioned above.

Copy link
Contributor

@jvalli jvalli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

import android.util.Log;
import android.widget.FrameLayout;
import android.view.View;

import androidx.annotation.Nullable;

import androidx.annotation.RequiresApi;
Copy link
Collaborator

@jeffswartz jeffswartz Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cnx-carlosvogt cnx-carlosvogt The PR looks good. Can we delete this line? I don't see it used in the code:

Suggested change
import androidx.annotation.RequiresApi;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, @jeffswartz . I work with @cnx-carlosvogt and he is on vacation now. Yes, we can proceed with this deletion.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thanks, @cnx-renansoares. I am merging this in and will create a new version of the library with fix. And thanks again @cnx-carlosvogt for fixing this.

Copy link
Collaborator

@marinaserranomontes marinaserranomontes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jeffswartz jeffswartz merged commit 737d059 into opentok:main Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants