Page 1 of 1

embeding flash and video via flash

Posted: Fri Jul 20, 2007 2:45 pm
by mojito
I have installed regxp with the hope that I can embed my flash things in the posts. It tells me there are example files but I dont see any in the install so Im asking here here is the related flash code.

Code: Select all

$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>'
    )
does this mean it should already be working with <flv:http://myvideo.com/myvideo.flv>

id like to put the whole absolute path in and not have the domain hard coded..
thanks for pointers im not so sure of reg exp.

Re: embeding flash and video via flash

Posted: Fri Jul 20, 2007 3:08 pm
by garvinhicking
Hi!

You need to edit that file and replace http://yourdomain.flv.swf with the URL of your FLV-SWF Player. There are some free players out there that you can embed, I don't remember their name though. Search this forum for "flash" and "video" should yield a result though.

Then you need to use:

Code: Select all

<flv:/path/to/myvideo.flv>
instead. No HTTP URL is allowed, only the file path to the SWF player. mor info about the url input variable depends on which SWF Player you use.

So, the main issue for you is, you need to have a custom SWF player. There is no generic HTML code that you can use to play a FLV file, so you need your own player. Or you use a web-player one some remote host, if you know of any.

Best regards,
Garvin