Before i start, I need to mention that the default audio_playlist view does not work. that's ok. i think that might be because there is an error in the way the url is getting encoded using the 'url' function: the params look like this in my html source for the view:
flashvars="file=http%3A//example.com/%3Fq%3Dmy_playlist/playlist%26playlist&config=http%3A//example.com/sites/all/modules/audio/flash_mp3_player/config.xml"
The Main problem i'm having is listed in #2 Q0 below. but before i get to that, i figured i'd walk through how i "think" this view "type" is supposed to work, just so you can help me understand how an end user is supposed to use it:
I'm php literate and dove into the bonus module code to try and find out how to use it because it wasn't working out of the box.
The way i read the code is that:
1) I totally understand the basic view that creates a single embedded player with an "playlist.xml" argument which defines teh playlist. Fine.
Q1 = Because the playlist.xml file is hardcoded into the theme function, views_bonus_audio_player, that implies that you can only have one audio playlist right - because you will always overwrite the existing one if you want new tracklists?
Q2 = Don't i then have to physically move / copy teh files into this default directory for playback?
2) How do i generate the playlist?
Looking in the module, it looks like i need to MANUALLY run the view 'audio_playlist' with an argument 'playlist' to have the module spit out an xml list in the browser. Is that right? If so:
Q0 = it doesn't actually work. It never spits out the xml file to the browser. the theme function views_bonus_audio_playlist looks for $_GET['playlist'], but i can't seem to make my GET string do anything to produce the xml file UNLESS i force that function to fire by default in code? So how do i generate the playlist in the first place??
Q 1 = withOUT reading the source code, how would a non technical user ever know they needed to do that???? am i missing something in my analysis of how the playlists are generated?
Q2 = The playlist doesn't see to generate the actual file paths to where the audio files live in my site heirarchy. instead it generates a node path. how is the player ever going to find teh file unless i physically move it into the same directory as the playlist file?
Q3 = After I generate the playlist IN THE BROWSER, it doesn't exist as a file. Am I supposed to copy and paste the browser playlists into playlist.xml?
If so, teh minute i do that i overwrite the existing playlist.
So how do i have multiple playlists and how do i make multiple playlists work with this audio_playlist view?
The only way i can see how to do that would be to clone the same view mutliple times, give them separate names, override the theme function for each view name and then change the playlist.xml file to something specific for each separate playlist. That is viable option BUT before i assume that this is the intent of this view type, i want to make sure there isn't a simpler better intended way to use it.
And in addition, it would seem i'd probably need to apply taxonomy to my audio, then use taxonomy terms as a filter to the audio_playlist view to generate only the subset of audio files i needed for a given playlist, right?
I guess i was thinking the whole point of this view was to BOTH:
1) FILTER the nodes to generate the UNIQUE playlist on each page view
2) Pass that xml playlist as a parameter into the flash player so that it would play the right files
All in one page view
However, it doesn't look like it works that way. It looks like there's a lot of MANUAL multiple steps and jockeying around behind the scenes to make this work. And that's fine. This does offer great functionality but for the avg non-savvy non-tech user it ain't probably gonna cut the mustard unless they want to call me up and have me do this for them every time they want a new playlist.
Regarless, how do i get my playlist to fire so i can generate teh playlist, that would make me happy for now.
Then i might find a way to dynamically create the playlist file on the fly.
thaks
thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | caption.gif | 12.79 KB | jubjub77 |
Comments
Comment #1
newdru commentedI've answered lots of my own questions.
Becauset views bonus audio playlist IS NOT work with drupal 5.0, it made me go down a long winded path trying to figure out WHY it wasn't working which included looking at the module code. From what i can tell the actual view code for this is probably correct. Meaning it PROBABLY DOES WORK. I understand now how it presents the playlist as a param to the player on the fly every time the view is executed, which is almost like two views hits for the price of one ;-)..
However, when i try to display teh view, the downloaded mp3 player displays but doesn't do anything. And i think the problem isn't with the view per se but the actual mp3 player. I can't be sure, but i think that the mp3 player i downloaded is probably a newer version then the one merlin set this up with.
Maybe the params have changed or something else about the player has changed, but something tells me that's the problem.
merlin, if you see this it would be good to check this because anybody that trys this is probably going to run into the same issue. The bottom line is that if i follow your instructions to the tee, audio playlist does not work in 5.0.
thanks
Comment #2
newdru commentedOne other thing:
Anyway you can provide an example/export of an audio playlist view that uses taxonomy as an argument to create the playlist?
I'm still plowing through arguments but this would be mighty appreciated as it would make creating MULTIPLE 'albums' / 'playlists' possible with just ONE VIEW.
thanks
Comment #3
newdru commentedRegarding #1:
I confirmed that bonus audio playlist works with jeroen's version 23 of the mp3 player. which means that the problem i was experiencing has been isolated to the fact that jeroen's current version 3 does not work with audio playlist as is. It looks like the embed / params code may need to be adjusted. Looked at that briefly but wasn't sure what to do with it off the bat.
Regarding # 2
I'd still like that example if possible.
Comment #4
dmitrig01 commentedOk it should work, I fixed a bug. I'll release a new alpha soon, please test it.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
jubjub77 commentedi'm testing the alpha version. I have the player but it doesn't play audios. I think i haven't the mp3player who work with this module.
Where can i download the player working for views_bonus_audio_playlist ??? thank's
Comment #7
jubjub77 commentedOKay : http://www.jeroenwijering.com/upload/mp3player-2-3.zip
But not working yet wityh alpha release.
Comment #8
jubjub77 commentedOKay : http://www.jeroenwijering.com/upload/mp3player-2-3.zip
But not working yet with alpha release.