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
[*] 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.
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.
本贴来自国际rpgmaker官方论坛作者:ToshaAngel处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/tosha_videogallery.179634/
页:
[1]