Jump to content
LaunchBox Community Forums

Startup Video Manager 2.3.0

   (2 reviews)

3 Screenshots

About This 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.


What's New in Version 2.3.0   See changelog

Released

2.3.0 Update:

  • Updated to .NET 4.7 to work with the latest beta of LaunchBox.
  • Updated randomization to take place whenever BigBox closes instead of whenever LaunchBox closes.

2.2.0 Update:

  • Maintenance release -- improvements to the code base for stability and reusability.  If you're using AddToGamesDb, you will also need to update this plugin as they share a common library in LaunchBoxPlugins.Data.dll

2.1.0 Update:

  • Added optional configuration setting, ActualStartupTimeInSeconds.  If this value is set to something greater than 0, only random videos with a startup time of at least your actual load time for Big Box will be selected -- therefore, no looping of the startup video.
  • Added very basic support for running in Big Box mode.  Better integration into Big Box mode will be the focus of the next release.

2.0.0 Update:

  • Major update, so going directly to 2.0.0.
  • VLC installation no longer required, the plugin is now fully portable.
  • The option to Randomize Startup Videos is now incorporated into the plugin.
  • This plugin uses a portable configuration file (PluginConfig.xml).
  • In the configuration file, there is a StartupOffsetInSeconds setting to further adjust minimum startup video duration.
  • Technical:  The plugin has been completely re-written to be a WPF application instead of Windows Forms.
  • Technical:  Implemented a media player interface built on Vlc.DotNet.

1.1.1 Update:

  • Late-night development led to misspellings of BigBox.  That's a thing that happened. :P  Actual new features are forthcoming :) 

1.1.0 Update:

  • Stability fixes -- making sure to stop the video if it's playing before closing the form as that could cause LaunchBox to freeze, and verifying the file copy check to make sure you have your current startup.mp4 saved in the Startups folder.

1.0.2 Update:

  • Quick fix -- centered the form that opens when clicking Set BigBox Startup Video.

1.0.1 Update:

  • Quick fix -- disabled Preview and Save buttons until a video has been selected.
  • Like 6
  • Thanks 4

User Feedback

Recommended Comments



I can certainly look into that for the next release.  Maybe a random option that will automatically make the switch whenever BigBox starts.  I'll see what options are available.

Link to comment
Share on other sites

The next release is also going to correct my middle of the night coding misspellings -- wow.  BoxBox and BixBox.  It's like Double Dragon III all over again.

Some neat enhancements for it on the way, along with another plugin that I hope will be wrapped up this weekend.

Link to comment
Share on other sites

Sadly, this is the result I get after downloading and correctly installing the plugin and unblocking all the DLLs, and selecting the Select Startup Video:

-----

Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

App:     LaunchBox
Version: 7.10
Type:    System.Runtime.InteropServices.COMException
Site:    System.Object CoCreateInstance(System.Guid ByRef, System.Object, Int32, System.Guid ByRef)
Source:  System.Windows.Forms

   at System.Windows.Forms.UnsafeNativeMethods.CoCreateInstance(Guid& clsid, Object punkOuter, Int32 context, Guid& iid)
   at System.Windows.Forms.AxHost.CreateWithLicense(String license, Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstanceCore(Guid clsid)
   at System.Windows.Forms.AxHost.CreateInstance()
   at System.Windows.Forms.AxHost.GetOcxCreate()
   at System.Windows.Forms.AxHost.TransitionUpTo(Int32 state)
   at System.Windows.Forms.AxHost.CreateHandle()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.AxHost.EndInit()
   at BigBoxStartupSelector.Forms.StartupSelectionForm.InitializeComponent()
   at BigBoxStartupSelector.Forms.StartupSelectionForm..ctor()
   at BigBoxStartupSelector.BigBoxStartupSelector.OnSelected()
   at Unbroken.LaunchBox.Desktop.Forms.MainForm.<>c__DisplayClass2_0.<.ctor>b__3(Object sender, EventArgs args)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Recent Log:

   12:08:20 PM Music.Pause Start
   12:08:20 PM Music.Prepare Start
   12:08:20 PM Music.Kill Start
   12:08:20 PM Music.Kill Finished
   12:08:20 PM Music.NotifyTrackList Start
   12:08:20 PM Music.NotifyTrackList Invoke
   12:08:23 PM Exception

-----

Music? Is that in the purview of this plugin? Anyway, yeah... this isn't working for me, I'm sorry. I guess I'm doing something wrong if others aren't having issues.

I've got VLC installed (for quite a while now, and the latest version too) and have created the correct folder and placed my startup videos in it, correctly named. I've also placed the one video I have as my current one back into the Videos folder and named it Startup.mp4 - it has a different one in the Startups folder (for the record it's the Retrowave-inspired one, which is my favorite of all time :) )

Link to comment
Share on other sites

COMException would be triggered by the VLC implementation.  Do you have both the 32-bit and 64-bit versions installed?  The default is typically the 32-bit version, but LaunchBox is a 64-bit app, so it needs the 64-bit version of VLC currently.  I haven't had a chance to work with it much more than that yet, but it's next on my list.

Link to comment
Share on other sites

Ahhh... No, I don't have the 64-bit version installed and strangely I didn't know that about LaunchBox! Thanks for telling me; yet another awesome thing about my favorite front end :) Will get on installing the 64-bit version and trying it again. :)

