Sign in with
Sign up | Sign in
Your question

WMP10 OCX / PIE / WMV playback problem.

Last response: in Cell Phones & Smartphones
Share
Anonymous
February 21, 2005 5:46:14 AM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Hi,
No video display (black window) when trying a local playback of wmv file in PIE.
The toolbar shows up, though.
Finally tried to move wmv from external media to My Documents, with modified path, still no luck.
Nothing wrong with the video itself (wmv8/wma8), runs fine in WMP10.

Hoping for a basic WMP10 OCX/PIE sample !

Hardware: Dell Axim X30 upgraded A05 ROM (WMP10)

Tried various versions stolen from this forum:

----------------------

<html>
<head>
<script language="javascript">

function loadplayercontrols()
{

Player.FileName="\\test.wmv";
Player.ShowControls=1;
player.AutoRewind=1;
player.EnableTracker=0;
player.Volume ="-450";
Player.Play();
}
</script>

</head>

<body onLoad="loadplayercontrols()">
<object id="Player" width="200" height="200" 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="200" height="200" loop="1" src="1">
</embed>
</object>

</body>
</html>

----------------------

Also tried this one:

----------------------

<HTML>

<HEAD>
<script language="javascript">
function loadplayercontrols()
{
Player.FileName="\\test.wmv";
Player.Play();
}
</script>
</HEAD>
<Body onLoad="loadplayercontrols()" BGColor = "#0">
<object id="Player" width="200" height="200" class="back"
classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
standby="Loading Windows Media Player components..."
type="application/x-oleobject">
</object>
</BODY>

</HTML>

----------------------

Any help appreciated.

/Thomas

--
Message posted via http://www.pocketpcjunkies.com
Anonymous
February 21, 2005 10:54:02 PM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

