Topic: Custom controls for windows media player Full Screen button (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 02-17-2005 18:22
HELP! I?ve been working on this for a while now. I?ve been trying everything I know to get this full screen button to work. The javascript code I?ve been using is as follows: |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 02-17-2005 22:43
Knowing just about nothing about controling mediaplayer via javascript, code: function fullScreen()
|
Obsessive-Compulsive (I) Inmate From: |
posted 02-18-2005 00:02
Tyberius Prime |
Obsessive-Compulsive (I) Inmate From: Australian living in UK |
posted 07-04-2005 01:08
Hey Tyberius Prime! code: <html> <head> <title>Test</title> <script src="/sample/video_setting.js" type="text/javascript"></script> </head> <body> <div id="iVideo"> <script type="text/javascript">fWriteWMV("solvideo", 320, 308, "http://www.sample.org.uk/videos/homepage2-3.wmv")</script> </div> </body> </html>
code: <a href="javascript:fullScreen();"><IMG SRC="button.jpg" ALT="" width="80" height="80" border="0"></a>
|
Neurotic (0) Inmate Newly admitted From: |
posted 07-19-2005 00:18
Hi, code: function fullScreen() { var player=document.getElementById("solvideo"); if (solvideo.DisplaySize==3) { solvideo.fullScreen=true; } }
code: function fullScreen() { var player=document.getElementById("solvideo"); if (player.DisplaySize==3) // player is the wmplayer object not solvideo { player.fullScreen=true; } }
code: function fullScreen(id) { var player=document.getElementById(id); // id is dynamic if (player.playState == 3) // check wmplayer status { player.fullScreen=true; } }
|
Neurotic (0) Inmate Newly admitted From: |
posted 12-26-2005 13:27
HI guys, you can help me? i see here every thing but i am don know mach thing, if you can write for me full script for windows media player for html home page with fullscreen, becouse i writed what you puted here its dont work, maybe i don put in corect area, if you cen write full script, thanks |
Paranoid (IV) Mad Scientist with Finglongers From: Germany |
posted 12-27-2005 09:53
sorry, drakula, we help, but we don't do your homework, unless you pay for it. |
Neurotic (0) Inmate Newly admitted From: |
posted 02-24-2006 02:53
Hi Guys, I'm having problems implementing the code you've suggested above. All I want to do is make my "full screen" button cause the embeded media player go full screen when it's pressed. All it does is cause the video to stop. This is the code: code: <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="JavaScript"> <!-- function fullScreen() { var player=document.getElementById("Player"); if (player.DisplaySize==3) { // 3 means 'playing' player.fullScreen='true'; } } //--> </script> </head> <OBJECT id='Player' width='320' height='309' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <param name='fileName' value='vargas_vs_mosley_HiW.wmv'> <param name='animationatStart' value='true'> <param name='transparentatStart' value='true'> <param name='autoStart' value='true'> <param name='showControls' value='true'> <param name='showStatusBar' value='true'> <param name='showDisplay' value='false'> <param name='loop' value='false'> <Embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/windowsmedia/download/" filename="vargas_vs_mosley_HiW.wmv" src="vargas_vs_mosley_HiW.wmv" Name=MediaPlayer ShowControls=1 ShowDisplay=1 ShowStatusBar=1 width=320 height=309> </embed> </OBJECT> <a href="javascript:fullScreen();"><img src="images/fs.gif" width="145" height="73" border="0"></a>
|
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 02-24-2006 08:40
Without being any kind of expert for this... I guesse code: player.fullScreen='true';
code: player.fullScreen=true;
|
Obsessive-Compulsive (I) Inmate From: UK |
posted 04-02-2006 14:21
Hello, |
Maniac (V) Mad Scientist with Finglongers From: Germany |
posted 04-03-2006 08:10
well, at least for your IE - you have to klick the player twice - problem see google about 'eolas patent internet explorer'... |
Obsessive-Compulsive (I) Inmate From: UK |
posted 04-08-2006 13:10
Thanks Tyberius Prime, |
Neurotic (0) Inmate Newly admitted From: |
posted 06-09-2006 08:32
Hi, |
Neurotic (0) Inmate Newly admitted From: |
posted 09-01-2006 16:06
Hi, this code doesn't work with my media player, it says error on page. |
Neurotic (0) Inmate Newly admitted From: |
posted 09-26-2006 22:39
The Windows Media plug-in (which means Windows Media running embedded in all non-IE browsers) can not be controlled using JavaScript. Microsoft omitted the XPConnect layer that allows JavaScript to talk to the WMP control. [Google XPConnect] |
Obsessive-Compulsive (I) Inmate From: |
posted 09-26-2006 23:17
So, to answer your question, Windows Media in non-IE browswers can not be made to spawn full-screen through clicking a button/link on a web page, via any params in the embed tag, or any other means. |
Neurotic (0) Inmate Newly admitted From: |
posted 12-14-2006 16:00
Ok you folks seem to know what yr saying... at least it sounds that way. So despite the fact that |
Neurotic (0) Inmate Newly admitted From: |
posted 06-01-2010 18:02
Hey |
Neurotic (0) Inmate Newly admitted From: |
posted 09-28-2010 04:09
Hello everybody, I'm new member, to a lot of attention! Thank you! ! Hope that we have more exchanges! ! |
Nervous Wreck (II) Inmate From: |
posted 10-28-2010 07:40
i am newbie to this forum, and thanks for all the sharing information. it does help me! |