Hi. I'm currently using this video player and have recently updated to the new version (1.1), but am running into some issues with it now that I have.
I originally updated because I was running into an issue with the unload command seemingly not actually unloading the videos, effectively creating a memory leak as videos slowly built up in memory. This seems to have been resolved in the newer version though, thankfully.
However - What I am running into now is an issue when I have 2 different videos I want to be playing and allow the player to cycle between them. I previously achieved this by allowing the player to choose choices that run the stop command for the current video and then the play command for the new video - and then vice versa to reverse return to the original one.
However - this no longer allows me to reverse the change - after I run a stop command - the original video is no longer playable. The play & resume commands both cannot play the video anymore. Even if I set "Auto Unload" to false, true OR blank - this remains the case.
Additionally - If I use the Pause & Resume functions, only the most recently "loaded" video will show up, paused and covering the the other video, so that's also not a workable solution.
Currently the only method I have left working is to fully unload and then reload the video from memory every time it's going to be used, which is both a tonne of work AND a big issue for lower performance devices. I would appreciate if this could be helped with.
And.. thanks a tonne for making plugins like this in the first place - they're super useful!
I tried to use this plugin and then experiment using 'Show Picture' but the picture IDs always show over the top of the video. The various blend modes built into RPGMaker MZ do not help the issue and Show Parallax is only a workaround.
I was hoping to show emotes using Show Picture ID layering or other animated picture plugins, which this plugin would allow (as I would just have to center the video and mind the coordinates without obscuring the entire playback), the only consideration would be that the background for the video cannot be a parallax or picture ID at the same time. I was hoping to see if I could add a static picture ID or scrolling parallax on a layer under the video playbacks, and I could easily be missing something in the function documentation above after reviewing. This isn't a major issue, as even the video previews above make it clear your video background will either be the entire video itself or the sprite map. There are also advantages to the various blend modes running animated pictures over the top of the video without having to have various visual effects built into the video directly.
I realize this is likely an engine limitation and wasn't sure if I should be using the javascript function calls instead of the in-engine plugin commands to get around this as I'm relatively inexperienced with RMMZ, JS, and plugin usage, but I just thought I'd get Niji's opinion before hitting up the RMMZ forums for ideas on the order of operations here. The plugin itself works great.
anywhere, really. I added after Spriteset_Base.prototype.removeVideo so line 320.
This does not fix videos being deactivated; you 'd have to write some additional code to track which ones were playing and restart them upon return to the Scene_Map.
I had to do this for a game jam so I just used GalV's MZ Load Common Event plug it to have a common event play my video upon return to the map screen. It continues from the same frame it left off on, as far as I can tell.
I have video but there is not sound, I tried using both .webm and .mp4 file types, tried to unmute and set video volume but still no audio.. I first preload video into memory then Play video by id, the video plays but I get no audio.. am I doing it wrong?
I'm having the same issue. Even when using unmute it throws an error 'Parent_ID undefined' I have made sure the video ID was referenced. I think this may have been broken in an engine update? Hopefully, dev will investigate and fix. The plugin is great only issue is no volume.
Hi Hanojisoka, I fixed the issue by deleting the text value 'false' in 'Should Mute?' and leaving it blank, volume now plays. If you set it to 'false' it seems to break it. I'm guessing it's a bug/oversight. Hope I've helped.
Finally, a video player that WORKS. I was able to set up my game using Common Events for playing and stopping videos and using Variables for file paths, names and extensions, and I can even progress through a series of videos sequentially by controlling a variable that simply counts up. This makes ongoing production SO EASY.
I managed to get looping webm video to play in the background while going through dialogue and options. Just what I wanted. If I ever manage to finish my project I'll surely come by and buy this plugin.
Edit - I fixed the issue by deleting the text value 'false' in 'Should Mute?' and leaving it blank, volume now plays. If you set it to 'false' it seems to break it. Hope I've helped.
Hi Niji, me and Hanojisoka can't get volume or sound to work and when adding extra plugin commands (unmuted or volume) it throws an error
TypeError
Cannot set property 'muted' of undefined
I have made sure the video ID was referenced etc. Maybe this was broken in an engine update? Could you please investigate and fix. Otherwise this plugin is perfect, thank you so much for making it.
One more thing - when opening and closing the player menu (inventory, save etc.) while a video is playing it causes the video to stop playing and if reinitialised causes a crash.
Interesting, if you can post the webm, or send it to me somehow I can see if I can replicate. Usually it's because of the reasons I listed! I updated the other code.
In my current project im using this plugin, and for some reason when i finish a event with some videos on it, when that event its finished and im going to start another with other videos, some of the videos of the first event are showed on the second, and the second event videos are not showed.
I tried this plugin but for some reason whenever I preload a video the audio starts playing. (Other than that it works better than everything else I've tried!)
I will include this in the next update. I was wondering if I should expose it. You can do this yourself by grabbing the video using: `Niji.Video.get(id)` and doing `video._source.playbackRate = 0.5`
Hi there. This plugin is awesome, but I was hoping for some guidance: Is it possible to render videos behind existing graphical elements? I was hoping to use this to created animated battle backgrounds, but while videos show up in battles, they unfortunately cover up the battlers.
If you want to use it for those objects I guess the parallel animation system could be extracted and repurposed. You would definitely have to adjust it for the properties of the objects being different though. If you want to use it to replace those objects with pure videos, then yes, you could definitely do that as long as the layering is done right.
← Return to tool
Comments
Log in with itch.io to leave a comment.
Hello! Is it possible to play a video as a background during fights?
Hi. I'm currently using this video player and have recently updated to the new version (1.1), but am running into some issues with it now that I have.
I originally updated because I was running into an issue with the unload command seemingly not actually unloading the videos, effectively creating a memory leak as videos slowly built up in memory. This seems to have been resolved in the newer version though, thankfully.
However - What I am running into now is an issue when I have 2 different videos I want to be playing and allow the player to cycle between them. I previously achieved this by allowing the player to choose choices that run the stop command for the current video and then the play command for the new video - and then vice versa to reverse return to the original one.
However - this no longer allows me to reverse the change - after I run a stop command - the original video is no longer playable. The play & resume commands both cannot play the video anymore. Even if I set "Auto Unload" to false, true OR blank - this remains the case.
Additionally - If I use the Pause & Resume functions, only the most recently "loaded" video will show up, paused and covering the the other video, so that's also not a workable solution.
Currently the only method I have left working is to fully unload and then reload the video from memory every time it's going to be used, which is both a tonne of work AND a big issue for lower performance devices. I would appreciate if this could be helped with.
And.. thanks a tonne for making plugins like this in the first place - they're super useful!
Hi,
I tried to use this plugin and then experiment using 'Show Picture' but the picture IDs always show over the top of the video. The various blend modes built into RPGMaker MZ do not help the issue and Show Parallax is only a workaround.
I was hoping to show emotes using Show Picture ID layering or other animated picture plugins, which this plugin would allow (as I would just have to center the video and mind the coordinates without obscuring the entire playback), the only consideration would be that the background for the video cannot be a parallax or picture ID at the same time. I was hoping to see if I could add a static picture ID or scrolling parallax on a layer under the video playbacks, and I could easily be missing something in the function documentation above after reviewing. This isn't a major issue, as even the video previews above make it clear your video background will either be the entire video itself or the sprite map. There are also advantages to the various blend modes running animated pictures over the top of the video without having to have various visual effects built into the video directly.
I realize this is likely an engine limitation and wasn't sure if I should be using the javascript function calls instead of the in-engine plugin commands to get around this as I'm relatively inexperienced with RMMZ, JS, and plugin usage, but I just thought I'd get Niji's opinion before hitting up the RMMZ forums for ideas on the order of operations here. The plugin itself works great.
Trying to play a preloaded movie that was playing, after the game menu was closed and open causes a crash "Cannot set property '_parentID' of null"
I fixed this by adding the following code. in the plugin
const _Scene_Map_terminate = Scene_Map.prototype.terminate;
Scene_Map.prototype.terminate = function() {
_Scene_Map_terminate.call(this);
if (this._spriteset._videosContainer) {
this._spriteset._videosContainer.removeChildren();
}
};
Where did you add this code exactly? (what line number).
Does the video still deactivate when opening/closing the menu?
anywhere, really. I added after Spriteset_Base.prototype.removeVideo so line 320.
This does not fix videos being deactivated; you 'd have to write some additional code to track which ones were playing and restart them upon return to the Scene_Map.
I had to do this for a game jam so I just used GalV's MZ Load Common Event plug it to have a common event play my video upon return to the map screen. It continues from the same frame it left off on, as far as I can tell.
I have video but there is not sound, I tried using both .webm and .mp4 file types, tried to unmute and set video volume but still no audio.. I first preload video into memory then Play video by id, the video plays but I get no audio.. am I doing it wrong?
I'm having the same issue. Even when using unmute it throws an error 'Parent_ID undefined' I have made sure the video ID was referenced. I think this may have been broken in an engine update? Hopefully, dev will investigate and fix. The plugin is great only issue is no volume.
Hi Hanojisoka, I fixed the issue by deleting the text value 'false' in 'Should Mute?' and leaving it blank, volume now plays. If you set it to 'false' it seems to break it. I'm guessing it's a bug/oversight. Hope I've helped.
I am having problems making the plugin not loop and to autounload
The plug in command sends loop and autounload as the strings "true" or "false", instead of true or false.
Find
PluginManager.registerCommand(pluginName, "load", args => {
Video.load(args.id, args.filename, {
volume: args.volume,
shouldMute: args.optionsMute,
shouldLoop: args.optionsLoop,
shouldAutoUnload: args.optionsAutoUnload
});
});
and replace it with
PluginManager.registerCommand(pluginName, "load", args => {
Video.load(args.id, args.filename, {
volume: Number(args.volume),
shouldMute: (args.optionsMute === 'true'),
shouldLoop: (args.optionsLoop === 'true'),
shouldAutoUnload: (args.optionsAutoUnload === 'true')
});
});
Finally, a video player that WORKS. I was able to set up my game using Common Events for playing and stopping videos and using Variables for file paths, names and extensions, and I can even progress through a series of videos sequentially by controlling a variable that simply counts up. This makes ongoing production SO EASY.
Thank you Niji, you rock!!
I managed to get looping webm video to play in the background while going through dialogue and options. Just what I wanted. If I ever manage to finish my project I'll surely come by and buy this plugin.
Released 1.1.0 :)
Edit - I fixed the issue by deleting the text value 'false' in 'Should Mute?' and leaving it blank, volume now plays. If you set it to 'false' it seems to break it. Hope I've helped.
Hi Niji, me and Hanojisoka can't get volume or sound to work and when adding extra plugin commands (unmuted or volume) it throws an error
TypeError
Cannot set property 'muted' of undefined
I have made sure the video ID was referenced etc.
Maybe this was broken in an engine update? Could you please investigate and fix. Otherwise this plugin is perfect, thank you so much for making it.
One more thing - when opening and closing the player menu (inventory, save etc.) while a video is playing it causes the video to stop playing and if reinitialised causes a crash.
TypeError
Cannot set property '_parentID' of null
Any chance of a solution or fix for this issue?
+ Alpha channel works
+ Video loops
- No preload
(it requires me to understand the plugin code to fix)
- Video sound starts by itself
(due to broken preload it plays the sound, but doesn't show the picture)
~ No unload(Lol I fixed it myself... What the hell man... Why was ".unload" using function ".stop"?!)
- No "shouldAutoUnload" variable in function ".load"
- ".isReady" doesn't work, or has no impact on preload process
How the hell did developer made it work, but missed 'the start' and 'the end'?!?!?!?
Thanks for letting me know, updating now.
Videos won't start until they are fully loaded (even sound). This could be two potential reasons:
I tried ".webm" files...
Didn't even try ".gif"
Interesting, if you can post the webm, or send it to me somehow I can see if I can replicate. Usually it's because of the reasons I listed! I updated the other code.
Hi!
In my current project im using this plugin, and for some reason when i finish a event with some videos on it, when that event its finished and im going to start another with other videos, some of the videos of the first event are showed on the second, and the second event videos are not showed.
Can someone help me? Thx!
You should edit 1 line in plugin file.
(the hint is in my comment)
I've updated the plugin, this should be fixed now!
I tried this plugin but for some reason whenever I preload a video the audio starts playing. (Other than that it works better than everything else I've tried!)
If anyone knows a fix I'd be grateful.
This may be due to an encoding or using a `.gif` you should ensure that you're using a `webm` or `mp4` with `H.264` encodings.
Can this plugin adjust playback speed of webm files?
I will include this in the next update. I was wondering if I should expose it. You can do this yourself by grabbing the video using: `Niji.Video.get(id)` and doing `video._source.playbackRate = 0.5`
Hi there. This plugin is awesome, but I was hoping for some guidance: Is it possible to render videos behind existing graphical elements? I was hoping to use this to created animated battle backgrounds, but while videos show up in battles, they unfortunately cover up the battlers.
Is it possible to play videos in front of a picture? Like having an animation of a character running across a background picture of a beach?
Hi bro, thanks for your plugin.
I would like to report a possible bug.
Even if i put loop to false, continues playing the video.
Im using version 1.0.2
And i want to ask if is there a way to put gif above picture, because my enemies are pictures, thanks.
Thanks for the report, will take a look into it. As far as placing a Gif above a picture, should be possible, have not tried it though.
This looks imcredible. Could I use this to animate front view enemies somehow? Or perhaps replace all text boxes in the game with it?
If you want to use it for those objects I guess the parallel animation system could be extracted and repurposed. You would definitely have to adjust it for the properties of the objects being different though. If you want to use it to replace those objects with pure videos, then yes, you could definitely do that as long as the layering is done right.