Windows XP中的QT WebKit无法播放音频



我在Windows XP中通过qt webkithtml 5 aduio在CC_1中播放音频有问题。我正在使用Visual Studio 2013和QT 5.5.1。

index.hpp中的以下代码在Windows XP中不起作用。

<script type="text/javascript">
    var audio = new Audio('c:\test.wav');
    audio.play();
</script>

<audio controls>
  <source src="'c:\test.wav'" type="audio/wav">
  <source src="'c:\test.mp3'" type="audio/mpeg">
  Your browser does not support the audio tag.
</audio> 

它在Windows 7中起作用,但XP不起作用,有趣的是,我看不到您的浏览器不支持音频标签。"通过Windows XP运行时的消息。

发生了什么事?

它在XP上不支持。缺乏支持不会导致显示<audio>标签的内容。仅此而已。

最新更新