Image OR Video?
-
Hi,
I'm not sure if anyone can answer this or not, but I'm looking for help/suggestions please.
I'm using the Fundamentals theme on my RP4. I have Gamelist View Style set to Automatic (hoping it would show either video or image depending on what it finds). An example of the gamelist.cfg file is below. With this theme, if there's a single <video> line anywhere in the file, it will only display videos for the games. If there's a single <image> line anywhere in the file, it will only display images for the games. The file won't accept both. For some reason with this theme, it's an either/or. I can't find a way to show either a image or a video preview depending on what the system finds in the folders.
Other themes like Supersweet will show either an image or a video if both are listed in the config file, depending on which one comes first. Anyone have any ideas?
<game> <path>./Street Fighter EX2 Plus (USA).chd</path> <name>Street Fighter EX2 Plus</name> <video>./snap/Street Fighter EX2 Plus.mp4</video> <image>./mixart/Street Fighter EX2 Plus.png</image> <favorite>true</favorite> <playcount>1</playcount> <lastplayed>20220317T203544</lastplayed> </game>
-
This looks to be how the theme works - the video view style of the theme doesn't show the images. Nothing you can do with the gamelist. Either modify the theme and add image support to the video view style of the theme or choose a view style which will show the most info (i.e. images only).
-
@mitu Thanks Mitu. I have no idea how to edit themes and I'm sure it's impossible to contact the author. Was just curious if I was missing something. Thanks anyway.
-
@Drdave79, I am no theming expert, but if you edit the
fundamental.xml
file, around line 535 or so, you should see this block of XML code:<view name="video"> <video name="md_video"> <origin>0.5 0.5</origin> <pos>0.8072916666666667 0.3888888888888889</pos> <maxSize>0.3333333333333333 0.4444444444444444</maxSize> <default>./core/images/static.mp4</default> <delay>0.1</delay> <showSnapshotNoVideo>false</showSnapshotNoVideo> <showSnapshotDelay>false</showSnapshotDelay> <zIndex>3</zIndex> </video> ...
I believe that if you change "false" to "true" in the
<showSnapshotNoVideo>
tag, this will show your images if there is no video.If you additionally make the
<showSnapshotDelay>
tag true, then I believe it will first show the snap/screenshot for the amount of time (in seconds) configured in the<delay>
tag before transitioning to the video.There is more information in this 1st post at another thread here.
-
@cdaters wow thanks so much! I'm going to try this and I'll let you know what happens!
-
@cdaters I appreciate you looking into this for me. Unfortunately, it didn't work. All of the mapping is correct in the gamelist file, but I still only see video for the ones with videos and none of the images for those without videos show up.
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.