Stop audio buffering in the <audio> tag

前端 未结 3 1559
我寻月下人不归
我寻月下人不归 2021-02-18 23:24

I am currently working in using the HTML5 audio player to provide a audio stream (24/7 radio stream) via the (mobile) browser. Loading in the stream and playing it works fine. <

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-19 00:27

    The element includes a preload attribute. This can be set to "none" or "metadata" which should prevent the audio preloading.

    Source: https://developer.mozilla.org/en/docs/Web/HTML/Element/audio

提交回复
热议问题