Does HTML5 audio tag support serving mp3s from another domain?

前端 未结 4 1287
误落风尘
误落风尘 2020-12-18 23:54

So I am having a web application with domian \"www.example.com\" that needs to serve audio from \"www.example2.com\", but for some reason this is not working (the audio just

4条回答
  •  旧巷少年郎
    2020-12-19 00:22

    Apparently I cannot vote up CyberK's response (don't have the reputation yet to do so) but I agree with him. You cannot do or cross-domain. I have tried this exact thing on both Chrome and Firefox. There are more than a couple of articles about this. Finding this out for myself today; not happy with the restriction.

    http://www.bluishcoder.co.nz/2008/11/video-audio-and-cross-domain-usage.html

提交回复
热议问题