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 potential issue(s) with audio/video playback in WebView. #4723

Merged
merged 3 commits into from
Jun 5, 2024
Merged

Conversation

dbrant
Copy link
Member

@dbrant dbrant commented Jun 5, 2024

We already had some old (and flawed) logic for handling the fetching of audio files, but only for OGG audio, since that was mostly the type of audio that is used in articles. There are now cases where MP3 audio files are used, which is causing similar issues as before.

Let's handle it this way:
If the WebView requests playback of an audio or video file, then we won't intercept it at all (which we were already doing for OGG files), and leave it for the WebView to handle on its own.

This also eliminates the need for our custom AvailableInputStream class, which was a poor attempt to fix the underlying issue, and actually wasn't even used: according to our logic, it was supposed to be used for OGG files, but then we're not intercepting OGG files. ¯\_(ツ)_/¯

https://phabricator.wikimedia.org/T366437

@dbrant dbrant added the Minor Minor stuff label Jun 5, 2024
@dbrant dbrant requested a review from cooltey as a code owner June 5, 2024 17:06
@cooltey cooltey merged commit f18426b into main Jun 5, 2024
1 check passed
@cooltey cooltey deleted the audio branch June 5, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Minor stuff
2 participants