I think your paths are wrong : The examples you've provided are
effectively setting the path to the root of the device, not \My
Documents (which would be "\\My Documents\\test.wmv" in javascript
(because you escape the 1st \ character with a second).

And since this is media player 10, you can go back to using the
<param> tag for the filename (it didn't work in WMP9 embedded control
cause the player control was broken). So you should be able to use

<param name="url" value="\My Documents\test.wmv" />

Note in HTML you're *not* escaping the backslash character, you just
use it as-is. Also note that for WMP10 you now use the same as the
desktop player, param name="url" rather than the older param
name="filename" which was used for the WMP7,8,9 players on PPC.

One thing to note is that the <embed> isn't supported in Pocket IE and
is somewhere between redundant and may cause errors. Finally, try to
validate your HTML I saw a few errors in there, notably using
bgcolor="#0" which isn't a valid colour value - use either 3 or 6 hex
digits, anything else may cause unpredictable behaviour in the
browser.

Cheers - Neil


On Mon, 21 Feb 2005 02:46:14 GMT, "Thomas Simonsen via
PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote:

>Hi,
>No video display (black window) when trying a local playback of wmv file in PIE.
>The toolbar shows up, though.
>Finally tried to move wmv from external media to My Documents, with modified path, still no luck.
>Nothing wrong with the video itself (wmv8/wma8), runs fine in WMP10.
>
>Hoping for a basic WMP10 OCX/PIE sample !
>
>Hardware: Dell Axim X30 upgraded A05 ROM (WMP10)
>
>Tried various versions stolen from this forum:
>
>----------------------
>
><html>
><head>
><script language="javascript">
>
>function loadplayercontrols()
>{
>
>Player.FileName="\\test.wmv";
>Player.ShowControls=1;
>player.AutoRewind=1;
>player.EnableTracker=0;
>player.Volume ="-450";
>Player.Play();
>}
></script>
>
></head>
>
><body onLoad="loadplayercontrols()">
> <object id="Player" width="200" height="200" 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="200" height="200" loop="1" src="1">
> </embed>
> </object>
>
></body>
></html>
>
>----------------------
>
>Also tried this one:
>
>----------------------
>
><HTML>
>
><HEAD>
><script language="javascript">
>function loadplayercontrols()
>{
>Player.FileName="\\test.wmv";
>Player.Play();
>}
></script>
></HEAD>
><Body onLoad="loadplayercontrols()" BGColor = "#0">
><object id="Player" width="200" height="200" class="back"
>classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
>standby="Loading Windows Media Player components..."
>type="application/x-oleobject">
></object>
></BODY>
>
></HTML>
>
>----------------------
>
>Any help appreciated.
>
>/Thomas
Anonymous
February 25, 2005 4:00:29 AM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Thanks Neil, got it working with the following code:

<html>
<body bgcolor="#FFFFFF">
<object id="MediaPlayer" width="200" height="200" class="back"
classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Loading
Windows Media Player components..." type="application/x-oleobject">
<param name="url" value="\Storage Card\Mediaplayer\test.wmv" />
<param name="controller" value="true" />
<param name="autoplay" value="true" />
</object>
</body>
</html>

Two things left:

How do I remove the toolbar ?
Setting <param name="controller" value="false" /> doesn't help, neither does <param name="showControls" value="false" />

Furthermore, opening the page gives me an "Press OK to continue loading the content of this page" every time - very annoying. Any clue ?

Thank you for your help so far.

/Thomas

--
Message posted via http://www.pocketpcjunkies.com
Related resources
Can't find your answer ? Ask !
Anonymous
February 25, 2005 1:55:53 PM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Obviously since I can't test this here without a PPC having WMP10 on
it it's a guess. But it should work if you change controller param to

<param name="uimode" value="none" />

At least, that works for the desktop version. Maybe you can post a
screenshot of it works for you ?

Cheers - Neil

On Fri, 25 Feb 2005 01:00:29 GMT, "Thomas Simonsen via
PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote:

>Thanks Neil, got it working with the following code:
>
><html>
><body bgcolor="#FFFFFF">
><object id="MediaPlayer" width="200" height="200" class="back"
>classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Loading
>Windows Media Player components..." type="application/x-oleobject">
><param name="url" value="\Storage Card\Mediaplayer\test.wmv" />
><param name="controller" value="true" />
><param name="autoplay" value="true" />
></object>
></body>
></html>
>
>Two things left:
>
>How do I remove the toolbar ?
>Setting <param name="controller" value="false" /> doesn't help, neither does <param name="showControls" value="false" />
>
>Furthermore, opening the page gives me an "Press OK to continue loading the content of this page" every time - very annoying. Any clue ?
>
>Thank you for your help so far.
>
>/Thomas
Anonymous
March 8, 2005 11:57:20 PM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Hi Neil,

I really need your help!

I?ve tried the following:

I made a .htm file which then calls a .js file. The .js file writes the
html code to show the movie.

It all seems to work fine except for the path to the .wmv file.

The path to the .wmv file is fine when I don?t use the .js file.

Please help me, I?m going mad!!!

The code looks like this.

The .htm file:

<html>
<body bgcolor="#FFFFFF">
<script src="foo.js" language="JavaScript" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">RunFoo();</script>
</body>
</html>

The .js file:

function RunFoo()
{
document.write("Hej med dig.");
document.write("<object width='200' height='200' type='application/x-
oleobject' id='MediaPlayer' classid='CLSID:6BF52A52-394A-11D3-B153-
00C04F79FAA6'>");
document.write("<param name='url' value='\Storage%20Card\Mediaplayer\
300.wmv' />");
document.write("<param name='uimode' value='none' />");
document.write("<param name='autoplay' value='true' />");
document.write("</object>");
}

--
Message posted via http://www.pocketpcjunkies.com
Anonymous
March 9, 2005 12:10:52 AM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Thomas,

I believe you need to use double slash (\\) in JavaScript strings.

[skipped]
document.write("<param name='url' value='\\Storage%20Card\\Mediaplayer\\
300.wmv' />");
[skipped]

--
Message posted via http://www.pocketpcjunkies.com
Anonymous
March 9, 2005 2:30:07 AM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Look at my first post ! I explained you need to double those
backslashes for javascript, but not for HTML ;-)

Cheers - Neil

On Tue, 08 Mar 2005 20:57:20 GMT, "Thomas Simonsen via
PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote:

>Hi Neil,
>
>I really need your help!
>
>I?ve tried the following:
>
>I made a .htm file which then calls a .js file. The .js file writes the
>html code to show the movie.
>
>It all seems to work fine except for the path to the .wmv file.
>
>The path to the .wmv file is fine when I don?t use the .js file.
>
>Please help me, I?m going mad!!!
>
>The code looks like this.
>
>The .htm file:
>
><html>
><body bgcolor="#FFFFFF">
><script src="foo.js" language="JavaScript" type="text/javascript"></script>
><script language="JavaScript" type="text/javascript">RunFoo();</script>
></body>
></html>
>
>The .js file:
>
>function RunFoo()
>{
>document.write("Hej med dig.");
>document.write("<object width='200' height='200' type='application/x-
>oleobject' id='MediaPlayer' classid='CLSID:6BF52A52-394A-11D3-B153-
>00C04F79FAA6'>");
>document.write("<param name='url' value='\Storage%20Card\Mediaplayer\
>300.wmv' />");
>document.write("<param name='uimode' value='none' />");
>document.write("<param name='autoplay' value='true' />");
>document.write("</object>");
>}
Anonymous
March 12, 2005 5:29:03 AM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Thanks Neil and Michael - everything runs fine now !

/Thomas

--
Message posted via http://www.pocketpcjunkies.com
Anonymous
March 12, 2005 4:29:14 PM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

Hooray ! ;-)
Cheers - Neil

On Sat, 12 Mar 2005 02:29:03 GMT, "Thomas Simonsen via
PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote:

>Thanks Neil and Michael - everything runs fine now !
>
>/Thomas
Anonymous
March 14, 2005 6:57:56 PM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

can i use similar approch for wmp for pocket ie Object model 6.4 also?

im planning to use on 2003 SE Devices to avoid message alerts.

any sample code for it?

--
----------------------------------------------------------------------------
------------------------------------
"eRiva Systems" - Where Technology Meets Life, Every Minute.

e-Mail : arvindr@erivasystems.com

Web Site: www.erivasystems.com

Yahoo Messenger : arvish27
"Neil Smith [MVP Digital Media]" <neil@nospam.com> wrote in message
news:4ts531pna5b18qk92ovlrhgn35c7h918m5@4ax.com...
> Hooray ! ;-)
> Cheers - Neil
>
> On Sat, 12 Mar 2005 02:29:03 GMT, "Thomas Simonsen via
> PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote:
>
> >Thanks Neil and Michael - everything runs fine now !
> >
> >/Thomas
>
Anonymous
March 14, 2005 6:57:57 PM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

If pocket IE acts like a 'proper' browser, you should be able to embed
one <object> inside another. If the first object's classid isn't
valid, the browser *should* according to the W3C, try the next nested
object inside, finally falling back to the Text inside the object tags
if none of the objects are supported. eg

<object classid="bla">
<param name="bla" />
<object classid="bla2">
<param name="bla2" />
<!-- Default text displayed if all the object classids
are not supported -->
These embeds are not supported
</object>
</object>

So what do you reckon the chances PIE works as specified ?
Cheers - Neil

On Mon, 14 Mar 2005 15:57:56 +0530, "Arvind" <arvind
r@erivasystems.com> wrote:

>can i use similar approch for wmp for pocket ie Object model 6.4 also?
>
>im planning to use on 2003 SE Devices to avoid message alerts.
>
>any sample code for it?
Anonymous
March 14, 2005 7:10:26 PM

Archived from groups: microsoft.public.pocketpc.multimedia (More info?)

can u share your working code?

for reference


Thanks,

Arvind

--
----------------------------------------------------------------------------
------------------------------------
"eRiva Systems" - Where Technology Meets Life, Every Minute.

e-Mail : arvindr@erivasystems.com

Web Site: www.erivasystems.com

Yahoo Messenger : arvish27
"Thomas Simonsen via PocketPCJunkies.com" <forum@PocketPCJunkies.com> wrote
in message news:82a1e251a04f467a9b9d0ace9755541f@PocketPCJunkies.com...
> Thanks Neil and Michael - everything runs fine now !
>
> /Thomas
>
> --
> Message posted via http://www.pocketpcjunkies.com
!