yllaw
Posts: 0
Joined: Fri Apr 27, 2012 7:44 am

using soundcloud HTML5 widget?

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

using soundcloud HTML5 widget?

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?

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

using soundcloud HTML5 widget?

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

using soundcloud HTML5 widget?

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.

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

using soundcloud HTML5 widget?

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

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

using soundcloud HTML5 widget?

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...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

using soundcloud HTML5 widget?

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...

Return to “Issues”