RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Add Video Support to an Existing Theme?

    Scheduled Pinned Locked Moved Projects and Themes
    video
    8 Posts 5 Posters 2.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jaxel
      last edited by

      How do I add video support to an existing theme? Is there a simple guide on this?

      1 Reply Last reply Reply Quote 0
      • RWM79R
        RWM79
        last edited by

        I'm new here, but I want to start contributing so I'll give this a shot...

        From what I understand, the main theme xml file needs to have a section for md_video... something like this:

              <view name="video">
                <video name="md_video">
        		<pos>0.763 0.400</pos>
        		<origin>0.5 0.5</origin>
                        <size>0.366 0.480</size>
        		<delay>0.2</delay>
        		<default></default>
        		<showSnapshotNoVideo>true</showSnapshotNoVideo>
        		<showSnapshotDelay>false</showSnapshotDelay>
        	</video>
              </view>
        

        Then inside each system's specific theme.xml file you would add the reference to the video view name:

         <view name="video">
               ...
         </view>
        

        Then in the gamelist.xml for the system you can add a video tag to the xml:

         <video>~/.emulationstation/video/nes/1942.mp4</video>
        

        That seems to be the basic setup.

        To be honest, the easiest way would be to look at a theme that already has video support like... carbon - and then just check the xml files to see how it is configured and copy/paste it into your existing theme. With a little trial and error, you could probably get it going very quickly.

        AlexMurphyA 1 Reply Last reply Reply Quote 2
        • AlexMurphyA
          AlexMurphy Banned @RWM79
          last edited by AlexMurphy

          @RWM79 That's exactly how to do it, just look at how it is implemented in Carbon and copy it across ensuring the paths are changed to point at the correct places in your theme.
          No need to re-invent the wheel. I did this to implement a modified carousel on my own custom theme.

          1 Reply Last reply Reply Quote 1
          • J
            Jaxel
            last edited by

            A problem I am having is the video is BEHIND the screenshot...

            I tried adding the following, but its not making a difference:

            <feature supported="z-index">
            	<view name="video">
            		<image name="md_image">
            			<zIndex>3</zIndex>
            		</image>
            		<video name="md_video">
            			<zIndex>2</zIndex>
            		</video>
            	</view>
            </feature>
            
            RWM79R 1 Reply Last reply Reply Quote 0
            • RWM79R
              RWM79 @Jaxel
              last edited by

              @Jaxel I'm not sure if you have done this yet, but I know that the z-index stuff was just recently added so if you haven't updated your setup script and then updated emulationstation you might not have a version that supports z-index. The latest z-index fix went in on May 24th.

              J 1 Reply Last reply Reply Quote 0
              • J
                Jaxel @RWM79
                last edited by

                @RWM79 oh... I am using the ES Toolkit.

                J 1 Reply Last reply Reply Quote 0
                • J
                  jdrassa @Jaxel
                  last edited by

                  @Jaxel ES Toolkit hasn't been updated yet with z-index support. I have an updated Windows build running now. Once it is up, I will sync up with @mattrixk to get it updated.

                  Get latest build of EmulationStation for Windows here

                  mattrixkM 1 Reply Last reply Reply Quote 0
                  • mattrixkM
                    mattrixk @jdrassa
                    last edited by

                    @jdrassa I'm on lunch break in a couple of hours, so I can do it then, or it will have to wait until tonight or tomorrow.

                    My ES themes: MetaPixel | Spare | Io | Indent

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                    Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.