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!

fullscreen player problems

Status
Not open for further replies.

znicolaou

Programmer
Apr 15, 2006
3
US
Hello,
I am creating a program that loops through various images and videos in fullscreen. Up to now, I have just been JWindow.setSize'ing to the appropriate size, but the taskbar remains visible when you do this, so I recently learned about GraphicsDevice.setFullScreenWindow method, which works fine. My problem is, once I set the window to fullscreen, I started having problems with Player that I was not having when it was not fullscreen. Avi files will not play the first time that a Player tries, the container simply appears to remain empty though the Player.getState method claims the player is playing and the getVisualComponent method returns a Component. The Player also never reaches the EndOfMedia event. However, if I alt-tab out of the fullscreen then go back, the video eventually finishes, and the next time that video comes up it plays fine. As I said, this problem does not happen when the window is not fullscreen. Thanks for any help!
-Zack Nicolaou
 
I fixed my own problem, I was using a JWindow, but if I use an undecorated JFrame this no longer happens. Still seems very strange to me though, if anybody knows why this happens please tell me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top