From: www.phpbasic.com on
Hello,
I have a problem with flash player on IE, i wish a help for this.

I use the code:


var str = '<object classid="clsid:D27CDB6E-
AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" '
str += 'width="100" ';
str += 'height="100" ';
str += 'title="DivBoxMedia">';
str += '<param name="movie" value="'+_cfg.path+'flvplayer.swf" />'
str += '<param name="quality" value="high" />';
str += '<param name="salign" value="TL" />';
str += '<param name="scale" value="noScale" />';
str += '<param name="FlashVars" value="path=file_video.flv" />';
str += '<embed src="player/flvplayer.swf" ';
str += 'quality="high" pluginspage="http://www.adobe.com/shockwave/
download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" ';
str += 'width="100" ';
str += 'height="100"';
str += 'salign="TL" ';
str += 'scale="noScale" ';
str += 'FlashVars="path=file_video.flv"';
str += '></embed>';
str += '</object>';
$('div.video').html(str);

It works good on Firefox, Chrome and Safari but when run it on IE will
good for first time, but when i use jquery to remove <div
class="video" and create again then it don't show player but it still
run the video ( i can hear the sound of video but don't see it as the
first time)

I see the Multibox (http://phatfusion.net/multibox) can fix it, but i
don't know to do that. Please help me!
From: SAM on
Le 5/29/10 10:12 AM, www.phpbasic.com a �crit :
> Hello,
> I have a problem with flash player on IE, i wish a help for this.
>
> I use the code:
>
>
> var str = '<object classid="clsid:D27CDB6E-
> AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/
> pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" '
> str += 'width="100" ';
> str += 'height="100" ';
> str += 'title="DivBoxMedia">';
> str += '<param name="movie" value="'+_cfg.path+'flvplayer.swf" />'
> str += '<param name="quality" value="high" />';
> str += '<param name="salign" value="TL" />';
> str += '<param name="scale" value="noScale" />';
> str += '<param name="FlashVars" value="path=file_video.flv" />';
> str += '<embed src="player/flvplayer.swf" ';
> str += 'quality="high" pluginspage="http://www.adobe.com/shockwave/
> download/download.cgi?P1_Prod_Version=ShockwaveFlash"
> type="application/x-shockwave-flash" ';
> str += 'width="100" ';
> str += 'height="100"';
> str += 'salign="TL" ';
> str += 'scale="noScale" ';
> str += 'FlashVars="path=file_video.flv"';

maybe better : str += '><\/embed>';
str += '<\/object>';
than :

> str += '></embed>';
> str += '</object>';
> $('div.video').html(str);
>
> It works good on Firefox, Chrome and Safari but when run it on IE will
> good for first time, but when i use jquery to remove <div
> class="video"

maybe :
$('div.video').innerHTML = '';
before to remove $('div.video')

> and create again then it don't show player but it still
> run the video ( i can hear the sound of video but don't see it as the
> first time)

isn't that a Flash problem ?
(to continue to heard when the flv is expected to be closed is a feature
I've often, even in Firefox)

> I see the Multibox (http://phatfusion.net/multibox) can fix it, but i
> don't know to do that. Please help me!

see its forum ?

--
sm
From: David Mark on
On May 29, 4:12 am, "www.phpbasic.com" <w2a...(a)gmail.com> wrote:
> Hello,
> I have a problem with flash player on IE, i wish a help for this.
>
> I use the code:
>
>                                 var str = '<object classid="clsid:D27CDB6E-
> AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/
> pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" '
>                                 str += 'width="100" ';
>                                 str += 'height="100" ';
>                                 str += 'title="DivBoxMedia">';
>                                 str += '<param name="movie" value="'+_cfg.path+'flvplayer.swf" />'
>                                 str += '<param name="quality" value="high" />';
>                                 str += '<param name="salign" value="TL" />';
>                                 str += '<param name="scale" value="noScale" />';
>                                 str += '<param name="FlashVars" value="path=file_video.flv" />';
>                                 str += '<embed src="player/flvplayer.swf" ';
>                                 str += 'quality="high" pluginspage="http://www.adobe.com/shockwave/
> download/download.cgi?P1_Prod_Version=ShockwaveFlash"
> type="application/x-shockwave-flash" ';
>                                 str += 'width="100" ';
>                                 str += 'height="100"';
>                                 str += 'salign="TL" ';
>                                 str += 'scale="noScale" ';
>                                 str += 'FlashVars="path=file_video.flv"';
>                                 str += '></embed>';
>                                 str += '</object>';

All of that concatenation comes at a heavy price performance-wise.

>                                 $('div.video').html(str);

Here's a big problem (jQuery). You have turned a simple test case
into something nobody is going to touch as it is not apparent what is
going on behind the scenes. You didn't even specify which jQuery you
are using. Every release is different (which is another issue).

>
> It works good on Firefox, Chrome and Safari but when run it on IE will
> good for first time, but when i use jquery to remove <div
> class="video" and create again then it don't show player but it still
> run the video ( i can hear the sound of video but don't see it as the
> first time)

Stop using jQuery. ;)

>
> I see the Multibox (http://phatfusion.net/multibox) can fix it, but i
> don't know to do that. Please help me!

How is this Multibox thing going to fix your Flash/jQuery problem?

Try to recreate the case without jQuery. That may well fix it and if
not, somebody will be able to help you without digging into ever-
shifting (and usually botched) jQuery methods.
From: beegee on

> I see the Multibox (http://phatfusion.net/multibox) can fix it, but i
> don't know to do that. Please help me!


For embedding flash, I'll recommend another small code library called
swfobject http://code.google.com/p/swfobject. Helps organize your
parameters, flashvars, etc and takes care of many cross browser
issues.

IE does an decode on URLs passed to the flash player so be careful.

Bob
From: David Mark on
On May 30, 9:20 am, beegee <bgul...(a)gmail.com> wrote:
> > I see the Multibox (http://phatfusion.net/multibox) can fix it, but i
> > don't know to do that. Please help me!
>
> For embedding flash, I'll recommend another small code library called
> swfobjecthttp://code.google.com/p/swfobject.

Last I checked, it was garbage as well (as was its successor).

I only know of one Flash script that avoids browser sniffing. Can you
guess which? :)