Video Preview in EmulationStation
-
@__Scannigan__
<feature supported="carousel"> <carousel name="systemcarousel"> <type>vertical</type> <pos>0.010 0.020</pos> <size>0.300 0.890</size> <color>FFFFFF00</color> <logoScale>1.8</logoScale> <logoSize>0.125 0.160</logoSize> <maxLogoCount>5</maxLogoCount> </carousel> <text name="systemInfo"> <pos>0.010 0.930</pos> <size>0.980 0.050</size> <backgroundColor>FFFFFF00</backgroundColor> <color>FFFFFF</color> <fontPath>./_inc/font/Roboto-Light.ttf</fontPath> <fontSize>0.025</fontSize> </text> </feature>
That's how you do the systemCarousel and systemInfo. I'm unsure about the <feature> tag though, as I haven't tested it.
-
When using the <feature> tag, you still need to have a <view>. See revised example below.
<feature supported="carousel"> <view name="system"> <carousel name="systemcarousel"> <type>vertical</type> <pos>0.010 0.020</pos> <size>0.300 0.890</size> <color>FFFFFF00</color> <logoScale>1.8</logoScale> <logoSize>0.125 0.160</logoSize> <maxLogoCount>5</maxLogoCount> </carousel> <text name="systemInfo"> <pos>0.010 0.930</pos> <size>0.980 0.050</size> <backgroundColor>FFFFFF00</backgroundColor> <color>FFFFFF</color> <fontPath>./_inc/font/Roboto-Light.ttf</fontPath> <fontSize>0.025</fontSize> </text> </view> </feature>
That's how you do the systemCarousel and systemInfo. I'm unsure about the <feature> tag though, as I haven't tested it.
-
@jdrassa Ahh, I missed that part. Cheers. I'll be doing some testing of it today to make sure my theme does it correctly.
-
@jdrassa For some reason, feature tag breaks my theme, all metadata stuff, gamelist parameters and sounds inside video view, are ignored, any tips?
-
Thanks for the sample code.
I guess similar needs to be done with the video code right?Oh and btw. the maxSize tag for video worked like a charm. Now vertical shooter videos are having the right aspect ratio.
-
@Nismo
Are you using the latest build? The feature tag is a newer addition that allows for backward compatibility for themes. If the version of EmulationStation you are running doesn't support it, then it will be ignored. -
@FlyingTomahawk it is not required, just recommended. Without it, your theme may break for users who haven't updated.
-
@jdrassa Yes it's the old fieldofcows windows build, I didn't update yet. Thanks for the advice.
-
@jdrassa I have another question for backwards compatibility.
I have video views in main.xml file but also in each theme.xml for each system, so I suppose that I need to use the feature tag on both?
-
I don't know how many ES forks are out there, Windows and RetroPie versions, but would it be possible that @jdrassa , @Nismo , @Zigurana put a link to your current up to date version inside your signature? Then people might find it quicker and you guys could just point to your sig if anyone asks.
I have the latest version for Windows, I think, 2.1.5 RP that supports all the new stuff like carousel and video maxSize but I cannot remember where I downloaded it. -
@FlyingTomahawk I have downloaded the latest windows version, but I didn't update yet just because my build it's in my native language, and if I update I'll loose all my translation.
I'm waiting for @jdrassa to post a little guide to how to configure the automated builds. Then I can update and translate my ES more easily.
-
Found it! Added the link into my sig so that I and others can find it.
-
@Nismo only the
<video>
element has to be wrapped in the feature tag to maintain backwards compatibility. If you want to support non-video ES users, then you would need to use the<feature>
anywhere you are using<video>
. -
@jdrassa Does <feature> work on the <carousel> tag?
-
-
Thanks @Nismo. Turns out I was using an older build* that didn't include the carousel stuff.
* It was 6 days old. Positively ancient!
-
@jdrassa are you sure it just doesn't have to be wrapped on only the main XML? Eg your changes to carbon worked with just the feature flag on the main XML:
-
@fieldofcows , I have a question I am hoping you can help with... Building a theme that uses the video features to take advantage of the md_marquee tags to display a screenshot. I want to be able to draw another image on top of it as a overlay mask. In detailed view the order items are draw on screen is determined by their placement within the XML... But despite having my extra image below md_marquee, it gets placed below the marquee image.
Does the video view not follow the same draw rules as the other views?
-
@SuperSirLink I think that @jdrassa would be best able to answer that. I think he did a lot of work on image order and such.
-
@SuperSirLink How strange I just had the same question the answer courtesy of @mattrixk was:
The built-in elements like gamelist, image, system logo, etc all have a preset z-index, but any extra images you add basically follow the order that you have them in the xml file.
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.