embeding flash and video via flash

Creating and modifying plugins.
Post Reply
mojito
Regular
Posts: 13
Joined: Tue Apr 04, 2006 5:57 pm

embeding flash and video via flash

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: embeding flash and video via flash

Post 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
# 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