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

fix: turn off other tracks with native audio track #7519

Merged
merged 1 commit into from
Nov 16, 2021
Merged

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Nov 12, 2021

Audio Tracks are supposed to allow multiple tracks at the same time.
Safari 15 has added, at least partial support for this.

In #7163, we stopped turning other tracks of manually since we already
were doing so in the AudioTrackList. However, this only worked for
non-native AudioTracks. Before Safari 15, Safari automatically turned
off the other tracks for us so things continued to work.

With this change, when native audio tracks are used, we will turn off
the other tracks, partially reverting #7163.

We currently do not have any tests or are set up for writing tests for
these proxy tracks. Adding such tests will take too long for not a lot
of benefit, unfortunately.

Fixes #7494.

Audio Tracks are supposed to allow multiple tracks at the same time.
Safari 15 has added, at least partial support for this.

In #7163, we stopped turning other tracks of manually since we already
were doing so in the AudioTrackList. However, this only worked for
non-native AudioTracks. Before Safari 15, Safari automatically turned
off the other tracks for us so things continued to work.

With this change, when native audio tracks are used, we will turn off
the other tracks, partially reverting #7163.

We currently do not have any tests or are set up for writing tests for
these proxy tracks. Adding such tests will take too long for not a lot
of benefit, unfortunately.

Fixes #7494.
@codecov
Copy link

codecov bot commented Nov 12, 2021

Codecov Report

Merging #7519 (7739c80) into main (6c67c30) will decrease coverage by 0.07%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7519      +/-   ##
==========================================
- Coverage   79.84%   79.77%   -0.08%     
==========================================
  Files         116      116              
  Lines        7309     7316       +7     
  Branches     1764     1766       +2     
==========================================
  Hits         5836     5836              
- Misses       1473     1480       +7     
Impacted Files Coverage Δ
...-bar/audio-track-controls/audio-track-menu-item.js 3.03% <0.00%> (-0.82%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c67c30...7739c80. Read the comment docs.

@gkatsev gkatsev merged commit 115a047 into main Nov 16, 2021
@gkatsev gkatsev deleted the safari-audio-tracks branch November 16, 2021 16:23
edirub pushed a commit to edirub/video.js that referenced this pull request Jun 8, 2023
Audio Tracks are supposed to allow multiple tracks at the same time.
Safari 15 has added, at least partial support for this.

In videojs#7163, we stopped turning other tracks of manually since we already
were doing so in the AudioTrackList. However, this only worked for
non-native AudioTracks. Before Safari 15, Safari automatically turned
off the other tracks for us so things continued to work.

With this change, when native audio tracks are used, we will turn off
the other tracks, partially reverting videojs#7163.

We currently do not have any tests or are set up for writing tests for
these proxy tracks. Adding such tests will take too long for not a lot
of benefit, unfortunately.

Fixes videojs#7494.
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.

AudioTrack selector not working in Safari
2 participants