Page 1 of 1

Randomized video player 1.0

Posted: Sun Apr 07, 2024 6:28 pm
by Ginryuu
Hi. This is offline html app for mixing your videos into something like pmv with optional interactivity and e-stim (and other toys with generic input) support via xtoys. I'm not a professional coder and don't have much free time for testing, so expect bugs. For now I finished most of the features that I wanted to implement, maybe I'll make some minor adjustment or bugfixes later.
App should be compatible with chrome browser (even mobile one mostly works as intended). I didn't test other browsers - some parts of the player probably won't work properly, especially with older browsers.

Instruction:
- start Player.html.
- input video files. You can input multiple files at once and add the same video multiple times. You can use "select folder" button to reload all of them in the next session (they can't be loaded automatically because of html security limitations). To set start and end times of clip you can navigate preview player and then click on time input box.
- setup parts and select clips for each part.
- set sequences and additional options for each part by clicking "part settings".
- press start

Additional options:
- clip sequences editor. The button is at the top of "part settings". Sequences with custom speed parameters are unaffected by part speed settings. You can share sequences using import codes. I couldn't test every parameters combination, so some of them might stutter or break the session.
- poppers clips overlay. To set clips in poppers section you'll have to place them in /poppers folder and then input them. You only have to do that once. Should probably use shorter clips. Cooldown periods are set in "part settings".
- highlights at the bottom of the screen for red light - green light parts. They are tied to sequence/clip types (random, positive, negative or reward)
- intro text at the start of the part. You can setup presets for different fonts and text positions and select tts voice to read it.
- custom variables system (not tested properly. Could be buggy)
- clicker minigame. You can set reward for filling the goal by keeping the bar on target, or punishment for overcap by using different sequences types and variables. Or you can tie e-stim intensity to the bar. Turn on highlights to know when to click, or hide them to guess.
- you can select what happens at the end of each part. You can start the next part based on variables or enable choice dialog. Voice commands can be assigned for each button through xtoys speech recognition (it's kinda clunky but working. Use shorter and distinct words/phrases).
- skip buttons. They become active after fulfilling variables condition and allow you to skip to predefined parts. Also with voice commands.
- you can import/export your settings to save presets or share them (you'll have to share videos as well. they are saved by file names).

Any feedback is appreciated :-)

https://mega.nz/folder/1EAAFbBL#yjbhI7VcNjlFKq3ZcjQ_1Q

Re: Randomized video player

Posted: Sun Apr 07, 2024 8:40 pm
by juliasilva
Was it really necessary to have over 160k characters just in the JS file? hahaha, it makes so much harder to understand where each part is hahaha, and the functionality does not seem so complicated for such long and extensive code, I am planning to beyond testing your app, see if I can better understand its code, one idea of mine is that it would be cool if you could somehow have a save current settings button, that saves into a local file, the current config, since I have been losing so much time reconfiguring the sequences every time hahaha

Re: Randomized video player

Posted: Sun Apr 07, 2024 9:02 pm
by Ginryuu
I had the code separated into some more js files but then decided to combine them back. The idea is to stick it all into html later.
It saves SOME of your settings in local storage when you press start button )
I'll try adding saves for other settings soon.

Re: Randomized video player

Posted: Sun Apr 07, 2024 9:08 pm
by juliasilva
I sent to you in private a long guide/documentation of sorts that should help you not to get lost in this massive file, Tell me later if actually was of any help!

Re: Randomized video player

Posted: Tue Apr 09, 2024 11:12 am
by Ginryuu
Updated the player.
Most settings should now save between sessions.
Highlights (rlgl) are now separate settings for each part. You can also change colors.
Fixed some bugs.

Re: Randomized video player

Posted: Mon May 06, 2024 1:33 pm
by Ginryuu
Update v0.9
Added Xtoys script for estim and generic output.
You can now import and export settings to a file.
Clips settings should now save between sessions. Clips buttons should now save their state based on associated filenames.
Fixed tooltips.
Fixed the minimal required number of clips by creating temporary duplicate players.
Fixed some bugs (probably made some new ones).

Minor update v0.91
You can now load all video and audio files from previous session by clicking "select folder". (It will load all the files in folder and subfolders and then pick the ones that you previously selected)

Update v0.92
I changed the structure a bit so previous saves won't work.
Single clip parts is now an option.
Background audio and clip audio have separate settings with their own volume sliders.

Update v0.95
Finished sequence editor. You can now create chains of clip sequences and override clip sources for them. Fixed a lot of bugs there (not sure I got them all. too much conditions for me to test all at once)
Clips can be mirrored now.

Next update will probably be final. I plan to add some interactivity functions, like creating choice buttons at the end of a part, redirections, maybe some simple conditions, clicker-like minigame (if I can make it work good enough). Since nobody seems to care, I'll take my time with it.

Re: Randomized video player

Posted: Wed Oct 23, 2024 10:38 pm
by alxua
Thanks, good job :-)
Works fine only in an older browser, such as Firefox Portable 91.

Re: Randomized video player 1.0

Posted: Wed Dec 04, 2024 6:03 pm
by Ginryuu
final(ish) update. I'll try to test some more and fix some bugs whenever I have time.
Player.js and Style.css files are no longer needed.

Re: Randomized video player 1.0

Posted: Mon Jan 27, 2025 1:49 pm
by alxua
Thanks you :-)
Work good :love: