![]() seekTo(milliseconds) - jumps to a certain position in a sound.See below for detailed list of widget parameters. options is an object which allows you to define all possible widget parameters as well as a callback function which will be executed as soon as new widget is ready. All previously added event listeners will continue working. load(url, options) - reloads the iframe element with a new widget specified by the url.See below for the list of possible event names. unbind(eventName) - removes all listener functions previously added for the specified eventName.bind(eventName, listener) - adds a listener function for the specified eventName.When you get the widget object with the help of the SC.Widget method, you'll have access to the following public methods: Widget API Playground is a special page where you can view examples and see the results live on your screen. Var widget2 = SC.Widget(iframeElementID) var iframeElement = document.querySelector('iframe') SC.Widget accepts the reference to the iframe element or its id. It allows you to control the widget from the parent page (the page the widget is inserted into). This script exposes the SC.Widget(/*iframeElement|iframeElementID*/) function to the global scope. In order to access the JavaScript object which provides the SoundCloud Widget API, add this script to your html page. ![]() These parameters can be added to the player URL in the embed code. If set to false the multiple players on the page won’t toggle each other off when playing “#0066CC”Ī number from 0 to the playlist length which reselects the track in a playlist
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |