Flash Videos or swf files

Creating and modifying plugins.
Post Reply
Pete
Regular
Posts: 41
Joined: Sat Dec 30, 2006 5:15 pm

Flash Videos or swf files

Post by Pete »

I'd like to know, how I can stream flv or swf files via a streaming plugin or manually? i already installed the podcast plugin, but is there also a possibility to stream such files?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Flash Videos or swf files

Post by garvinhicking »

Hi!

If you understand german, I just posted this today:

http://board.s9y.org/viewtopic.php?t=82 ... dio+player

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/
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

Hi I postet a german tutorial on my Blog. I'm writing on the engl. version atm. I'll update here if the engl Version is ready.

http://www.taeglichanders.de/blog/index ... Blog!.html

Greetings, Lordcoffee.
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

lordcoffee wrote:Hi I postet a german tutorial on my Blog. I'm writing on the engl. version atm. I'll update here if the engl Version is ready.

http://www.taeglichanders.de/

Greetings, Lordcoffee.
EDIT: The english tut is online. Excuse my bad english ;-)
DMotel
Regular
Posts: 67
Joined: Fri Apr 21, 2006 8:49 pm

Post by DMotel »

I would LOVE to see an english tutorial for this as well.
Thanks!
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

The english tutorial is already there ;-) Just switch the language on the bottom of the entry. :wink:
DMotel
Regular
Posts: 67
Joined: Fri Apr 21, 2006 8:49 pm

Post by DMotel »

Got it. Thanks
steamfish81
Posts: 4
Joined: Tue Feb 27, 2007 3:50 pm

Post by steamfish81 »

I can't download your FlashVideoPlayer.php, and the one that came with serendipity_event_regexpmarkup doesn't work...

Please reupload FlashVideoPlayer.php...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

That FlashVideoPlayer with the regexpmarkup plugin should work.

How did you configure the regexpmarkup plugin, and what do you enter in your entry? Can we see a URL of a posting where it doesn't work?

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/
steamfish81
Posts: 4
Joined: Tue Feb 27, 2007 3:50 pm

Post by steamfish81 »

My entry is:

Code: Select all

<flv:test.flv width=320 height=240 />
where, test.flv is in C:\Inetpub\wwwroot\serendipity\movies\test.flv

The output is:

Code: Select all

object type="application/x-shockwave-flash" width="320" height="240" data="http://yourdomain/flv.swf?file=%s">
I'm running IIS6 btw, and followed the steps above...
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Ah, I think you'Re right, the FlashVideoPlayer.php file contained some bad code. "%s" needs in fact to read "\\1".

Use this FlashVideoPlayer.php:

Code: Select all

<?php
// Flash Player.
//
$regexpArray = array(
    'SearchArray'=>array(
                '/<flv:([^>]+)\/>/U'
    ),
    'ReplaceArray'=>array(
                'object type="application/x-shockwave-flash" width="320" height="240" data="http://yourdomain/flv.swf?file=\\1"><param name="movie" value="http://yourdomain/flv.swf?file=\\1" /></object>'
    )
);
Inside that code, replace "http://yourdomain/flv.swf" with the HTTP URL of where you put the flv.swf Videoplayer.

Once you saved that, you can use this code in your entry:

Code: Select all

<flv:/serendipity/movies/test.flv>
HTH,
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/
steamfish81
Posts: 4
Joined: Tue Feb 27, 2007 3:50 pm

Post by steamfish81 »

Hi there...

I changed the FlashVideoPlayer.php:

Code: Select all

<?php
// Flash Player.
//
$regexpArray = array(
    'SearchArray'=>array(
                '/<flv:([^>]+)\/>/U'
    ),
    'ReplaceArray'=>array(
                'object type="application/x-shockwave-flash" width="320" height="240" data="http://localhost:81/serendipity/movies/flvplayer.swf?file=\\1"><param name="movie" value="http://localhost:81/serendipity/movies/flvplayer.swf?file=\\1" /></object>'
    )
);
and using:

Code: Select all

<flv:/serendipity/movies/test.flv>
in my post...

Output is totally blank.

If I change my posting to <flv:/serendipity/movies/test.flv/>, then output will become:

Code: Select all

object type="application/x-shockwave-flash" width="320" height="240" data="http://localhost:81/serendipity/movies/flvplayer.swf?file=/serendipity/movies/test.flv">
I tried the url http://localhost:81/serendipity/movies/ ... s/test.flv and it works fine by the way...

Thanx for your reply, but no do for now...:(
steamfish81
Posts: 4
Joined: Tue Feb 27, 2007 3:50 pm

Post by steamfish81 »

Shouldn't " 'object type " be " <'object type "? I got it to work now... Thanx for all your help... Cheers...:D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Exactly, the '<' was missing. I'm sorry for all the confusion. I shouldn't code when I have a flu :-(

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