Remember me? forgot password | register

SilverStripe Forum

10688 Posts in 2795 Topics by 1518 members

Jump to:

Site Builders

If this is your first visit, you will need to register before you can post. However, you can browse all messages below.

Community » SilverStripe Forum » Site Builders » flv issue
Page: 1 go to end Reply
Author Topic: flv issue 36913 views
  • mage
    mage's avatar
    Community Member
    7 posts
    2 SilverStripe Sites

    flv issue Link to this post

    I am trying to find a way to stream flash videos (flv) in the gallery module so that they popup and load with a player element below not unlike a youtube video.

    Can anyone help?

  • Blackdog
    Blackdog's avatar
    Community Member
    136 posts

    Re: flv issue Link to this post

    Have you considered a thickbox type overlay with the flv content in it?

  • mage
    mage's avatar
    Community Member
    7 posts
    2 SilverStripe Sites

    Re: flv issue Link to this post

    not entirely sure what you mean? can you please elaborate a little...

  • Blackdog
    Blackdog's avatar
    Community Member
    136 posts

    Re: flv issue Link to this post

    have a look at the iframe or ajax content windows.
    they might help with your idea.

    http://jquery.com/demo/thickbox/

  • mage
    mage's avatar
    Community Member
    7 posts
    2 SilverStripe Sites

    Re: flv issue Link to this post

    ok couldn't find much help with thickbox

    however it works with ie7 just not firefox... not sure why...

    below is the output code from the gallery module... i am using osflv player... if anyone could help that would be incredible... i've been trying all day.

    <a id="ViewLink-26" class="lightwindow" rel="NEWVIDEO[Media]" href="player.swf?movie=assets/galleries/newvideo/7thHuntFight1_NEW.flv" title="7thHuntFight1_NEW.flv" caption="500 x 500 - 5.5 MB" params="lightwindow_width=500,lightwindow_height=500">

    Also if i add

    &width=300&height=240

    onto the end of the .flv (which should be allowed with osflv player) i get 'XML Parsing Error: not well-formed' and it points to the first equals sign (=) after 'width'... not sure what is going on..

    Last edited: 18 April 2008 at 3:47am

  • mage
    mage's avatar
    Community Member
    7 posts
    2 SilverStripe Sites

    Re: flv issue Link to this post

    Ok so I managed to solve the problem for the most part, the menu doesnt work in firefox when the flv is playing, but because it autostarts that is more annoying than a problem.

    Here are the changes I made to the GalleryPage.php:

    At about line 229 or after this code

    $ext = $item->getExtension();
    I put

    if($ext == 'flv') {
    $item->FlvMovie = true;
    }

    then in the GalleryPageContent.ss file:

    I changed each href to this (note: make sure you do this for PrevGalleryItems, CurrentGalleryItems and NextGalleryItems):

    href="<% if FlvMovie %>gallery/mediaplayer.swf?file=/<% end_if %>$Filename<% if FlvMovie %>&#38;displayheight&#61;240&#38;height&#61;240&#38;bufferlength&#61;5&#38;autostart&#61;true<% end_if %>"

    It took me long enough but I found that the XML parse error just needed to be fixed by placing the HTML number instead of the actual character. e.g &#38; in place of &

    Finally I put the player used in the appropriate folder e.g. in the gallery folder. I used JW FLV MEDIA PLAYER 3.16

    Hope it helps anyone else wanting to play .flv videos in the gallery module. Please let me know if there is an easier way as well...

    Last edited: 6 May 2008 at 8:08pm

    36913 views
go to top Reply

Currently Online:

There is nobody online.

Welcome to our latest member: lorem