Wav文件无法在Metro App中播放 [英] Wav file not playing in Metro App
本文介绍了Wav文件无法在Metro App中播放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我制作了一个简单的音频播放应用。当给出.mp3文件时,它工作正常。但是,当我尝试在C:\ Windows \ Media.\\Windows Ding.wav播放文件时,没有播放声音。我使用的代码在这里:
I have made a simple audio playing app. It works fine when given a .mp3 file to play. However, when i try to play the file at C:\Windows\Media\Windows Ding.wav no sound is played. The code i used is here:
function start() {
var src = "music/beep.wav"; //renamed from 'Windows Ding.wav'
var audio = new Audio(src);
audio.load();
audio.play();
};
想知道可能出现什么问题?
推荐答案
您好
请确保支持您的媒体流格式(编解码器)。
Please make sure your Media Stream Formats(Codecs) is supported.
谢谢。
这篇关于Wav文件无法在Metro App中播放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文