Skip to content

Android - Create new ImageReader instance before opening camera#3063

Merged
sauwming merged 1 commit intopjsip:masterfrom
sean-horton:android-vid-dev
Apr 14, 2022
Merged

Android - Create new ImageReader instance before opening camera#3063
sauwming merged 1 commit intopjsip:masterfrom
sean-horton:android-vid-dev

Conversation

@sean-horton
Copy link
Copy Markdown
Contributor

After testing a couple Android devices using pjsip 2.12 with PjCamera2, one device, a Kyocera E6910 on Android 9, failed to send video or show local playback after switching cameras (back to front) in an active video stream.

It seems the underlying surface is being closed on camera switch. To resolve this, a new ImageReader instance can be created before opening the camera. After a discussion with Ming, it was suggested to close the ImageReader on Stop().

With this change, testing shows video works well on the Kyocera and a Samsung Galaxy Note 9.

@sauwming sauwming merged commit d653375 into pjsip:master Apr 14, 2022
BarryYin pushed a commit to BarryYin/pjproject that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants