MSDOTnet.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to minimize the media player?

 
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> Compact Framework
Author Message
Freesc



Joined: 07 Jan 2008
Posts: 8

PostPosted: Fri Feb 15, 2008 6:15 pm    Post subject: How to minimize the media player? Reply with quote

Hi,there~

i'm writing an application that needs the WMP running at background.

i'm using C# to start a new process for media player,but i don't know
how to minimize the player at the very beginning.

any suggestion about that ?

thanks in advance Smile

Archived from group: microsoft>public>dotnet>framework>compactframework
Back to top
View user's profile Send private message
Peter Foot



Joined: 01 Sep 2007
Posts: 14

PostPosted: Sun Feb 17, 2008 2:31 am    Post subject: Re: How to minimize the media player? Reply with quote

You could bring your own form to the foreground after launching WMP, perhaps
on a thread with a short sleep in it to give the process a chance to get
started before you switch back to your application.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"Freesc" wrote in message @i7g2000prf.googlegroups.com...
> Hi,there~
>
> i'm writing an application that needs the WMP running at background.
>
> i'm using C# to start a new process for media player,but i don't know
> how to minimize the player at the very beginning.
>
> any suggestion about that ?
>
> thanks in advance Smile
Back to top
View user's profile Send private message
Freesc



Joined: 07 Jan 2008
Posts: 8

PostPosted: Sun Feb 17, 2008 5:04 am    Post subject: Re: How to minimize the media player? Reply with quote

On Feb 17, 5:31 am, "Peter Foot"
wrote:
> You could bring your own form to the foreground after launching WMP, perhaps
> on a thread with a short sleep in it to give the process a chance to get
> started before you switch back to your application.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "Freesc" wrote in message
>
> @i7g2000prf.googlegroups.com...
>
>
>
> > Hi,there~
>
> > i'm writing an application that needs the WMP running at background.
>
> > i'm using C# to start a new process for media player,but i don't know
> > how to minimize the player at the very beginning.
>
> > any suggestion about that ?
>
> > thanks in advance   Smile- Hide quoted text -
>
> - Show quoted text -

That's it ! ! it works!

Thanks Peter !!

And other problem is how to triggle an even when the track is played
to the end. I can't find any API to do this .

However , thank you again, Peter~

Smile
Back to top
View user's profile Send private message
user



Joined: 08 Aug 2007
Posts: 286

PostPosted: Sun Feb 17, 2008 1:44 pm    Post subject: Re: How to minimize the media player? Reply with quote

You can't know when MP is done - it doesn't have events for that sort of
thing. If you need control over the playback, you're better off using the
Media Plaer ActiveX control in your application (in which case you never
need to hide Media Player anyway).


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"Freesc" wrote in message @i12g2000prf.googlegroups.com...
On Feb 17, 5:31 am, "Peter Foot"
wrote:
> You could bring your own form to the foreground after launching WMP,
> perhaps
> on a thread with a short sleep in it to give the process a chance to get
> started before you switch back to your application.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development
> MVPwww.peterfoot.net|www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "Freesc" wrote in message
>
> @i7g2000prf.googlegroups.com...
>
>
>
> > Hi,there~
>
> > i'm writing an application that needs the WMP running at background.
>
> > i'm using C# to start a new process for media player,but i don't know
> > how to minimize the player at the very beginning.
>
> > any suggestion about that ?
>
> > thanks in advance Smile- Hide quoted text -
>
> - Show quoted text -

That's it ! ! it works!

Thanks Peter !!

And other problem is how to triggle an even when the track is played
to the end. I can't find any API to do this .

However , thank you again, Peter~

Smile
Back to top
View user's profile Send private message
Freesc



Joined: 07 Jan 2008
Posts: 8

PostPosted: Sun Feb 17, 2008 3:52 pm    Post subject: Re: How to minimize the media player? Reply with quote

On Feb 17, 10:44 pm, "" wrote:
> You can't know when MP is done - it doesn't have events for that sort of
> thing.  If you need control over the playback, you're better off using the
> Media Plaer ActiveX control in your application (in which case you never
> need to hide Media Player anyway).
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded communityhttp://community.OpenNETCF.com
>
> "Freesc" wrote in message
>
> @i12g2000prf.googlegroups.com...
> On Feb 17, 5:31 am, "Peter Foot"
> wrote:
>
>
>
>
>
> > You could bring your own form to the foreground after launching WMP,
> > perhaps
> > on a thread with a short sleep in it to give the process a chance to get
> > started before you switch back to your application.
>
> > Peter
>
> > --
> > Peter Foot
> > Microsoft Device Application Development
> > MVPwww.peterfoot.net|www.inthehand.com
> > In The Hand Ltd - .NET Solutions for Mobility
>
> > "Freesc" wrote in message
>
> >@i7g2000prf.googlegroups.com...
>
> > > Hi,there~
>
> > > i'm writing an application that needs the WMP running at background.
>
> > > i'm using C# to start a new process for media player,but i don't know
> > > how to minimize the player at the very beginning.
>
> > > any suggestion about that ?
>
> > > thanks in advance Smile- Hide quoted text -
>
> > - Show quoted text -
>
> That's it ! !   it works!
>
> Thanks Peter !!
>
> And other problem is how to triggle an even when the track is played
> to the end. I can't find any API to do this .
>
> However , thank you again, Peter~
>
> Smile- Hide quoted text -
>
> - Show quoted text -

Thanks a lot ,Chris

I'll try it If the mediaplayerX can provide something like the length
of a playing track.
Back to top
View user's profile Send private message
user



Joined: 08 Aug 2007
Posts: 286

PostPosted: Mon Feb 18, 2008 2:39 am    Post subject: Re: How to minimize the media player? Reply with quote

It can. That's how Media Player itself shows that information.


--

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com


"Freesc" wrote in message @s19g2000prg.googlegroups.com...
On Feb 17, 10:44 pm, "" wrote:
> You can't know when MP is done - it doesn't have events for that sort of
> thing. If you need control over the playback, you're better off using the
> Media Plaer ActiveX control in your application (in which case you never
> need to hide Media Player anyway).
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded communityhttp://community.OpenNETCF.com
>
> "Freesc" wrote in message
>
> @i12g2000prf.googlegroups.com...
> On Feb 17, 5:31 am, "Peter Foot"
> wrote:
>
>
>
>
>
> > You could bring your own form to the foreground after launching WMP,
> > perhaps
> > on a thread with a short sleep in it to give the process a chance to get
> > started before you switch back to your application.
>
> > Peter
>
> > --
> > Peter Foot
> > Microsoft Device Application Development
> > MVPwww.peterfoot.net|www.inthehand.com
> > In The Hand Ltd - .NET Solutions for Mobility
>
> > "Freesc" wrote in message
>
> >@i7g2000prf.googlegroups.com...
>
> > > Hi,there~
>
> > > i'm writing an application that needs the WMP running at background.
>
> > > i'm using C# to start a new process for media player,but i don't know
> > > how to minimize the player at the very beginning.
>
> > > any suggestion about that ?
>
> > > thanks in advance Smile- Hide quoted text -
>
> > - Show quoted text -
>
> That's it ! ! it works!
>
> Thanks Peter !!
>
> And other problem is how to triggle an even when the track is played
> to the end. I can't find any API to do this .
>
> However , thank you again, Peter~
>
> Smile- Hide quoted text -
>
> - Show quoted text -

Thanks a lot ,Chris

I'll try it If the mediaplayerX can provide something like the length
of a playing track.
Back to top
View user's profile Send private message
Freesc



Joined: 07 Jan 2008
Posts: 8

PostPosted: Mon Feb 18, 2008 5:21 am    Post subject: Re: How to minimize the media player? Reply with quote

On Feb 18, 11:39 am, "" wrote:
> It can.  That's how Media Player itself shows that information.
>
> --
>
> Chris Tacke, Embedded MVP
> OpenNETCF Consulting
> Giving back to the embedded communityhttp://community.OpenNETCF.com
>
> "Freesc" wrote in message
>
> @s19g2000prg.googlegroups.com...
> On Feb 17, 10:44 pm, "" wrote:
>
>
>
>
>
> > You can't know when MP is done - it doesn't have events for that sort of
> > thing. If you need control over the playback, you're better off using the
> > Media Plaer ActiveX control in your application (in which case you never
> > need to hide Media Player anyway).
>
> > --
>
> > Chris Tacke, Embedded MVP
> > OpenNETCF Consulting
> > Giving back to the embedded communityhttp://community.OpenNETCF.com
>
> > "Freesc" wrote in message
>
> >@i12g2000prf.googlegroups.com...
> > On Feb 17, 5:31 am, "Peter Foot"
> > wrote:
>
> > > You could bring your own form to the foreground after launching WMP,
> > > perhaps
> > > on a thread with a short sleep in it to give the process a chance to get
> > > started before you switch back to your application.
>
> > > Peter
>
> > > --
> > > Peter Foot
> > > Microsoft Device Application Development
> > > MVPwww.peterfoot.net|www.inthehand.com
> > > In The Hand Ltd - .NET Solutions for Mobility
>
> > > "Freesc" wrote in message
>
> > >@i7g2000prf.googlegroups.com....
>
> > > > Hi,there~
>
> > > > i'm writing an application that needs the WMP running at background.
>
> > > > i'm using C# to start a new process for media player,but i don't know
> > > > how to minimize the player at the very beginning.
>
> > > > any suggestion about that ?
>
> > > > thanks in advance Smile- Hide quoted text -
>
> > > - Show quoted text -
>
> > That's it ! ! it works!
>
> > Thanks Peter !!
>
> > And other problem is how to triggle an even when the track is played
> > to the end. I can't find any API to do this .
>
> > However , thank you again, Peter~
>
> > Smile- Hide quoted text -
>
> > - Show quoted text -
>
> Thanks a lot ,Chris
>
> I'll try it If the mediaplayerX can provide something like the length
> of a playing track.- Hide quoted text -
>
> - Show quoted text -

Well,thank you again,Peter and Chris. it helped!

Smile

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Media Player skin creation in .NET CF Is it possible? I've downloaded the Media player for pocket pc sdk, and it seems to only support eVC++ 3.0. Any ideas? I'm trying to make an application that plays mp3's for a car installation as replacement for an in-car entertainment system / radio.

windows media player every time I go to use my windows media player ( vista ) I can not play a song or video clip. I get a message saying windows media player encountered a problem while playing the file. for additional assistance, click web help. I am no computer whiz, all

Media Player interop I am trying to embed the version 9 Media Player activeX control in my own VB.NET control that is exposed to COM. When I add the Media Player control to my VS 2003 project, shows up in my \bin directory and project references, along wi

Problem with media player object hi, i am trying to play the mp3,avi,wav files on pocket IE through the mediaplayer object.It is not supporting the above filetypes.But it is supporting wmv,wma types. But all types are working on normal IE.Can anyone help on this issue? -- Thank you, gbs

Software not loading for Digital Media Pro Keyboard Hiya I have just bought a Microsoft digital media pro keyboard. The trouble that I have is that I am unable to load the software for it. All it does is to stop and gives me an error message "insufficient hard disc space or an unexpected error has occured"
Post new topic   Reply to topic    MSDOTnet.org Forum Index -> Compact Framework All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group