Page 1 of 1

FLV-Player, reloading complete Site -Problem

Posted: Sun Dec 11, 2011 1:11 am
by Jaami
hi, i am using this http://flv-player.net/players/maxi/generator/video player.
<object type="application/x-shockwave-flash" data="player_flv_maxi.swf" width="520" height="410">
    <param name="movie" value="player_flv_maxi.swf" />
    <param name="allowFullScreen" value="true" />
    <param name="FlashVars" value="flv=<?php echo $post['video']; ?>&margin=2&bgcolor=0C120C&bgcolor1=141414&bgcolor2=1a1a1a&showstop=1&showvolume=1&volume=80&loadingcolor=606054&showtime=1&showloading=always&showfullscreen=1&showiconplay=1&iconplaybgalpha=25&showmouse=autohide&playercolor=171717&startimage=/images/<?php echo $post['videopic']; ?>"/>
</object>
and if i refresh my site, it reloads also my navigation, header etc. so i got this bad flashing effect. i dont have that problem with yt-videos..

any ideas? or/and do you know any other free .flv player, without watermarks(!) and for commercial use also..

Re: FLV-Player, reloading complete Site -Problem

Posted: Sun Dec 11, 2011 1:30 pm
by jacek
Not really sure what you mean, if you reload the page, it has to reload :s
Jaami wrote:any ideas? or/and do you know any other free .flv player, without watermarks(!) and for commercial use also..
I believe this http://sourceforge.net/apps/mediawiki/o ... of_minutes

The instructions are pretty terrible, but the player is pretty nice.

Re: FLV-Player, reloading complete Site -Problem

Posted: Sun Dec 11, 2011 1:56 pm
by Jaami
like i said, i dont have this problem with yt-videos. normaly my header, navigation etc. doesn`t blink/flashes when i refresh my page and they stay where they are unchanged. but with this player my whole site reloads.

Re: FLV-Player, reloading complete Site -Problem

Posted: Sun Dec 11, 2011 2:11 pm
by Jaami
i think it has something to do with the yt-embed code, it is in a iframe. i am gonna try the same with the flv player...

Re: FLV-Player, reloading complete Site -Problem

Posted: Sun Dec 11, 2011 2:12 pm
by jacek
Jaami wrote:like i said, i dont have this problem with yt-videos. normaly my header, navigation etc. doesn`t blink/flashes when i refresh my page and they stay where they are unchanged. but with this player my whole site reloads.
The whole site will always reload, that’s what reload means. You might only be noticing it if your site is slow for some reason ? Or if the flash player is slow for some reason.

It could also be that if you are running the site locally your browser does not cache files for localhost.

Re: FLV-Player, reloading complete Site -Problem

Posted: Tue Dec 13, 2011 4:52 pm
by Jaami
what i really meant was, if i click a link, it does that bad flashing effect..but mixed it totally up....brainlags. :roll:

whatever, i tried your posted player, at least it looks better, but it`s the same little problem here.

btw. i just completed your "register and login" + "cookie extension" tutorials. both of them are really good and helpful, like all your tutorials are, thank you again!

Re: FLV-Player, reloading complete Site -Problem

Posted: Wed Dec 14, 2011 12:31 pm
by Jaami
i created an iframe now, and it loads me the player, but this "<?php echo $post['video']; ?>" doesn`t seem to work, so i dont get my video_name from my database to the player. without an iframe it all works, but i need the iframe because the flashing effect goes away then!

the structure:

index.php
<?php

include_once("blog_list.php");

?>
blog_list.php
 ...                   
<?php

                    if(empty($post['video'])){

                    }
                    else{
                        if(isset($post['videoplayer'])){
                            $videoplayer = $post['videoplayer'];
                                if($videoplayer == '1'){
                                    include('vid_player.php');
                                }
                                else{
                                    include('vid_player2.php');
                                }
                        }
                        else{

                        }
                    }

                    ?>
...

vid_player.php !important
<iframe class="ytplayerborder" width="560" height="315" frameborder="0" src="vid_player_iframe.php" allowfullscreen>
</iframe>
vid_player_iframe.php !important
<object width="560" height="315"> <param name="movie" value="http://fpdownload.adobe.com/strobe/Flas ... f"></param>
<param name="flashvars" value="src=http://localhost/<?php echo $post['video']; ?>&poster=http://localhost/images/<?php echo $post['videopic']; ?>&scaleMode=stretch"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://fpdownload.adobe.com/strobe/Flas ... ayback.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="315" flashvars="src=http://localhost/<?php echo $post['video']; ?>&poster=http://localhost/images/<?php echo $post['videopic']; ?>&scaleMode=stretch"></embed>
</object>
i figured out that the $post variable is undefined, and i already tried all kinda things out, but failed.. :(
ideas, please?

Re: FLV-Player, reloading complete Site -Problem

Posted: Thu Dec 15, 2011 1:56 am
by jacek
Are the $post variables defined on the page you used in the iframe (horrible method btw ;)) ?

Re: FLV-Player, reloading complete Site -Problem

Posted: Thu Dec 15, 2011 4:24 pm
by Jaami
i got it working finally..by adding a connection to the db, where i had troubles before..

and i know there is probably a better way to do it, but for the moment i am happy, that i managed to do it my way, after googlin my ass off..!

actually, i dont see why its that bad..?

Re: FLV-Player, reloading complete Site -Problem

Posted: Sat Dec 17, 2011 3:42 pm
by jacek
Jaami wrote:actually, i dont see why its that bad..?
This guy explains it better than I could really http://stackoverflow.com/questions/3627 ... d-practice

Re: FLV-Player, reloading complete Site -Problem

Posted: Sat Dec 17, 2011 4:02 pm
by Jaami
yeah, i throw that idea away, anyway. since i dont get it to work with that metod, to fetch the vids in correct order from the db..

my focus is now on the design of my page...trying all kinda s**t out..

Edit: i just figured out its only like that in firefox, in ie it works fine...hm.