Page 1 of 1
Flash Videos or swf files
Posted: Sun Dec 31, 2006 8:12 pm
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?
Re: Flash Videos or swf files
Posted: Tue Jan 02, 2007 11:48 am
by garvinhicking
Hi!
If you understand german, I just posted this today:
http://board.s9y.org/viewtopic.php?t=82 ... dio+player
Regards,
Garvin
Posted: Tue Jan 02, 2007 2:39 pm
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.
Posted: Tue Jan 02, 2007 3:01 pm
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

Posted: Wed Feb 07, 2007 7:35 pm
by DMotel
I would LOVE to see an english tutorial for this as well.
Thanks!
Posted: Wed Feb 07, 2007 8:27 pm
by lordcoffee
The english tutorial is already there

Just switch the language on the bottom of the entry.

Posted: Wed Feb 07, 2007 8:38 pm
by DMotel
Got it. Thanks
Posted: Tue Feb 27, 2007 3:54 pm
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...
Posted: Wed Feb 28, 2007 8:51 am
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
Posted: Wed Feb 28, 2007 4:22 pm
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...
Posted: Wed Feb 28, 2007 5:16 pm
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
Posted: Wed Feb 28, 2007 7:00 pm
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...

Posted: Wed Feb 28, 2007 7:09 pm
by steamfish81
Shouldn't " 'object type " be " <'object type "? I got it to work now... Thanx for all your help... Cheers...

Posted: Wed Feb 28, 2007 7:19 pm
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