Possible to analyze streaming audio from Icecast using Web Audio API and createMediaElementSource?

后端 未结 2 1303
忘掉有多难
忘掉有多难 2021-02-04 15:18

Using the Web Audio API and createMediaElement method you can use a typed array to get frequency data from audio playback in an element and it works i

2条回答
  •  萌比男神i
    2021-02-04 15:59

    Still not working with Safari and iOS Chrome (which is using Apple WebKit?). Other browsers seem to be fine now. Audio plays fine, CORS is ok - yet Analyser is not working.

    This fiddle (not mine) demonstrates the behavior well. Latter uri gets analysed, former not:

      const url = useStream
      ? 'https://c2.radioboss.fm:18071/stream'
      : 'https://twgljs.org/examples/sounds/DOCTOR%20VOX%20-%20Level%20Up.mp3';
    

    Related question in Apple forum (no answers)

提交回复
热议问题