Markup: RegexpMarkup flv player help

Creating and modifying plugins.
Post Reply
lowerleftside
Posts: 4
Joined: Sat Oct 21, 2006 10:15 pm
Contact:

Markup: RegexpMarkup flv player help

Post by lowerleftside »

I'm trying to add video to my new video site and have run into some trouble. I installed the Markup: RegexpMarkup plugin because it has the php script to play flv files.

Where it's at now. You can check to site to see lowerleftside.com, I get the player just not the video.

The entry for the blog looks like this

Code: Select all

<flv: test.flv />
File locations.
serendipity - lowerleftside.com/main
the videos will be saved in - lowerleftside.com/videos/ (test.flv in this case)
FlowPlayer.swf is in - lowerleftside.com/videos/

I've messed around (too much) with the flv.php file that came with the plugin RegexpMarkup. And I think this is where my problem is... Here is what that file looks like.

Code: Select all

<?php
// Flash Player.
//
$regexpArray = array(
    'SearchArray'=>array(
      '/<flv:([^>]+)\/>/U'
    ),
    'ReplaceArray'=>array(
      '<object type="application/x-shockwave-flash" width="420" height="280" data="http://lowerleftside.com/videos/FlowPlayer.swf?file=/movies/$1"><param name="movie" value="http://lowerleftside.com/videos/FlowPlayer.swf?file=/movies$1" /></object>'
    )
); 


In the end.
What I want is for the video to be ready to stream when the user clicks play.

It's completely possible that I'm going about this the wrong way and if that's true let me know the better / correct way.

If anyone could help me out that would be great! I don't have a great understanding of php so keep that in mind.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Markup: RegexpMarkup flv player help

Post by garvinhicking »

Hi!

You're right on track. However in the HTML flash code you use the path "/movies" instead of "/videos" which is what you need for your site, right?

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/
lowerleftside
Posts: 4
Joined: Sat Oct 21, 2006 10:15 pm
Contact:

Re: Markup: RegexpMarkup flv player help

Post by lowerleftside »

garvinhicking wrote:Hi!

You're right on track. However in the HTML flash code you use the path "/movies" instead of "/videos" which is what you need for your site, right?

Best regards,
Garvin
Garvin,

Thanks for the reply. But still isn't working. The code now looks like this

Code: Select all

<?php
// Flash Player.
//
$regexpArray = array(
    'SearchArray'=>array(
      '/<flv:([^>]+)\/>/U'
    ),
    'ReplaceArray'=>array(
      '<object type="application/x-shockwave-flash" width="420" height="280" data="http://lowerleftside.com/videos/FlowPlayer.swf?file=/videos/$1"><param name="videos" value="http://lowerleftside.com/videos/FlowPlayer.swf?file=/videos$1" /></object>'
    )
);
It's still coming up with the player just not the video.

Again thanks for your help!
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

Hi!

I did the same with another player a few weeks ago! Have a look here: postscriptfreunde.de.

And I also modified the typesetbuttons üplugin to have a button in the non-wysiwyg editor to insert the code easily.

I colud send you the files if you want...

Greetings, Lordcoffee!
lowerleftside
Posts: 4
Joined: Sat Oct 21, 2006 10:15 pm
Contact:

Post by lowerleftside »

lordcoffee wrote:Hi!

I did the same with another player a few weeks ago! Have a look here: postscriptfreunde.de.

And I also modified the typesetbuttons üplugin to have a button in the non-wysiwyg editor to insert the code easily.

I colud send you the files if you want...

Greetings, Lordcoffee!
I would love to give that a try! I would also need instructions on what changes to make to the typesetbuttons plugin. you can email the files to me

jason at wehrmanweb.com

Thanks much!
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

Post by lordcoffee »

You've got mail with all files you need and a small tutorial ;-)

Greetz, Lordcoffee!
lowerleftside
Posts: 4
Joined: Sat Oct 21, 2006 10:15 pm
Contact:

Post by lowerleftside »

lordcoffee wrote:You've got mail with all files you need and a small tutorial ;-)

Greetz, Lordcoffee!
I got mail! And the mail solved my problem.

Thanks for the files and the tutorial they worked great!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Maybe you'd like to post the tutorial/files here, so that other people can easily find it? :)

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

Post by lordcoffee »

Of course! I'm not at home so I'll post it tonight...

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

Post by lordcoffee »

Here's the tutorial as promised. The files are here and also in the tutorial.

How to embed Flash videos in S9y

What I need is someone who can translate this stuff into english. ;-)

Greetz, Lordcoffee
Post Reply