Error -2147467259 When changing to Fullscreen
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
Error -2147467259 When changing to Fullscreen

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





Posted: Fri Apr 15, 2005 6:25 pm    Post subject: Error -2147467259 When changing to Fullscreen Reply with quote

Hi all,

I am at a loss on this one. I am trying to automatically change to
fullscreen mode when playing a video file. Here is the code I'm using.
I can't find a problem with it. But it generates an error when it
attempts to switch.


<HTML>
<HEAD>
<SCRIPT LANGUAGE="JScript" FOR="Player"
EVENT="playStateChange(NewState)">
try{
if(NewState == 3){
Player.fullScreen = true;
}
} catch(errorObject) {
alert("Video Error: "+errorObject.number);
return;
}
</SCRIPT>
</HEAD>
<body>
<object id="Player" width="245" height="179"
classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<param name="URL" value="demos/2-6-2-5-1.wmv">
</object>
</body>
</HTML>

Back to top
Sebastian Gottschalk
Guest





Posted: Sun Apr 24, 2005 11:41 pm    Post subject: Re: Error -2147467259 When changing to Fullscreen Reply with quote

John Cotter wrote:

Quote:
HTML
HEAD
SCRIPT LANGUAGE="JScript" FOR="Player"
EVENT="playStateChange(NewState)"
try{
if(NewState == 3){
Player.fullScreen = true;
}
} catch(errorObject) {
alert("Video Error: "+errorObject.number);
return;
}
/SCRIPT
/HEAD
body
object id="Player" width="245" height="179"
classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6"
param name="URL" value="demos/2-6-2-5-1.wmv"
/object
/body
/HTML


The problem is that Player.fullscreen isn't a valid object.
The "Object"-element doesn't have such an attribute.
--
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
 
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