Hi there!

I try to get the playlist plugin working, see http://flowplayer.org/plugins/javascript/playlist.html

The problem is the last line of JS code:
$f("player1").playlist("div.clips:first", {loop:true});

How can i address the clips div container?
I tried using the config array, but it didn't work.

Can somebody give me a hint, how to accomplish that?

CommentFileSizeAuthor
#3 flowplayer.admin_.inc_0.patch1.78 KBhatsch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hatsch’s picture

Version: 6.x-0.1 » 6.x-0.3

i am also loking for a way to do this.
for now i am stuck with using the flowplayer javascript directly in the template file

it it even possible to attach plugins and their configs with the flowplayer_add function?

RobLoach’s picture

Title: How to use external playlist buttons (playlist module) » Add Playlist plugin support
Version: 6.x-0.3 » 6.x-1.x-dev
Priority: Normal » Critical
hatsch’s picture

as a start i've added an option and a path field to flowplayer.admin.inc for the playlist plugin.

this does nothing yet as it only adds form elements to the admin page and validates if the file exists.

what i try next is extending flowplayer_add that it can be used somehow like that

 flowplayer_add('#player', array(
    'clip' => array(
      'autoPlay' => FALSE, // Turn autoplay off
      'linkUrl' => 'http://flowplayer.org', // When clicked on
    ),
    'plugins' => array(
    'playlist' => array(
    'div' => 'mydiv',
))
  ));

i am not quite sure how to do this yet, but as soon as i have results i will post them here.

if you have any suggestions, you're very welcome ;)

alexkessler’s picture

I almost forgot about this post. Like hatsch i also using the flowplayer javascript directly in the template file now with an
own cck module to let views generate the playlist buttons, but i'm not satisfied putting JS into my template files.

Will have a look at the patch and post back asap...

asak’s picture

subscribing. great feature - much needed ! ;)

RobLoach’s picture

Could we ship playlist.js with the module itself? I feel like maybe we add some kind of option to make adding playlists through flowplayer_add easier.

hatsch’s picture

@MrKatz sorry, but as written my patch does nothing yet. i was just adding the some forms to the admin page for the playlist. i thought it was a good start, but i didn't manage to extenend the flowplayer_add function, so the patch is useless.
if the playlist.js can be shipped with the module itself the patch is even more useless ;)

i don't know if the js file can be included. it's dual licenced, and one licence used is GPL, but i don't know how it fits with this:

"DO NOT include code from a non-Drupal project in the repository. If your module requires non-Drupal code, provide a link to where the other code can be downloaded and instructions on how to install it."

/**
 * flowplayer.playlist 3.0.7. Flowplayer JavaScript plugin.
 * 
 * This file is part of Flowplayer, http://flowplayer.org
 *
 * Author: Tero Piirainen, <info@flowplayer.org>
 * Copyright (c) 2008 Flowplayer Ltd
 *
 * Dual licensed under MIT and GPL 2+ licenses
 * SEE: http://www.opensource.org/licenses
 * 
 * Date: 2009-02-16 06:51:28 -0500 (Mon, 16 Feb 2009)
 * Revision: 1454 
 */ 
Jerome F’s picture

Subscribing

bennash’s picture

subscribing

zlorro’s picture

subscribing