Wow! Very nice post. It gave me a nice overview of your code and database set up. Nice!
Okay, simple error. Your Video_Albums table should have another field called “Playlist”. In that field, you should be storing the actual playlist that looks something like this:
playlist: [
{ duration: 32, file: "/Videos/Video1.flv", image: "/Thumbnails/Thumbnail1.jpg", title: "Testing - Video 1", description: "Description of video 1. Well, I have nothing... LOL" },
{ duration: 124, file: "/Videos/Video2.flv", image: "/Thumbnails/Thumbnail2.jpg", title: "Testing - Video 2", description: "Blah, Blah, Blah..." },
{ duration: 542, file: "/Videos/Video3.flv", image: "/Thumbnails/Thumbnail3.jpg", title: "Testing - Video 3", description: "Dum Dum De Dum.. Drum roll... Another drum roll.. Well? Did it work???" }
],
Of course, this would be your playlist for the two videos you have. In the next section which is almost ready to send to you, this part will be replaced with the “dynamic” part.
So, create a playlist similar to above, changing the names and text. Then, store this inside your Video_Albums’ new field called something like “Playlist”. Then, change “albumData=$row[?]” to point to the new field. Then you should get videos…
Let me know how it worked…