Load embed.js, then mount a Tubonics.Embed to search, play, and control clips.
Load
function onTubonicsReady() {
const player = Tubonics.mount("box", {
width: 640,
panels: ["caption", "controls", "speed"],
on: { results, clip, ended }
});
player.search("こんにちは", { lang: "japanese", accent: "jp" });
}Panels
search, accents, caption, speed, controls, related, grid — pass the ones you want as a string array.
Methods
search(query, { lang, accent })play() pause() replay() next() prev() close()setRate(n) getRate() skip(seconds)
Events
results, clip, ended, error
REST: GET /api/search?q=こんにちは&lang=japanese

