Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-27-2008, 02:46 PM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default How to open Windows Media Player (.wmv) in fullscreen?

I'm using the following code to open an external movie file (.wmv):
Code:
var ax = createControl("WMPlayer.OCX", 0, 0, 200, 200);
ax.activex.url = "c:\\my.wmv";
ax.activex.controls.play();
But I want the movie to automaticly open in Fullscreen mode, and I can't figure out how. Can anyone please advise me on how to alter my code to make this happen?

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 03-27-2008, 06:44 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: How to open Windows Media Player (.wmv) in fullscreen?

Code:
var ax = createControl("WMPlayer.OCX", 0, 0, 200, 200);
ax.activex.url = "c:\\my.wmv";
ax.activex.controls.play();

var wnd = getMainWnd();
wnd.onSize = function (type, width, height) {
	ax.window.move(0, 0, width, height);	
}
Reply With Quote
  #3 (permalink)  
Old 03-28-2008, 03:34 PM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default Re: How to open Windows Media Player (.wmv) in fullscreen?

Thanks, but this will only resize the Media Player Window, not put it in Fullscreen mode. I need it to be set to Fullscreen mode...

Any advise there?
Reply With Quote
  #4 (permalink)  
Old 03-31-2008, 04:39 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: How to open Windows Media Player (.wmv) in fullscreen?

[Operation panel]->[application definition]->[appearance]->[border style]->[None]
[Operation panel]->[application definition]->[size and position]->[window size]->[makes the projector full screen]
Reply With Quote
  #5 (permalink)  
Old 04-01-2008, 01:07 AM
Junior Member
 
Join Date: Mar 2008
Posts: 3
Default Re: How to open Windows Media Player (.wmv) in fullscreen?

I found the REAL solution myself. Quite simple actually

So for anyone that may try this sometime:
Code:
var wnd = getMainWnd();
var ax = createControl("WMPlayer.OCX", 0, 0, wnd.width, wnd.height, "fullscreen=true");
A better documentet SwfKit App would be nice ;D
Reply With Quote
  #6 (permalink)  
Old 04-04-2008, 04:13 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: How to open Windows Media Player (.wmv) in fullscreen?

Thank you very much. Very nice, we didn't know this method.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:06 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.