Hermit jsSID wrapper for opal.
usage
Server side
config.ru, Rakefile, Rails, Sinatra, etc.
require 'opal-sid'
Gemfile
gem 'opal-sid'
Browser side
require 'sid'
current_song = {}
sid = SID.new
sid.on_load do |x|
@current_song = {
title: sid.title,
author: sid.author,
info: sid.info,
tunes: sid.tunes
}
end
sid.load_and_play("http://url", 0)
puts current_song