Stream Sounds

Author @Anthony



The Stream Sounds Extension is an Extension that allows the players to Stream , Load and Play audio files from the Internet .
Following are the additional features of this extension
=> Load sounds at runtime
=>Get information of the loaded and Total bytes of the Sound file
=> Block to check whether sound has loaded or not.




    see here how to install an extension




Blocks


    All SETTER blocks in this extension are to be happen only once, so consider them to use in events such as "WHEN CREATED"


Begins Loading of sound file, also asigns this file a name given by you.


Plays the sound of name previously assigned by you.


Plays the sound of name previously assigned by you and plays it from a desired position ( give input in Milliseconds ).


Pauses/resumes the sound of name previously assigned by you


Gets you the total length(in milliseconds) of the sound file of name previously assigned by you


Gets you the current playing length(in milliseconds) of the sound file of name previously assigned by you


Returns True/False based on the completion of load of sound file of name previously assigned by you


Returns the Loaded no. of bytes of the sound file of name previously assigned by you


Returns the Total no. of bytes of the sound file of name previously assigned by you


Sets the volume of the sound file of name previously assigned by you to desired percentage.


Stops playing the sound file of name previously assigned by you.




Example

Following is the example of how to use this extension, try this in your stencyl Scene and enjoy! :



    Example Site to get mp3 files is Soundimage




Version History [1.0]

Launch : v 1.0 SS edit: added error event handlers in case of invalid or blocked URLs entered

That's it! If you have any doubts you encounter while using this extension, simply ask below :)

Comments

Post a Comment