Pass aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/TextAliveJp/textalive-app-api/llms.txt
Use this file to discover all available pages before exploring further.
PlayerOptions object to the Player constructor to configure how the player initializes.
PlayerOptions
Lyric app configuration. When set, the player reads the song URL from query parameters on initialization and attempts to connect to a TextAlive host.
A custom
Timer instance to manage playback state. When not specified, SongleTimer is used by default, which embeds an audio player using the Songle API.Provide BasicTimer here for debugging without audio playback:The host element for the embedded audio player and banner. Accepts a DOM element or a CSS selector string. When not set, the player creates its own container element.
Controls where the attribution banner appears relative to
mediaElement. Defaults to "embed" (directly below the audio element).Interval in milliseconds for throttled time-update events. Controls how often
onThrottledTimeUpdate fires when the song is playing.Timeout in milliseconds for fetching lyrics text. Set to
0 (or omit) to disable the timeout and wait indefinitely.List of font families to preload. Each entry can be a font family name string or a
FontInfo object.When set to null, all available TextAlive fonts are loaded. When omitted, no fonts are preloaded.Set to
true to load vocal amplitude data when a song is loaded. Required before calling getVocalAmplitude() or getMaxVocalAmplitude().Set to
true to load valence/arousal data when a song is loaded. Required before calling getValenceArousal() or getMedianValenceArousal().PlayerVideoOptions
Passed as the second argument tocreateFromSongUrl, createFromSongPath, createFromText, and createFromJSON. Use it to override the default TextAlive video data for a song.
Overrides for the video entry loaded from TextAlive. Use specific revision IDs to pin a song map or lyrics version.
URL of an alternative source for lyrics text. Overrides the default lyrics URL associated with the song in TextAlive.