Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
ragger wrote:
I made it less complex by defining the player explicitly in the ‘player’ attribute:
player="files/flvplayer.swf"
.
Congratulations for making it work! Now the exact reason why it didn’t work before is because the player movie had to be downloaded through the Textpattern download system. And Opera + Flash don’t seem to like this system.
So it had nothing to do with the flashVars. However, I have 2 suggestions for the plugin author related to the passing of variables:
- You can consider using flashVars to pass the “file” and “autoStart” variables, instead of the query string. The main difference is that flashVars allows to pass up to 64K chars, instead of limiting the full URL of the flash animation (SWF URL + all variables) to 1024 chars. Another advantage is that you only have to pass the variables once instead of repeating them twice (in the data attribute of the object tag and in the movie parameter value). The flashVars parameter only works with Flash 6+ (as does Flash video so it’s not a problem).
- In any case, if you choose to use flashVars or to keep the query string, you must urlencode the values of the variables. In this case, you must urlencode the URL of the movie for the “file” variable. Currently it’s working because browsers are smart enough to handle these URL’s in URL’s, but it’s the proper way to do as I found out on many websites.
Last edited by cbeyls (2006-09-26 01:09:19)
My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
On the site of Jeroen Wijering, the designer of the Flash video player, you can find a new version of the player. The one Bastian provides seems rather old, because the following new features have been implemented since: JPG cover is shown after the video finishes, volume controls added, switched to squarish design, video smoothing fixed and added flashvars for image, repeat and clicktext.
‘Clicktext’ is really nice. It allows you to set your own text (in stead of ‘Click to start’) on the black start screen (or on the .jpg). To do this, just add &clicktext=whatever you want, just start the f*cking movie!
in the data
attribute of object
and the value
of the movie
param.
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Again, you don’t need to set that variable at two places (the data attribute and the value of the movie param), you can just set it once in the flashVars param.
My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Do I just need to switch out the old flash player fie with then new to get going?
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Just give the new one a different name and refer to that.
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
cbeyls wrote:
Again, you don’t need to set that variable at two places (the data attribute and the value of the movie param), you can just set it once in the flashVars param.
Excuse me for not quite get what you guys mean… Do you talk about adding a line in the plugin? (Edit plugin) If so, where do I place this exactly? Couldn´t find the flashVars param you´re talking about.
Im mainly interested in changing the “click to play” text.
I now guess I have to edit the players sourcecode somehow. But how is that done? Newbie when it comes to programs like Macromedia Flash MX… is the solution there?
Last edited by skoggy (2006-09-29 14:37:07)
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
OK.
Look for this part in the plugin:
}
$autostart=($autostart '1')?'':'&autoStart=false';@
@ if($debug 'false' && $player != '' && $video != ''){
$out[]='<object type="application/x-shockwave-flash" data="'.$player.'?file='.$video.$autostart.'" width="'.$width.'" height="'.$height.'">';
$out[]=' <param name="movie" value="'.$player.'?file='.$video.$autostart.'" />';
$out[]=' <param name="wmode" value="transparent" />';
$out[]='</object>';
return join(n,$out);
}
and change it into:
}
$autostart=($autostart '1')?'':'&autoStart=false';@
@ if($debug 'false' && $player != '' && $video != ''){
$out[]='<object type="application/x-shockwave-flash" data="'.$player.'?file='.$video.$autostart.'&clicktext=Your%20text%20here!" width="'.$width.'" height="'.$height.'">';
$out[]=' <param name="movie" value="'.$player.'?file='.$video.$autostart.'&clicktext=Your%20text%20here!" />';
$out[]=' <param name="wmode" value="transparent" />';
$out[]='<p><strong>This%20movie%20needs%20Flash%20installed!</strong></p>';
$out[]='</object>';
return join(n,$out);
}
Note that I also added a line for those browsers without Flash installed. And the %20
thingie is a hardcoded HTML space.
Cbeyls is referring to an extra output line <param name="FlashVars" value="clicktext=Your%20text%20here!">
in stead of what I did. Haven’t tried that yet, but it should work.
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Thanks man! :)
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
My suggestion:
if($debug == 'false' && $player != '' && $video != ''){
$out[]='<object type="application/x-shockwave-flash" data="'.$player.'" width="'.$width.'" height="'.$height.'">';
$out[]=' <param name="movie" value="'.$player.'" />';
$out[]=' <param name="flashVars" value="file='.urlencode($video).$autostart.'&clicktext='.urlencode('Your text here!').'" />';
$out[]=' <param name="quality" value="best" />';
$out[]=' <param name="wmode" value="transparent" />';
$out[]='<p><strong>This movie needs Flash installed!</strong></p>';
$out[]='</object>';
return join(n,$out);
}
My plugins : cbs_live_search (improved) – cbs_category_list – cbs_navigation_menu – cbs_gravatar (updated) – cbs_article_index – cbs_maintenance_mode (new) – cbs_section_language (new)
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
I now installed the new flashplayer but i have only in firefox the start/cover.jpg not in ie.
What can I do to show them there too?
Example: http://www.hasenbu.de/278/saison-eroeffnet
Last edited by holli.p (2006-10-05 09:10:34)
Visit my Textpattern sites:
Northerndelight | Hasenbude
Curiculum Vitare | Rezepteblock
Offline
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
OK I am having troubles understanding how to use and set up.
I have put the plugin files in the root of my textpattern setup. I installed the plugin and see the extenstions in advanced preferences. I put <txp:bas_flvplayer video=‘1’ /> in my article and saved. I can right click in the article and it will have a Marcomedia about box but the entire article is blank. Is there another call I need to put in or point too?
Offline
#84 2006-11-24 00:00:03
- stdmedia
- Member
- From: Canada
- Registered: 2006-01-05
- Posts: 51
Re: [plugin] [ORPHAN] bas_flvplayer - Streaming Video
Scrap all of that stuff I wrote previously. Now I’m wondering if someone could help me understand how to embed the movies using the, previously mentioned, SWFObject. I’m not all that great with stuff, and any help would be truly appreciated.
Thank you in advance.
Last edited by stdmedia (2006-12-05 07:08:32)
Offline