I can't get the module to work I creaded a page and added the test code and I don't get any player to show up
this is the code

  $video = '<a href="http://blip.tv/file/get/Kwang0274-NYCThemingSeminarDay1Part2816.flv" id="player" class="flowplayer"></a>';
  flowplayer_add('#player', array(
    'clip' => array(
      'autoPlay' => FALSW, // Turn autoplay off
      'linkUrl' => 'http://blip.tv/file/1710846', // When clicked on
    ),
  ));

Comments

robloach’s picture

Make sure you're using PHP filter, as well as outputing that $video variable........ This works for me when inside the node itself:

  echo '<a href="http://blip.tv/file/get/Kwang0274-NYCThemingSeminarDay1Part2816.flv" id="player" class="flowplayer"></a>';
  flowplayer_add('#player', array(
    'clip' => array(
      'autoPlay' => FALSE, // Turn autoplay off
      'linkUrl' => 'http://blip.tv/file/1710846', // When clicked on
    ),
  ));

........ Taking that into consideration, this would work too:

echo theme('flowplayer', array(
  'clip' => array(
    'url' => 'http://blip.tv/file/get/Kwang0274-NYCThemingSeminarDay1Part2816.flv',
    'autoPlay' => FALSE,
    'linkUrl' => 'http://blip.tv/file/1710846', // When clicked on
  )
));
typehost’s picture

What would be the best way to add a list of 3 videos together using this code?

for example:

<?php
  $video = theme('flowplayer', 'http://example.net/docs/demo1.swf');
  $video2 = theme('flowplayer', array(
    'clip' => array(
      'url' => 'http://example.net/docs/demo2.swf',
      'autoPlay' => FALSE, // Turn autoplay off
    ),
  ));
  $video3 = theme('flowplayer', array(
    'clip' => array(
      'url' => 'http://example.net/docs/demo3.swf',
      'autoPlay' => FALSE, // Turn autoplay off
    ),
  ));
  echo '<a href="http://example.net/docs/demo1.swf" id="player" class="flowplayer"></a>';
  flowplayer_add('#player', array(
    'clip' => array(
      'autoPlay' => FALSE, // Turn autoplay off
      'linkUrl' => 'http://example.net/docs/demo1.html', // When clicked on
    ),
  ));
?>
robloach’s picture

Whatever you find easiest.... You could even use this!

echo '<a href="http://example.net/docs/demo2.swf" class="video"></a>';
echo '<a href="http://example.net/docs/demo3.swf" class="video"></a>';
echo '<a href="http://example.net/docs/demo5.swf" class="video"></a>';
flowplayer_add('.video');
rankinstudio’s picture

How would you add a playlist to this?

Thanks :)

robloach’s picture

robloach’s picture

Status: Active » Fixed

Yay! If you get any code/JavaScript to handle the playlist that you'd like to contribute, I'd love to take a look :-) .

cside’s picture

Beign a complete numpty, i have copied the following script into my page and have the appropriate .swf file in the file directory.

<?php
  $video = '<a href="/adverts/ad4.swf" id="player" class="flowplayer"></a>';
  flowplayer_add('#player', array(
    'clip' => array(
      'autoPlay' => TRUE, // Turn autoplay off
      'linkUrl' => 'http://mydomain.com', // When clicked on
    ),
  ));
?>

I get the flowplayer loading fine but the flash file is not loading ..... i have tried a full http: path and shortened path but still no video :(

What else do i need to add to my page script?

Thanks.

robloach’s picture

For a SWF file, you might want to try out SWFObject API or jQuery Tools' FlashEmbed. Flowplayer is meant to play media files, I'm not sure if it can load SWF files.

cside’s picture

I got it to work by reformatting the original flv file (as that didnt work either) into mp4 and it worked just fine .... thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.