Link to comment
Share on other sites

Thanks for making this -- it's working great.  Also would like to second the "random" option.  Would be nice to rotate between several videos at startup.  Thanks!

Link to comment
Share on other sites

Updated again, added a config setting to set your actual startup time so that only videos at least that long are considered for random selection.  This will prevent the startup video looping that can occur with shorter videos.  

Link to comment
Share on other sites

Does this create a folder called "MediaToolKit"? That randomly popped up after adding this plugin and I am not sure if it is related or not.

Link to comment
Share on other sites

This was working for me previously but after installing the new version it says "file could not be saved for reasons:  could not load file or assemble 'unbroken.launchbox'......."  Thanks for any assistance in fixing!

R

Link to comment
Share on other sites

Sure, glad to take a look.  To help me track it down, can you send me the full error message?  Either copied here or PM, whichever you prefer.

Link to comment
Share on other sites

Update to .NET 4.7 coming very soon, as well as fixes, moving randomization to when big box closes, and a proper big box view for the plugin.

Link to comment
Share on other sites

Hi not sure if this got fixed or not but I'm also getting the error "File could not be saved for reason: Could not load file or assembly 'Unbroken.Launchbox, Verrsion 7.11.0.3, Culture=neutral, PublicKeyToken=97d6238f04304129' or one of its dependencies. The system cannot find the file specified" Any ideas?

Link to comment
Share on other sites

Hey, thanks for everyone's patience!  Day job took over for a little while, but I'll get the fix out for that this afternoon/evening.

Link to comment
Share on other sites

Hi, having the same issue as Ziege - wondering if this is still an open issue or something on my end (or both) !

Link to comment
Share on other sites

Same error as @Ziege_UK and @pkay0101 when trying to save default Startup video.

I am using the 8 JUL test version and still getting the error.

 

StartupVideoManager_error.jpg

P.S. Not sure if I'm doing something incorrect, but without setting the StartupTimeOffsetInSeconds to the length of a video, the full video never plays. I.E. if it is set at 0 and "No Delay" set in BigBox, it will only play about 5 seconds of the video. If I understood correctly, ffmpeg should determine the length of each randomly chosen video and adjust the delay to that length.

 

P.P.S Not sure if relevant, but I have three videos in the Startup folder, and it will only randomly play the same two videos. The third will work if I manually make it the startup video not using your app, so it is a viable video. 

Edited by timekills
Link to comment
Share on other sites

On 2017-07-08 at 6:06 AM, UnderwoodNC said:

@Ziege_UK and @pkay0101 -- please try this version and let me know if it resolves the issue.  If so, I'll promote it to the next release.

StartupVideoManager.zip

I get the same error with this version.

But it seems to be working. The file startup.mp4 is created in the Videos folder.

Link to comment
Share on other sites

Plugin sounds awesome, will check it out when I get the chance. I have a request that is a little niche however. I used Bigbox in conjuction with a steam link, and I also have dual monitors. On the start up video, on the screen with the steam link, the video displays in a little box that is off centered, only if I have a the second monitor plugged in. It looks awful. Is there a way to force the start up vid onto one display and ignore the secondary? Besides me unplugging the second monitor. 

Link to comment
Share on other sites

@Deejus679 ill put this here as i cant reply to reviews, yes although this plugin is great, this feature was built into Launchbox a long time ago. Just create a folder called startup in your video folder and drop any videos in there. They can be named anything you like and a random one will play each time you start Bigbox.

  • Thanks 1
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.
Add a comment...

×   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...