Example4: Callbacks
Ping-pong play two tracks using on_end() callback
pb.on_end(function(obj) { //obj is reference to playblack //pb.load(...); }); pb.on_loaded(function(obj) { //pb.play() }); pb.on_error(function(obj) { //... });