-1

I have a web site that plays sounds using html5 <audio> element, and it working grate on almost all environments. However on 2 of our QA machines this line of code throw an exception

new Audio();

The exception is "Not implemented"

This happen on both IE11 and on Edge on 2 machines that runs:
1. Window 10 Pro N
2. Window 10 Enterprise N

On Chrome on these machines it working fine.

This issue was tested on different Windows versions (7, 8, 8.1 and 10), and it works grate. According to IE support table (see https://www.w3schools.com/html/html5_audio.asp) audio element is supported from IE-9 so I don't think this is an IE issue, in addition this also not working in Edge on these machines, so I think this is an OS issue.

enter image description here

Gil Epshtain
  • 8,670
  • 7
  • 63
  • 89
  • Media Feature Pack is only one suggestion in the other question. Have you tried the other ones? – JJJ Nov 23 '17 at 16:26
  • 1
    Possible duplicate of [new Audio() not Implemented in Internet explorer](https://stackoverflow.com/questions/30061898/new-audio-not-implemented-in-internet-explorer) – Matt Fletcher Nov 23 '17 at 16:27
  • 1
    If you _really_ need an answer, I'd suggest putting a small bounty on the other question. – Matt Fletcher Nov 23 '17 at 16:29
  • Is this experienced on multiple different computers? – S. Walker Nov 23 '17 at 16:33
  • This isn't a duplication, since I'm not working on windows server, in addition the solutions on that question don't solve my problem. In addition I've linked the 2nd question to my question, to show the difference between them. – Gil Epshtain Nov 23 '17 at 19:45
  • I've tested this issue on a lot of machines, running Window 7, 8 and 10. And I'm always working on IE11 and it works all the time except on this 2 machines. I can't understand what is so spacial about them, and I can find any work around – Gil Epshtain Nov 23 '17 at 19:46
  • 1
    Did you try creating the element like: `var audio = document.createElement("audio");`? –  Nov 23 '17 at 22:35
  • Are there any plugins/extensions that could ovewrite this constructor? What does `console.log(Audio)` outputs? And indeed, does createElement('audio') or even createElement('video') throw the same error? What if you pass a valid URL to this constructor? – Kaiido Nov 24 '17 at 00:39
  • console.log(Audio) will output "function Audio() { [native code] }" passing a url to the contractor - new Audio("....fileName.mp3") - will result to the same exception - "not implemented" – Gil Epshtain Nov 26 '17 at 11:23

1 Answers1

1

According to Microsoft, Windows versions that ends with N or KN are editions of Windows that are missing media-related features (for example Window Media Player, Groove Music, Video, Voice Recorder, and Skype).

In addition to these media related features Internet Explorer as well as Microsoft Edge are missing Audio and Video elements (and other media components).

In order of adding these features back to Windows you will have to install Windows Update Pack: Media feature pack for Windows 10 N and Windows 10 KN editions.

Once you have installed this update, all should work fine.

Gil Epshtain
  • 8,670
  • 7
  • 63
  • 89