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.
Tweak developer options, test remote postMessage commands, or inspect raw JSON responses.
Use either the drop-in Embed Player or raw JSON + .m3u8 endpoints in your own custom media player.
Embeddable player page by TMDB ID (1368337), IMDB ID (tt33764258), or movie title.
| Param | Type | Default | Description |
|---|---|---|---|
theme | string | aurora | aurora, slate, retro, or netflix |
color | hex | theme default | Accent color without #, e.g. ?color=e50914 |
t | number | 0 | Start position in seconds |
autoplay | 0 | 1 | 0 | Auto-start playback on load |
controls | 0 | 1 | 1 | Set 0 to hide HUD and control via VGX_COMMAND |
controlsPos | string | bottom | bottom or top HUD positioning |
seekStep | number | 10 | Double-tap & skip increment in seconds |
audioPicker | 0 | 1 | 0 | Show audio language selector overlay at start |
download | 0 | 1 | 0 | Show 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>
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>
For custom players (Android ExoPlayer/Media3, Flutter, AVPlayer, React Native, hls.js, VLC). Returns clean .m3u8 URL + parsed tracks.
| Param | Required | Example |
|---|---|---|
tmdb_id / imdb_id / movie | Yes | ?tmdb_id=1368337 or ?movie=The+Odyssey&year=2026 |
season / episode | TV 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" }, ...]
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
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
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 }, '*');
Three steps. Zero external dependencies.
Grab a TMDB ID (1368337), IMDB ID (tt33764258), or title + year.
Use /movie/{id} iframe for instant player or /api/v1/stream for your native app.
Pass query options or drive playback, audio, subtitles, and seek via VGX_COMMAND.