Hello, I'm am trying to get the JW player to play a playlist that is being created by a content type that I have created called media play. This has become a real challenge and I cant locate any help that is understandable on the forums. I created a content type that uses a new field that I have created called Music file, with the type set to file. In setting this field up by clicking on the listed fields configure button, I then went to the path settings and gave this field a file path of playlists/[user] using the token option of [user]. After saving these options, I then went into the Display fields tab on that same page and under this tab I see the Music file field listed and I made the drop down box under teaser hidden and the drop down box value under Full node be changed to SWF Tools - playlist. When I go to use this content type it all seems to be doing what it is intending to do? It uploads my audio files and creates a directory playlists/[user] and puts the audio file in it. It creates an xml playlist within the playlists directory with a series of letters and numbers for it's name that appears to have all of the info inside of it, upon clicking the preview or save buttons the content loads the JW Player with an error message of error 2032. I also noticed that when I go into content management and remove these posts that the media file in the users directory gets removed but the playlist xml file does not. I have to manually remove them.
The file name created by this content type is ae9b76976de674018794768e045f31ab.xml
It's contents are:
<playlist version="1" xmlns="http://xspf.org/ns/0/">
<title></title>
<info></info>
<annotation></annotation>
<trackList>
<track>
<title>sites/default/files/playlists/MADMAX/isolate.mp3</title>
<creator></creator>
<location>http://jamacast.com/sites/default/files/playlists/MADMAX/isolate.mp3</location>
<image>http://jamacast.com/modules/swftools/shared/swftools-default.jpg</image>
<info>http://jamacast.com/sites/default/files/playlists/MADMAX/isolate.mp3</info>
</track>
</trackList>
</playlist>
The versions of modules and Drupal that I am using are:
Drupal 6.13
Content Construction Kit (CCK) 6.x-2.4
SWF Tools 6.x-2.5
I really would appreciate some help with this if possible.
Thanks
Eric
Comments
Well with further testing, I
Well with further testing, I believe this is all to do with the playlist itself as opposed to something within SWF Tools, or Drupal nodes or CCK etc, except for maybe in the creation of the playlist. What I did was installed the JW Player in the root directory and created a block that pops up the player from an external html file that points to the playlist, and I got the same error. It could be improperly created playlist or the JW Player itself expecting something different, or it could just be a path issue of some type, not sure. need some help with this one.
The JW Player version is JW FLV Media Player 4.5
The external html code I am using is
Eric
solved
Solved this problem. In case noobs like me are struggling with this stuff. I knew it was a matter of path related issues, well in my case more of a permissions thing. The sites directory has a different permissions setting due to security most likely. Once I changed it to 755 permission I was able to run like normal. So now I will change it back and try some other directory structure that is already permission correct.
Eric
Part 2
Now I have to fine tune this thing to work the way I would like for it to. the content type Media Play I have created has a Music_File field that allows for unlimited usage. With this I can create user Playlists that are unlimited and the user can go back and edit this content to add more to it. This gives the user his own directory and one playlist file that contains all of his songs. This all works rather well to this point. The problem I have now is since the file upload is being told to create an SWF-Tools Playlist it is creating all of the info from file directory paths as opposed to song titles genre etc. How can I extract meta data from the mp3 file during this process of building the playlist or do I have to create more fields that during the upload process create tiles, genre etc. And since each file upload for each add another button will use the same title fields this would give every other file upload the same title , genre etc. So I need somehow to create a group of fields as opposed to sepporate fields. Help very much needed for this one.
Thanks
Eric
swf-tools playlist
Well I tried to create sepporate fields for song title and genre but the display fields section does not show SWF-Tools Playlist as a drop down option, just text, default etc. So these fields are not going to be used during the playlist creation with SWF-Tools. Some how this info has to be stripped from the file itself. How to do this is the question then. I will take a look at the files I am using maybe they do not have this info within them so it is defaulting to just the paths and file names? Here is where I am at so far with this custom content Media Play I have created.
http://jamacast.com/Music_Player_Feed
tried playing with the custom view above but can't figure out how to get the title of the song into the playlist from the file, tried different arguments etc no luck. I am not a php coder. Am I going to have to have some code created to strip this info from the files being uploaded for swf-tools to create a proper playlist? it seems to just be using the file path information.
Any suggestions would be greatly appreciated.
Eric
I came across this while
I came across this while trying to fix the same problem you describe: Use file description on the uploaded file as title? http://drupal.org/node/425430.
Thanks
Thanks for the link. This is where I'm am trying to go. I tried selecting the description checkbox under this content type I created to allow for a description per file upload. This allows for me to choose the file then upload it, after it gets uploaded a description field appears where I put in the song title. When I save this content. All seems to work as it did before the addition of this description field. So I go into the custom view I have created for this content type and under fields I chose content music_file_data. This is the special field I created for the media play content type that I had created earlier. I make sure the radio button by description is selected and update and save this view. It does bring forward the titles, but it creates individual players for each file upload with this title name as opposed to just adding the description to the play list as titles. Take a look at my link above again to see the effect of this change. Not sure what I am doing wrong or if this can even be done yet. Maybe I missed some info on that link page you gave me, I 'll go back and read again. Thanks again. This is the last step I need to finish this concept for my site.
Eric