[Sovled] How to play FullScreen and auto hide the toolbars
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
[Sovled] How to play FullScreen and auto hide the toolbars

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web
Author Message
johnfung



Joined: 30 Jul 2005
Posts: 3

Posted: Sat Jul 30, 2005 6:27 pm    Post subject: [Sovled] How to play FullScreen and auto hide the toolbars Reply with quote

When I click the image, it played in FullScreen, but didn't auto hide the top and bottom toolbars, are there any solutions?

here is the code, please help, thank you very much.

<script>
function makeFullScreen() {
if (wmp.playState == 3) {
wmp.fullScreen = 'true';
}
}
</script>
<div style="position:absolute; top:330px; left:5px"><img onclick="makeFullScreen();" src="../../full.jpg" alt="FullScreen" width="63" height="58"></div>
<object id="wmp" width="350" height="330" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="url" value="http://kowloon.sdaglobal.org/kcsdavo/nb/special/05/05.asx">
<param name="filename" value="05.asx">
<param name="uimode" value="full">
<param name="showcontrols" value="1">
<param name="autostart" value="1">
<param name="showdisplay" value="0">
<param name="showstatusbar" value="1">
<param name="autosize" value="0">
<param name="enablecontextmenu" value="0">
<param name="volume" value="100">
</object>



Last edited by johnfung on Sun Jul 31, 2005 7:41 am; edited 1 time in total
Back to top
View user's profile Send private message
Sebastian Gottschalk
Guest





Posted: Sun Jul 31, 2005 12:30 am    Post subject: Re: How to play FullScreen and auto hide the toolbars Reply with quote

johnfung wrote:

Quote:
When I click the image, it played in FullScreen, but didn't auto hide
the top and bottom toolbars, are there any solutions?

here is the code, please help, thank you very much.

script
function makeFullScreen() {
if (wmp.playState == 3) {
wmp.fullScreen = 'true';
}
}
/script
div style="position:absolute; top:330px; left:5px"><img
onclick="makeFullScreen();" src="../../full.jpg" alt="FullScreen"
width="63" height="58"></div
object id="wmp" width="350" height="330"
classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"
param name="url"
value="http://kowloon.sdaglobal.org/kcsdavo/nb/special/05/05.asx"
param name="filename" value="05.asx"
param name="uimode" value="full"
param name="showcontrols" value="1"
param name="autostart" value="1"
param name="showdisplay" value="0"
param name="showstatusbar" value="1"
param name="autosize" value="0"
param name="enablecontextmenu" value="0"
param name="volume" value="100"
/object

When I click on the image, I get an error "'wmp' is not a valid object" -
well, because it isn't. When I modify the script to correctly use DOM, then
'wmp.fullscreen' is no valid object - well, because it isn't. When I
correct the object tag, the image is loaded by Firefox's internal JPEG
Viewer, and for sure doesn't know any 'wmp.fullscreen'...
--
Dieser Schrieb stellt eine private Meinungsäußerung des Verfassers im
Sinne der gesetzlich garantierten Meinungsfreiheit dar. Wem das nicht
passt, der wende sich an das Bundesverfassungsgericht. Viel Erfolg!
Key: 0xA0E28D18 FP: 83AE 1136 1E2B 9767 8FB2 7594 4128 1A9E A0E2 8D18
Back to top
zachd [ms]
Guest





Posted: Sun Jul 31, 2005 12:30 am    Post subject: Re: How to play FullScreen and auto hide the toolbars Reply with quote

That's not possible, to the best of my knowledge. The toolbars you're
referring to are client-side settings that you can't access the settings for
on your web-page end.

-Zach
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
Now Playing: "January mix" by "Lowbudget" in WMP10.
--

"johnfung" <jskfung@netvigator-dot-com.no-spam.invalid> wrote in message
news:4dmdnWYf9bjIfnbfRVn_vA@giganews.com...
Quote:
When I click the image, it played in FullScreen, but didn't auto hide
the top and bottom toolbars, are there any solutions?

here is the code, please help, thank you very much.

script
function makeFullScreen() {
if (wmp.playState == 3) {
wmp.fullScreen = 'true';
}
}
/script
div style="position:absolute; top:330px; left:5px"><img
onclick="makeFullScreen();" src="../../full.jpg" alt="FullScreen"
width="63" height="58"></div
object id="wmp" width="350" height="330"
classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"
param name="url"
value="http://kowloon.sdaglobal.org/kcsdavo/nb/special/05/05.asx"
param name="filename" value="05.asx"
param name="uimode" value="full"
param name="showcontrols" value="1"
param name="autostart" value="1"
param name="showdisplay" value="0"
param name="showstatusbar" value="1"
param name="autosize" value="0"
param name="enablecontextmenu" value="0"
param name="volume" value="100"
/object


