Click here to get back home

How to embed windows media player in smartphone 2005 application using C#

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to embed windows media player in smartphone 2005 application using C# Lokesh Sharma 09-26-2007
Get Chitika Premium
Posted by Lokesh Sharma on September 26, 2007, 12:19 pm
Please log in for more thread options
Hello Everybody,
I am new to C# as well as windows mobile smartphone.
I am trying to embed windows media player in my
application. I found few good links like

http://msdn2.microsoft.com/en-us/library/aa446523.aspx
http://msdn2.microsoft.com/en-us/library/aa446515.aspx

http://msdn2.microsoft.com/en-us/library/bb249583.aspx
http://msdn2.microsoft.com/en-us/library/bb248590.aspx
http://msdn2.microsoft.com/en-us/library/bb248593.aspx

but still i am unable to do so.
I am using Motorola Q device which is having windows
media player 10.

Can anybody tell me steps to perform to use windows
media player in my application.


Thanks in anticipation.


Thanks and Regards,
Lokesh Sharma



Posted by tchill on September 27, 2007, 9:44 am
Please log in for more thread options
> Hello Everybody,
> I am new to C# as well as windows mobile smartphone.
> I am trying to embed windows media player in my
> application. I found few good links like
>
> http://msdn2.microsoft.com/en-us/library/aa446523.aspx
> http://msdn2.microsoft.com/en-us/library/aa446515.aspx
>
> http://msdn2.microsoft.com/en-us/library/bb249583.aspx
> http://msdn2.microsoft.com/en-us/library/bb248590.aspx
> http://msdn2.microsoft.com/en-us/library/bb248593.aspx
>
> but still i am unable to do so.
> I am using Motorola Q device which is having windows
> media player 10.
>
> Can anybody tell me steps to perform to use windows
> media player in my application.
>
> Thanks in anticipation.
>
> Thanks and Regards,
> Lokesh Sharma

I found Alex Feinman's webcast & source code very helpful:
http://blog.opennetcf.org/afeinman/default,date,2005-08-25.aspx

Regards
Tom


Posted by Lokesh Sharma on October 3, 2007, 9:35 am
Please log in for more thread options
Hello Mr. Tom,
Thank you very much for your support. I can use
windows media player programmatically. But still the Active X control is not
active.
I did following:

1. To get AxWMPLib.cs, I run following command on Visual
Studio Command prompt.

aximp c:\WINDOWS\system32\wmp.dll /source

2. I added references to 'WMPLib.dll'. Compiler was
giving error so I added reference to 'Microsoft.WindowsCE.Forms'.

3. I added following files in the project to get it
compiled (files are provided with the source code available with the
webcast)
a. AxHost.cs.
b. AxHost.xmta.
c. AxImpSupport.cs
d. AxWMPLib.cs
e. NativeInterfaces.cs
f. OleSite.cs
g. TypeHelper.cs

4. I put the references to
'System.Runtime.InteropServices' and 'AxWMPLib' by writing following code
at start :
using System.Runtime.InteropServices;

using AxWMPLib;

5. I created an instance of
'AxWMPLib.AxWindowsMediaPlayer'.



Still I am unable to use Active X
control. Will you help me to find the problem?




>> Hello Everybody,
>> I am new to C# as well as windows mobile
>> smartphone.
>> I am trying to embed windows media player in my
>> application. I found few good links like
>>
>>
>> http://msdn2.microsoft.com/en-us/library/aa446523.aspx
>>
>> http://msdn2.microsoft.com/en-us/library/aa446515.aspx
>>
>>
>> http://msdn2.microsoft.com/en-us/library/bb249583.aspx
>>
>> http://msdn2.microsoft.com/en-us/library/bb248590.aspx
>>
>> http://msdn2.microsoft.com/en-us/library/bb248593.aspx
>>
>> but still i am unable to do so.
>> I am using Motorola Q device which is having
>> windows
>> media player 10.
>>
>> Can anybody tell me steps to perform to use
>> windows
>> media player in my application.
>>
>> Thanks in anticipation.
>>
>> Thanks and Regards,
>> Lokesh Sharma
>
> I found Alex Feinman's webcast & source code very helpful:
> http://blog.opennetcf.org/afeinman/default,date,2005-08-25.aspx
>
> Regards
> Tom
>



Similar ThreadsPosted
How to Catch Windows Media Player Buttons (Previous, Play/Pause, Next ) on smartphone 2005 ? December 9, 2005, 10:21 am
WMP 10: Embedding Media Player in a Smartphone application June 24, 2006, 9:40 pm
using windows media player SDK from VC++ on a smartphone November 29, 2005, 4:25 pm
Windows Media player Mobile 10 (SmartPhone 5.0) June 21, 2006, 3:03 pm
Is plugin for media codec is possible in Windows media player - Mo October 13, 2006, 2:33 am
Embed WM Player into HTML page 4 smartphone visitors April 30, 2006, 9:37 pm
How to make a Windows Media Player Plugin for Windows Mobile ? January 4, 2008, 7:17 am
Windows Media Player ActiveX Control September 18, 2005, 8:53 pm
DirectShow Filters and windows media player October 30, 2006, 2:28 am
Notification when windows media player is closed July 30, 2007, 6:23 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap