Embedding WMP9 into a webpage, displaying status, no control
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
Embedding WMP9 into a webpage, displaying status, no control

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





Posted: Tue Sep 20, 2005 8:30 pm    Post subject: Embedding WMP9 into a webpage, displaying status, no control Reply with quote

Hi,

I'm trying to add an embedded player to my webpage using WMP9 with no
controls. I would, however like to display the status.

I'm using the following code, but it doesn't seem to work (WinXP WMP10 in
IE) :

<OBJECT ID="Player" height="248" width="320"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="URL" value="http://myurlgoeshere.com/mediafile" />
<param name="autoStart" value="true" />
<param name="ShowControls" value="false" />
<param name="ShowPositionControls" value="false" />
<param name="ShowAudioControls" value="false" />
<param name="ShowStatusBar" value="true" />
<param name="windowlessvideo" value="true" />
</OBJECT>

If I add the uimode param, value="none", the controls _and_ the status
disappear. For whatever reason, setting the "showcontrols" param to 0 or
"false", doesn't have the intended effect, they're still displayed.

Any ideas on how to progress?

Thanks!

Back to top
Sebastian Gottschalk
Guest





Posted: Tue Sep 20, 2005 8:30 pm    Post subject: Re: Embedding WMP9 into a webpage, displaying status, no con Reply with quote

drooly wrote:

Quote:
Hi,

I'm trying to add an embedded player to my webpage using WMP9 with no
controls. I would, however like to display the status.

I'm using the following code, but it doesn't seem to work (WinXP WMP10 in
IE) :

This website contains some elements blahblah...

Quote:
OBJECT ID="Player" height="248" width="320"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
param name="URL" value="http://myurlgoeshere.com/mediafile" /
param name="autoStart" value="true" /
param name="ShowControls" value="false" /
param name="ShowPositionControls" value="false" /
param name="ShowAudioControls" value="false" /
param name="ShowStatusBar" value="true" /
param name="windowlessvideo" value="true" /
/OBJECT

Of course, you're trying to trigger the ActiveX bug in IE.
And even the URL param isn't intranet either, so any sane firewall
configuration will block access of IE to the internet.

Quote:
If I add the uimode param, value="none", the controls _and_ the status
disappear. For whatever reason, setting the "showcontrols" param to 0 or
"false", doesn't have the intended effect, they're still displayed.

Any ideas on how to progress?

Use the NPDS Java Control.
--
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
drooly
Guest





Posted: Tue Sep 20, 2005 8:30 pm    Post subject: Re: Embedding WMP9 into a webpage, displaying status, no con Reply with quote

Thanks for the reply Sebastian,

But there's a few things I don't understand

Quote:
Of course, you're trying to trigger the ActiveX bug in IE.
And even the URL param isn't intranet either, so any sane firewall
configuration will block access of IE to the internet.

What's the "ActiveX bug in IE"?
As far as the actual content, the stream plays fine. I'm looking to not
show the controls yet enable the status in the player window.


Quote:
Use the NPDS Java Control.

From a cursory search in the MSDN archives, this looks like its an applet
for Netscape Navigator and Windows Media Player 6.4. I'm working with WMP9
controls in an Internet Explorer window. I can get it to play as expected in
Firefox (and Mac browsers).

Thanks again

Back to top
Sebastian Gottschalk
Guest





Posted: Wed Sep 21, 2005 12:30 am    Post subject: Re: Embedding WMP9 into a webpage, displaying status, no con Reply with quote

drooly wrote:

Quote:
Thanks for the reply Sebastian,

But there's a few things I don't understand

Of course, you're trying to trigger the ActiveX bug in IE.
And even the URL param isn't intranet either, so any sane firewall
configuration will block access of IE to the internet.

What's the "ActiveX bug in IE"?

Every Object tags is threat as ActiveX controls and ActiveX security
settings are applied, so simply disabling the content - even though, when
then plugin involved doesn't use ActiveX and even if no plugin is involed
at all (for example when displaying a GIF or JPEG image).

For sure you're doing this intentionally, as your classid is defective and
the data attribute is missing. Try using ClassId="WMPlayer.WMPlayer"
data="media.wmv".

Quote:
As far as the actual content, the stream plays fine.

Not for me. For sure, ActiveX is disabled as ever.

Quote:
Use the NPDS Java Control.

From a cursory search in the MSDN archives, this looks like its an applet
for Netscape Navigator and Windows Media Player 6.4. I'm working with WMP9
controls in an Internet Explorer window.

It also works in IE, when using is as the primary loader.

Quote:
I can get it to play as expected in
Firefox (and Mac browsers).

But not with that code, that's for sure.
--
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
Neil Smith [MVP Digital M
Guest





Posted: Wed Sep 21, 2005 12:30 am    Post subject: Re: Embedding WMP9 into a webpage, displaying status, no con Reply with quote

On Tue, 20 Sep 2005 12:22:04 -0700, drooly
<drooly@discussions.microsoft.com> wrote:

Quote:
Thanks for the reply Sebastian,

But there's a few things I don't understand

[ Reinserted flow of conversation to make sense to people missing the
start of the thread ]

Quote:
I'm trying to add an embedded player to my webpage using WMP9 with no
controls. I would, however like to display the status.

The status controls in WMP7 and later are hidden by using the
uimode="none" setting. If you must have separate controls and player
area, consider real player where you can embed several elements of the
player which cooperate.

In WMP7 and later, you must replicate the controls or status area as
require using javascript if you've hidden them. Which specific part of
the status area do you need to display - current position, connection
status, packets received etc ?

For example you can query the player (eg using setTimeout() calls or
event handling) to supply player.controls.currentPositionString :
substitute "player" with the DOM ID of your player object, eg
player=document.getElementById("MediaPlayer")

Or you could query the same object for player.openState

Quote:
OBJECT ID="Player" height="248" width="320"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
param name="URL" value="http://myurlgoeshere.com/mediafile" /
param name="autoStart" value="true" /
param name="ShowControls" value="false" /
param name="ShowPositionControls" value="false" /
param name="ShowAudioControls" value="false" /
param name="ShowStatusBar" value="true" /
param name="windowlessvideo" value="true" /
/OBJECT

Of course, you're trying to trigger the ActiveX bug in IE.
And even the URL param isn't intranet either, so any sane firewall
configuration will block access of IE to the internet.

What's the "ActiveX bug in IE"?


Sebastian is absolutely certain that support of ActiveX controls in IE
is an error, and will assert that at every opportunity. Ignore this
assertion. Embedding of active elements is available in nearly every
browser, but implemented in different ways.

Quote:
Use the NPDS Java Control.

From a cursory search in the MSDN archives, this looks like its an applet
for Netscape Navigator and Windows Media Player 6.4. I'm working with WMP9


You're correct. It's an alternative java based interface offered by
older Netscape browsers to allow scripting of what would be ActiveX
controls (in IE), but is implemented unequally (only Netscape 4-7
supports this control, leaving out Opera, Safari, Firefox etc etc)


Quote:
controls in an Internet Explorer window. I can get it to play as expected in
Firefox (and Mac browsers).

I think you've mixed some of the content parameters with the player
6.4 control. ShowControls, ShowPositionControls, ShowAudioControls and
ShowStatusBar are from the 6.4 embedding code and won't work in WMP7
and later.

HTH
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