Movies in full-screen only sound (Windows 8)

Just starting out? Need help? Post your questions and find answers here.
hth
User
User
Posts: 41
Joined: Tue Aug 21, 2007 8:01 pm

Movies in full-screen only sound (Windows 8)

Post by hth »

OK: rendered movies are unfortunately history

But under Windows 8 now also movies in full-screen are not playable (only video sound).

Code: Select all

ExamineDesktops()  
wsc=DesktopWidth(0)
hsc=DesktopHeight(0)

InitMovie()
InitSprite()
InitKeyboard()

MovieName$ = OpenFileRequester("Choose the movie to play", "", "Movie files|*.avi;*.mpg|All Files|*.*", 0)
  
OpenScreen(wsc,hsc,32,"")

If MovieName$
  If LoadMovie(0, MovieName$)   
    
    PlayMovie(0,ScreenID())
      
    Repeat
    	ExamineKeyboard()     
    Until KeyboardPushed(#PB_Key_Escape)
  Else
    MessageRequester("Error", "Can't load the movie...", 0)
  EndIf
EndIf 
hth
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Re: Movies in full-screen only sound (Windows 8)

Post by Tranquil »

Sure it is not a codec problem on your machine?
Tranquil
hth
User
User
Posts: 41
Joined: Tue Aug 21, 2007 8:01 pm

Re: Movies in full-screen only sound (Windows 8)

Post by hth »

Yes, in a window the videos are played correctly with pictures.

hth
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Re: Movies in full-screen only sound (Windows 8)

Post by Tranquil »

I will give it a try when I'm back at home on my Windows 8.1 test machine.
Tranquil
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Re: Movies in full-screen only sound (Windows 8)

Post by Tranquil »

Confirmes. Just Sound, no video.
Tranquil
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Movies in full-screen only sound (Windows 8)

Post by collectordave »

PB 5-42LTS and windows 7

Movie plays in top left corner only not full screen and no sound!

All Solved. Resize movie and bigger windows!
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Movies in full-screen only sound (Windows 8)

Post by Fred »

PlayMovie() on a screen is not officially supported.
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Movies in full-screen only sound (Windows 8)

Post by infratec »

Hint:

borderless window
RASHAD
PureBasic Expert
PureBasic Expert
Posts: 4946
Joined: Sun Apr 12, 2009 6:27 am

Re: Movies in full-screen only sound (Windows 8)

Post by RASHAD »

Change the depth to 16

Code: Select all

ExamineDesktops() 
wsc=DesktopWidth(0)
hsc=DesktopHeight(0)

InitMovie()
InitSprite()
InitKeyboard()

MovieName$ = OpenFileRequester("Choose the movie to play", "", "Movie files|*.avi;*.mpg|All Files|*.*", 0)
 
OpenScreen(wsc,hsc,16,"")

If MovieName$
  If LoadMovie(0, MovieName$)
  ResizeMovie(0,0,0,wsc,hsc)   
   
    PlayMovie(0,ScreenID())
     
    Repeat
       ExamineKeyboard()     
    Until KeyboardPushed(#PB_Key_Escape)
  Else
    MessageRequester("Error", "Can't load the movie...", 0)
  EndIf
EndIf 
Egypt my love
Post Reply