Video content gallery featuring YouTube vlogs, engineering content, and educational shorts. Includes a thumbnail grid viewer, inline YouTube player, API-synced duration fetching, and a unified video sync manager.
YouTube vlogs, engineering content ও educational shorts-এর gallery। Thumbnail grid, inline player, YouTube API duration sync এবং unified video sync manager সহ।
The video gallery shows YouTube thumbnail cards in a responsive grid. Clicking a thumbnail opens an inline iframe player without leaving the page. Each card shows title, duration (fetched via YouTube Data API), view count, and tags.
Video gallery YouTube thumbnail card grid দেখায়। Click করলে inline iframe player খোলে। প্রতিটি card-এ title, duration, view count এবং tags আছে।
The fetch-youtube-durations.js script authenticates with YouTube Data API v3 and fetches video metadata (duration, view count, publish date) for all listed videos. Data is cached locally to minimize API calls.
YouTube Data API v3 দিয়ে video duration, view count, publish date fetch করা হয়। Data locally cache করে API call কমানো হয়।
unified-video-sync.js handles YouTube API refresh + local data mergecontent.json is automatically synced on every upload, edit, or delete — no manual action neededVlog files (thumbnails, captions, metadata) are stored in Content Storage/vlogs/. Each vlog has a folder with a thumbnail image, a metadata JSON, and optionally a local caption file. The gallery page reads these to populate the grid.
Vlogs-এর thumbnails, captions ও metadata Content Storage/vlogs/-এ আছে। প্রতিটি vlog-এর folder-এ thumbnail, metadata JSON এবং caption file আছে।
| File | Type | Description |
|---|---|---|
| Content-studio/content-manager.js → syncVideoToMobileContentJSON() | Auto-Sync | Automatically updates mobile content.json after every upload, edit or delete |
| Content Studio/video-content/unified-video-sync.js | Script | Main sync logic — merges YouTube API data with local JSON cache |
| Content Studio/video-content/fetch-youtube-durations.js | Script | YouTube Data API v3 caller — fetches video duration and metadata |
| Content Storage/vlogs/ | Storage | Per-vlog folders with thumbnail, metadata JSON, optional captions |
| Content Storage/educational-videos/ | Storage | Educational and tutorial video assets (separate from vlogs) |