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 » Sun Dec 31, 2006 8:12 pm

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?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Flash Videos or swf files

Post by garvinhicking » Tue Jan 02, 2007 11:48 am

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/

User avatar
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee » Tue Jan 02, 2007 2:39 pm

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.php?/archives/9-Oh-Gott,-ich-habe-Flash-im-Blog!.html

Greetings, Lordcoffee.

User avatar
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee » Tue Jan 02, 2007 3:01 pm

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 » Wed Feb 07, 2007 7:35 pm

I would LOVE to see an english tutorial for this as well.
Thanks!

User avatar
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee » Wed Feb 07, 2007 8:27 pm

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 » Wed Feb 07, 2007 8:38 pm

Got it. Thanks

steamfish81
Posts: 4
Joined: Tue Feb 27, 2007 3:50 pm

Post by steamfish81 » Tue Feb 27, 2007 3:54 pm

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

Please reupload FlashVideoPlayer.php...

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Wed Feb 28, 2007 8:51 am

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 » Wed Feb 28, 2007 4:22 pm

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Wed Feb 28, 2007 5:16 pm

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 » Wed Feb 28, 2007 7:00 pm

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 » Wed Feb 28, 2007 7:09 pm

Shouldn't " 'object type " be " <'object type "? I got it to work now... Thanx for all your help... Cheers...:D

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking » Wed Feb 28, 2007 7:19 pm

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