Page 1 of 1

using soundcloud HTML5 widget?

Posted: Fri Sep 20, 2013 3:30 pm
by yllaw

Is there someone using this soundcloud HTML5 widget?

When I used it during test, it was working fine on chrome, mozilla and IE browser! but when I export it into APK file and install it on my mobile phone, it didn't play. everything seems to work except the play button... I tried to click on the play button, but still it failed to play. I wonder why. Can anyone please help me solved this? Thank you.

tested on Samsung Galaxy Pocket S5300 - Android OS, v2.3 (Gingerbread)

I used this widget code

Image


using soundcloud HTML5 widget?

Posted: Fri Sep 20, 2013 4:16 pm
by maxkatz

We wouldn't know they the play button doesn't work.. as the widget is loaded from Soundcoud. Have you tried contacting them to see if this is a known issue?


using soundcloud HTML5 widget?

Posted: Thu Jan 30, 2014 11:57 pm
by Alex GG

Hello! I ́ve tried to implement the soundcloud api, to my app:
I create an HTML component with this code:


in page show, I add this code (acording to the api documentation)

(function(){
var widgetIframe = document.getElementById('sc-widget'),
widget = SC.Widget(widgetIframe);

Code: Select all

 widget.bind(SC.Widget.Events.READY, function() { 
   widget.bind(SC.Widget.Events.PLAY, function() { 
     // get information about currently playing sound 
     widget.getCurrentSound(function(currentSound) { 
       console.log('sound ' + currentSound.get('') + 'began to play'); 
     }); 
   }); 
   // get current level of volume 
   widget.getVolume(function(volume) { 
     console.log('current volume value is ' + volume); 
   }); 
   // set new volume level 
   widget.setVolume(50); 
   // get the value of the current position 
 }); 

}());

It works perfectly in my computer( Firefox):
Image

But if test on device (both app tester and installing .apk) dont reproduce the tracks...the screen is the same, as the screen shot above ...

Hope you can help me to figure out

Regards


using soundcloud HTML5 widget?

Posted: Fri Jan 31, 2014 12:05 am
by maxkatz

We would love to help you but as this is a 3rd party widget/code, we don't know what could be causing this. You should contact Soundcloud support and see why the widget doesn't work in a PhoneGap app.


using soundcloud HTML5 widget?

Posted: Fri Jan 31, 2014 12:18 am
by Alex GG

Thanks Max..I hope yllaw, read this post...Maybe he ́s found a solution...


using soundcloud HTML5 widget?

Posted: Fri Jan 31, 2014 6:38 am
by Alex GG

Hi MAx, I found this video, about building a soundcloud APP, but I guess is out of date. I don ́t understand how you say you couldnt help me, if you have work with this API before...Is any updated document or tutorial, than can help me solve this?

thaks !

http://blog.appery.io/2012/01/buildin...


using soundcloud HTML5 widget?

Posted: Fri Jan 31, 2014 3:45 pm
by Kateryna Grynko

Hi Alex,

Sorry, this is an old documentation. Most probably you would need to create all services yourself, basing on soundcloud API: http://developers.soundcloud.com/docs...