Adding FLV videos to SilverStripe page content - Burnbright Websites

Adding FLV videos to SilverStripe page content

Posted by on 11 June 2009 | 2 Comments

Tags: , ,

I came up with a hack way to add flv videos to SilverStripe page content.

The finished solution simply involves inserting a link to the .flv file and then applying a certian style to it from the dropdown menu.

The rest is handled by javascript. It looks for the style, and replaces the link with flowplayer.

How to:

  • in your editor.css file add:
            .typography .embedvideo{
                
            }
    ..this will make 'embedvideo' show up in the -- Styles -- list in the CMS
  • upload and add a link to your .flv file in the CMS editor.
  • with the link selected, choose 'embedvideo' from the styles list.

The media module automatically introduces the capability to convert those 'embedvideo' links to flowplayer video players.

Let me know if this isn't clear.


Post your comment

Comments

  • Hi,
    i've try it at my site, the flowplayer try to get the video from a wrog url. http://mybage.com/pagename/assets/video/test.flv

    the video is located in /assets/video/test.flv ???

    Posted by Mike, 05/02/2010 3:18am (6 months ago)

  • Do you have such an example already?

    Posted by Tony, 19/11/2009 12:10am (8 months ago)