If a 3D copy has already been generated, the embed can switch to that processed video.
The player can carry the expensive features with the video.
A partner site does not have to recreate LarpTube’s processing stack. Ask what is ready, then let the official player expose the available controls.
Switch between Original and the separate processed Calm Audio soundtrack when available.
Use the WebVTT captions LarpTube generated from the same speech-analysis pass used for Restricted Mode. If Restricted Mode is on, harsh words are censored in the caption text too.
Automatically mute and restore audio around detected harsh-language intervals and censor those words in enabled captions.
Expose available LarpTube renditions and preserve the viewer’s playback position while switching.
Check capabilities first
const { data } = await larptube.features('VIDEO_ID');
console.log(data.threeD.ready);
console.log(data.calmAudio.ready);
console.log(data.captions.ready);
console.log(data.restrictedMode.ready);
console.log(data.quality.options);Start with features enabled
larptube.mountPlayer('#player', 'VIDEO_ID', {
threeD: true,
audio: 'calm',
restricted: true,
captions: true,
quality: '720p'
});Change features while the video is playing
const player = new LarpTube.Player('player', { videoId: 'VIDEO_ID' });
player.set3D(true);
player.setAudio('calm');
player.setRestrictedMode(true);
player.setCaptions(true);
player.setQuality('720p');Availability is truthful. The API only marks a feature ready when the processed copy/markers actually exist.