One API. Full Control.

Embeddable player, raw .m3u8 HLS streams, multi-audio & WebVTT subtitles, cross-device resume progress, and direct .mkv downloads — by TMDB ID, IMDB ID, or title.

HLS + MKVDual Delivery
TMDB · IMDBAuto Lookup
4K / 1080pMulti-Audio + CC
postMessageRemote Control

Live Player & API Sandbox

Tweak developer options, test remote postMessage commands, or inspect raw JSON responses.

Developer Controls
Verified Multi-Genre Test IDs:
Live Embed Preview & Remote Command Controller
REMOTE CMD:

Developer API Reference

Use either the drop-in Embed Player or raw JSON + .m3u8 endpoints in your own custom media player.

GET/movie/{tmdb_id_or_name}

Embeddable player page by TMDB ID (1368337), IMDB ID (tt33764258), or movie title.

ParamTypeDefaultDescription
themestringauroraaurora, slate, retro, or netflix
colorhextheme defaultAccent color without #, e.g. ?color=e50914
tnumber0Start position in seconds
autoplay0 | 10Auto-start playback on load
controls0 | 11Set 0 to hide HUD and control via VGX_COMMAND
controlsPosstringbottombottom or top HUD positioning
seekStepnumber10Double-tap & skip increment in seconds
audioPicker0 | 10Show audio language selector overlay at start
download0 | 10Show 1-click download button inside HUD
<iframe src="http://localhost:5000/movie/1368337?theme=netflix&seekStep=15&controlsPos=bottom"
  width="100%" height="100%" frameborder="0" allowfullscreen
  allow="autoplay; fullscreen; encrypted-media; picture-in-picture"></iframe>
GET/tv/{tmdb_id_or_name}/{season}/{episode}

Embed any TV episode with built-in Next Episode navigation and all movie player options.

<iframe src="http://localhost:5000/tv/289517/1/1?theme=aurora&nextEpisode=1"
  width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
GET/api/v1/stream

For custom players (Android ExoPlayer/Media3, Flutter, AVPlayer, React Native, hls.js, VLC). Returns clean .m3u8 URL + parsed tracks.

ParamRequiredExample
tmdb_id / imdb_id / movieYes?tmdb_id=1368337 or ?movie=The+Odyssey&year=2026
season / episodeTV only&season=1&episode=2
const res = await fetch('http://localhost:5000/api/v1/stream?tmdb_id=1368337');
const { stream, duration_sec } = await res.json();
// stream.hls_url      -> "http://localhost:5000/api/hls/master.m3u8?id=v1_..."
// stream.audio_tracks -> [{ name: "Hindi (5.1)", language: "hi", default: true }, ...]
// stream.subtitles    -> [{ name: "English", language: "en", url: "..." }]
// stream.qualities    -> [{ label: "1080p", resolution: "1920x1080" }, ...]
GET/api/v1/movie

Returns direct .mkv CDN download URL, or streams immediately with &download=1.

GET /api/v1/movie?movie=Steps&year=2026&quality=1080p
GET /api/v1/movie?tmdb_id=1368337&quality=720p&download=1
GET/api/v1/subtitles & POST/api/v1/progress

Fetch raw .vtt subtitle tracks or persist playback position across devices in SQLite.

// 1) Get direct WebVTT subtitle URLs (or ?raw=1 for text/vtt)
GET /api/v1/subtitles?tmdb_id=1368337

// 2) Save / resume playback position
POST /api/v1/progress
{ "user_id": "u1", "media_id": "tmdb:1368337", "current_time": 312.5, "duration": 10380 }

GET /api/v1/progress?user_id=u1&media_id=tmdb:1368337

postMessage Events & Remote Commands

React to playback events and send commands from your parent UI — even with controls=0.

// Listen for events from VGX embed iframe
window.addEventListener('message', (e) => {
  if (e.data?.type === 'VGX_PLAYER_EVENT') {
    // event: 'ready' | 'play' | 'pause' | 'timeupdate' | 'ended' | 'audioupdate' | 'subtitleupdate' | 'qualityupdate'
    console.log(e.data.data);
  }
  if (e.data?.type === 'SYNC_HISTORY') {
    // { media_id, media_type, title, duration, watched }
  }
});

// Send remote commands into the iframe (works even with ?controls=0)
const player = document.getElementById('demo-iframe').contentWindow;
player.postMessage({ type: 'VGX_COMMAND', action: 'seekBy', value: 10 }, '*');
player.postMessage({ type: 'VGX_COMMAND', action: 'setAudio', value: 1 }, '*');
player.postMessage({ type: 'VGX_COMMAND', action: 'setSubtitle', value: 0 }, '*');
player.postMessage({ type: 'VGX_COMMAND', action: 'setSpeed', value: 1.25 }, '*');

Quick Start

Three steps. Zero external dependencies.

01 · ID OR TITLE

Pick Movie or Show

Grab a TMDB ID (1368337), IMDB ID (tt33764258), or title + year.

02 · EMBED OR JSON

Choose Integration

Use /movie/{id} iframe for instant player or /api/v1/stream for your native app.

03 · FULL CONTROL

Customize Everything

Pass query options or drive playback, audio, subtitles, and seek via VGX_COMMAND.