I am unable to embed via an URL. The URL validates but the player never shows up. The only thing which is printed is the URL, no error messages.

Example URL: http://soundcloud.com/djbl3nd/swagga-mix
Emfield version: 2.5

Comments

egouleau’s picture

Priority: Normal » Critical

same here :/

the pb seems to be in the search of the audio file in the http request response in the function emaudio_souncloud_data in soundcloud.inc :

   $h1tags = preg_match('/(<link href="(.*)" rel="video_src" \/>)/i', $response->data, $patterns);
    $data['player'] = isset($patterns[2]) ? explode('&', $patterns[2]) : NULL;
    $data['swf'] = isset($data['player'][0]) ? $data['player'][0] : NULL;

there is no match for $h1tags so $data['swf'] is NULL ...

it's a critical issue.

joachim’s picture

Status: Active » Postponed (maintainer needs more info)

That code doesn't exist any more in the module. Can you check you're using the latest release please?

jseffel’s picture

The server were running 1.1, while I had PHP 5.3 and 1.3 locally. PHP 5.3 didn't like the $node sent as an reference in:
function emaudio_soundcloud_audio($embed, $width, $height, $field, &$item, $node, $autoplay) { ... }
Thats why it didnt work locally.

Case closed on my part.

joachim’s picture

> PHP 5.3 didn't like the $node sent as an reference in

That was fixed yesterday and will be in the dev version sometime today.

Once you tackle that problem, do you still have the problem reported here?

egouleau’s picture

Priority: Critical » Normal

for my case, actually my colleague did not use the latest version... i should have checked by myself, sorry :/

13rac1’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Fixed per #5. Closing old issue.