Skip to main content

Build on top of the player. Fully.

Whether you're a developer building a custom video product or a media team wiring up analytics, the VideoNest Player API puts complete control in your code: playback commands, event callbacks, state queries, and cross-frame messaging. No limits on what you can build.

player-api.js
const player = VideoNest.player('video-123');

// Subscribe to events
player.on('play', () => {
  analytics.track('video_play');
});
player.on('ended', () => showNextVideo());

// Control playback
player.seek(30);
player.setVolume(0.5);

// Read state
const t = player.currentTime;
Event log
play video-123 00:00.000
timeupdate currentTime: 5.2 00:05.200
seek 30 → seeked 00:30.000
pause currentTime: 47.1 00:47.100

The full API surface, no access restrictions

Playback

Complete playback control

play(), pause(), seek(t), setVolume(v), setMuted(bool), requestFullscreen(). The full control set, callable from your JavaScript at any time.

Events

Event callbacks

Subscribe to play, pause, ended, progress, timeupdate, error, and ad_start / ad_end. Fire analytics, trigger UI, or load the next video.

State

State queries

Read currentTime, duration, buffered, muted, volume, and paused at any point. Build custom progress bars, overlays, or chapter navigation on top of the player.

Cross-Frame

postMessage API

For iframe embeds, VideoNest supports postMessage control: send commands and receive events across frame boundaries. Works in page builders and sandboxed environments.

Video Player API: common questions

What can I do with the VideoNest Player API?+

The Player API exposes complete playback control (play, pause, seek, setVolume), event callbacks (play, ended, timeupdate, ad_start/ad_end), state queries, and a postMessage API for cross-frame control. Use it to build custom progress bars, chapter navigation, analytics integrations, and full custom video experiences.

Does the VideoNest Player API work with React or Vue?+

Yes. The Player API is framework-agnostic JavaScript. Use it directly or wrap it in a React hook or Vue composable. VideoNest also provides a React integration. See the React integration page for details.

Can I control the VideoNest player inside an iframe?+

Yes. VideoNest supports postMessage control for iframe embeds: send commands and receive events across frame boundaries. This works in sandboxed environments, page builders like Webflow and Squarespace, and any setup where the player loads in a separate frame.

Is the Player API available on all VideoNest plans?+

Player API access is included on Creator plans and above. See the VideoNest pricing page for a full comparison of plan features.

Where can I find the full Player API documentation?+

Full Player API documentation is available at docs.videonest.co, including method references, event listings, postMessage protocol details, and integration examples.

Build with video. Not around it.

VideoNest provides player APIs so developers control playback, track events, and integrate players into custom products. Full access. Your code.