This tutorial combines the forces from flow.playlist and jquery.scrollable and we end up having following scrollable playlist implementation.
Palm trees, building and the sun
0:20 min
"Happy feet" in front of car window
0:21 min
Lake merritt in Oakland
0:21 min
Hotel room 215 in San Francisco
0:22 min
Yom Kippur in Berkeley
0:21 min
Driwing Golden gate bridge
0:21 min
Eating Sushi
0:21 min
Big spider web
0:23 min
Random Miniature Characters
0:21 min
Things on the table
0:21 min
Two little girls hand in hand
0:21 min
Playlist entries are now scrollable. You can use arrow keys, mousewheel and those tiny gray buttons to scroll up and down the list.
note: Working example of this feature is included into our latest build which can be downloaded here.
<!-- root element of the playlist -->
<div class="playlist">
<!-- playlist items -->
<div class="items">
<a href="../video/tap.flv">
<p>Lorem ipsum dolor sit amet, consectetuer</p>
<p class="time">1:32 sec</p>
</a>
<a href="../video/tap.flv">
<p>Lorem ipsum dolor sit amet, consectetuer</p>
<p class="time">1:32 sec</p>
</a>
<!-- ... rest of the items goes here ... -->
</div>
<!-- navigator is auto generated inside this tag -->
<div class="navi"></div>
</div>
This is our simple JavaScript setup. We recommend you to study both of these tools separately to fully understand what you can do with them.
// setup scrollable playlist when page is scriptable
$(document).ready(function() {
// setup Flowplayer playlist from <div.items/>
$("div.items").playlist(
// flash parameters
"../video/FlowPlayerDark.swf",
// flowplayer configuration
{initialScale:'scale'},
// playlist configuration
{loop:true}
);
// make playlist scrollable
$("div.playlist").scrollable({size:3});
});
Here is our linked playlist.css file. All visuals and layout is done with this CSS file as it should be. This allows you to make radically different looks and feels. CSS coding is actually the biggest work and it helps if you master this powerfull technology.
Implementation depends on following external scripts