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

Co-streaming Video Freezes with presetH216_169 CameraCaptureOption for Front Camera and When Moving App to Background #252

Open
isandeepj opened this issue Sep 21, 2023 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@isandeepj
Copy link

isandeepj commented Sep 21, 2023

Describe the bug
When using the presetH216_169 camera capture option with the front camera in co-streaming mode, the video freezes. The issue also arises when the co-streamer moves the application to the background and then brings it back to the foreground. However, when switching to the h360_169 setting, the video streams seamlessly

SDK Version

  • Livekit: 1.1.2
  • Livekit: 1.1.1
  • Livekit: 1.1.0

iOS Version

  • iOS 17
  • iOS 16.5

Steps to Reproduce

  1. Set up a co-streaming session using the presetH216_169 camera capture option for the front camera.
  2. Start the co-stream.
  3. Observe the freezing behavior of the video stream.
  4. Move the co-streamer app to the background and then bring it back to the foreground.
  5. Observe the video freezing behavior again.

Expected behavior
The video should stream seamlessly without any freezes when using presetH216_169 and when transitioning the app between the foreground and background

Screenshots
Screenshot 2023-09-21 at 7 22 57 PM
Screenshot 2023-09-21 at 7 22 47 PM

Code Snippet

lazy var roomOptions: RoomOptions = {
    let cameraCaptureOptions = CameraCaptureOptions(position: .front, preferredFormat: nil, dimensions: VideoParameters.presetH216_169.dimensions, fps: VideoParameters.presetH216_169.encoding.maxFps)
    let options = RoomOptions(defaultCameraCaptureOptions: cameraCaptureOptions, adaptiveStream: false, dynacast: false)
    return options
}()
@isandeepj isandeepj added the bug Something isn't working label Sep 21, 2023
@hiroshihorie
Copy link
Member

Are you using E2EE ?

@isandeepj
Copy link
Author

No

@hiroshihorie
Copy link
Member

Was this working in earlier versions but started happening recently ?

@isandeepj
Copy link
Author

isandeepj commented Sep 22, 2023

@hiroshihorie When using the presetH216_169 camera capture option with the front camera in co-streaming mode, the video freezes. The issue also arises when the co-streamer moves the application to the background and then brings it back to the foreground. However, when switching to the h360_169 setting, the video streams seamlessly

lazy var roomOptions: RoomOptions = {
    let cameraCaptureOptions = CameraCaptureOptions(position: .front, preferredFormat: nil, dimensions: VideoParameters.presetH216_169.dimensions, fps: VideoParameters.presetH216_169.encoding.maxFps)
    let options = RoomOptions(defaultCameraCaptureOptions: cameraCaptureOptions, adaptiveStream: false, dynacast: false)
    return options
}()

@isandeepj isandeepj changed the title Video Freezes in Co-streaming When Muting/Unmuting and Moving App to Background/Foreground Co-streaming Video Freezes with presetH216_169 CameraCaptureOption for Front Camera and When Moving App to Background Sep 22, 2023
@isandeepj
Copy link
Author

@hiroshihorie any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants