Software Archive
Read-only legacy content
17061 Discussions

Intel Sdk and Soundcloud web package

ben4
Beginner
309 Views

Hello,

 

I am a bit lost.

In Intel Sdk there is a web package called "Soundcloud",  I entered my API details , clicked on "Playlist" and entered my user ID, I am getting some kind of response that shows all my tracks in the playlist.

My problem now is, what next? How do I add the player in the app with this web service, any idea please as I cannot find any help anywhere.

 

Thank you.

 

Ben

 

0 Kudos
6 Replies
PaulF_IntelCorp
Employee
309 Views

I've asked one of my colleagues to help out.

0 Kudos
Anjali_G_Intel
Employee
309 Views

Hi Ben,

It is excellent that you were able to get the response so far. If the response was json, you will see checkboxes in front of the fields. You can select the checkboxes of the fields that you want to use. Then click on 'create data binding'. This will save the API call you made with this set of parameter with a data binding name. Now you can use that function call in your code. If you look at the web services sidebar, there will be a list of saved data bindings. Click on your binding will give you some code snippets on how to use this in your app. If you are using app designer, you will also see the save data binding show up in app designer's service-method section.

I would recommend looking at this video : 

https://software.intel.com/en-us/videos/using-services-datafeed-in-app-designer

In this article https://software.intel.com/en-us/xdk/docs/using-web-services#service_embed, the "Saving, Viewing, and Embedding Data Bindings Code" section is also relevant. 

0 Kudos
ben4
Beginner
309 Views

Hello and thank you for the fast reply.

 

I have followed the video and now see all the web services on the top right corner of Intel Sdk as:

The problem is that the video shows a demo about using a "media" from framework 7, I am using bootstrap 3, How can I get the service to show my tracks from the service?

 

This is what I see at the moment in the service methods panel:

http://screencast.com/t/4JQMLl1wZWi

 

 

This is what I have put inside the audio code:

                                <figure class="margin-auto widget uib_w_3 d-margins" data-uib="media/audio" data-ver="1">
                                    <audio controls="controls">
                                        <source src="{{entry.stream_url}}" type="audio/mpeg">
                                    </audio>
                                </figure>

But on simulating, no sounds are being heard but at least I see a lot of players, as many as the number of tracks in my playlist, so it is going in the right direction:-)

 

Thank you,

 

Ben

0 Kudos
ben4
Beginner
309 Views

I tried everything,

Whatever feed I put in the src="here" does not play the mp3. It looks like the html5 player is awaiting for a url that finishes with .mp3 but soundcloud does not give this.

 

Are you sure this service works?

 

 <audio controls="controls" id="{{entry.tracks.0.id}}">
<source src="here" type="audio/mpeg">
 <source src="my/audio/src.ogg" type="audio/ogg">
<source src="my/audio/src.wav" type="audio/wav">
 </audio>

0 Kudos
PaulF_IntelCorp
Employee
309 Views

Ben -- the Simulate tab will not play mp3 files, please see the Simulate tab limitations > https://software.intel.com/en-us/xdk/docs/intel-xdk-simulator-limitations < I recommend you test with the Debug tab or a built app (see > https://software.intel.com/en-us/xdk/docs/intel-xdk-debug-and-test-overview < for additional debug options).

0 Kudos
ben4
Beginner
309 Views

Thanks, What I did is isntead ad the iframe of the music provider which works fine.

My problem is now Admob , I have opened another thread for this.

 

Thanks again Paul!!

0 Kudos
Reply