MZ ToshA_VideoGallery

ToshA_VideoGallery — Video Gallery & Player (RPG Maker MZ)
by ToshaAngel​




What is it?
An in-game video gallery with a built-in player. Add entries via plugin commands, lock/unlock them, play by ID, or open the gallery any time (optionally from the main menu).

Engine: RPG Maker MZ
File: ToshA_VideoGallery.js (see attachment below)




Features
  • Gallery view as list or grid with thumbnails and descriptions.
  • Player controls: play/pause, seek bar, volume, close.
  • Video scaling: cover / contain / stretch.
  • Audio routed through RPG Maker’s AudioManager.
  • Optional Main Menu entry (parameters: addToMenu, menuName).




Installation
[olist]
[*] Copy ToshA_VideoGallery.js into js/plugins/ and enable it.
[*] Put your videos in movies/ (e.g. movies/intro.webm).
[*] (Optional) Place thumbnails in img/pictures/; if missing, a frame from the video will be used.
[/olist]




Plugin Commands
  • AddVideo — add/update entry (id, title, videoFile, thumb, description, unlocked).
  • UnlockVideo / LockVideo — change access by ID.
  • RemoveVideo / ClearVideos — remove one or clear all.
  • OpenGallery — open the gallery (optional initialId).
  • PlayVideo — play by ID.

Examples — Event Commands
Code:
// Add an entry
AddVideo: id=intro, title=Intro, videoFile=intro, thumb=, description=Intro cutscene, unlocked=true

// Open gallery (optionally highlight an entry)
OpenGallery: initialId=intro

// Play directly by ID
PlayVideo: id=intro

Examples — Script calls
Code:
PluginManager.callCommand(this,"ToshA_VideoGallery","AddVideo",
 { id:"intro", title:"Intro", videoFile:"intro", thumb:"", description:"Intro cutscene", unlocked:true });

PluginManager.callCommand(this,"ToshA_VideoGallery","OpenGallery",{ initialId:"intro" });

PluginManager.callCommand(this,"ToshA_VideoGallery","PlayVideo",{ id:"intro" });




Notes & Tips
  • Use .webm for the best compatibility/performance.
  • Thumbnails are optional; recommended size/aspect to match your layout.
  • Files go to movies/; reference by name with or without extension.




License & Credits
Free for commercial and non-commercial projects with credit to ToshaAngel.
Do not redistribute or re-sell the plugin file.

Download: see the attached ToshA_VideoGallery.js below.

Original thread: https://forums.rpgmakerweb.com/threads/tosha_videogallery.179634/