SamsungInternet / support

For general Samsung Internet support. You can use the Issues register here as a way to ask support questions.
MIT License
17 stars 0 forks source link

calling play() on <audio> with src from Blob returns Promise that never resolves #78

Closed ckundo closed 4 years ago

ckundo commented 5 years ago

Calling play() on an audio tag with src set to a Blob URL returns a Promise that never completes. This looks like a regression after upgrading to Samsung Internet 8.2, from what we can tell.

<audio src="" />

<script>
  function handler() {
    var el = document.querySelector("audio");
    el.load();

    fetch("https://archive.org/download/testmp3testfile/mpthreetest.mp3", {
      method: "get",
    }).then(function (response) {
      return response.blob();
    }).then(function (blob) {
      el.src = URL.createObjectURL(blob);
      return el.play();
    }).then(function () {
      console.log("never resolves");
    }).catch(function (err) {
      console.log("never rejects");
    });
  }

  document.body.addEventListener("click", handler);
</script>

^^ example modeled on https://developers.google.com/web/updates/2017/06/play-request-was-interrupted

PicchiKevin commented 4 years ago

Hi, Thank you for opening this issue. We are currently migrating our support channel to the Samsung Developer Forum. If you are still experiencing this issue I'd highly recommend re-opening it here please https://forum.developer.samsung.com/c/samsung-internet/

Thanks again, -Kevin