Hello,
I was requested by many users (and there are many topics in this forum requesting this) to add some very simple support to myVideos for displaying movie plot text and fanart background without Moving Pictures or myTVSeries support, so no plugins or other crap. Just to load specially named files in the movie directory, stored along with the movie.
The idea was simple - as the MP has built-in suport for #selectedthumb varible, containing possible existing MovieName.tbn thumbnail and displaying it, I was able to extend the functionality for fanart background by adding for example this code to myvideo.xml:
<!-- added support for background picture -->
<control>
<description>BG</description>
<type>image</type>
<id>1</id>
<posX>0</posX>
<posY>0</posY>
<width>1366</width>
<height>768</height>
<texture>#selectedthumb.background</texture>
<colorkey>0</colorkey>
<colordiffuse>ffbbbbbb</colordiffuse><!-- dim the image a bit -->
<filtered>no</filtered>
<centered>no</centered>
<keepaspectratio>no</keepaspectratio>
<visible>yes</visible>
</control>
In this case the MovieName.tbn.background (renamed jpeg) file will be automatically displayed as a myVideos background when pointing to MovieName file even in the Shares view.
My next (and probably last) point is, to display a movie plot text from a xml file stored as well in the movie folder.
My idea was to create a label (or whatever) and load a content with an import command from a simple xml file containing only a <define> command, something like:
<import>#selectedthumb.xml</import> (in myvideo.xml load xml file named MovieName.tbn.xml)
containing for example:
<define>#plot:movie description text</define>
and in myvideo.xml use something like:
<!-- added support for plot xml -->
<control>
<description>General Plot</description>
<type>label</type>
<id>1</id>
<posX>500</posX>
<posY>655</posY>
<width>400</width>
<font>font14</font>
<align>right</align>
<label>#plot</label>
<textcolor>White</textcolor>
</control>
That's all nice, but this does not work and I have no idea why. I created a test xml in the skin folder and if I write the <define>#plot:blabla</define> line directly in the myvideo.xml, it works, label displays the "blabla" correctly, but I'm not able to load the same statement by the <import> command.
Do you have any idea why this does not work and how to solve?
Thanks and sorry, if this question do not fits in this General Development subforum, I had no idea where to ask
I was requested by many users (and there are many topics in this forum requesting this) to add some very simple support to myVideos for displaying movie plot text and fanart background without Moving Pictures or myTVSeries support, so no plugins or other crap. Just to load specially named files in the movie directory, stored along with the movie.
The idea was simple - as the MP has built-in suport for #selectedthumb varible, containing possible existing MovieName.tbn thumbnail and displaying it, I was able to extend the functionality for fanart background by adding for example this code to myvideo.xml:
<!-- added support for background picture -->
<control>
<description>BG</description>
<type>image</type>
<id>1</id>
<posX>0</posX>
<posY>0</posY>
<width>1366</width>
<height>768</height>
<texture>#selectedthumb.background</texture>
<colorkey>0</colorkey>
<colordiffuse>ffbbbbbb</colordiffuse><!-- dim the image a bit -->
<filtered>no</filtered>
<centered>no</centered>
<keepaspectratio>no</keepaspectratio>
<visible>yes</visible>
</control>
In this case the MovieName.tbn.background (renamed jpeg) file will be automatically displayed as a myVideos background when pointing to MovieName file even in the Shares view.
My next (and probably last) point is, to display a movie plot text from a xml file stored as well in the movie folder.
My idea was to create a label (or whatever) and load a content with an import command from a simple xml file containing only a <define> command, something like:
<import>#selectedthumb.xml</import> (in myvideo.xml load xml file named MovieName.tbn.xml)
containing for example:
<define>#plot:movie description text</define>
and in myvideo.xml use something like:
<!-- added support for plot xml -->
<control>
<description>General Plot</description>
<type>label</type>
<id>1</id>
<posX>500</posX>
<posY>655</posY>
<width>400</width>
<font>font14</font>
<align>right</align>
<label>#plot</label>
<textcolor>White</textcolor>
</control>
That's all nice, but this does not work and I have no idea why. I created a test xml in the skin folder and if I write the <define>#plot:blabla</define> line directly in the myvideo.xml, it works, label displays the "blabla" correctly, but I'm not able to load the same statement by the <import> command.
Do you have any idea why this does not work and how to solve?
Thanks and sorry, if this question do not fits in this General Development subforum, I had no idea where to ask