Back to top
Neil Smith [MVP Digital M
Guest





Posted: Sun Jul 31, 2005 12:30 am    Post subject: Re: How to play FullScreen and auto hide the toolbars Reply with quote

Set uimode="none" in your param.

Cheers - Neil

On Sat, 30 Jul 2005 15:30:13 -0500,
jskfung@netvigator-dot-com.no-spam.invalid (johnfung) wrote:

Quote:
When I click the image, it played in FullScreen, but didn't auto hide
the top and bottom toolbars, are there any solutions?

here is the code, please help, thank you very much.

script
function makeFullScreen() {
if (wmp.playState == 3) {
wmp.fullScreen = 'true';
}
}
/script
div style="position:absolute; top:330px; left:5px"><img
onclick="makeFullScreen();" src="../../full.jpg" alt="FullScreen"
width="63" height="58"></div
object id="wmp" width="350" height="330"
classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6"
param name="url"
value="http://kowloon.sdaglobal.org/kcsdavo/nb/special/05/05.asx"
param name="filename" value="05.asx"
param name="uimode" value="full"
param name="showcontrols" value="1"
param name="autostart" value="1"
param name="showdisplay" value="0"
param name="showstatusbar" value="1"
param name="autosize" value="0"
param name="enablecontextmenu" value="0"
param name="volume" value="100"
/object
Back to top
johnfung



Joined: 30 Jul 2005
Posts: 3

Posted: Sun Jul 31, 2005 7:42 am    Post subject: re:[Sovled] How to play FullScreen and auto hide the toolbar Reply with quote

Problem solved, thanks a lot... Laughing
Back to top
View user's profile Send private message
Neil Smith [MVP Digital M
Guest





Posted: Sun Jul 31, 2005 12:30 pm    Post subject: Re: How to play FullScreen and auto hide the toolbars Reply with quote

On Sat, 30 Jul 2005 17:07:52 -0700, "zachd [ms]"
<zachd@nomailplz.online.microsoft.com> wrote:

Quote:

That's not possible, to the best of my knowledge. The toolbars you're
referring to are client-side settings that you can't access the settings for
on your web-page end.

<cough>But the SDK says</cough>
========================================================
`If uiMode is set to "full" or "mini", the Player displays transport
controls in full-screen mode when the mouse cursor moves. After a
brief interval of no mouse movement, the transport controls are
hidden. >>>> If uiMode is set to "none", no controls are displayed in
full-screen mode. `
========================================================

It seemed to work OK for me. The main thing is the behaviour changes
when triggered by detatching from a web page - it's inconsistent with
the normal UI behaviour, but at least it seems to work <g>

PS - Zach - do you remember the cause of the broken UI in web pages
(scrambled buttons at the top of the ActiveX region, no video play
area) with WMP9 & 10 ?

Somebody else posted about it recently and I can't remember the cause
or what the fix was - clues ? Didn't see it on your website...

Cheers - Neil
Back to top
Neil Smith [MVP Digital M
Guest





Posted: Sun Jul 31, 2005 12:30 pm    Post subject: Re: [Sovled] How to play FullScreen and auto hide the toolba Reply with quote

And the answer was ? ? ?

Cheers - Neil

On Sun, 31 Jul 2005 03:30:13 -0500,
jskfung@netvigator-dot-com.no-spam.invalid (johnfung) wrote:

>Problem solved, thanks a lot... :lol:
Back to top
zachd [ms]
Guest





Posted: Mon Aug 01, 2005 8:30 am    Post subject: Re: How to play FullScreen and auto hide the toolbars Reply with quote

*cough*didn't read the SDK, defer to your expertise here* =) *bows head
shamefully*

Oddly enough, just ran across that and finally got more info. This stems
from msdxm.ocx being unregistered or gone from the system. So the response
would be something like:
===
Does c:\windows\system32\msdxm.ocx exist?
If it does NOT, replace it with the copy from the system dll cache.
Once it does, run:
regsvr32 msdxm.ocx
regsvr32 wmp.dll
regsvr32 wmpdxm.dll
Voila.
===
, according to what I've found so far.

-Z
--
(speaking for myself and doing this in my free time)
See http://zachd.com/pss/pss.html for some helpful WMP info.
This posting is provided "AS IS" with no warranties, and confers no rights.
Now Playing: "My Brave Face" by "Cymbals" in WMP10.
--

"Neil Smith [MVP Digital Media]" <neil@nospam.com> wrote in message
news:ticpe19qasqbfhqfaji6b7jtilkhmo9iha@4ax.com...
Quote:
On Sat, 30 Jul 2005 17:07:52 -0700, "zachd [ms]"
zachd@nomailplz.online.microsoft.com> wrote:


That's not possible, to the best of my knowledge. The toolbars you're
referring to are client-side settings that you can't access the settings
for
on your web-page end.

cough>But the SDK says</cough
========================================================
`If uiMode is set to "full" or "mini", the Player displays transport
controls in full-screen mode when the mouse cursor moves. After a
brief interval of no mouse movement, the transport controls are
hidden. >>>> If uiMode is set to "none", no controls are displayed in
full-screen mode. `
========================================================

It seemed to work OK for me. The main thing is the behaviour changes
when triggered by detatching from a web page - it's inconsistent with
the normal UI behaviour, but at least it seems to work <g

PS - Zach - do you remember the cause of the broken UI in web pages
(scrambled buttons at the top of the ActiveX region, no video play
area) with WMP9 & 10 ?

Somebody else posted about it recently and I can't remember the cause
or what the fix was - clues ? Didn't see it on your website...

Cheers - Neil
Back to top
Neil Smith [MVP Digital M
Guest





Posted: Mon Aug 01, 2005 12:30 pm    Post subject: Re: How to play FullScreen and auto hide the toolbars Reply with quote

On Sun, 31 Jul 2005 23:23:28 -0700, "zachd [ms]"
<zachd@nomailplz.online.microsoft.com> wrote:

Quote:
Oddly enough, just ran across that and finally got more info. This stems
from msdxm.ocx being unregistered or gone from the system. So the response
would be something like:
===
Does c:\windows\system32\msdxm.ocx exist?
If it does NOT, replace it with the copy from the system dll cache.
Once it does, run:
regsvr32 msdxm.ocx
regsvr32 wmp.dll
regsvr32 wmpdxm.dll
Voila.
===
, according to what I've found so far.

Thanks Zach that's very helpful. I'm curious how WM components like
this get unregistered (I'm not a windows developer so it's a black
box). I'll look at the OCX and see what's inside - thanks for that.

Cheers - Neil
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media on Web All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB