music
OSdata.com: programming text book 

OSdata.com

song information

summary

    Use This Side of Sanity’s music data base to power your music player.

    Use any programming language (or even ordinary web browsers) to go to http://www.thissideofsanity.com/musicbox/songinformation.php?song=63 will get you an ASCII text representation of the information for a specific song. Change the song number to indicate the song you want to present in your music player.

    The song information includes: result code, title, artist, YouTube number (or URL), song lenth, and start time. This provides the information to present the song in your own player.

license

    This is example code from This Side of Sanity, released under Apache License 2.0.

    Copyright 2012, 2013, 2014 Milo

    Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Google

summary

    Use This Side of Sanity’s music data base to power your music player.

    Use any programming language (or even ordinary web browsers) to go to http://www.thissideofsanity.com/musicbox/songinformation.php?song=63 will get you an ASCII text representation of the information for a specific song. Change the song number to indicate the song you want to present in your music player.

    The song information includes: result code, YouTube number (or URL), title, artist, song lenth, and start time. This provides the information to present the song in your own player.

    Portions (fields) of song information are delimited by new line.

    The result code of Y indicates a YouTube number. The result code of M indicates a MP3 URL.

    If you give an invalid song number or otherwise make a mistake in calling this web page, you will get an error code of E. All other fields may have unpredictable or empty results or may not exist. You are not expected to attempt any processing after encountering the error code.

    You may be tempted to use this number as a loop counter for single accesses to song information, making a series of different calls to this web page to collect all of the song information one song at a time. Doing so will result in a Denial of Sevice Attack on the server, which will prevent your player from working properly. Use the alternate supplied web page for gathering groups of song information in a single pass and then loop internally in your own software.

see full player in action

return to explanation of simple player

contact
comments, suggestions, corrections, criticisms

please contact us

your name:
email address:
phone number:
message:

return to table of contents
free downloadable college text book

previous page next page
previous page next page

Google


Made with Macintosh

    This web site handcrafted on Macintosh computers using Tom Bender’s Tex-Edit Plus and served using FreeBSD .

Viewable With Any Browser


    †UNIX used as a generic term unless specifically used as a trademark (such as in the phrase “UNIX certified”). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.

    Names and logos of various OSs are trademarks of their respective owners.

    Copyright © 2011, 2012 Milo

    Created: May 8, 2012 (using code started in September 2011)

    Last Updated: May 8, 2012


return to table of contents
free downloadable college text book

previous page next page
previous page next page