Posted by kryptik on November 5, 2008 at 6:47pm
3 followers
Jump to:
| Project: | Dash Media Player |
| Version: | 6.x-1.7 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
\Hello, curious if it's possible for dashplayer to read a cck filefield.
It appears that you support both "attached files" or a external link.
I've tried setting this up with filefield, as it's what I use for audio.
When I try the getview, it appears that the file is there, but returns a path, instead of url. I'm thinking this may be where the problem is. I've inserted my getview response below perhaps you can tell me what I need to allow this to work.
Array
(
[nodes] => Array
(
[0] => stdClass Object
(
[nid] => 232
[type] => audio
[language] =>
[uid] => 1
[status] => 1
[created] => 1225872175
[changed] => 1225872175
[comment] => 2
[promote] => 0
[moderate] => 0
[sticky] => 0
[tnid] => 0
[translate] => 0
[vid] => 232
[revision_uid] => 1
[title] => Reality Ft. Curtis Santiago
[body] =>
[teaser] =>
[log] =>
[revision_timestamp] => 1225872175
[format] => 1
[name] => DaBoss
[picture] =>
[data] => a:4:{s:7:"contact";i:1;s:5:"draft";a:2:{s:14:"draft_autosave";i:1;s:23:"draft_autosave_interval";s:5:"30000";}s:15:"activity_optout";i:0;s:13:"form_build_id";s:37:"form-bc7f72a85a6a94efd84dfa5e862179be";}
[field_main_artists] => Array
(
[0] => Array
(
[nid] => 189
)
)
[field_ft_artists] => Array
(
[0] => Array
(
[nid] =>
)
)
[field_song_description] => Array
(
[0] => Array
(
[value] => Reality
)
)
[field_ref_album] => Array
(
[0] => Array
(
[nid] =>
)
)
[field_dashplayer_media] => Array
(
[0] => Array
(
[fid] => 28
[list] => 1
[data] => Array
(
[fid] => 28
[width] => 0
[height] => 0
[duration] => 294.922
)
[uid] => 1
[filename] => reality.mp3
[filepath] => sites/default/files/audio/1/reality_0.mp3
[filemime] => audio/mpeg
[filesize] => 4718759
[status] => 1
[timestamp] => 1225872134
)
)
[field_music_genre] => Array
(
[0] => Array
(
[value] => 54
)
[1] => Array
(
[value] => 56
)
)
[friendlist_access] =>
[referrers] => Array
(
)
[reference_fields] => Array
(
[0] => Array
(
[field_name] => field_ft_artists
[type_name] => audio
[display_settings] => Array
(
[weight] => 0
[parent] =>
[label] => Array
(
[format] => above
)
[teaser] => Array
(
[format] => default
[exclude] => 0
)
[full] => Array
(
[format] => default
[exclude] => 0
)
[4] => Array
(
[format] => default
[exclude] => 0
)
[2] => Array
(
[format] => default
[exclude] => 0
)
[3] => Array
(
[format] => default
[exclude] => 0
)
[token] => Array
(
[format] => default
[exclude] => 0
)
)
[widget_active] => 1
[type] => nodereference
[required] => 0
[multiple] => 0
[db_storage] => 1
[module] => nodereference
[active] => 1
[locked] => 0
[columns] => Array
(
[nid] => Array
(
[type] => int
[unsigned] => 1
[not null] =>
)
)
[referenceable_types] => Array
(
[artist_profile] => artist_profile
[article] => 0
[audio] => 0
[blog] => 0
[brand] => 0
[event] => 0
[forum] => 0
[gallery] => 0
[image] => 0
[location] => 0
[movie] => 0
[page] => 0
[panel] => 0
[poll] => 0
[profile] => 0
[venue] => 0
[videoclips] => 0
[actor] => actor
)
[advanced_view] => --
[advanced_view_args] =>
[widget] => Array
(
[autocomplete_match] => starts_with
[default_value] => Array
(
[0] => Array
(
[nid] =>
[_error_element] => default_value_widget][field_ft_artists][0][nid][nid
)
)
[default_value_php] =>
[label] => Featured Artist(s)
[weight] => 0
[description] => List all featuring artists(Guest Artists).
Example: Flo Rida ft. T-Pain
(T-Pain would be entered here)
[type] => nodereference_autocomplete
[module] => nodereference
)
)
[1] => Array
(
[field_name] => field_ref_album
[type_name] => audio
[display_settings] => Array
(
[weight] => 4
[parent] =>
[label] => Array
(
[format] => above
)
[teaser] => Array
(
[format] => default
[exclude] => 0
)
[full] => Array
(
[format] => default
[exclude] => 0
)
[4] => Array
(
[format] => default
[exclude] => 0
)
[2] => Array
(
[format] => default
[exclude] => 0
)
[3] => Array
(
[format] => default
[exclude] => 0
)
[token] => Array
(
[format] => default
[exclude] => 0
)
)
[widget_active] => 1
[type] => nodereference
[required] => 0
[multiple] => 0
[db_storage] => 1
[module] => nodereference
[active] => 1
[locked] => 0
[columns] => Array
(
[nid] => Array
(
[type] => int
[unsigned] => 1
[not null] =>
)
)
[referenceable_types] => Array
(
[album] => album
[actor] => 0
[article] => 0
[artist_profile] => 0
[audio] => 0
[blog] => 0
[brand] => 0
[event] => 0
[forum] => 0
[gallery] => 0
[image] => 0
[location] => 0
[model] => 0
[people] => 0
[movie] => 0
[musician] => 0
[page] => 0
[personal_image] => 0
[poll] => 0
[profile] => 0
[service_profile] => 0
[venue] => 0
[videoclips] => 0
)
[advanced_view] => --
[advanced_view_args] =>
[widget] => Array
(
[autocomplete_match] => starts_with
[default_value] => Array
(
[0] => Array
(
[nid] =>
[_error_element] => default_value_widget][field_ref_album][0][nid][nid
)
)
[default_value_php] =>
[label] => Album
[weight] => 4
[description] =>
[type] => nodereference_autocomplete
[module] => nodereference
)
)
)
[path] => daboss/audio/reality-ft-curtis-santiago
[tags] =>
[community_tags_form] => 1
[last_comment_timestamp] => 1225872175
[last_comment_name] =>
[comment_count] => 0
[node_counter] => 1
[tagging_vid] => 13
[locations] => Array
(
)
[location] => Array
(
)
[taxonomy] => Array
(
[54] => stdClass Object
(
[tid] => 54
[vid] => 6
[name] => Hip-Hop
[description] =>
[weight] => -4
)
[56] => stdClass Object
(
[tid] => 56
[vid] => 6
[name] => Urban/R&B
[description] =>
[weight] => 0
)
)
[body_value] =>
)
)
[total_rows] =>
)
Comments
#1
CCK filefield should be working with the Dash Media Player... At least it does for me. What version player are you using?
#2
I am using the latest version of cck, filefield and dashplayer with the 0.9 of services.
If you say it works, then I'm going to dive right in and figure it out, as I tried using the dashplayer_media method and that didn't work either so I figure it's an error on my side. I'm going to start at the beginning and see what happens.
Would not including images via image + image_attach be the issue? I would rather not use images at all, OR use imagefield, as I already have it in use on the site.
#3
Okay, I can't seem to figure this out, I've uninstalled and reinstalled all the modules necessary and can't get the audio to play no matter what, all I get is a loading sign.
I made sure to set the api=1, double checked the keys and the baseurl/domains They all seem fine as they let me getview without error.
I installed the services set from your website, which seems to have service module versions 0.9 but a couple of the modules appear to say 1.1 (is that accurate?)
Any help would be appreciated as it looks like dashplayer is the ONLY solution for audio playlists in 6.x not to mention the best looking for any version.
I've gone through the checklist and everything is fine. My view loads fine, and displays the audio node, plus I can play the file with Jquery media.
#4
kryptik,
I will look into this for free for you. Just send me an email with your site information and I will take a look. I am sure it is something that won't take me very long to figure out.
Also... why are you using the old version of Services? I have updated the Dash Media Player for the latest version, and it has been tested to work.
thanks,
Travis.
#5
I was using the old version because when it didn't work with initial setup, I noticed in several places on your site that the new version of services broke several things and to use 0.9.
I will do a fresh install of everything with the latest versions and attempt again, as to not bother you if it's something I can figure out on my own, if I'm unable to get it, I will send you an email, and you're welcome to get to it whenever you have time (it's no rush)
#6
Hello
This seems to be an issue for me too. Cannot get dashplayer_media to work. Created a CCK Text Field and pasted the URL with http:// in front.
This is my $params in Contemplate:
<?php$params['node'] = $node->field_dashplayer_media;
print dashplayer_get_player($params);
?>
I also tried:
<?php$params['node'] = $node->nid;
print dashplayer_get_player($params);
?>
This does not work either. Any advice is much appreciated.
Cheers for your efforts.
#7
I corrected the code but still no luck. This is what it looks like now:
<?php$params['node'] = '$node->nid';
print dashplayer_get_player($params);
?>
Thanks again!
#8
#9
I may be mistaken, but I don't know if it supports a url in text field, unless the text field is named appropriately (on the site, it has the proper names for text fields, for media/images.
Also, this topic is about the CCK FileField support, not text field support. Your issue may warrant a new issue.
#10
You should be able to get this to work by using the $node->nid parameter within Contemplate. But you need to make sure that the $node object is defined first... Place this in your code...
<?phpdrupal_set_message( $node->nid );
$params['node'] = $node->nid;
print dashplayer_get_player($params);
?>
If the node ID is defined, then it is probably an issue with your configuration with the Services module. Have you looked over the tutorial videos that I have on the TMT Digital website? I explain this configuration in great detail.
Hope this helps.
Travis.