【问题标题】:How to play ogg file in HTML in IPAD safari?如何在 IPAD Safari 中以 HTML 格式播放 ogg 文件?
【发布时间】:2013-05-13 18:01:56
【问题描述】:

我想在 IPAD safari 中播放 ogg 文件。 ogg 文件必须包含在 HTML 文件中。 在 Mac OS safari 中,ogg 文件可以正常播放。 但是,在 iPad Safari 中,ogg 文件没有播放。 如何解决这个问题?

<body>
    <div class="gm4html5_div_class" id="gm4html5_div_id">
        <!-- Create the canvas element the game draws to -->
        <canvas id="canvas" width="640" height="480">
           <p>Your browser doesn't support HTML5 canvas.</p>
        </canvas>
    </div>

    <!-- Run the game code -->
    <script type="text/javascript" src="sndtest/index.js?FPLYB=1677165635"></script>
    <audio preload="auto" networkstate="0"><source src="sndtest/sound0.ogg" type="audio/ogg" codecs="vorbis"></audio>
    <audio preload="auto" networkstate="0"><source src="sndtest/sound1.ogg" type="audio/ogg" codecs="vorbis"></audio>
</body>

【问题讨论】:

    标签: javascript html ipad safari


    【解决方案1】:

    显然, 你不能这样做,Safari 支持的唯一文件是 Quicktime 可以播放的文件,请参阅: What audio file types (e.g., mp3, ogg) are supported by Mobile Safari and HTML5 iOS web apps?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-02
      • 2020-09-24
      • 2010-12-27
      • 1970-01-01
      • 1970-01-01
      • 2011-05-04
      相关资源
      最近更新 更多