Archived from groups: microsoft.public.pocketpc.multimedia (
More info?)
the following is the script for embedding wmp10 control on PIE /IE
can anyone test this in windows mobile2003 SE Device?
//////////////////////////////
<html>
<head>
<script language="javascript">
function loadplayercontrols()
{
Player.FileName="\\sample.wmv";
Player.ShowControls=1;
player.AutoRewind=1;
player.EnableTracker=0;
player.Volume ="-450";
Player.Play();
}
</script>
</head>
<body onLoad="loadplayercontrols()">
<object id="Player" width="208" height="231" class="back"
classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Loading
Windows Media Player components..." type="application/x-oleobject">
<param name="loop" value="1">
<embed width="208" height="231" loop="1" src="1">
</embed>
</object>
</body>
</html>
//////////////////////////////
--
"eRiva Systems" - Where Technology Meets Life, Every Minute.
arvindr@erivasystems.com
www.erivasystems.com
"Neil Smith [MVP Digital Media]" <neil@nospam.com> wrote in message
news:19hat0hel5uolc8nirautt4ojsj1vd01md@4ax.com...
> On Fri, 31 Dec 2004 14:59:35 +0530, "Arvind"
> <arvinds@erivasystems.com> wrote:
>
> >i have DELL ZXIM X3 PPC 2003 device.
> >and i ahve installed the WMP 8.1 for Pocket IE in it and its working
fine.
> >with this :CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95
>
> The X3 comes with Windows Media 9. I would think you've actually
> installed the WMP7 ActiveX control for Pocket IE.
>
> >and the same isnt working on PPC 2003 SE Devices.
>
> Try CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6
> And change <param name="filename" /> to <param name="url" />
>
> Does it work now ? Please then read the SDK documentation for media
> player 10 on desktop, and use the standard controls and scripting from
> there, it should work is what I've been told.
>
> >the problem is i dont have SE Device to test with me.
>
> No, neither do I. So we're stuck - post the code online and we could
> ask some people on the PPC newsgroups to test it on a SE device.
>
> >will it work rightaway or do i have to install some WMP for PIE soft of
apps
> >to it?
>
> You have to install the ActiveX on WMP for 2002 and 2003 1st edition
> only. WMP10 should have the new OCX control which doesn't need to be
> installed by the user before they view your content.
>
> But instead you *must* detect the version of the browser, and check
> which object to create. You may wish to use a server side script, or a
> client-side browser sniff and document.write() in javascript, to send
> the client PPC the correct object for the WMP version installed on the
> device.
>
>
> >will the following work on
SE?{CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6}
>
> No, because your screen is *not* 320x240, is it ? It might be 640x480
> or 320x240, but then you *have* to take off about 25px on the right
> for scrollbars, and about another 60 or so for screen controls on the
> browser and PPC !
>
> The actual code *should* work though. You need to buy, borrow or
> ^steal^ a WM2003SE device, or ask somebody on a newsgroup to help you
> test it - maybe offer them a free subscription for a year for their
> time ?
>
> ><HTML>
> ><HEAD>
> ></HEAD>
> ><BODY>
> ><OBJECT ID="Player" height="320" width="240"
> > CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
> ></OBJECT>
> ><INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()">
> ><SCRIPT>
> ><!--
> >function StartMeUp ()
> >{
> > Player.uiMode = "none";
> > Player.URL = "laure.wma";
> >}
> >function ShutMeDown ()
> >{
> > Player.controls.stop();
> >}
> >-->
> ></SCRIPT>
> ></BODY>
> ></HTML>
>