I'm trying to get an embedded media player in an HTA application.
On Windows XP I was able to do this; now on Vista I get several exceptions
when I start playing the wmv file:
"Windows - Bad Image; Exception Processing Message 0xc000007b Parameters
........."
The code below works without exceptions if I start it as HTML. When I run it
as HTA, and start playing a video file (using mediaPlayer.URL="video.wmv"),
first I get several exceptions, and the video starts playing.
Exactly the same code works on Windows XP (as HTA and as HTML).
Please help.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<span id="mediaPlayerSpan" >
<object id="mediaPlayer" height="348" width="658"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="uiMode" value="none" />
<param name="stretchToFit" value="false" />
</object>
</span>
<script type="text/javascript">
<!--
mediaPlayer.URL="video.wmv";
-->
</script>
</body>
</html>