Jump to content
LaunchBox Community Forums

Creating a Startup Theme with Video Support


Jason Carr

Recommended Posts

On 11/26/2024 at 10:48 AM, launchretrogirl2562 said:

Hi Jason,

I was in the process of adjusting my theme to use moving marquees on top of my arcade cabinet.

I use the following in my wheelgames3 xaml

<!-- MARQUEE IMAGE -->    

            <controls:PrioritizedPathSelector x:Name="MarqueeVideoFileName" FolderPath="Themes\Unified &amp; Ultrawide\Media\marqueeVids" FileExtension=".mp4"
                Priority1FileName="{Binding SelectedGame.ApplicationFileNameWithoutExtension}"                    
                />                    
        <controls:VideoControl VideoPath="{Binding PrioritizedFilePath, ElementName=MarqueeVideoFileName}"
            StretchVideo="true" Grid.Column="1" Grid.ColumnSpan="3" Grid.RowSpan="1" CenterVideo="false" Panel.ZIndex="1" HorizontalAlignment="Center" VerticalAlignment="Top"
             />
             <TextBlock Grid.Column="1" Panel.ZIndex="2" Grid.ColumnSpan="4" Grid.RowSpan="1" Text="{Binding PrioritizedFilePath, ElementName=MarqueeVideoFileName}" Foreground="Orange" DockPanel.Dock="Left"  FontFamily="{StaticResource FontBebasNeue}" FontSize="50" TextAlignment="Left" />

With the textblock I just check to see if the path to my marquee vid is correct...which it is.

But my marquee just doesn't show.
When I however click through to the textgames view....and go back...then magically the marquee appears.
But never on the first go, and never while scrolling through the games in the wheelgamesview
The textblock shows the correct path to the vid each time I scroll through the wheel....but the marquee never loads. Only always when first going to the textgames view...and then back

I did include the reference in usercontrols :
xmlns:videos="clr-namespace:Unbroken.LaunchBox.Windows.BigBox.Controls;assembly=BigBox"

What could be the cause of this?

I am using the following theme


Example of marquees are attached

 

BB.PNG

The much easier way to accomplish this would be to use the FlowVideo element. Video Marquees are a standard thing in LaunchBox these days, so you can assign your video marquees directly to the game itself in your library.

Then just use the following code in that view and position it where you want using a Grid:

<coverFlow:FlowVideo VideoType="Marquee" DataContext="{Binding ActiveGame}" PlayVideo="True" PlayAudio="False" FallbackToDefault="False" />

 

That should just play a game's video marquee file if one is assigned to it.

  • Like 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.
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...