Closed (fixed)
Project:
Media: SoundCloud
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2012 at 15:51 UTC
Updated:
14 Jan 2013 at 20:59 UTC
Hello,
I would like to view items (video, sound) separately.
Could you give me the miracle function that takes care of that.
Here is an example:
( print_r($node->field_video['und'][0]) )
Array
(
[fid] => 161
[title] =>
[data] =>
[file] => stdClass Object
(
[fid] => 161
[uid] => 1
[filename] => hardwell-spaceman-drown-the-1
[uri] => soundcloud://u/hardwell/a/hardwell-spaceman-drown-the-1
[filemime] => audio/soundcloud
[filesize] => 0
[status] => 1
[timestamp] => 1335785330
[type] => audio
)
)
Desired result:
<iframe width="472" height="296" scrolling="no" frameborder="no" src="http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F44537844&auto_play=false&show_artwork=true&color=e81f4a"></iframe>
or only :
http://w.soundcloud.com/player/?url=http%3A%2F%2Fapi.soundcloud.com%2Ftr...
Thank you in advance for your help!
Comments
Comment #1
victoriachan commentedHi Clément,
Sorry about the late reply. One approach you can use to get details for the track is by manually instantiating a file stream wrapper using the file's uri. See example below:
Take a look at how this is done in media_soundcloud_preprocess_media_soundcloud_audio() in
media_soundcloud/includes/themes/media_soundcloud.theme.inc.The $embed_data returned will look something like this:
Comment #2
13rac1 commentedIMO this support request has been sufficiently answered.