Description Usage Arguments Details See Also Examples
play_song
Plays a song from your web browser
1 2 |
songName |
string used for google search. Typically including the song name and artist should be enough |
url |
a string with a specific url to be launched. If left null, the function searches google instead |
print |
boolean which tells whether to print the song being played to the console |
site |
string which specifies which site to play from. By default it is www.youtube.com, but www.vevo.com (or any other site of choice) can be used as well |
The function launches a new page in your web browser with the top hit from the google search for the given string. By default, it selects the top result from www.youtube.com, but other options (such as vevo, etc) can also be used
error_songs
1 | play_song(songName = "Never Gonna Give You Up Rick Astley")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.