new Audio() not Implemented in Internet explorer

前端 未结 2 2025
甜味超标
甜味超标 2021-01-12 19:23

I am trying to play an array of mp3 sound. I have an audio file in my html and get it using document.CreateElement() in my JavaScript.

When I try to set

2条回答
  •  萌比男神i
    2021-01-12 20:12

    I was working in a windows server and I had the same problem playing MP3 audios in internet explorer.

    The only solution I found was installing the "Desktop Experience Feature" in my server.

    Start -> Search for "Server manager" -> Features -> Add features -> Select "Desktop experience" -> Next and Install

    Once installation is completed, you need to restart the computer and then the feature gets enabled.

提交回复
热议问题