I'm trying to using the embedded window media player in MVC to play .wav files. I'm pretty much succeeded in playing all the other formats but somehow .wav files (which i actually need ) are messing it up and WMP is not playing them below is my code. In View
<object id="mediaPlayer" type="application/x-oleobject" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="URL" value="" />
<param name="enabled" value="true" />
<param name="animationatStart" value="1" />
<param name="transparentatStart" value="true" />
<param name="autoStart" value="false" />
<param name="showControls" value="true" />
<param name="Volume" value="-300" />
<param name="ShowDisplay" value="0"/>
<param name="ShowGotoBar" value="0"/>
<param name="ShowControls" value="1"/>
<param name="ShowAudioControls" value="1"/>
</object>
and this is my javascript code
document.getElementById("mediaPlayer").URL = "E:\\HyperEngine\\Recordings\\20141223_193917_026_00_000.WAV";
document.getElementById("mediaPlayer").controls.play();
everything is fair and good if i give the path of and mp3 file but wav file.anybody's help is really appreciated. P.S: I know I can also use other media players, this using WMP is the specific requirement so I have to find a solution to this..
Aucun commentaire:
Enregistrer un commentaire