Page 1 of 1

Markup: RegexpMarkup flv player help

Posted: Sat Oct 21, 2006 10:37 pm
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.

Re: Markup: RegexpMarkup flv player help

Posted: Sun Oct 22, 2006 3:52 pm
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

Re: Markup: RegexpMarkup flv player help

Posted: Sun Oct 22, 2006 9:32 pm
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!

Posted: Sun Oct 22, 2006 9:55 pm
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!

Posted: Sun Oct 22, 2006 10:07 pm
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!

Posted: Sun Oct 22, 2006 10:32 pm
by lordcoffee
You've got mail with all files you need and a small tutorial ;-)

Greetz, Lordcoffee!

Posted: Sun Oct 22, 2006 11:12 pm
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!

Posted: Mon Oct 23, 2006 11:34 am
by garvinhicking
Hi!

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

Best regards,
Garvin

Posted: Mon Oct 23, 2006 2:12 pm
by lordcoffee
Of course! I'm not at home so I'll post it tonight...

Lordcoffee

Posted: Mon Oct 23, 2006 8:34 pm
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