diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dbacc88 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +page-text.json +capture-log.json diff --git a/Media-Command-Guide.pdf b/Media-Command-Guide.pdf new file mode 100644 index 0000000..e49d76a Binary files /dev/null and b/Media-Command-Guide.pdf differ diff --git a/README.md b/README.md index c03d64f..0d54e50 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Media Command™ — End-to-End Operational Guide & System Manual +> **PDF edition:** [Media-Command-Guide.pdf](Media-Command-Guide.pdf) + > **System Version**: Media Command™ v0.91 (Dragonflight Architecture) > **Target Environment**: Broadcast Management Group (BMG) Production Infrastructure > **Reference Project**: Broadcast Management Group (`12,353` indexed broadcast assets) @@ -246,6 +248,8 @@ Clicking any asset opens the comprehensive **Asset Inspector**:  + + - **Broadcast Timecode Player**: Accurate frame-by-frame scrubbing, J-K-L shuttle controls, and SMPTE timecode readout (`00:00:00:00`). - **TAMS CMAF/fMP4 Adaptive Playback**: Smooth scrubbing and playback even on multi-hour growing capture files. - **Multi-Track Audio Channel Matrix**: Visual waveform display with individual channel solo, mute, and level monitoring (up to 16 discrete channels). @@ -365,9 +369,11 @@ The **Applications** screen is the central distribution portal for client tools,  + + Available downloads: -1. **Adobe Premiere Pro UXP Plugin** (`dragonflight-mam-2.14.0.ccx`) -2. **DaVinci Resolve Studio Workflow Plugin** (`dragonflight-resolve-0.1.2.zip`) +1. **Adobe Premiere Pro UXP Plugin** (`dragonflight-mam-2.27.6.ccx`) +2. **DaVinci Resolve Studio Workflow Plugin** (`dragonflight-resolve-0.1.0.zip`) 3. **Media Command Transfer** (`Media-Command-Transfer-0.2.1-mac-arm64.zip`, `mac-x64.zip`, `win-x64.exe`) 4. **Media Command REMI Multiviewer** (`Media-Command-REMI-0.3.3-mac-arm64.zip`, `mac-x64.zip`) 5. **Dragon-ISO Teams Recorder** (`Dragon-ISO-Setup-1.1.0.msi`) @@ -444,7 +450,7 @@ Available downloads: ### Adobe Premiere Pro UXP Plugin -The **Media Command UXP Plugin** brings the full power of the MAM directly into Adobe Premiere Pro 2024+. +The **Media Command UXP Plugin** brings the full power of the MAM directly into Adobe Premiere Pro 2026 (v26+). ``` ┌─────────────────────────────────────────────────────────┐ @@ -466,7 +472,7 @@ The **Media Command UXP Plugin** brings the full power of the MAM directly into ``` #### Installation -1. Download `dragonflight-mam-2.14.0.ccx` from the **Downloads** menu in Media Command. +1. Download `dragonflight-mam-2.27.6.ccx` from the **Downloads** menu in Media Command. 2. Double-click the `.ccx` file to install via Adobe Creative Cloud Desktop / Unified Plugin Installer (UPI). 3. In Premiere Pro, open **Window → Extensions → Media Command™**. @@ -479,10 +485,10 @@ The **Media Command UXP Plugin** brings the full power of the MAM directly into ### DaVinci Resolve Studio Workflow Plugin -The **Media Command DaVinci Resolve Panel** integrates with Blackmagic Design DaVinci Resolve Studio 20.1+. +The **Media Command DaVinci Resolve Panel** integrates with Blackmagic Design DaVinci Resolve Studio 18.5+. #### Installation -1. Download `dragonflight-resolve-0.1.2.zip`. +1. Download `dragonflight-resolve-0.1.0.zip`. 2. Extract the package into the Resolve Workflow Integration directory: - **macOS**: `/Library/Application Support/Blackmagic Design/DaVinci Resolve/Workflow Integration Plugins/` - **Windows**: `%PROGRAMDATA%\Blackmagic Design\DaVinci Resolve\Support\Workflow Integration Plugins\` @@ -516,7 +522,7 @@ The **Media Command DaVinci Resolve Panel** integrates with Blackmagic Design Da - **Installer Packages**: - macOS Apple Silicon: `Media-Command-REMI-0.3.3-mac-arm64.zip` - macOS Intel: `Media-Command-REMI-0.3.3-mac-x64.zip` - - *(Windows Status Note: Windows x64 build is currently staged in engineering pipeline; server link currently serves macOS release packages).* + - Windows x64: `Media-Command-REMI-0.3.3-win-x64.exe` (portable, unsigned) - **Features**: - Multi-stream WebRTC/WHEP playback with sub-300ms latency. - Audio QC: Solo and mute individual channel tracks across different video feeds. diff --git a/dl-text.js b/dl-text.js new file mode 100644 index 0000000..4069284 --- /dev/null +++ b/dl-text.js @@ -0,0 +1,9 @@ +const { chromium } = require('playwright'); +(async()=>{const b=await chromium.launch({args:['--no-sandbox']});const c=await b.newContext({viewport:{width:1920,height:1080}}); +await c.addCookies([{name:'dragonflight.sid',value:'s:d16cd74687c1f5e4322b9d24657efe7da055c019d97fb2e0.nHwwxY6iik6jiySDiKS6aUxacWRQy3T+dCiMTN8Fu8s',domain:'mediacmdr.com',path:'/',httpOnly:true,secure:true}]); +const p=await c.newPage();await p.goto('https://mediacmdr.com/#home',{waitUntil:'networkidle'});await p.waitForTimeout(3000); +const ct=(s)=>p.evaluate(s=>{const e=[...document.querySelectorAll('button,[role=tab],a,div,span')].filter(x=>x.offsetHeight>0&&x.children.length<4).find(x=>new RegExp(s,'i').test((x.innerText||'').trim()));e&&e.click();return !!e},s); +await ct('^Downloads');await p.waitForTimeout(2000);await ct('^Desktop apps');await p.waitForTimeout(2000); +console.log(await p.evaluate(()=>{const d=document.querySelector('[role=dialog],[class*=modal]');return d?d.innerText:'nodialog'})); +console.log(JSON.stringify(await p.evaluate(()=>[...document.querySelectorAll('[role=dialog] a,[class*=modal] a')].map(a=>a.getAttribute('href'))))); +await b.close()})(); diff --git a/editor.js b/editor.js new file mode 100644 index 0000000..104dd22 --- /dev/null +++ b/editor.js @@ -0,0 +1,12 @@ +const { chromium } = require('playwright'); +(async()=>{const b=await chromium.launch({args:['--no-sandbox']});const c=await b.newContext({viewport:{width:1920,height:1080}}); +await c.addCookies([{name:'dragonflight.sid',value:'s:d16cd74687c1f5e4322b9d24657efe7da055c019d97fb2e0.nHwwxY6iik6jiySDiKS6aUxacWRQy3T+dCiMTN8Fu8s',domain:'mediacmdr.com',path:'/',httpOnly:true,secure:true}]); +const p=await c.newPage();await p.goto('https://mediacmdr.com/editor.html',{waitUntil:'networkidle'});await p.waitForTimeout(3000); +const r=await p.evaluate(()=>{const s=[...document.querySelectorAll('select')].find(s=>[...s.options].some(o=>/Broadcast Managment/.test(o.text)));if(!s)return 'nosel';const o=[...s.options].find(o=>/Broadcast Managment/.test(o.text));s.value=o.value;s.dispatchEvent(new Event('change',{bubbles:true}));return o.value}); +console.log('sel',r);await p.waitForTimeout(6000); +const it=null; +console.log('item',it);await p.waitForTimeout(4000); +await p.keyboard.press('e');await p.waitForTimeout(3000); +await p.evaluate(()=>document.querySelectorAll('video').forEach(v=>{try{v.pause()}catch(e){}})); +await p.screenshot({path:'screenshots/18-ops-editor.png'}); +console.log(await p.evaluate(()=>document.body.innerText.replace(/\s+/g,' ').slice(0,500)));await b.close()})(); diff --git a/generate-pdf.js b/generate-pdf.js new file mode 100644 index 0000000..da119a1 --- /dev/null +++ b/generate-pdf.js @@ -0,0 +1,784 @@ +const { chromium } = require('playwright'); +const fs = require('fs'); +const path = require('path'); + +const SCREENSHOTS_DIR = '/home/zgaetano/media-command-guide/screenshots'; +const OUTPUT_PDF = '/home/zgaetano/media-command-guide/Media-Command-Guide.pdf'; + +// Read all screenshots as base64 +function imgBase64(filename) { + const fpath = path.join(SCREENSHOTS_DIR, filename); + if (!fs.existsSync(fpath)) return ''; + const data = fs.readFileSync(fpath); + return `data:image/png;base64,${data.toString('base64')}`; +} + +// Build screenshots map +const shots = {}; +const files = fs.readdirSync(SCREENSHOTS_DIR).filter(f => f.endsWith('.png')); +for (const f of files) { + shots[f] = imgBase64(f); +} +console.log(`Loaded ${Object.keys(shots).length} screenshots`); + +function img(filename, caption) { + if (!shots[filename]) return `
Screenshot: ${filename} (not found)
`; + return `Media Command™ is an enterprise-grade broadcast Media Asset Management (MAM), live capture, signal routing, and playout automation platform developed by Wild Dragon LLC for high-velocity broadcast environments.
+ +┌──────────────────────────────────────────────────────────────────────────┐
+│ MEDIA COMMAND™ │
+│ Web UI (React 18 / Nginx) │
+└─────────────────────────────────┬────────────────────────────────────────┘
+ │ REST / WebSocket (Port 47432 / HTTPS)
+┌─────────────────────────────────┴────────────────────────────────────────┐
+│ MAM-API Cluster Gateway │
+│ (Node.js / Express / BullMQ / pg) │
+└────┬───────────────────────────┬──────────────────────────────────┬──────┘
+ │ │ │
+┌────┴──────────────┐ ┌──────────┴──────────────┐ ┌────────────────┴──────┐
+│ Distributed Worker│ │ Database Cluster │ │ Playout & Ingest │
+│ Fleet (GPU/CMAF) │ │ PostgreSQL 16 / Redis 7 │ │ CasparCG / Deltacast │
+│ dragon2,3,4,6 │ │ (dragon1) │ │ SDI / SRT / WebRTC │
+└───────────────────┘ └─────────────────────────┘ └──────────────────────┘
+
+Media Command uses Fragmented MP4 (fMP4 / CMAF) master flows for live ingest. Unlike traditional monolithic files that require finalization before reading:
+auth.broadcastmgmt.cloud.| Role | Scope & Permissions |
|---|---|
| Admin | Full cluster control, user/token provisioning, container restart, S3 and storage configuration. |
| Operator | Recorder control, schedule automation, playout queue manipulation, graphics triggering. |
| Editor | Library browsing, bin curation, rough-cut editor, NLE plugin connectivity, upload/import. |
| Viewer | Read-only access to metadata and proxy streams. Cannot modify content. |
The Operations Dashboard is the command center, providing unified visibility into system vitals, recent activity, and quick access navigation.
+ +cluster healthy · 6/6 nodes).16,076 assets indexed).42 running · 2 failed).24 enabled · 29 configured).Quick navigation tiles provide one-click access to Library, Recorders, Playout, Jobs, Downloads, and Settings.
+ + +The Recorders interface controls physical SDI capture ports (Deltacast PCIe) and network ingest engines across the distributed cluster.
+dragon4-dc0 through dragon6-dc7).1080i59.94, 1080p29.97, 2160p59.94).Create Recording (immediate manual), Add Stream (SRT/RTMP/NDI provisioning), Reset to Default.The Schedule module automates recurring broadcast captures and satellite/fiber ingest events.
+Auto, 2×2, 3×3, 4×4, 6×6.Projects are top-level workspaces isolating media, permissions, bins, and storage quotas. The BMG production environment hosts 8 active projects including Broadcast Management Group (12,353 assets), UBS (3,447 assets), Protour, and others.
+ +${img('04-project-bmg-overview.png', 'Broadcast Managment Group project opened — bins and folders (Marketing Google Drive 11,458 items, Los Angeles 380, FX3 Ground 162)')} + +★ All Projects (Admin View).I/O keys) for subclip export or render job dispatch./dev/shm) for frame-accurate firing.| Application | Platform | Installer |
|---|---|---|
| Adobe Premiere Pro UXP Plugin | macOS / Windows | dragonflight-mam-2.27.6.ccx |
| DaVinci Resolve Studio Plugin | macOS / Windows | dragonflight-resolve-0.1.0.zip |
| Media Command Transfer | macOS / Windows | Media-Command-Transfer-0.2.1-{platform}.{ext} |
| Media Command REMI | macOS / Windows | Media-Command-REMI-0.3.3-{platform}.{ext} |
| Dragon-ISO | Windows | Dragon-ISO-Setup-1.1.0.msi |
The Media Command UXP Plugin provides deep bidirectional NLE integration directly inside Adobe Premiere Pro 2026 (v26+).
+ +dragonflight-mam-2.27.6.ccx from the Downloads menu in Media Command..ccx file to install via Adobe Creative Cloud / UPI.Native DaVinci Resolve Studio 18.5+ Workflow Integration for browsing and importing media directly into the Resolve Media Pool.
+ +dragonflight-resolve-0.1.0.zip./Library/Application Support/Blackmagic Design/DaVinci Resolve/Workflow Integration Plugins/%PROGRAMDATA%\\Blackmagic Design\\DaVinci Resolve\\Support\\Workflow Integration Plugins\\MediaStorage.AddItemListToMediaPool().High-speed desktop utility for bulk broadcast file ingest with accelerated multi-threaded transfers.
+ +| Platform | Package |
|---|---|
| macOS Apple Silicon | Media-Command-Transfer-0.2.1-mac-arm64.zip |
| macOS Intel | Media-Command-Transfer-0.2.1-mac-x64.zip |
| Windows x64 | Media-Command-Transfer-0.2.1-win-x64.exe |
mediacommand://download?asset=<id>&rendition=<type> for instant download from web UI.Low-latency hardware-accelerated broadcast multiviewer and monitor wall application for remote control rooms.
+ +| Platform | Package |
|---|---|
| macOS Apple Silicon | Media-Command-REMI-0.3.3-mac-arm64.zip |
| macOS Intel | Media-Command-REMI-0.3.3-mac-x64.zip |
| Windows x64 | Media-Command-REMI-0.3.3-win-x64.exe (portable, unsigned — SmartScreen: More info → Run anyway) |
/api/tile/:n/source, /api/layout, /api/mute) and WebSocket for Bitfocus Companion / Stream Deck integration.Enterprise automation tool for capturing individual Microsoft Teams and NDI participants into isolated broadcast feeds.
+ +| Platform | Package |
|---|---|
| Windows 10/11 x64 | Dragon-ISO-Setup-1.1.0.msi |
127.0.0.1:9755, OSC server on UDP 127.0.0.1:9000 for Companion and TouchOSC.http://localhost:9755/ui.LIVE badge) and click Mount Growing File.+ Media Command™ End-to-End System Guide · Broadcast Management Group · Wild Dragon LLC · October 2026 +
+ + +`; + +// Write the HTML +const htmlPath = '/home/zgaetano/media-command-guide/guide.html'; +fs.writeFileSync(htmlPath, html); +console.log('HTML written to', htmlPath); + +// Generate PDF using Playwright +(async () => { + const browser = await chromium.launch({ + headless: true, + args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage'] + }); + const context = await browser.newContext(); + const page = await context.newPage(); + + await page.goto(`file://${htmlPath}`, { waitUntil: 'load' }); + await page.waitForTimeout(3000); // allow images to decode + + await page.pdf({ + path: OUTPUT_PDF, + format: 'A4', + landscape: true, + printBackground: true, + margin: { top: '18mm', right: '20mm', bottom: '20mm', left: '20mm' }, + displayHeaderFooter: true, + headerTemplate: '', + footerTemplate: 'Media Command™ is an enterprise-grade broadcast Media Asset Management (MAM), live capture, signal routing, and playout automation platform developed by Wild Dragon LLC for high-velocity broadcast environments.
+ +┌──────────────────────────────────────────────────────────────────────────┐
+│ MEDIA COMMAND™ │
+│ Web UI (React 18 / Nginx) │
+└─────────────────────────────────┬────────────────────────────────────────┘
+ │ REST / WebSocket (Port 47432 / HTTPS)
+┌─────────────────────────────────┴────────────────────────────────────────┐
+│ MAM-API Cluster Gateway │
+│ (Node.js / Express / BullMQ / pg) │
+└────┬───────────────────────────┬──────────────────────────────────┬──────┘
+ │ │ │
+┌────┴──────────────┐ ┌──────────┴──────────────┐ ┌────────────────┴──────┐
+│ Distributed Worker│ │ Database Cluster │ │ Playout & Ingest │
+│ Fleet (GPU/CMAF) │ │ PostgreSQL 16 / Redis 7 │ │ CasparCG / Deltacast │
+│ dragon2,3,4,6 │ │ (dragon1) │ │ SDI / SRT / WebRTC │
+└───────────────────┘ └─────────────────────────┘ └──────────────────────┘
+
+Media Command uses Fragmented MP4 (fMP4 / CMAF) master flows for live ingest. Unlike traditional monolithic files that require finalization before reading:
+auth.broadcastmgmt.cloud.| Role | Scope & Permissions |
|---|---|
| Admin | Full cluster control, user/token provisioning, container restart, S3 and storage configuration. |
| Operator | Recorder control, schedule automation, playout queue manipulation, graphics triggering. |
| Editor | Library browsing, bin curation, rough-cut editor, NLE plugin connectivity, upload/import. |
| Viewer | Read-only access to metadata and proxy streams. Cannot modify content. |
The Operations Dashboard is the command center, providing unified visibility into system vitals, recent activity, and quick access navigation.
+ +cluster healthy · 6/6 nodes).16,076 assets indexed).42 running · 2 failed).24 enabled · 29 configured).Quick navigation tiles provide one-click access to Library, Recorders, Playout, Jobs, Downloads, and Settings.
+ + +The Recorders interface controls physical SDI capture ports (Deltacast PCIe) and network ingest engines across the distributed cluster.
+dragon4-dc0 through dragon6-dc7).1080i59.94, 1080p29.97, 2160p59.94).Create Recording (immediate manual), Add Stream (SRT/RTMP/NDI provisioning), Reset to Default.The Schedule module automates recurring broadcast captures and satellite/fiber ingest events.
+Auto, 2×2, 3×3, 4×4, 6×6.Projects are top-level workspaces isolating media, permissions, bins, and storage quotas. The BMG production environment hosts 8 active projects including Broadcast Management Group (12,353 assets), UBS (3,447 assets), Protour, and others.
+ +★ All Projects (Admin View).I/O keys) for subclip export or render job dispatch./dev/shm) for frame-accurate firing.| Application | Platform | Installer |
|---|---|---|
| Adobe Premiere Pro UXP Plugin | macOS / Windows | dragonflight-mam-2.27.6.ccx |
| DaVinci Resolve Studio Plugin | macOS / Windows | dragonflight-resolve-0.1.0.zip |
| Media Command Transfer | macOS / Windows | Media-Command-Transfer-0.2.1-{platform}.{ext} |
| Media Command REMI | macOS / Windows | Media-Command-REMI-0.3.3-{platform}.{ext} |
| Dragon-ISO | Windows | Dragon-ISO-Setup-1.1.0.msi |
The Media Command UXP Plugin provides deep bidirectional NLE integration directly inside Adobe Premiere Pro 2026 (v26+).
+ +dragonflight-mam-2.27.6.ccx from the Downloads menu in Media Command..ccx file to install via Adobe Creative Cloud / UPI.Native DaVinci Resolve Studio 18.5+ Workflow Integration for browsing and importing media directly into the Resolve Media Pool.
+ +dragonflight-resolve-0.1.0.zip./Library/Application Support/Blackmagic Design/DaVinci Resolve/Workflow Integration Plugins/%PROGRAMDATA%\Blackmagic Design\DaVinci Resolve\Support\Workflow Integration Plugins\MediaStorage.AddItemListToMediaPool().High-speed desktop utility for bulk broadcast file ingest with accelerated multi-threaded transfers.
+ +| Platform | Package |
|---|---|
| macOS Apple Silicon | Media-Command-Transfer-0.2.1-mac-arm64.zip |
| macOS Intel | Media-Command-Transfer-0.2.1-mac-x64.zip |
| Windows x64 | Media-Command-Transfer-0.2.1-win-x64.exe |
mediacommand://download?asset=<id>&rendition=<type> for instant download from web UI.Low-latency hardware-accelerated broadcast multiviewer and monitor wall application for remote control rooms.
+ +| Platform | Package |
|---|---|
| macOS Apple Silicon | Media-Command-REMI-0.3.3-mac-arm64.zip |
| macOS Intel | Media-Command-REMI-0.3.3-mac-x64.zip |
| Windows x64 | Media-Command-REMI-0.3.3-win-x64.exe (portable, unsigned — SmartScreen: More info → Run anyway) |
/api/tile/:n/source, /api/layout, /api/mute) and WebSocket for Bitfocus Companion / Stream Deck integration.Enterprise automation tool for capturing individual Microsoft Teams and NDI participants into isolated broadcast feeds.
+ +| Platform | Package |
|---|---|
| Windows 10/11 x64 | Dragon-ISO-Setup-1.1.0.msi |
127.0.0.1:9755, OSC server on UDP 127.0.0.1:9000 for Companion and TouchOSC.http://localhost:9755/ui.LIVE badge) and click Mount Growing File.+ Media Command™ End-to-End System Guide · Broadcast Management Group · Wild Dragon LLC · October 2026 +
+ + + \ No newline at end of file diff --git a/page-text.js b/page-text.js new file mode 100644 index 0000000..3635811 --- /dev/null +++ b/page-text.js @@ -0,0 +1,9 @@ +const { chromium } = require('playwright');const fs=require('fs'); +const R=['home','recorders','schedule','graphics','multiview','projects','library?project=5ebf74aa-f5b4-4a83-b089-c9af2cb25d1f','upload','contribution','youtube','cloud-import','jobs','staging','playout','playout-tria','engineering','applications','users','tokens','containers','logs','audit','cluster','alerts','settings','rundown','playout-schedule','playout-ads']; +(async()=>{const b=await chromium.launch({args:['--no-sandbox']});const c=await b.newContext({viewport:{width:1920,height:1080}}); +await c.addCookies([{name:'dragonflight.sid',value:'s:d16cd74687c1f5e4322b9d24657efe7da055c019d97fb2e0.nHwwxY6iik6jiySDiKS6aUxacWRQy3T+dCiMTN8Fu8s',domain:'mediacmdr.com',path:'/',httpOnly:true,secure:true}]); +const p=await c.newPage();await p.goto('https://mediacmdr.com/',{waitUntil:'networkidle'});const out={}; +for(const r of R){await p.evaluate(h=>{location.hash=h},r);await p.waitForTimeout(4000); +out[r]=await p.evaluate(()=>{const m=document.querySelector('main,[class*=content],[class*=page]')||document.body;return m.innerText.replace(/\n{2,}/g,'\n').slice(0,1400)});} +await p.goto('https://mediacmdr.com/editor.html',{waitUntil:'networkidle'});await p.waitForTimeout(4000);out.editor=await p.evaluate(()=>document.body.innerText.slice(0,1000)); +fs.writeFileSync('page-text.json',JSON.stringify(out,null,1));await b.close()})(); diff --git a/recapture-asset.js b/recapture-asset.js new file mode 100644 index 0000000..5e7dbaf --- /dev/null +++ b/recapture-asset.js @@ -0,0 +1,61 @@ +const { chromium } = require('playwright'); +const OUT = '/home/zgaetano/media-command-guide/screenshots'; +const BMG = '5ebf74aa-f5b4-4a83-b089-c9af2cb25d1f'; +const pause = p => p.evaluate(() => document.querySelectorAll('video').forEach(v => { try { v.pause() } catch (e) {} })); +const clickText = (p, src) => p.evaluate(src => { + const re = new RegExp(src, 'i'); + const e = [...document.querySelectorAll('button,[role=tab],a,li,span,div')] + .filter(x => x.offsetHeight > 0 && x.children.length < 4).find(x => re.test((x.innerText || '').trim())); + if (e) { e.click(); return (e.innerText || '').slice(0, 50); } return null; +}, src); + +(async () => { + const b = await chromium.launch({ headless: true, args: ['--no-sandbox', '--autoplay-policy=no-user-gesture-required'] }); + const c = await b.newContext({ viewport: { width: 1920, height: 1080 } }); + await c.addCookies([{ name: 'dragonflight.sid', value: 's:d16cd74687c1f5e4322b9d24657efe7da055c019d97fb2e0.nHwwxY6iik6jiySDiKS6aUxacWRQy3T+dCiMTN8Fu8s', domain: 'mediacmdr.com', path: '/', httpOnly: true, secure: true }]); + const p = await c.newPage(); + await p.goto(`https://mediacmdr.com/#library?project=${BMG}`, { waitUntil: 'networkidle' }); + await p.waitForTimeout(6000); + // scroll the grid into view to show real thumbnails + await p.evaluate(() => { const m = document.querySelector('main') || document.scrollingElement; m.scrollBy(0, 350); }); + await p.waitForTimeout(2500); + await p.screenshot({ path: `${OUT}/09a-library-grid-thumbnails.png` }); + // find asset cards with images and a filename + const cards = await p.evaluate(() => [...document.querySelectorAll('[class*=card],[class*=tile],[class*=asset],tr')] + .filter(e => e.querySelector('img,video') && e.offsetHeight > 60 && e.offsetHeight < 500) + .slice(0, 8).map(e => (e.innerText || '').replace(/\s+/g, ' ').slice(0, 70))); + console.log('cards:', JSON.stringify(cards)); + // Prefer a clip (has duration like 0:49 or 00:00) + const opened = await p.evaluate(() => { + const el = [...document.querySelectorAll('[class*=card],[class*=tile],[class*=asset],tr')] + .filter(e => e.querySelector('img,video') && e.offsetHeight > 60 && e.offsetHeight < 500) + .find(e => /\d+:\d\d/.test(e.innerText || '') && !/items?\b/i.test(e.innerText || '')); + if (!el) return null; + const t = el.querySelector('img') || el; + t.click(); t.dispatchEvent(new MouseEvent('dblclick', { bubbles: true })); + return el.innerText.replace(/\s+/g, ' ').slice(0, 70); + }); + console.log('opened:', opened, 'hash:', await p.evaluate(() => location.hash)); + await p.waitForTimeout(7000); + await p.evaluate(async () => { + const v = document.querySelector('video'); if (!v) return 'novideo'; + v.muted = true; try { await v.play() } catch (e) {} + await new Promise(r => setTimeout(r, 6000)); + try { v.currentTime = Math.min(15, (v.duration || 30) / 3) } catch (e) {} + await new Promise(r => setTimeout(r, 3000)); v.pause(); + }); + await p.screenshot({ path: `${OUT}/09b-media-library-asset-inspector.png` }); + for (const t of ['Metadata', 'Transcript', 'AI Analysis', 'Versions', 'Comments']) { + const ok = await clickText(p, '^' + t); + if (ok) { await p.waitForTimeout(3000); await pause(p); await p.screenshot({ path: `${OUT}/09c-asset-${t.split(' ')[0].toLowerCase()}.png` }); console.log('tab', t); } + } + // Downloads modal: Desktop apps tab + await p.goto('https://mediacmdr.com/#home', { waitUntil: 'networkidle' }); await p.waitForTimeout(3500); + console.log('dl:', await clickText(p, '^Downloads')); + await p.waitForTimeout(2500); + await p.screenshot({ path: `${OUT}/20b-downloads-modal.png` }); + console.log('desktop tab:', await clickText(p, '^Desktop apps')); + await p.waitForTimeout(2500); + await p.screenshot({ path: `${OUT}/20c-downloads-desktop-apps.png` }); + await b.close(); +})(); diff --git a/recapture.js b/recapture.js new file mode 100644 index 0000000..424ac47 --- /dev/null +++ b/recapture.js @@ -0,0 +1,81 @@ +const { chromium } = require('playwright'); +const fs = require('fs'); +const OUT = '/home/zgaetano/media-command-guide/screenshots'; +const BMG = '5ebf74aa-f5b4-4a83-b089-c9af2cb25d1f'; +const routes = [ + ['02-dashboard-home', 'home'], ['05-live-recorders', 'recorders'], ['06-live-schedule', 'schedule'], + ['07-live-graphics', 'graphics'], ['08-live-monitor-wall', 'multiview'], ['03-projects', 'projects'], + ['09-media-library-bmg', `library?project=${BMG}`], ['10-media-upload', 'upload'], ['11-media-contribution', 'contribution'], + ['12-media-youtube', 'youtube'], ['13-media-cloud-import', 'cloud-import'], ['14-ops-jobs', 'jobs'], + ['15-ops-staging', 'staging'], ['16-ops-playout', 'playout'], ['17-ops-clip-server', 'playout-tria'], + ['19-ops-engineering', 'engineering'], ['20-ops-applications', 'applications'], + ['21-admin-users-groups', 'users'], ['22-admin-api-tokens', 'tokens'], ['23-admin-containers', 'containers'], + ['24-admin-logs', 'logs'], ['25-admin-audit-log', 'audit'], ['26-admin-cluster', 'cluster'], + ['27-admin-alerts', 'alerts'], ['28-admin-settings', 'settings'], + ['29-playout-rundown', 'rundown'], ['30-playout-schedule', 'playout-schedule'], ['31-playout-ads', 'playout-ads'], +]; +const pause = p => p.evaluate(() => document.querySelectorAll('video').forEach(v => { try { v.pause() } catch (e) {} })); +const clickText = (p, re) => p.evaluate(src => { + const re = new RegExp(src, 'i'); + const e = [...document.querySelectorAll('button,[role=tab],a,[class*=card],[class*=tile],li,div')] + .filter(x => x.offsetHeight > 0 && x.children.length < 6).find(x => re.test((x.innerText || '').trim())); + if (e) { e.click(); return (e.innerText || '').slice(0, 50); } return null; +}, re.source); + +(async () => { + const b = await chromium.launch({ headless: true, args: ['--no-sandbox', '--autoplay-policy=no-user-gesture-required'] }); + const c = await b.newContext({ viewport: { width: 1920, height: 1080 } }); + await c.addCookies([{ name: 'dragonflight.sid', value: 's:d16cd74687c1f5e4322b9d24657efe7da055c019d97fb2e0.nHwwxY6iik6jiySDiKS6aUxacWRQy3T+dCiMTN8Fu8s', domain: 'mediacmdr.com', path: '/', httpOnly: true, secure: true }]); + const p = await c.newPage(); + await p.goto('https://mediacmdr.com/', { waitUntil: 'networkidle' }); + const log = {}; + for (const [name, r] of routes) { + await p.evaluate(h => { location.hash = h }, r); + await p.waitForTimeout(4500); + await pause(p); + await p.screenshot({ path: `${OUT}/${name}.png` }); + log[name] = await p.evaluate(() => { + const h = [...document.querySelectorAll('h1,h2,[class*=crumb]')].map(e => e.innerText).filter(Boolean).slice(0, 2).join(' / '); + return h.replace(/\s+/g, ' ').slice(0, 90) + ' | ' + location.hash; + }); + console.log(name, '=>', log[name]); + } + // Projects -> open BMG project card + await p.evaluate(() => { location.hash = 'projects' }); await p.waitForTimeout(4000); + console.log('bmg card:', await clickText(p, /^Broadcast Managment Group/)); + await p.waitForTimeout(5000); await pause(p); + await p.screenshot({ path: `${OUT}/04-project-bmg-overview.png` }); + + // BMG library -> asset detail + await p.evaluate(h => { location.hash = h }, `library?project=${BMG}`); await p.waitForTimeout(6000); + const hit = await p.evaluate(() => { + const el = [...document.querySelectorAll('tr,[class*=card],[class*=tile],[class*=asset],[class*=row]')] + .find(e => /Sizzle|\.(mp4|mov|mxf)/i.test(e.innerText || '') && e.offsetHeight > 30 && e.offsetHeight < 400); + if (el) { el.click(); el.dispatchEvent(new MouseEvent('dblclick', { bubbles: true })); return el.innerText.slice(0, 60) } return null; + }); + console.log('asset:', hit); await p.waitForTimeout(7000); + await p.evaluate(async () => { + const v = document.querySelector('video'); if (!v) return; + v.muted = true; try { await v.play() } catch (e) {} + await new Promise(r => setTimeout(r, 5000)); + v.currentTime = Math.min(15, (v.duration || 30) / 3); + await new Promise(r => setTimeout(r, 3000)); v.pause(); + }); + await p.screenshot({ path: `${OUT}/09b-media-library-asset-inspector.png` }); + for (const t of ['Metadata', 'Transcript', 'AI Analysis', 'Versions', 'Comments']) { + const ok = await clickText(p, new RegExp('^' + t)); + if (ok) { await p.waitForTimeout(3000); await pause(p); await p.screenshot({ path: `${OUT}/09c-asset-${t.split(' ')[0].toLowerCase()}.png` }); console.log('tab', t); } + } + // Editor standalone + await p.goto('https://mediacmdr.com/editor.html', { waitUntil: 'networkidle' }).catch(() => {}); + await p.waitForTimeout(5000); await pause(p); + await p.screenshot({ path: `${OUT}/18-ops-editor.png` }); + console.log('editor title:', await p.title()); + // Downloads modal + await p.goto('https://mediacmdr.com/#home', { waitUntil: 'networkidle' }); await p.waitForTimeout(3500); + console.log('downloads:', await clickText(p, /^Downloads/)); + await p.waitForTimeout(3000); + await p.screenshot({ path: `${OUT}/20b-downloads-modal.png` }); + fs.writeFileSync('/home/zgaetano/media-command-guide/capture-log.json', JSON.stringify(log, null, 1)); + await b.close(); +})(); diff --git a/screenshots/02-dashboard-home.png b/screenshots/02-dashboard-home.png index 3cd0c53..1aab9cb 100644 Binary files a/screenshots/02-dashboard-home.png and b/screenshots/02-dashboard-home.png differ diff --git a/screenshots/03-projects.png b/screenshots/03-projects.png index a57d17b..24fe004 100644 Binary files a/screenshots/03-projects.png and b/screenshots/03-projects.png differ diff --git a/screenshots/04-project-bmg-overview.png b/screenshots/04-project-bmg-overview.png index e09e4e3..e307912 100644 Binary files a/screenshots/04-project-bmg-overview.png and b/screenshots/04-project-bmg-overview.png differ diff --git a/screenshots/05-live-recorders.png b/screenshots/05-live-recorders.png index bb1bda5..71dd8bc 100644 Binary files a/screenshots/05-live-recorders.png and b/screenshots/05-live-recorders.png differ diff --git a/screenshots/06-live-schedule.png b/screenshots/06-live-schedule.png index a85eb7e..13aa8c1 100644 Binary files a/screenshots/06-live-schedule.png and b/screenshots/06-live-schedule.png differ diff --git a/screenshots/08-live-monitor-wall.png b/screenshots/08-live-monitor-wall.png index fd7641a..5c25a1e 100644 Binary files a/screenshots/08-live-monitor-wall.png and b/screenshots/08-live-monitor-wall.png differ diff --git a/screenshots/09-media-library-bmg.png b/screenshots/09-media-library-bmg.png index 2775f04..8a4092d 100644 Binary files a/screenshots/09-media-library-bmg.png and b/screenshots/09-media-library-bmg.png differ diff --git a/screenshots/09-media-library.png b/screenshots/09-media-library.png deleted file mode 100644 index 096ac01..0000000 Binary files a/screenshots/09-media-library.png and /dev/null differ diff --git a/screenshots/09a-library-grid-thumbnails.png b/screenshots/09a-library-grid-thumbnails.png new file mode 100644 index 0000000..9dc1ea9 Binary files /dev/null and b/screenshots/09a-library-grid-thumbnails.png differ diff --git a/screenshots/09b-media-library-asset-inspector.png b/screenshots/09b-media-library-asset-inspector.png index 406b1af..591141d 100644 Binary files a/screenshots/09b-media-library-asset-inspector.png and b/screenshots/09b-media-library-asset-inspector.png differ diff --git a/screenshots/09c-asset-ai.png b/screenshots/09c-asset-ai.png new file mode 100644 index 0000000..7dd14fc Binary files /dev/null and b/screenshots/09c-asset-ai.png differ diff --git a/screenshots/09c-asset-comments.png b/screenshots/09c-asset-comments.png new file mode 100644 index 0000000..829e253 Binary files /dev/null and b/screenshots/09c-asset-comments.png differ diff --git a/screenshots/09c-asset-metadata.png b/screenshots/09c-asset-metadata.png new file mode 100644 index 0000000..f40cfcb Binary files /dev/null and b/screenshots/09c-asset-metadata.png differ diff --git a/screenshots/09c-asset-transcript.png b/screenshots/09c-asset-transcript.png new file mode 100644 index 0000000..3a8c8ad Binary files /dev/null and b/screenshots/09c-asset-transcript.png differ diff --git a/screenshots/09c-asset-versions.png b/screenshots/09c-asset-versions.png new file mode 100644 index 0000000..60f97ee Binary files /dev/null and b/screenshots/09c-asset-versions.png differ diff --git a/screenshots/10-media-upload.png b/screenshots/10-media-upload.png index 0e0a698..1cc41a2 100644 Binary files a/screenshots/10-media-upload.png and b/screenshots/10-media-upload.png differ diff --git a/screenshots/11-media-contribution.png b/screenshots/11-media-contribution.png index 6f998d0..da1bd58 100644 Binary files a/screenshots/11-media-contribution.png and b/screenshots/11-media-contribution.png differ diff --git a/screenshots/12-media-youtube.png b/screenshots/12-media-youtube.png index 0ba4647..79e3094 100644 Binary files a/screenshots/12-media-youtube.png and b/screenshots/12-media-youtube.png differ diff --git a/screenshots/13-media-cloud-import.png b/screenshots/13-media-cloud-import.png index 902758d..bed1d11 100644 Binary files a/screenshots/13-media-cloud-import.png and b/screenshots/13-media-cloud-import.png differ diff --git a/screenshots/14-ops-jobs.png b/screenshots/14-ops-jobs.png index 4b01754..6fc2256 100644 Binary files a/screenshots/14-ops-jobs.png and b/screenshots/14-ops-jobs.png differ diff --git a/screenshots/15-ops-staging.png b/screenshots/15-ops-staging.png index d34a46e..4d53f3e 100644 Binary files a/screenshots/15-ops-staging.png and b/screenshots/15-ops-staging.png differ diff --git a/screenshots/16-ops-playout.png b/screenshots/16-ops-playout.png index 02605e9..328775e 100644 Binary files a/screenshots/16-ops-playout.png and b/screenshots/16-ops-playout.png differ diff --git a/screenshots/17-ops-clip-server.png b/screenshots/17-ops-clip-server.png index bcaa692..148391b 100644 Binary files a/screenshots/17-ops-clip-server.png and b/screenshots/17-ops-clip-server.png differ diff --git a/screenshots/18-ops-editor.png b/screenshots/18-ops-editor.png index bcaa692..578c00d 100644 Binary files a/screenshots/18-ops-editor.png and b/screenshots/18-ops-editor.png differ diff --git a/screenshots/19-ops-engineering.png b/screenshots/19-ops-engineering.png index a98247c..240f3d8 100644 Binary files a/screenshots/19-ops-engineering.png and b/screenshots/19-ops-engineering.png differ diff --git a/screenshots/20-ops-applications.png b/screenshots/20-ops-applications.png index 026718e..8efa29a 100644 Binary files a/screenshots/20-ops-applications.png and b/screenshots/20-ops-applications.png differ diff --git a/screenshots/20b-downloads-modal.png b/screenshots/20b-downloads-modal.png index a3748ec..86dc310 100644 Binary files a/screenshots/20b-downloads-modal.png and b/screenshots/20b-downloads-modal.png differ diff --git a/screenshots/20c-downloads-desktop-apps.png b/screenshots/20c-downloads-desktop-apps.png new file mode 100644 index 0000000..5c19f12 Binary files /dev/null and b/screenshots/20c-downloads-desktop-apps.png differ diff --git a/screenshots/21-admin-users-groups.png b/screenshots/21-admin-users-groups.png index e9ec128..2de26c0 100644 Binary files a/screenshots/21-admin-users-groups.png and b/screenshots/21-admin-users-groups.png differ diff --git a/screenshots/22-admin-api-tokens.png b/screenshots/22-admin-api-tokens.png index 1767feb..b2bc2b6 100644 Binary files a/screenshots/22-admin-api-tokens.png and b/screenshots/22-admin-api-tokens.png differ diff --git a/screenshots/23-admin-containers.png b/screenshots/23-admin-containers.png index 0113eab..ecf6f68 100644 Binary files a/screenshots/23-admin-containers.png and b/screenshots/23-admin-containers.png differ diff --git a/screenshots/24-admin-logs.png b/screenshots/24-admin-logs.png index 6558566..04a841c 100644 Binary files a/screenshots/24-admin-logs.png and b/screenshots/24-admin-logs.png differ diff --git a/screenshots/25-admin-audit-log.png b/screenshots/25-admin-audit-log.png index c5cc00a..1d825fa 100644 Binary files a/screenshots/25-admin-audit-log.png and b/screenshots/25-admin-audit-log.png differ diff --git a/screenshots/26-admin-cluster.png b/screenshots/26-admin-cluster.png index 5328c1b..2c79b71 100644 Binary files a/screenshots/26-admin-cluster.png and b/screenshots/26-admin-cluster.png differ diff --git a/screenshots/27-admin-alerts.png b/screenshots/27-admin-alerts.png index a6426b9..b175acb 100644 Binary files a/screenshots/27-admin-alerts.png and b/screenshots/27-admin-alerts.png differ diff --git a/screenshots/28-admin-settings.png b/screenshots/28-admin-settings.png index eda0e5d..9c413f5 100644 Binary files a/screenshots/28-admin-settings.png and b/screenshots/28-admin-settings.png differ diff --git a/screenshots/29-playout-rundown.png b/screenshots/29-playout-rundown.png new file mode 100644 index 0000000..dfa703f Binary files /dev/null and b/screenshots/29-playout-rundown.png differ diff --git a/screenshots/30-playout-schedule.png b/screenshots/30-playout-schedule.png new file mode 100644 index 0000000..8a8ab03 Binary files /dev/null and b/screenshots/30-playout-schedule.png differ diff --git a/screenshots/31-playout-ads.png b/screenshots/31-playout-ads.png new file mode 100644 index 0000000..14c76b0 Binary files /dev/null and b/screenshots/31-playout-ads.png differ