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 directfile audiotrack selection on Tizen #1170

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

peaBerberian
Copy link
Collaborator

We noticed an issue on some Samsung TVs where some (but not all) directfile contents were playing without sound.

After investigation, it seems that what breaks was the action of disabling ALL of an HTMLMediaElement's audio tracks before enabling the one wanted, which is something we did (instead of just disabling the unwanted tracks first) due to a playback issue on Safari which would happen without (Safari would just decide to not play).

So basically, an ugly-but-functional-and-still-logically-sound work-around fixed Safari but broke Tizen.
In the end, I chose to keep the ugly-but-functional-... solution by default and just perform the original not-ugly solution for Tizen, because it seems to me there's more chance to re-encounter the Safari issue (e.g. because another device rely on a similar webkit build) than re-encounter the Tizen issue (which is especially known to be a broken target anyway in terms of compat - much more than safari in general) on a future new device.

Though the more broken target is the only one which profit from the more elegant logic, which seems counter-intuitive!

I added that in src/compat to make it clear that this whole logic is an ugly compat-oriented work-around.

We noticed an issue on some Samsung TVs where some (but not all)
directfile contents were playing without sound.

After investigation, it seems that what breaks was the action of
disabling __ALL__ of an `HTMLMediaElement`'s audio tracks before enabling
the one wanted, which is something we did (instead of just disabling the
unwanted tracks first) due to a playback issue on Safari which would
happen without (Safari would just decide to not play).

So basically, an ugly-but-functional-and-still-logically-sound work-around
fixed Safari but broke Tizen.
In the end, I chose to keep the ugly-but-functional-... solution by
default and just perform the original not-ugly solution for Tizen,
because it seems to me there's more chance to re-encounter the Safari
issue (e.g. because another device rely on a similar webkit build) than
re-encounter the Tizen issue (which is especially known to be a broken
target anyway in terms of compat - much more than safari in general) on
a future new device.

Though the more broken target is the only one which profit from the more
elegant logic, which seems counter-intuitive!

I added that in `src/compat` to make it clear that this whole logic is
an ugly compat-oriented work-around.
@peaBerberian peaBerberian added bug This is an RxPlayer issue (unexpected result when comparing to the API) Compatibility Relative to the RxPlayer's compatibility with various devices and environments labels Oct 12, 2022
@peaBerberian peaBerberian added this to the 3.29.0 milestone Oct 12, 2022
@peaBerberian peaBerberian merged commit f15e4fb into master Oct 13, 2022
@peaBerberian peaBerberian mentioned this pull request Nov 15, 2022
@peaBerberian peaBerberian deleted the fix/tizen-enable-audio-track branch July 6, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is an RxPlayer issue (unexpected result when comparing to the API) Compatibility Relative to the RxPlayer's compatibility with various devices and environments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant