Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows Media Player Component

Status
Not open for further replies.

sochanik

Programmer
Jul 6, 2001
7
GB
Hi,

Im building an application using the Windows Media Player component and am having trouble getting the fullScreen function to work. Has anybody else got any experience using this component at all??

Cheers..:)
 
Ahh - its always the way - you spend hours trying to figure out how to do something, then 10 mins after you post to a forum asking for help, you figure it out!!

 
And for everyone else's benefit the answer is .....?


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Oh - sorry!! To be honest it was pretty simple.... Winodws Media Player can onlt play in fullScreen mode when its playState is at wmppsPlaying.

So I just ran a check on PlayStateChange to see if its status was set to wmppsPlaying and if it was - I set it to fullScreen:-

Code:
Private Sub WindowsMediaPlayer1_PlayStateChange(ByVal NewState As Long)
If (WindowsMediaPlayer1.playState = wmppsPlaying) Then
WindowsMediaPlayer1.fullScreen = True
End If
End Sub

Cheers!

 
Thanks!


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top