Skip to content

[Enhancement]Handle camera session interruptions #907

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

Conversation

ipavlidakis
Copy link
Contributor

@ipavlidakis ipavlidakis commented Aug 7, 2025

🔗 Issue Links

Resolves https://linear.app/stream/issue/IOS-1044/patreoncamera-capture-feed-doesnt-restart-after-app-comes-back-to

📝 Summary

We now observe the interruptions produced from AVCaptureSession and when needed we restart the capturing. That ensures that in scenarios e.g. coming from background to foreground when PiP isn't active, the capture session will continue.

🧪 Manual Testing Notes

  • Disable PiP in demo app
  • Join a call with someone
  • Move the app to background (video capturing should stop)
  • Move the app to foreground (video capturing should restart)

☑️ Contributor Checklist

  • I have signed the Stream CLA (required)
  • This change follows zero ⚠️ policy (required)
  • This change should receive manual QA
  • Changelog is updated with client-facing changes
  • New code is covered by unit tests
  • Comparison screenshots added for visual changes
  • Affected documentation updated (tutorial, CMS)

@ipavlidakis ipavlidakis self-assigned this Aug 7, 2025
@ipavlidakis ipavlidakis requested a review from a team as a code owner August 7, 2025 15:56
@ipavlidakis ipavlidakis added the enhancement New feature or request label Aug 7, 2025
@ipavlidakis ipavlidakis force-pushed the enhancement/restart-avcapturesession-when-coming-to-foreground branch from 076fd5d to 5c1f47a Compare August 7, 2025 15:56
Copy link
Contributor

@martinmitrevski martinmitrevski left a comment

Choose a reason for hiding this comment

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

Looks good, just one question about screensharing

@Stream-SDK-Bot
Copy link
Collaborator

Stream-SDK-Bot commented Aug 7, 2025

SDK Size

title develop branch diff status
StreamVideo 8.18 MB 8.18 MB +2 KB 🟢
StreamVideoSwiftUI 2.29 MB 2.29 MB 0 KB 🟢
StreamVideoUIKit 2.41 MB 2.41 MB 0 KB 🟢
StreamWebRTC 9.85 MB 9.85 MB 0 KB 🟢

Copy link

github-actions bot commented Aug 7, 2025

Public Interface

+ extension AVCaptureSession.InterruptionReason  
+ 
+   public var description: String



@ipavlidakis ipavlidakis enabled auto-merge (squash) August 8, 2025 09:05
Copy link

sonarqubecloud bot commented Aug 8, 2025

@ipavlidakis ipavlidakis merged commit 379e7a1 into develop Aug 8, 2025
12 checks passed
@ipavlidakis ipavlidakis deleted the enhancement/restart-avcapturesession-when-coming-to-foreground branch August 8, 2025 09:37
@Stream-SDK-Bot Stream-SDK-Bot mentioned this pull request Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants