Jump to content
LaunchBox Community Forums

Recommended Posts

Startup Video Manager

View File

***** Now Supporting Random Startup Videos *****

Startup Video Manager:  A plugin to manage Startup videos for the user through a clean, simple interface.

About the Plugin

This plugin provides a menu item that will open a window to allow users to manage their startup videos, and optionally, to activate random startup videos.  Random startup videos will be switched out as LaunchBox closes and Big Box opens.

New and Returning Features:

  • Reads from a "Startups" folder in LaunchBox\Videos to let the user select their desired startup video.
  • Clicking "Preview" will let the user preview the selected Startup video through a custom VLC player with options for play/pause/stop, forward and backward, volume control and full-screen viewing.  Double-clicking the video will also take you to and from fullscreen viewing.  Pressing Esc while in fullscreen will also take you back to the normal view.  Another way to get back while in fullscreen is to move the mouse to the bottom of the screen where a menu with the video name and a back button will appear.
  • Copies the selected video in LaunchBox\VIdeos\Startups to LaunchBox\Videos and renames it to startup.mp4 so that BigBox will recognize it.
  • Before replacing your existing startup.mp4 file, it checks to see whether or not your current startup.mp4 exists in the Startups folder.  If not, it will copy your current startup.mp4 to the Startups folder, adding the Unix timestamp to the filename, to make sure you do not lose any startup video you may not have backed up.
  • New in 2.0.0:  Optionally lets the user select Randomize Startup Videos to have the plugin randomly select a startup video and adjust the minimum startup duration each time Big Box is started from LaunchBox.
  • New in 2.0.0:  With my system, I found that I needed to slightly tweak the minimum startup time from the actual length of the video.  If you find you need to do this as well, in PluginConfig.xml for this that will be covered below.
  • New in 2.1.0:  Optionally lets the user update a configuration setting to match their actual load time of Big Box so that random videos will be limited to videos that are at least that long (no looping video on startup).

Installation Instructions

  1. If you have the old version, BigBoxStartupSelector, delete that folder and unzip the new folder into the LaunchBox\Plugins folder.
  2. Create a folder named Startups in the LaunchBox\Videos folder and move all of your startup videos there.  You may rename the startup videos in this folder to whatever name you prefer to help you remember each video.

Optional Configuration

These optional configuration settings can be applied by opening the included PluginConfig.xml in your favorite text editor and changing the appropriate number.

StartupTimeOffsetInSeconds:  In my case, I found that when setting the Minimum Startup Video Duration to the actual length of the video, even for longer videos, caused the video to start to loop for about a couple seconds.  To accommodate this, you can tweak the number of seconds being set as the minimum startup duration for videos through this configuration setting.  I had to adjust mine by -2 seconds, but this is 0 by default, which will set the minimum startup duration to the actual length of the video.  If you notice that after setting a video through this tool, the video either stops early or starts to loop, you can set this time to adjust all videos accordingly.

ActualStartupTimeInSeconds:  This setting only applies to randomly-selected videos.  If you set this to something other than the default of 0, only videos with at least this startup time will be considered for random selection.  How to find out your actual startup time?  Get the stopwatch app on your phone ready, go into the Big Box options and set Minimum Startup Video Duration to "No Delay".  Now go back to LaunchBox, and as soon as you click to switch back to Big Box mode, start the stopwatch.  Stop the stopwatch as soon as Big Box has finished loading.  That time, rounded to the nearest second, is the value you should put as your actual startup time.  But again, this only applies to randomly-selected videos.  If you leave it as the default of 0, all videos will be considered for randomization, but you may have looping if the randomly-selected video is shorter than your actual load time.

Usage Instructions

  1. Open LaunchBox or BigBox and browse to the Startup Video Manager plugin.
  2. Choose the Startup Video you would like to set, then if desired, click Preview to watch the video and make sure that's the one you want.
  3. If you'd like random startup videos going forward, make sure to check Randomize Startup Videos in the bottom-left corner.
    • Note:  the random selection setting saves as soon as you check or uncheck it.  You can click Cancel or close the window from there.  The Save button is only if you want to manually select a video to set as your startup video.
  4. Once you've decided on a video, click Save and the magic will happen.  Otherwise, click Cancel.

Enjoy!  Please let me know if you run into any issues.  Special thanks to angelobodetti for the random startup video idea!

Thanks, Jason, for providing your amazing software and thanks again to Jason, the LaunchBox staff and the community for your support in developing this plugin.


 

  • Like 5
Link to comment
Share on other sites

Hello, Just tried this out.  And it works fine no issues, I only installed the 64Bit version of VLC and it worked fine.  Only thing as you mentioned if it would be able to run off of the VLC that already comes with LB or the Portable version of VLC would be awesome as well.  Great Plugin :D

-one other thing BigBox is misspelled in the menu in LB as "BixBox"

Edited by jchasa
Link to comment
Share on other sites

  • 3 weeks later...

Is there a way to get it to randomize the start up videos when launching directly into Big Box? Not just when going into Big Box from Launchbox? On my HTPC I launch directly into Big Box from Kodi and it always stays as the same start up video. Other than that, great plug in!

Link to comment
Share on other sites

Yeah, I think that can be arranged for the next release.  I'm working on a Big Box-specific view now, so I'll be sure to add that and try to test it by launching Big Box directly.  Usually, whenever I launch BigBox.exe directly, the startup video just loops indefinitely, so that may be an issue with my LB config that I need to figure out too.

  • Like 1
Link to comment
Share on other sites

Yeah, I think that can be arranged for the next release.  I'm working on a Big Box-specific view now, so I'll be sure to add that and try to test it by launching Big Box directly.  Usually, whenever I launch BigBox.exe directly, the startup video just loops indefinitely, so that may be an issue with my LB config that I need to figure out too.


Mine loops as well, from BB directly.

Sent from my Z987 using Tapatalk

Link to comment
Share on other sites

  • 1 month later...

Can I increase startup video time to 1:30 with this plugin?

Can I skip the startup video by pressing the confirm button on my controller or the enter key on my keyboard?

Can I stretch a video to the complete screen width and height?

Instead of the program renaming the video file, can you make it so vids can be read from there own folder and named just like pictures (ex: mov-1.mp4, mov-2.mp4, mov-3.mp4, etc)?

 

If not, can you add these features?

Edited by shinra358
Link to comment
Share on other sites

You can't currently manually set a startup time.  That can be done directly in Big Box, so I left it out.  However, this plugin will automatically update the startup time to match the duration of whatever video you set.  If you set a 90 second video as the startup, the startup video time should be increased to 90 seconds.

This plugin is really only for managing the selection of the videos themselves to fit the way Big Box currently handles startup videos.  Defining where the video is loaded from, setting its width/height/stretch, and actually running the video is done internally by Big Box itself.  I don't think I have the access from a plugin perspective, so those last 3 would likely be feature requests for Jason.

Link to comment
Share on other sites

Yeah, I'd be in favor of that approach as well.  Keeping a minimum time that someone could calibrate to match how long it takes their system to startup Big Box would be okay.  Then videos would only be selected if they were that time or longer and would be allowed to play to completion before switching to Big Box, rather than switching over as soon as the minimum time has passed and Big Box is ready.

Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
  • 1 month later...

Can't get it to work

Quote

 

Could not load type 'LaunchBoxPlugins.Data.Managers.PluginConfigurationManager`1' from assembly 'LaunchBoxPlugins.Data, Version=1.3.1.0, Culture=neutral, PublicKeyToken=null'.

App:     Big Box
Version: 8.0-beta-2
Type:    System.TypeLoadException
Site:    Void OnEventRaised(System.String)
Source:  StartupVideoManager

   at StartupVideoManager.StartupVideoManager.OnEventRaised(String eventType)
   at Unbroken.LaunchBox.Root.LoadPlugins[T](IEnumerable`1 assemblies, ConcurrentDictionary`2& plugins)
   at (String , Form )
   at Unbroken.LaunchBox.Root.LoadPlugins(String folderPath, Form splashForm)
   at Unbroken.LaunchBox.Wpf.BigBox.App..ctor()
   at ()
   at Unbroken.LaunchBox.Wpf.BigBox.BigBoxProgram.Main()

Recent Log:

   3:33:39 PM Exception

 

Edited by emko
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...