|
OverlayXML
IntroductionThis page describes how to configure the overlay XML configuration file and the properties associated with it. To enable this feature you should set the following properties: imagetype.xmlOverlay=true imagetype.xmlOverlayFile=filename.xml Instead of skin(-user).properties the overlay settings can be put in overlay.properties (resources folder). It is possible to define a resources folder different to the default one. That can be especially useful for eversion skins. E.g. if overlay XMLs and images are in "/skins/eversion/resources/skin-name": # skin directory mjb.skin.dir=./skins/eversion #set relation of overlay.dir (def:true); true = skin root, false = YAMJ root mjb.overlay.skinroot=true # place of overlay xml files and overlay.properties: mjb.overlay.dir=./resources/skin-name # place of overlay xml resources (overlay images, default overlay PNGs, dummy images): mjb.overlay.resources=. Example 1
Example 2
Overlay-example_2.xml Overlay-data_2.xml File format<overlay> <layer> <name>ParamName1</name> <images> <image value="true" filename="image1.png"/> </images> </layer> <layer after="true"> <name>ParamName2/ParamName3</name> <left>-1</left> <top>23</top> <align>center</align> <valign>bottom</valign> <images> <image name="ParamName2" value="true/true" filename="image2.png"/> <image name="ParamName2" value="true/false" filename="image3.png"/> <image name="ParamName2" value="false/true" filename="image4.png"/> <image name="ParamName3" value="true" filename="image5.png"/> </images> <positions> <position value="true/true" align="right/left"/> </positions> </layer> </overlay> Details
PropertiesThese properties enable or disable (default) the logos that can be used for each of the image types. ImageType can be one of "posters", "banners", "thumbnails" or "videoimages"
For next options default value is false, set to true to enable.
Values ??can be combined with keywords using the parameters: overlay.keywords.rating, overlay.keywords.videosource, overlay.keywords.videoout, overlay.keywords.videocodec, overlay.keywords.audiocodec, overlay.keywords.audiochannels, overlay.keywords.container, overlay.keywords.aspect, overlay.keywords.fps, overlay.keywords.certification, overlay.keywords.keywords, overlay.keywords.country, overlay.keywords.company, overlay.keywords.award paramName=keyword1 / synonym1_1 / synonym1_2 ; keyword2 / synonym2_1 Footer imagesThe imagetype "Footer" (videoname.{footername}.png) shows a video's mediainfo as graphical elements and are exclusively generated by xmlOverlay functions.
They don't contain any artwork (thumbnail, poster, banner ...) and can be positioned independently from artwork (e.g. in indexes). How to use: To turn it on, use YAMJ skin-properties: # number of footers to create mjb.footer.count=2 # enable or disable footer mjb.footer.0.enable=true mjb.footer.1.enable=true # set footer token name mjb.footer.0.name=footername1 mjb.footer.1.name=footername2 mjb.forceFooterOverwrite=true If no footer token name is set, it's footer.0, footer.1, etc. Create an overlay XML file ({footername}.xml) and together with OverlayXML like for the other imagetypes: footername1.format=png footername1.width=450 footername1.height=50 footername1.videoout=true footername1.container=true ... footername1.overlay=false footername1.xmlOverlay=true footername1.xmlOverlayFile=footer.xml |
You can use this functionality with something like Stark Covers: http://www.mediabrowser.tv/forum/viewtopic.php?f=2&t=3544 Files: https://www.dropbox.com/gallery/841137/1/Stark%20Covers%20Profiles?h=d2ecb8
Thanks for this nice feature! Maybe I'm a bit stupid but could you please add some more details? What parameter names are allowed? Do they refer to the movie XML files? How do I differ between thumbnail/poster/banner/fanart overlays?
This part makes no sense to me with description...
<image> - image file (required)
Why is ParamName1? used 3 times, and why two parameters like true/true? I would expect true/false to mean 'valid values' for this option but example makes no sense. I can see it used the way 'name' is defined for optional and default values but it would make more sense to allow/have
and since this is a new feature, everything should assume optional='true' and default='false' when not used, so that value='false' when no parameters used.Tag <image> filename associated with the ParameterName? in accordance with "value". If used two and more Params, possible in a single layer display some overlays and need use multiple "value", each element divided slash exam value per param. To better understand the advise to look file overlay-default.xml from default skin and patch to default skin on issue 1937 (comment 10).
After playing around with the overlayxml feature and having a look at the source code I wonder how it is possible to get logos/overlays outside of the poster/thumbnail image like in the example above (rating stars, box)? When I use an overlay that is bigger than the poster or lay over the poster's margin the overlay is cropped. I was only able to reproduce the example when the big layer (labeled with "1") was the old/basic overlay.
Main overlay on example image is box without numbered layers. On file Overlay-example.xml each layers order by image started by zero, zero layer subtitle not showed numbered image. To get logos/overlays outside of the poster/thumbnail image like in the example above (rating stars, box): set after="true". See complete example on issue 1937 (comment 10).
Ah, thank you very much, now I know it for sure! Hadn't seen the example in issue 1937 . I originally thought, layer "1" was box AND set discs. Now I see that was wrong. But that confirms what I thought above. The old/basic overlay (in your example default_overlay_thumbnails.png) defines the final artwork size and the XMLoverlays cannot extend or be outside of that area.
could someone help me to use overlay to add 3D logo to movies with videosource = "3D"
i modified skin.properties adding thumbnails.xmlOverlay=true thumbnails.videosource=true
i updated the overlay code with Code: <layer>
without succeed
Hm, "VS" could be case-sensitive. Did you also try "videosource" or "source"? Just to be sure, have you checked the xml of the movie in the jukebox folder; i.e. 'videosource' has "3D" value?
yes i did tried VS, vs, videosource, source, videoSource in the overlay.xml file i'm sur that videoSource is set to "3D" because i force this value in the NFO and i check in the xml generated ,i tried also "3d" i tried videosource = true , vs=true, VS=true, videoSource=true, source=3d, source=3D in skin.propreties all these tests without success
find the problem skin.properties should be modifide to add
thumbnails.xmlOverlay =true thumbnails.videosource =true
and inside overlay <name>videosource<name> instead of vs
Ok, but isn't that exactly what you've already used (see your first post above)?
you are right and it's the reason why i did post (i didn't understand why this adding doesn't play)
so your comment remember me several modifications i did made to allow this code to play well
- inside skin.properties i change thumbnails.overlay=false (i think this line was in conflic with thumbnails.xmlOverlay=true) - inside default-overlay.xml i suppress any reference to VS and add a single layer with <layer after=true> <name>videosource</name>
Are the values case-sensitive? I.e. is it enough to search only for "matroska" or do I need to search for "matroska" and "Matroska" in a container template?
they are not case-sensitive
This Wiki should also say that we have the possibility to use - besides <left>, <top>, <align>, <valign> - <width> and <height> in order to scale the icons. Just found aout accidently.
I would also appreciate a concrete example for "block" - from what I can read above I don't eg. know if it's part of a layer; is it used together with the other values or is it a separate block?
Great! Many thanks for the update.
So a <block> is always related to the <layer> before it, right? And I noticed "clones=false" in the new example; I guess it's to prevent an icon showing up twice?
Block relate to the layer by name. You are right about "clones=false".