Is it possible to use data URIs in video and audio tags?

后端 未结 5 2043
無奈伤痛
無奈伤痛 2020-11-30 04:42

Assuming the following:

  1. The browser in question doesn\'t limit the size of data URIs.
  2. There is actually a purpose to doing this (so please refrain fro
5条回答
  •  佛祖请我去吃肉
    2020-11-30 05:07

    These are my test results. I'll try with Ogg as well if prompted.

    Legend

    • W = Wave, WD = Wave with base64 encoded data:uri
    • M = MP3, MD = MP3 with base64 encoded data:uri

    Test results

    • Chrome 6.0.472.55: M, MD (no wave)
    • Firefox 3.6: W, WD (no mp3:s)
    • Firefox 4.0b1: W, WD (no mp3:s)
    • iPad iOS 3.2: W, M (no data:uri)
    • iPhone iOS 4: W, M (no data:uri)
    • Opera 10.62: W, WD (no mp3:s)
    • Safari 5.0.1: W, WD, M, MD

提交回复
热议问题