Documentation 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.
ISongMap contains the full musical analysis of a loaded song, generated by Songle. Once a video is ready, you can access the song map through player.data.songMap to retrieve beat grid, chord progressions, and structurally repeated sections such as choruses.
The song map is available after the
onVideoReady callback fires. Do not access player.data.songMap before that point — it will be null.Accessing the song map
ISongMap properties
Array of all beats detected in the song, sorted by
startTime. Each element is an IBeat object.See Beat (IBeat) for full property reference.Array of all chord progressions in the song, sorted by
startTime. Each element is an IChord object.See Chord (IChord) for full property reference.Array of repetitive segment groups (e.g., chorus sections). Each
IRepetitiveSegments element groups multiple individual IRepetitiveSegment objects of the same structural type.See Repetitive segments for full property reference.Revision IDs for the song map data. These values reflect which specific analysis version was loaded, and can be used to pin a song to a particular analysis revision when calling
createFromSongUrl.IDataLoader properties
player.data is an IDataLoader instance. It exposes the following properties related to the loaded song and its map:
Metadata for the currently loaded song.
The full song map object. See properties above.
Lyrics timing estimation result from Songle.
The raw lyrics text and attribution data.
Font loading status and controls. Provides
loaded, failed, isLoading(), load(), and loadAll() members.The TextAlive service URL for the current video.
Overriding song map data with PartialVideoEntry
You can override which analysis revision is used when loading a song by passing avideo option to createFromSongUrl. This is done via the PartialVideoEntry interface.
Specifies which lyrics timing data to load.
-1: Use the latest available lyrics info0: Do not load any lyrics info- Any other positive integer: Load the specified lyrics ID
Revision ID for lyrics corrections (diff).
Revision ID for chord analysis data.
Revision ID for beat analysis data.
Revision ID for repetitive segment analysis data.
Full video data to embed directly, bypassing the server-side video fetch.
TimedObjectsInRange<T>
AllfindXxxChange methods on player return a TimedObjectsInRange<T> result. This structure describes what happened between the last frame and the current one: