Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #3760 - Fix Brave-Talk and Youtube not working when tabs are switched #3925

Merged
merged 4 commits into from
Jul 15, 2021

Conversation

Brandon-T
Copy link
Collaborator

@Brandon-T Brandon-T commented Jul 14, 2021

Summary of Changes

  • On iOS 14.5+ Allow tabs to keep playing media even when it is not the currently visible.

This pull request fixes #3760

Submitter Checklist:

  • Unit Tests are updated to cover new or changed functionality
  • User-facing strings use NSLocalizableString()

Test Plan:

Must be done on a iOS 14.5+ device

  1. Go to youtube, play a video.
  2. Switch tabs.
    Expected: Video MUST still be playing without stopping or pausing.

--

  1. Go to together.brave.com on computer.

  2. Join call with “Desktop” user name or w/e.

  3. Go to the same URL on mobile.

  4. Join call with “Mobile” user name or w/e.

  5. Turn on microphone on Mobile, but disable on Desktop.

  6. Switch tabs on Mobile.
    Expected: MUST still hear microphone coming from Mobile through to Desktop.

  7. Turn on webcam on Mobile, switch tabs.
    Expected: MUST see yourself on Desktop from Mobile camera even with mobile tab inactive.

Screenshots:

Reviewer Checklist:

  • Issues include necessary QA labels:
    • QA/(Yes|No)
    • bug / enhancement
  • Necessary security reviews have taken place.
  • Adequate unit test coverage exists to prevent regressions.
  • Adequate test plan exists for QA to validate (if applicable).
  • Issue and pull request is assigned to a milestone (should happen at merge time).

@Brandon-T Brandon-T added this to the 1.30 milestone Jul 14, 2021
Copy link
Contributor

@iccub iccub left a comment

Choose a reason for hiding this comment

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

good job finding this api

// audio and video to stop playing, etc..
for tab in tabManager.allTabs where tab != selected {
if let webView = tab.webView {
if #available(iOS 14.5, *) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we add else here to always remove webview for <14.5?

@iccub iccub modified the milestones: 1.30, 1.29 Jul 15, 2021
@iccub iccub changed the title Fix #3760 - Fix Brave-Talk/Together and Youtube not working when tabs are switch Fix #3760 - Fix Brave-Talk and Youtube not working when tabs are switched Jul 15, 2021
@iccub iccub merged commit c3c3b3d into development Jul 15, 2021
@iccub iccub deleted the feature-test/InvisibleWebView branch July 15, 2021 13:16
KacperWybranski pushed a commit to KacperWybranski/brave-ios that referenced this pull request Sep 4, 2021
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 this pull request may close these issues.

Investigate Brave talk audio video when app is background or tab is switched
3 participants