Installing Flash Video Player

Having trouble installing serendipity?
Post Reply
steven
Regular
Posts: 57
Joined: Tue Jul 18, 2006 12:07 pm
Location: North Carolina USA
Contact:

Installing Flash Video Player

Post by steven »

I have followed the instructions here:
http://www.taeglichanders.de/blog/index ... lected]=en

The entry shows the space for the player, but there is nothing. When I look at the html source code, I see:

Code: Select all

<object type="application/x-shockwave-flash" width="320" height="240" data="http://yourdomain/flv.swf?file=saving-shells.flv width=320 height=240 "><param name="movie" value="http://yourdomain/flv.swf?file=saving-shells.flv width=320 height=240 " /></object>
Obviously, this is wrong, but I cannot find where to change the code that generates this.

The FlashVideoPlayer.php code is:

Code: Select all

<?php
// Flash Player.
//
$regexpArray = array(
    'SearchArray'=>array(
		'/<flv:([^>]+).flv width=([^>]+) height=([^>]+)\/>/U'
    ),
    'ReplaceArray'=>array(
		'<object type="application/x-shockwave-flash" width="$2" height="$3" wmode="transparent" data="movies/flvplayer.swf?file=$1.flv&clicktext=%20&image=movies/$1.jpg"><param name="movie" value="movies/flvplayer.swf?file=$1.flv&clicktext=%20&image=movies/$1.jpg" /><param name="wmode" value="transparent" /></object>'
    )
);
I have tried changing the code, but the html source stays the same.

I get warnings like:
Warning: Cannot modify header information - headers already sent by path/to/the/file on line xxx.

If you have this working, please help. And I'll need it in crayon.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Installing Flash Video Player

Post by garvinhicking »

Hi!

Your actual error message would help. It means you saved thef ile with extra, invalid characters.

Also, maybe you rather want to use the podcast event plugin, this also supports video possibilities and is easier to handle.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
steven
Regular
Posts: 57
Joined: Tue Jul 18, 2006 12:07 pm
Location: North Carolina USA
Contact:

Post by steven »

I need to have FLV files displayed. The podcast plugin doesn't seem to support them.

I will try to install the Flash Video Plugin again and post any errors.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!
steven wrote:I need to have FLV files displayed. The podcast plugin doesn't seem to support them.
It should be able to support FLV files, if you add the "flv" file extension to the plugins configuration, using the XSPF player?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
steven
Regular
Posts: 57
Joined: Tue Jul 18, 2006 12:07 pm
Location: North Carolina USA
Contact:

Post by steven »

Cool.

I have ftp'd several FLV files to a directory called "movies". What code do I use in the entry to have the video appear? I use the standard editor.

Are there any other plugins needed to make this work?

Sorry to be a pain.
mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 9:35 pm
Location: Wiesbaden, Germany
Contact:

Post by mattsches »

It looks like Grischa is working on extending the Easy Podcast plugin.
steven
Regular
Posts: 57
Joined: Tue Jul 18, 2006 12:07 pm
Location: North Carolina USA
Contact:

Post by steven »

The site looks like it has some good information. Unfortunately I cannot read German (I think).
steven
Regular
Posts: 57
Joined: Tue Jul 18, 2006 12:07 pm
Location: North Carolina USA
Contact:

No Joy

Post by steven »

I tried the Easy Podcast Plugin, it shows an mp3 looking player, but no video.

I re-installed the Flash Video Player according to the instructions here:
http://www.taeglichanders.de/blog/index ... lected]=en

It shows an appropriately sized space for the player but nothing else. I must be getting close.

In addition, the following message is shown at the admin page and on saving the entry:
Warning: Cannot modify header information - headers already sent by (output started at /myhostpath/stevenmuncy.com/plugins/serendipity_event_flashsetbutton/lang_en.inc.php:29) in /myhostpath/stevenmuncy.com/include/functions_config.inc.php on line 627

Warning: Cannot modify header information - headers already sent by (output started at /myhostpath/stevenmuncy.com/plugins/serendipity_event_flashsetbutton/lang_en.inc.php:29) in /myhostpath/stevenmuncy.com/include/functions_config.inc.php on line 627

Warning: Cannot modify header information - headers already sent by (output started at /myhostpath/stevenmuncy.com/plugins/serendipity_event_flashsetbutton/lang_en.inc.php:29) in /myhostpath/stevenmuncy.com/serendipity_admin.php on line 11
I don't know if this is a server problem or something else. I'm pretty sure that its something simple I have not set correctly, but it is beyond me.
steven
Regular
Posts: 57
Joined: Tue Jul 18, 2006 12:07 pm
Location: North Carolina USA
Contact:

Working

Post by steven »

It's working now. Just make sure to change the FlashPlayerVideo.php before you upload to your site. It doesn't seem to take editing well.

Still have the problem with the warnings above. They seem related to the FlashSetButton.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Working

Post by garvinhicking »

Hi!

Check out the lang_en.inc.php file of the flashset button plugin, it seems it has extra linebreaks after thec losing "?>" line. Remove those, and maybe also tell the plugin author to do that.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
steven
Regular
Posts: 57
Joined: Tue Jul 18, 2006 12:07 pm
Location: North Carolina USA
Contact:

That fixed it.

Post by steven »

Just 2 extra lines caused all that. Thanks.
Post Reply