Bug 406947 - With plasma extension enabled, audio does not play from google translate
Summary: With plasma extension enabled, audio does not play from google translate
Status: RESOLVED FIXED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: Chrome (other bugs)
Version First Reported In: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-27 03:45 UTC by anzetal
Modified: 2019-07-21 11:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anzetal 2019-04-27 03:45:31 UTC
SUMMARY
Google translate has a feature where it plays an audio of the pronunciation. With the extension enabled, even though the website shows an audio being played, no audio comes out. This occurs when plasma extension is the only enabled extension too so other extensions can be ruled out. Audio only works when the extension is disabled

STEPS TO REPRODUCE
1. Enable plasma extension
2. Visit https://translate.google.com and translate from any language and enter an example sentence
3. Hit the 'Listen' speaker icon under the translation

OBSERVED RESULT

No audio plays
EXPECTED RESULT

Audio should play


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Kubuntu 19.04
(available in About System)
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Comment 1 Kai Uwe Broulik 2019-04-27 14:39:04 UTC
I made a horrible hack to address this [1] but I might have to just drop pure JS Audio controls...

[1] https://phabricator.kde.org/D20830
Comment 2 Vadym Krevs 2019-05-14 15:20:55 UTC
I have a similar issue with Google Hangouts. If you start a video call and attempt to test sound in speakers, there is no sound if "Enhanced Media Controls" checkbox is checked. Similarly, Fuze Web has sound problems if "Enhanced Media Controls" checkbox is checked. Unchecking it (while leaving the rest of extension enabled) resolves the issue.  This is on openSUSE Leap 15.0 with Google Chrome 74.0.3729.131 (also reproducible on Chromium).
Comment 3 Kai Uwe Broulik 2019-06-22 16:40:17 UTC
Then please test the patch linked. You can just download the code, apply the patch (or download the whole raw file), place it in the extension folder and the load it in chrome://extensions by enabling dev mode and choosing "load unpacked" and pointing it to the extension folder.
Comment 4 anzetal 2019-06-25 03:54:39 UTC
(In reply to Kai Uwe Broulik from comment #3)
> Then please test the patch linked. You can just download the code, apply the
> patch (or download the whole raw file), place it in the extension folder and
> the load it in chrome://extensions by enabling dev mode and choosing "load
> unpacked" and pointing it to the extension folder.

Sorry am I missing something. I can't find the option to download the raw file from phabricator link
Comment 5 Kai Uwe Broulik 2019-07-21 11:21:34 UTC
Git commit d637f92040c35e628e310adb99fa55e7c1e32e83 by Kai Uwe Broulik.
Committed on 21/07/2019 at 11:21.
Pushed by broulik into branch 'master'.

Add hack to unbreak audio playback through pure JS via new Audio()

Let the comment in the code speak for itself. Now, where is my jug of disinfecting agent...

Differential Revision: https://phabricator.kde.org/D20830

M  +28   -3    extension/content-script.js

https://commits.kde.org/plasma-browser-integration/d637f92040c35e628e310adb99fa55e7c1e32e83