JS Audio does not work with links to audio files

Fixed Issue #7808230

Details

Author
Lena T.
Created
Jun 7, 2016
Privacy
This issue is public.
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Hello!

I found a bug that JS Audio does not work with links to mp3 files. I.e. the following code does not work with me:

var audio = new Audio(‘http://translate.google.com/translate_tts?ie=UTF-8&q=Fool&tl=en&total=1&idx=0&textlen=4&client=dict-chrome-ex&prev=input&ttsspeed=0.5’);
audio.play();

Initially, it was supposed to be run in the background page (doesn’t work), but then I tested it on both pages in the extension context (ms-browser-extension://…) and on regular sites pages (not extension)—the result was the same—it does not work. Sometimes, it is being dropped with a 404 error, it loads the file (according to the network tab) but bails out with an error (according to the attached to Audio onerror-callback) which is not very informative and says there’s only an error.

Attachments

0 attachments

    Comments and activity

      • sometimes, it loads the file
    • Microsoft Edge Team

      Changed Assigned To to “Sermet I.”

      Changed Assigned To to “Venkat K.”

      Changed Assigned To from “Venkat K.” to “Erik A.”

    • First of all, sounds like http://createjs.com/demos/_assets/audio/Game-Break.ogg for some reason work with no problem, but Google links don’t. Secondly, that if I open the Google link (http://translate.google.com/translate_tts?ie=UTF-8&q=Fool&tl=en&total=1&idx=0&textlen=4&client=dict-chrome-ex&prev=input&ttsspeed=0.5) first as a tab and only then try to play it back from JS, it works. Trying to play back without opening as a tab always bails out with an error. Thirdly, I’ve noticed that in Chrome JS Audio loads the file with regular user-agent headers (Mozilla/5.0 … Chrome XXX…), Edge in its turn with something like „Audioplayer“.

    • First of all, sounds like http://createjs.com/demos/_assets/audio/Game-Break.ogg for some reason work with no problem, but Google links don’t. Secondly, that if I open the Google link (http://translate.google.com/translate_tts?ie=UTF-8&q=Fool&tl=en&total=1&idx=0&textlen=4&client=dict-chrome-ex&prev=input&ttsspeed=0.5) first as a tab and only then try to play it back from JS, it works. Trying to play back without opening as a tab always bails out with an error. Thirdly, I’ve noticed that in Chrome JS Audio loads the file with regular user-agent headers (Mozilla/5.0 … Chrome XXX…), Edge in its turn with something like „Audioplayer“.

    • Microsoft Edge Team

      Changed Assigned To from “Erik A.” to “Alexey K.”

      Changed Status to “Confirmed”

    • Hi Lena, thanks for your feedback!

       

      We were able to confirm your reports and believe
      we have isolated why the issue is occurring. Thankfully we believe this may be
      fixed in a future flight, but cannot currently say when a fix might be
      available.

    • Microsoft Edge Team

      Changed Status from “Confirmed” to “In progress”

      Changed Status from “In progress” to “Fixed”

    • We have fixed this issue in the latest Insider Build. Thank you again for reporting this bug.

    You need to sign in to your Microsoft account to add a comment.

    Sign in