[Aeva] Need help implementing Soundcloud

CerealGuy

  • Posts: 343
[Aeva] Need help implementing Soundcloud
« on May 10th, 2015, 03:14 PM »
Again i tried to implement Soundcloud into Aeva Media. And it's not really easy because debugging is a pain in the ass.  But that's another story.

In the moment i'm this far that i only need to get the "real" url over an api provided by soundcloud and replace the old url. But Aeva doesn't even perform my url lookup. I only need to extract everything between "url=" and ";".

Example lookup url: soundcloud.com/oembed?iframe=true&url=http://soundcloud.com/erasedtapes/olafur-arnalds-poland

My current array is this:
Code: [Select]
array(
'id' => 'scld',
'plugin' => 'html',
'title' => 'Soundcloud',
'website' => 'http://soundcloud.com',
'type' => 'video',

'pattern' => 'http://(?:www\.)?soundcloud\.com/([\w-]+)(\/[\w-]+)?/?',
'movie' => '<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=$1;color=ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false"></iframe>',
'ui-height' => 0,
'lookup-url' => 'url=(.*);',
'lookup-actual-url' => 'http://soundcloud.com/oembed?iframe=true&url=$1',
'lookup-pattern' => 'url=(.*);',


),


Sabre™

  • Innovate, not Imitate
  • Posts: 22

CerealGuy

  • Posts: 343
[Aeva] Re: Need help implementing Soundcloud
« Reply #2, on August 11th, 2015, 07:52 PM »
Nope didn't get it working...
Problem is that Aeva isn't to well documented :D Debugging is also not really easy.
Perhaps @Nao has some tips for us :D

Sabre™

  • Innovate, not Imitate
  • Posts: 22
[Aeva] Re: Need help implementing Soundcloud
« Reply #3, on August 12th, 2015, 06:31 AM »
:lol: hahahaa Yes!
The Master would know :ph34r:
After all, he did create the best media program SMF had/has ever seen!!
But it would depend on his interest if he'd take the time to look into it. :hmm:
@Nao sifu :eheh: