VideoController

Plugins VideoController

I've seen this when saving a scene and reloading, it doesn't save the file list and fails to play - but reload the plugin and it then works
 
i spent waaaay too long getting a white screen flash or just a static image when i first loaded this up. i had "freeze motion/sound" ticked, turned that odd the the video played just fine! d'oh!

looking forwards to seeing some more features, especially ways to drive the plugin with triggers :)
 
Last edited:
Thanks for the reply Too.

The Atom to which you add the plugin should make no difference since the plugin only uses the atom position and rotation to place the screen\s... (i think).

In my case, the problem is also with the files path. There is a specific situation in which i get a GetFilePath error that says that accessing a path external from the VaM folder is not allowed... when, indeed, i can clearly see that the path is not external.

?‍♂️
 
i spent waaaay too long getting a white screen flash or just a static image when i first loaded this up. i had "freeze motion/sound" ticked, turned that odd the the video played just fine! d'oh!

looking forwards to seeing some more features, especially ways to drive the plugin with triggers :)

In my case, toggling the "freeze motion/sound" options changes nothing...
 
Seems you have my same issue. I'm trying to be of some help to VamSanders in solving this problem (him is aware of that). Can you please tell us the full path to the folder you stored the videos to play?

Btw... i'm happy that i'm not the only with this problem... ?
VAM/save/sence/video
 
Hmm that's strange. Maybe its something to do with your folder permission? also another shot in the dark .. but Vam suggested to avoid installing in C:\ .. that might do something?

Thanks for your interest Too... but... i have no special permissions on any foder of that drive. It's just a folder created on a newly installed nvme drive... and, not C.
 
Thanks for your interest Too... but... i have no special permissions on any foder of that drive. It's just a folder created on a newly installed nvme drive... and, not C.
try seeing what type of slash is making up the path, ie \ vs /
you can use a trigger to set it manually, then the ui to reload the folder. see if setting it to all one type then the other helps
 
try seeing what type of slash is making up the path, ie \ vs /
you can use a trigger to set it manually, then the ui to reload the folder. see if setting it to all one type then the other helps

??? IT WORKEEEEEEEEEED!!!!! ???

Well... now... the real strange thing is that the problem is caused by a missing "\" or "/" (seems that win os treath both as the same thing) at the end of the folder path. The STRANGE THING is that... seems that i'm the only one with this problem... shouldn't it be a general win os rule??? ?

MANY MANY MANY THANKS Wand!!!!
 
??? IT WORKEEEEEEEEEED!!!!! ???

Well... now... the real strange thing is that the problem is caused by a missing "\" or "/" (seems that win os treath both as the same thing) at the end of the folder path. The STRANGE THING is that... seems that i'm the only one with this problem... shouldn't it be a general win os rule??? ?

MANY MANY MANY THANKS Wand!!!!
huzzah! glad i could help :)
 
Just a little feature request. If you have vertical videos, they will be stretched to fit the 16:9 screen. Could you make an option to play the video in the original resolution?
 
VamSander updated VideoController with a new update entry:

Added triggers and other fixes

Triggers added:
  • Play Once - play the video once, the screen will then stop, will not be added to video list.
  • Add Files - add files to the video list, options to specify screen and if there is audio, files can be outside VAM path.
  • Play
  • Stop
  • Refresh/Clear - will reset video list to whatever is in the browsed folder, videos added by triggers will be gone.
  • Play Once and Add Files can have extra parameters to specify the screen they target and if they play audio.
...

Read the rest of this update entry...
 
Just a little feature request. If you have vertical videos, they will be stretched to fit the 16:9 screen. Could you make an option to play the video in the original resolution?
This is a problem with the version of Unity from 2018 VAM is using. I'm setting the players to:
Code:
FitInside    Resize proportionally so that content fits the target area, adding black bars if needed.
However it doesn't always seem to work. I added an aspect ratio dropdown to the plugin so that people could at least pick a screen shape that closest matches their format.
 
The new update is great. I can do everything I want to do with it, stop / play specific videos, hide / show them etc.

All except one thing, I can't work out a way to package the scene with videos in to a VAR file. The VAR packaging system doesn't recognise the videos being pointed to so they are left out, and if I manually include the videos the paths are not correct so the videos don't load. Any ideas how I could get around this?
 
I've tried a variety of ways to edit the scene .json once the VAR has been created to point it to the right place, for example:

This is where the scene initially expects the video:
"G:/Games/VaM/VAM\\Custom\\Video\\MyVideo"

So I tried changing it to point to the VAR packaged copy of the video:
"Spacedog.MyScene.latest:/Custom\\Video\\MyVideo"

Or self reference:
"SELF:/Custom\\Video\\MyVideo"

But I can't find a format that it will accept. I wonder if this is possible somehow?
 
Last edited:
Can you try changing the path to <Vam>/Custom/Video/MyVideo and tell me if that works.
One of the changes for v2.0 was that I shorten all files within the VAM folder so they start with <VAM>/ instead of the usual full path.
 
No, it doesn't seem to like that at all.
1632699883034.png
 
Love this plugin.

I have a feature request. Pointing this to a large folder of images and having it automatically tile them in any size around the viewer would be AMAZING! I don't think it's currently working, but I'll check just to be sure. I feel like when I view a folder of images, it's just vast emptiness.
 
" play videos outside the VAM folder " (y) (y) (y)

"looping" (y)(y)(y)(y)

Negative thing: I add screen by hitting play.... don't see video or screen - spend 20 mintues trying to find it - can we have some sort of a "bring screen straight in front of viewer" option?

EDIT: i forgot i had to attach this to some object. I presume "empty" object is best to add?
 
Last edited:
How are you playing videos outside of the VAM folder? I tried browsing with the plugin, but they only find movies inside the VAM folder:unsure:o_O

Update #1 Found it. I read the updated user manual. It's right here if you're adding a button.

Btw can we still ask for the feature to scrub the timeline? It might be a super hard feature request though.

Thanks either way, this plugin makes Virt a mate a multimedia player now. :ROFLMAO:

View attachment 72506


Update #2 Oh wait... not allowed. :(
View attachment 72507
The same problem, have any ideas how to solve it?
 
How are you playing videos outside of the VAM folder? I tried browsing with the plugin, but they only find movies inside the VAM folder:unsure:o_O

Update #1 Found it. I read the updated user manual. It's right here if you're adding a button.

Btw can we still ask for the feature to scrub the timeline? It might be a super hard feature request though.

Thanks either way, this plugin makes Virt a mate a multimedia player now. :ROFLMAO:

View attachment 72506


Update #2 Oh wait... not allowed. :(
View attachment 72507

I only read the release note where he said this feature was available - I didn't actually figure out how to do it myself either days later when I tried to tell it to look in external folder - no idea how to do it.
 
While there is no solution, I use the Windows symbolic link method. In order not to use command lines, I use the "Link Shell Extension" utility. After installing the utility, additional commands will appear in the windows context menu. Having selected the desired source with video files on the PC, which is located outside the VaM folder, I select the "Pick Link Source" command in the context menu of the mouse, then in the VaM folder itself I select the "Symbolic Link" command through the context menu, and there a link to the main folder with video files is created. This is no longer just a shortcut to a folder that the VideoController plugin would not see, but a folder with a symbolic link, which is defined by the plugin as the main folder with video files. In the VaM scene in the VideoController plugin in the video source, I point the path to the created symbolic link. The video files in the created folder are immediately detected and played by this plugin.
Attention, the files in the created symbolic link and the files in the source folder are linked, which means that deleting any file from the symbolic link will delete this file from the parent folder. Therefore, to delete a symbolic link (a child folder), you need to delete it entirely (the created link folder), this will not affect the parent folder with files. The deletion is done through Windows Explorer. This is relevant if you select the "Symbolic Link" command.

There is also another context menu command to create a symbolic link, this is the "Clone symbolic link" command. If you use this mode, the created folder will not have feedback with the main folder of video files. Any changes to the created folder will not affect the files of the main folder. The "Clone symbolic link" command is preferable to use than the "Symbolic Link" command
Also, if the "Video Controller" plugin is already installed in the system, then after creating symbolic links, this plugin may need to be restarted. Otherwise, it is possible that after specifying the source of the video in the plugin, it will not be played, although the source of the video folder will be determined correctly. After restarting the plugin, the video in the specified source will be played in normal mode.

Utility link: https://schinagl.priv.at/nt/hardlinkshellext/linkshellextension.html#contact
You can also look at other similar utilities, for example here: https://listoffreeware.com/free-symlink-creator-software-windows/
Link Shell Extension context menu example:
 

Attachments

  • picklinksource.png
    picklinksource.png
    29.4 KB · Views: 0
  • drophardlinkfolder.png
    drophardlinkfolder.png
    30.5 KB · Views: 0
  • submenue.png
    submenue.png
    31.8 KB · Views: 0
Last edited:
Can the video screen be relocated to anywhere and is so how - I can rotate it, but not stick it to a certain location
?? I can't believe this isn't an option is it's not.....maybe my vam is borked?
 
The aspect ratio thing bugged me a little so I hacked in basic support for that. No fancy black bars, just through scaling. It does not account for anamorphic pixel sizes (I don't think that's possible with the 2018.1 VideoPlayer). Haven't really tested it with the different shapes (dome etc) because I just use the 1x1 grid ;) but it should work I think. Please feel free to use or disregard the code @VamSander :p

Edit: I also changed the min distance to 0 because I usually stick the video on top of a TV screen and it felt weird to have the player empty in the middle of the room
 

Attachments

  • VideoController-aspectratiohack.cs
    41.2 KB · Views: 0
Back
Top Bottom