Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#3 | flowplayer.admin_.inc_0.patch | 1.78 KB | hatsch |
Comments
Comment #1
hatsch CreditAttribution: hatsch commentedi 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?
Comment #2
RobLoachGood catch! http://flowplayer.org/plugins/javascript/playlist.html
Comment #3
hatsch CreditAttribution: hatsch commentedas 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
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 ;)
Comment #4
alexkessler CreditAttribution: alexkessler commentedI 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...
Comment #5
asak CreditAttribution: asak commentedsubscribing. great feature - much needed ! ;)
Comment #6
RobLoachCould 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.
Comment #7
hatsch CreditAttribution: hatsch commented@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."
Comment #8
Jerome F CreditAttribution: Jerome F commentedSubscribing
Comment #9
bennash CreditAttribution: bennash commentedsubscribing
Comment #10
zlorro CreditAttribution: zlorro commentedsubscribing