Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- hide from IE
May 21, 2006, 7:59 am
rate this thread
Re: hide from IE
Els gave you a method that will work except for IE7. Another way might
be to use the Microsoft conditional comments. You can enclose what you
want to do on IE only between special conditional open and close tags
and what you want to do on all other browsers between NOT conditional
tags. These special conditional tags are understood by IE browsers
only. Other browsers just see them as ordinary comments. I have an
example at http://www.cwdjr.info/broadbandMedia/formatsAX/cancanWMV.php
. Although this is a different application from what you are using, it
illustrates the basic principle. The code between the conditional tags
that starts with "if IE" uses an ActiveX object for IE browsers. The
code between the second set of NOT IE conditional tags uses an ordinary
object for browsers other than IE. I don't have IE7 yet, so someone
else would have to test the Microsoft conditional comment approach on
it, should you decide to go that route.
Re: hide from IE
Actually I can use only an ordinary object to get the code to work for
a wmv file. However, allowing the ActiveX path for IE only, lets you
use many more paramaters in the ActiveX object, if you desire, for the
numerous IE browsers around.
In the case of a flash movie, you can also use just an ordinary object.
However, if the flash movie is of large byte size, it will not start
streaming on IE until completely downloaded. That can be a real
disadvantage, and your viewers may well depart if they are on IE. Using
the conditional to allow an ActiveX object for IE only allows
streaming(progressive download) of the flash movie to start at once if
your connection has a large enough bandwidth for the type of flash
movie file used. There are other ways for solving this problem for IE,
but the conditional comment method works best for me with what I
usually do. For a short flash cartoon, a delay of a very few seconds
might be no problem.
The lady was caught in a net after jumping. She was completely unharmed
and continued to dance the Cancan, do extreme splits, etc. The very
short clip was just to demonstrate the code was working on this rather
high bit rate wmv file designed for a fast DSL or cable connection.
The movie might show on a dialup connection, but the buffering time
would be nearly as great as the time to completely download the movie.
If one spends $$$$ for a special streaming server, you can encode and
use a special stream that allows perhaps 3 bit rates best suited for
dialup, low broadband, and high broadband rates. Then code can be
written to allow the browser to select the best speed for the
connection it uses. Some of the large video sites work in this way. For
those without $$$$ to spend, you could encode the video at 3 rates and
allow the viewer to select the rate best suited for their connection.
- Luigi Donatello Asero
May 22, 2006, 12:21 am
Re: hide from IE
Luigi Donatello Asero wrote:
Microsoft has a free encoder for encoding as wmv, and Real also has a
free encoder for encoding as the Real video format, for example. You
can select the bit rate for the encoded video. Input to the encoder
could be a high resolution mpeg video file, for example, that you
captured from an analog or digital source. These encoders allow you to
select from a list of rates best suited for different connections. Thus
you could encode 3 videos at 3 different rates and offer the user of
the web page a link to each. There are also a large number of programs,
mostly ones that must be bought, that will convert between video file
types and rates.