On Tue, 11 May 2010, Winnie wrote: > Does anyone using sfVideoPlugin to embed some video on a website? I > manage to make the example works with flv, but i can't make it work > with others formats...
Its a flash video player, i.e. I think it only plays flash video (FLV). Read the README. > > So, is there an other plugin to do this? > How can I embed other video format? > > This is the code who doesn't work ( in comments this is the good > code ) > > //plugins/sfVideoPlugin/modules/sfVideo/templates/indexSuccess.php > [code] > <head> > </head> > <body> > > <ul> > <!--<li><?php echo link_to('video 01.flv', '@video_local? > file=01.flv') ?></li> > <li><?php echo link_to('video 02.flv', '@video_local?file=02.flv') ? > ></li> > <li><?php echo link_to('video 03.flv', '@video_local?file=03.flv') ? > ></li>--> > <li><?php echo link_to('test test.avi', '@video_local? > file=test.avi') ?></li> > </ul> > > </body> > [/code] > > //plugins/sfVideoPlugin/modules/sfVideo/templates/localSuccess.php > [code] > <head> > <?php use_javascript('flowplayer-3.1.4.min.js')?> > <?php include_javascripts() ?> > <?php use_helper('Video') ?> > </head> > > <body> > > > <div id="page"> > > <h1>sfVideoPlugin example - powered by Flowplayer</h1> > > <p>View commented source code to get familiar with Flowplayer > installation.</p> > > <!-- this A tag is where your Flowplayer will be placed. it can be > anywhere --> > <!--<a href="<?php echo video_path('flv'.'/'.$file) ?>" > style="display:block;width:520px;height:330px" id="player"></a>--> > <a href="<?php echo video_path('avi'.'/'.$file) ?>" > style="display:block;width:520px;height:330px" id="player"></a> > > <!-- this will install flowplayer inside previous A- tag. --> > <script> > flowplayer("player", "<?php echo video_path('swf/ > flowplayer-3.1.5.swf') ?>"); > </script> > > </div> > > </body> > [/code] > > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en