mozilla-extensions / firefox-voice

Firefox Voice is an experiment in a voice-controlled web user agent
Mozilla Public License 2.0
286 stars 122 forks source link

Spotify tab not paused if Youtube tab opens and plays from a Google search #776

Open alexandra-martin opened 4 years ago

alexandra-martin commented 4 years ago

Prerequisites:

Mic permission are enabled. "Allow" or "Don't Allow" button from “Allow Firefox Voice to Collect Voice Transcriptions” pop-up needs to be clicked. "A privacy reminder from Google" is reviewed and agreed and the yellow language pop-up is closed. Autoplay is enabled.

STR:

  1. Use the shortcut or click on the mic icon from the browser toolbar.
  2. Say or write a Spotify "Play" command, e.g. "Play Green Day".
  3. Use the shortcut or click on the mic icon from the browser toolbar.
  4. Say or write a Youtube "Play" command, e.g. "Play Green Day on Youtube".

Expected result:

Spotify tab is paused and Youtube tab starts playing.

Actual result:

If transcription depicts making a Google search of a song on Youtube, the Spotify tab is not paused, while the opened Youtube tab is playing.

Notes:

Reproduced on Mac 10.14.6 and Win10x64 with Firefox Nightly 73.0a1 (64-bit).

19

Simpcyclassy commented 4 years ago

I think how this could work is, if a play command is given, first it runs a block of code to check if there is an open playing tab, it pauses the tab then plays the new tab. It looks like something I will love to work on once I am done with my pending requests.