FLV-Player, reloading complete Site -Problem

Any help topics that don't fit in the current categories can go here.
Post Reply
Jaami
Posts: 38
Joined: Wed Nov 23, 2011 11:22 pm
Location: GER

FLV-Player, reloading complete Site -Problem

Post by Jaami »

hi, i am using this http://flv-player.net/players/maxi/generator/video player.
[syntax=php]<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']; ?>&amp;margin=2&amp;bgcolor=0C120C&amp;bgcolor1=141414&amp;bgcolor2=1a1a1a&amp;showstop=1&amp;showvolume=1&amp;volume=80&amp;loadingcolor=606054&amp;showtime=1&amp;showloading=always&amp;showfullscreen=1&amp;showiconplay=1&amp;iconplaybgalpha=25&amp;showmouse=autohide&amp;playercolor=171717&amp;startimage=/images/<?php echo $post['videopic']; ?>"/>
</object>[/syntax]

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..
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: FLV-Player, reloading complete Site -Problem

Post 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.
Image
Jaami
Posts: 38
Joined: Wed Nov 23, 2011 11:22 pm
Location: GER

Re: FLV-Player, reloading complete Site -Problem

Post 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.
Jaami
Posts: 38
Joined: Wed Nov 23, 2011 11:22 pm
Location: GER

Re: FLV-Player, reloading complete Site -Problem

Post 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...
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: FLV-Player, reloading complete Site -Problem

Post 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.
Image
Jaami
Posts: 38
Joined: Wed Nov 23, 2011 11:22 pm
Location: GER

Re: FLV-Player, reloading complete Site -Problem

Post 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!
Jaami
Posts: 38
Joined: Wed Nov 23, 2011 11:22 pm
Location: GER

Re: FLV-Player, reloading complete Site -Problem

Post 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
[syntax=php]<?php

include_once("blog_list.php");

?>[/syntax]

blog_list.php
[syntax=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{

}
}

?>
...
[/syntax]


vid_player.php !important
[syntax=php]<iframe class="ytplayerborder" width="560" height="315" frameborder="0" src="vid_player_iframe.php" allowfullscreen>
</iframe>[/syntax]

vid_player_iframe.php !important
[syntax=php]<object width="560" height="315"> <param name="movie" value="http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf"></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/FlashMediaPlayback.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>
[/syntax]

i figured out that the $post variable is undefined, and i already tried all kinda things out, but failed.. :(
ideas, please?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: FLV-Player, reloading complete Site -Problem

Post by jacek »

Are the $post variables defined on the page you used in the iframe (horrible method btw ;)) ?
Image
Jaami
Posts: 38
Joined: Wed Nov 23, 2011 11:22 pm
Location: GER

Re: FLV-Player, reloading complete Site -Problem

Post 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..?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: FLV-Player, reloading complete Site -Problem

Post 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
Image
Jaami
Posts: 38
Joined: Wed Nov 23, 2011 11:22 pm
Location: GER

Re: FLV-Player, reloading complete Site -Problem

Post 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.
Post Reply