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:
function fullScreen() {
player=document.getElementById("Player");
if player.DisplaySize==3) {
player.fullScreen=true;
}
}
and I?ve also tried:
function fullScreen()
{
Player.DisplaySize=3;
}
now I?m not a real java guru obviously cuz I can?t get these to work but this is a result of research that I?ve done over the net. The object ID for the media player is simply "Player" Then I use this button for activating this function:
Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers
From: Germany Insane since: Sep 2001
posted 02-17-2005 22:43
Knowing just about nothing about controling mediaplayer via javascript,
I still suppose your fullscreen function should be actual valid javascript...
code:
function fullScreen()
{
var player=document.getElementById("Player"); //don't forget the var. It will come and bite you.
if (player.DisplaySize==3) //you were missing the (. 3 you should probably check for playState, where 3 means 'playing'
{
player.fullScreen=true;
}
}
or
function fullScreen()
{
var player=document.getElementById("Player");
player.DisplaySize=3;
}
I suppose only one of these actual set's your player into fullscreen, and google groups suggest it's the first one.
function fullScreen()
{
var player=document.getElementById("solvideo");
if (solvideo.DisplaySize==3)
{
solvideo.fullScreen=true;
}
}
to
code:
function fullScreen()
{
var player=document.getElementById("solvideo");
if (player.DisplaySize==3) // player is the wmplayer object not solvideo
{
player.fullScreen=true;
}
}
You could also do this:
code:
function fullScreen(id)
{
var player=document.getElementById(id); // id is dynamic
if (player.playState == 3) // check wmplayer status
{
player.fullScreen=true;
}
}
This way you could use the function for different wmplayer objects.
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
Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers
From: Germany Insane since: Sep 2001
posted 12-27-2005 09:53
sorry, drakula, we help, but we don't do your homework, unless you pay for it.
so... get some semi-working examples of what you've been doing, and we might be able to help you.
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:
I am using the above code to add a Full Screen button to our video presentations.
It is working great in Internet Explorer 6 but it does not work in FireFox.
Does anyone know why that may be?
I noticed another curious niggle, in Firefox the player controls work from the start:
- you can just click the stop button right away as soon as the program starts and it stops.
However, in IE 6, you neet to click the stop button twice. There is a message that says:
"Click to activate and use this control."
Does anyone know why IE 6 does this and FireFox allows the controls to work from the start?
I did the Google search and read the information. "Oh the joys of the Internet and programming." This reminds me of the GIF copywrite problem. Do you think it will be more serious. Aaman Lamba at http://blogcritics.org/archives/2006/04/06/164543.php says it could be a mini Y2k. Anyway, who said the life of a webmaster would be easy!
I created one custom control for mediaplayer, i accessed this control from code behind file(c#.net), it is working find in IE. But when i am trying to load the same page in Mozilla or Netscape player is not showing.
please give me solution for this. If i use html code then it is working fine, but i want to use custom control because dynamically change the file name through code behind (c#.net) file in asp.net.
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]
This is a widely known issue. Microsoft has not plans to allow their WMP plug-in (but not ActiveX control) to be scripted using JavaScript. Why would they, frankly? That would make the user experience better in browser that aren't theirs, hence lowering their marketshare?
Note: When I say "plug-in" above, that implies "all non-IE browsers". IE does not support plug-ins. MS dropped that support in IE 5.5, I believe, about 8 years ago. IE only supports ActiveX controls. The WMP that runs in IE is an ActiveX control, so it CAN be scripted using JavaScript. The WMP that runs in non-IE browsers is a "Netscape-style plug-in" or simply "plug-in".
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.
On the other hand, QuickTime is fully scriptable in all browsers, but it can not be spawned fullscreen through JavaScript either - because the free version of QuickTime does not support full-screen playback. Although, there are "hacky" ways around this you can find online that involve using dynamic QTL file on the server-side.
[I build browser-based video-on-demand servers for a living. These discoveries came about through much pain and toil.]
Ok you folks seem to know what yr saying... at least it sounds that way. So despite the fact that
we can't access WMP embedded in a web page using js, we know you can at least control some
aspects of it's function usings param tags. The question I have for u gurus iz:
Can one DISABLE the default double-click-goes-to-full-screen property of WMP embedded in a
web page?