TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Microsoft > Microsoft Expression > Microsoft Expression Web Designer

Notices

Reply
 
Thread Tools Display Modes
Old 26-06-2008, 09:03 PM   #1
Mike Mueller
Guest
 
Posts: n/a
Best Method of inserting WinMediaPlayer, with full WMP support in IE & others

<rant>I really wish the various working groups (WinMedia, WinServer, & Web
Developement) at MS would talk to one another

Here is the sample code for the insertion of a Windows Media Player, from
EW:

<object id="media1" height="200" type="video/x-ms-wmv" width="200">
<param name="filename" value="WaukScan.wvx" />
</object>

and low and behold, this will render Windows Media player into IE, FF, Opera
et al. Too bad that it doesn't work FULLY in IE (of all browsers):
http://67.199.64.247/MultiMedia/Waukesha-Scanner.aspx

If you notice in FF & Opera, there is a banner at the bottom of the
viewport. This does not show up in IE.

I posted about this issue in a WMP NG- and I found out the only way to get
it to work is to call it by the (ActiveX) ClassID. Which we all know will
not work with the other browsers. The suggestion I got there was to use
<embed>. Sorry, I want to keep it compliant.

Where does Win Server come in? I thought I would try and recycle the code
that is created on a Windows Media Server broadcast webpage. The 2003
variant did the std ActiveX and some vbscript for IE, but then it used some
more javscript and an <applet> for Netscape. Super Yuck. So I installed 2008
Server and added in WinMediaService to find out that it is using the exact
same mess.

</rant>

So, what I am looking for is a way to use the ActiveX for IE, and not resort
to <embed> for the rest, and have it look decent codewise
--
* Mike *

  Reply With Quote
Old 26-06-2008, 09:03 PM   #2
Ronx
Guest
 
Posts: n/a
Re: Best Method of inserting WinMediaPlayer, with full WMP support in IE & others

Have you considered conditional comments?

Example:
<!--[if IE>
Active -X code for IE
<![endif]-->
<![if gt IE 8]> (allows for IE9 to be correct, but could be written as
<![if !IE]> and no version of IE will run the code)
Object code for other browsers - this will be ignored by all versions of
IE up to and including IE8
<![endif]>

IE recognises the conditional comments, and follows the logic, other
browsers recognise the comments (<!-- -->) as comments and ignore code
between them, and treat the <![if gt IE 8]> etc. as unrecognised tags -
the code between is acted on by the other browsers, but not by IE.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"Mike Mueller" <MyName@ecinet.net> wrote in message
newsCD9B9EF-72E5-4B71-9332-0F4886EA8A57@microsoft.com:

> <rant>I really wish the various working groups (WinMedia, WinServer, & Web
> Developement) at MS would talk to one another
>
> Here is the sample code for the insertion of a Windows Media Player, from
> EW:
>
> <object id="media1" height="200" type="video/x-ms-wmv" width="200">
> <param name="filename" value="WaukScan.wvx" />
> </object>
>
> and low and behold, this will render Windows Media player into IE, FF, Opera
> et al. Too bad that it doesn't work FULLY in IE (of all browsers):
> http://67.199.64.247/MultiMedia/Waukesha-Scanner.aspx
>
> If you notice in FF & Opera, there is a banner at the bottom of the
> viewport. This does not show up in IE.
>
> I posted about this issue in a WMP NG- and I found out the only way to get
> it to work is to call it by the (ActiveX) ClassID. Which we all know will
> not work with the other browsers. The suggestion I got there was to use
> <embed>. Sorry, I want to keep it compliant.
>
> Where does Win Server come in? I thought I would try and recycle the code
> that is created on a Windows Media Server broadcast webpage. The 2003
> variant did the std ActiveX and some vbscript for IE, but then it used some
> more javscript and an <applet> for Netscape. Super Yuck. So I installed 2008
> Server and added in WinMediaService to find out that it is using the exact
> same mess.
>
> </rant>
>
> So, what I am looking for is a way to use the ActiveX for IE, and not resort
> to <embed> for the rest, and have it look decent codewise
> --
> * Mike *


  Reply With Quote
Old 26-06-2008, 09:04 PM   #3
Mike Mueller
Guest
 
Posts: n/a
Re: Best Method of inserting WinMediaPlayer, with full WMP support in IE & others

Ron,
that is exactly what I working on. I was having some issues with syntax, but
this is what I got to render in IE, FF, and Op. It is my belief that the
source of the problem is the WMP control that IE is displaying, and not IE
itself. I did find another quirk, in that the banner being displayed is also
a hyperlink, and its behavior is to open a new instance of the default
browser.

-Mike

<!--[if IE]>
<object id="player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
height="350" width="500">
<![endif]-->

<![if !IE]>
<object height="350" type="video/x-ms-wvx" width="500">
<![endif]>
<param name="URL" value="WaukScan.wvx" />
</object>



"Ronx" <ronx917@hotmail.com> wrote in message
news:%23WiBeEq1IHA.4004@TK2MSFTNGP03.phx.gbl...
> Have you considered conditional comments?
>
> Example:
> <!--[if IE>
> Active -X code for IE
> <![endif]-->
> <![if gt IE 8]> (allows for IE9 to be correct, but could be written as
> <![if !IE]> and no version of IE will run the code)
> Object code for other browsers - this will be ignored by all versions of
> IE up to and including IE8
> <![endif]>
>
> IE recognises the conditional comments, and follows the logic, other
> browsers recognise the comments (<!-- -->) as comments and ignore code
> between them, and treat the <![if gt IE 8]> etc. as unrecognised tags -
> the code between is acted on by the other browsers, but not by IE.
> --
> Ron Symonds - Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> http://www.rxs-enterprises.org/fp
>
>
>
>
> "Mike Mueller" <MyName@ecinet.net> wrote in message
> newsCD9B9EF-72E5-4B71-9332-0F4886EA8A57@microsoft.com:
>
>> <rant>I really wish the various working groups (WinMedia, WinServer, &
>> Web
>> Developement) at MS would talk to one another
>>
>> Here is the sample code for the insertion of a Windows Media Player, from
>> EW:
>>
>> <object id="media1" height="200" type="video/x-ms-wmv" width="200">
>> <param name="filename" value="WaukScan.wvx" />
>> </object>
>>
>> and low and behold, this will render Windows Media player into IE, FF,
>> Opera
>> et al. Too bad that it doesn't work FULLY in IE (of all browsers):
>> http://67.199.64.247/MultiMedia/Waukesha-Scanner.aspx
>>
>> If you notice in FF & Opera, there is a banner at the bottom of the
>> viewport. This does not show up in IE.
>>
>> I posted about this issue in a WMP NG- and I found out the only way to
>> get
>> it to work is to call it by the (ActiveX) ClassID. Which we all know will
>> not work with the other browsers. The suggestion I got there was to use
>> <embed>. Sorry, I want to keep it compliant.
>>
>> Where does Win Server come in? I thought I would try and recycle the code
>> that is created on a Windows Media Server broadcast webpage. The 2003
>> variant did the std ActiveX and some vbscript for IE, but then it used
>> some
>> more javscript and an <applet> for Netscape. Super Yuck. So I installed
>> 2008
>> Server and added in WinMediaService to find out that it is using the
>> exact
>> same mess.
>>
>> </rant>
>>
>> So, what I am looking for is a way to use the ActiveX for IE, and not
>> resort
>> to <embed> for the rest, and have it look decent codewise
>> --
>> * Mike *

>


  Reply With Quote
Reply

Thread Tools
Display Modes


Google
 


All times are GMT +5.5. The time now is 02:13 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional