PDA

View Full Version : getting current show posterand poster_glass.png


reaven
2009-05-13, 20:23
1. Is there a way to get the current playing tvshow poster or fantart instead of the show thumb?

like VideoPlayer.Cover
but for the tv show fanart or poster

2. Also how is the correct implementation of the poster_glass.png, I tried the following code without success.
<control type="image">
<include name="coversize">
<description>cover image movie</description>
<posx>1130</posx>
<posy>-217</posy>
<width>150</width>
<height>225</height>
<texture diffuse="thumbs/movieposter_mask.png">$INFO[VideoPlayer.cover]</texture>
<aspectratio align="right" aligny="bottom">keep</aspectratio>
<visible>VideoPlayer.Content(movies)</visible>
</control>

<control type="image">
<description>cover image episodes</description>
<posx>1130</posx>
<posy>-217</posy>
<width>150</width>
<height>225</height>
<texture diffuse="thumbs/movieposter_mask.png">$INFO[?]</texture>
<aspectratio align="right" aligny="bottom">keep</aspectratio>
<visible>VideoPlayer.Content(episodes)</visible>
</control>



<include>coversize</include>
<bordertexture border="-9">thumbs/poster_shadow.png </bordertexture>
<texture>thumbs/poster_glass.png</texture>
</include>



The above code is for the DialogSeekBar.xml

reaven
2009-05-14, 01:04
no, nothing??

reaven
2009-05-16, 08:21
:(

Hitcher
2009-05-16, 11:49
Do you mean when you press 'I' while viewing a video?

reaven
2009-05-17, 03:42
yes..when I press "I" or when I pause because I add the code to dialogseekbar.xml to make it work every time I pause the movie.

The problem with the poster_glass.png is that I make it work with this
<control type="image">
<description>cover overlay</description>
<posx>1130</posx>
<posy>-217</posy>
<width>150</width>
<height>225</height>
<texture>thumbs/poster_glass.png</texture>
<aspectratio align="right" aligny="bottom">keep</aspectratio>
</control>
Is not perfect because from movie to movie I can see the poster_glass.png overlay sometimes is bigger than the poster... but its working after all, like this
http://i93.photobucket.com/albums/l66/reavenm/screenshot000.jpg

-----------------
When I press ' i ' i can see the movie poster when I'm seeing a movie but when I'm seeing a tv show I want to see the tv poster or fanart NOT the show thumb or screenshot. Is this possible ??

I add a condition to only show the movie poster if is a movie and another thing if is a tvshow, How I grab the show poster,fanart,folder.jpg anything except tv show thumb/screenshot


I will appreciate any help !!!!

Hitcher
2009-05-17, 11:43
Try$INFO[listitem.path,,folder.jpg]or$INFO[listitem.path,,fanart.jpg]

reaven
2009-05-17, 20:52
:( nothing... is the double comma ok ?

I try almost every thing here

container.folderthumb Thumbnail Image of the current displayed folder of list and thumb panels
container.tvshowthumb Thumbnail Image of the parent TV show
Container.SeasonThumb Thumbnail Image of the parent TV show season
ListItem.Property(SeasonThumb) Thumbnail Image of the parent TV show season, for use in dialogvideoinfo.xml
Weather.Conditions Image of current weather conditions
Player.StarRating Returns a value of 0 to 5 as a graphical display from images named rating0.png to rating5.png of the skin
MusicPlayer.Cover Cover of currently playing album
VideoPlayer.Cover Cover of currently playing movie
ListItem.Thumb Shows the thumbnail (if it exists) of the currently selected item in a list or thumb control
ListItem.Icon Shows the thumbnail (if it exists) of the currently selected item in a list or thumb control. If no thumbnail image exists, it will show the “Big” version of the icon.
ListItem.ActualIcon Shows the icon of the currently selected item in a list or thumb control.
ListItem.Overlay Shows the Overlay Icon status (compressed file, Trainer, watched, unwatched, locked) of the currently selected item in a list or thumb control.
Skin.String(name)

Returns the image or image folder set by the user via a Skin.SetPath(name) or Skin.SetImage(name) built in function. Allows skinners to have user-customisable images and multiimages.
System.ProfileThumb Shows the Thumbnail image of the currently logged in XBMC user
Fanart.Image Fanart image for the parent TV Show
Listitem.Property(Fanart_Image) Fanart image for the selected item


is there a way to get the list item property from another xml and pass that to the dialogseekbar.xml thats the one am using this code in...
like an <include> or something, because I dont think its working because in that xml theres any itemList property to get the image from apart from the VideoPlayer.Cover

Hitcher
2009-05-17, 21:36
Post your xml and I'll take a look.

reaven
2009-05-18, 02:36
DialogSeekBar.xml

<window id="115">
<defaultcontrol>23</defaultcontrol>
<visible>Window.IsActive(2005) + !Window.IsActive(2901) + [Player.Seeking | Player.DisplayAfterSeek | Player.Paused | Player.Forwarding | Player.Rewinding]</visible>



<controls>
<control type="group">
<posx>0</posx>
<posy>620</posy>
<width>1280</width>
<height>159</height>
<include>Animation_CommonFade</include>

<control type="image">
<description>Panel</description>
<posx>0</posx>
<posy>0</posy>
<height>159</height>
<width>1280</width>
<colordiffuse>cdffffff</colordiffuse>
<texture>osd/osd_back.png</texture>
</control>

<control type="progress" id="23">
<description>Progressbar</description>
<posx>112</posx>
<posy>40</posy>
<width>1057</width>
<height>15</height>
<info>Player.Progress</info>
<texturebg>osd/osd_progress_back.png</texturebg>
<lefttexture>osd/osd_progress_left.png</lefttexture>
<midtexture>osd/osd_progress_mid.png</midtexture>
<righttexture>osd/osd_progress_right.png</righttexture>
<overlaytexture>-</overlaytexture>
<visible>true</visible>
</control>

<control type="image">
<posx>499</posx>
<posy>-20</posy>
<width>281</width>
<height>28</height>
<texture>osd/osd_button_paused.png</texture>
<include>Animation_CommonFade</include>
<visible>Player.Paused</visible>
</control>

<control type="label">
<posx>499</posx>
<posy>-20</posy>
<width>281</width>
<height>28</height>
<aligny>center</aligny>
<align>center</align>
<font>Font_OSDSeek</font>
<textcolor>FF363636</textcolor>
<include>Animation_CommonFade</include>
<label>PAUSED</label>
<visible>Player.Paused</visible>
</control>
<control type="image">
<description>Panel</description>
<posx>0</posx>
<posy>0</posy>
<height>159</height>
<width>1280</width>
<colordiffuse>cdffffff</colordiffuse>
<texture>osd/osd_back.png</texture>
</control>

<!-- Auto movie/show cover and info on Pause mod -->

<control type="image">
<posx>0</posx>
<posy>-20</posy>
<width>499</width>
<height>28</height>
<texture>osd/osd_button_reverse.png</texture>
<colordiffuse>FF000000</colordiffuse>
</control>
<control type="label">
<posx>20</posx>
<posy>-19</posy>
<width>412</width>
<height>25</height>
<label>$INFO[VideoPlayer.Title]</label>
<align>left</align>
<aligny>center</aligny>
<font>Font_OSDTime</font>

<scroll>true</scroll>
</control>
<control type="label">
<posx>448</posx>
<posy>-19</posy>
<width>50</width>
<height>25</height>
<label>$INFO[VideoPlayer.Year]</label>
<align>left</align>
<aligny>center</aligny>
<font>Font_OSDTime</font>
<textcolor>60ffffff</textcolor>
<scroll>true</scroll>
</control>

<!-- Movie Cover Implementation -->

<control type="image">
<description>cover image movie</description>
<posx>1130</posx>
<posy>-217</posy>
<width>150</width>
<height>225</height>
<texture diffuse="thumbs/movieposter_mask.png">$INFO[VideoPlayer.cover]</texture>
<aspectratio align="right" aligny="bottom">keep</aspectratio>
<visible>VideoPlayer.Content(movies)</visible>
</control>

<!-- Show Cover Implementation -->

<control type="image">
<description>cover image episodes</description>
<posx>1130</posx>
<posy>-217</posy>
<width>150</width>
<height>225</height>
<texture diffuse="thumbs/movieposter_mask.png">$INFO[?]</texture>>
<aspectratio align="right" aligny="bottom">keep</aspectratio>
<visible>VideoPlayer.Content(episodes)</visible>
</control>

<!-- poster glass implementation (needs verification because of different poster sizes)-->

<control type="image">
<posx>1130</posx>
<posy>-220</posy>
<width>150</width>
<height>226</height>
<bordertexture border="-9">thumbs/poster_shadow.png </bordertexture>
<texture>thumbs/poster_glass.png</texture>
<aspectratio align="right" aligny="bottom">keep</aspectratio>
</control>

<!-- end of mod -->



<control type="group">
<posx>-500</posx>
<posy>-20</posy>
<width>499</width>
<height>28</height>
<animation effect="slide" end="200,0" time="200" condition="Player.Forwarding2x">Conditional</animation>
<animation effect="slide" end="275,0" time="200" condition="Player.Forwarding4x">Conditional</animation>
<animation effect="slide" end="350,0" time="200" condition="Player.Forwarding8x">Conditional</animation>
<animation effect="slide" end="425,0" time="200" condition="Player.Forwarding16x">Conditional</animation>
<animation effect="slide" end="499,0" time="200" condition="Player.Forwarding32x">Conditional</animation>

<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>499</width>
<height>28</height>
<texture>osd/osd_button_reverse.png</texture>
</control>

<control type="label">
<include>Objects_OSDSeekForward</include>
<label>$LOCALIZE[31706] 2X</label>
<visible>Player.Forwarding2x</visible>
</control>

<control type="label">
<include>Objects_OSDSeekForward</include>
<label>$LOCALIZE[31706] 4X</label>
<visible>Player.Forwarding4x</visible>
</control>

<control type="label">
<include>Objects_OSDSeekForward</include>
<label>$LOCALIZE[31706] 8X</label>
<visible>Player.Forwarding8x</visible>
</control>

<control type="label">
<include>Objects_OSDSeekForward</include>
<label>$LOCALIZE[31706] 16X</label>
<visible>Player.Forwarding16x</visible>
</control>

<control type="label">
<include>Objects_OSDSeekForward</include>
<label>$LOCALIZE[31706] 32X</label>
<visible>Player.Forwarding32x</visible>
</control>

</control>

<control type="group">
<posx>1280</posx>
<posy>-20</posy>
<width>499</width>
<height>28</height>
<animation effect="slide" end="-200,0" time="200" condition="Player.Rewinding2x">Conditional</animation>
<animation effect="slide" end="-275,0" time="200" condition="Player.Rewinding4x">Conditional</animation>
<animation effect="slide" end="-350,0" time="200" condition="Player.Rewinding8x">Conditional</animation>
<animation effect="slide" end="-425,0" time="200" condition="Player.Rewinding16x">Conditional</animation>
<animation effect="slide" end="-499,0" time="200" condition="Player.Rewinding32x">Conditional</animation>

<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>499</width>
<height>28</height>
<texture>osd/osd_button_advance.png</texture>
</control>

<control type="label">
<include>Objects_OSDSeekReverse</include>
<label>$LOCALIZE[31705] 2X</label>
<visible>Player.Rewinding2x</visible>
</control>

<control type="label">
<include>Objects_OSDSeekReverse</include>
<label>$LOCALIZE[31705] 4X</label>
<visible>Player.Rewinding4x</visible>
</control>

<control type="label">
<include>Objects_OSDSeekReverse</include>
<label>$LOCALIZE[31705] 8X</label>
<visible>Player.Rewinding8x</visible>
</control>

<control type="label">
<include>Objects_OSDSeekReverse</include>
<label>$LOCALIZE[31705] 16X</label>
<visible>Player.Rewinding16x</visible>
</control>

<control type="label">
<include>Objects_OSDSeekReverse</include>
<label>$LOCALIZE[31705] 32X</label>
<visible>Player.Rewinding32x</visible>
</control>

</control>

<control type="label">
<posx>112</posx>
<posy>60</posy>
<width>300</width>
<height>25</height>
<font>Font_OSDTime</font>
<colordiffuse>d0FFFFFF</colordiffuse>
<label>$INFO[VideoPlayer.Time] ($INFO[System.Time])</label>
</control>

<control type="label">
<posx>1168</posx>
<posy>60</posy>
<width>300</width>
<height>25</height>
<font>Font_OSDTime</font>
<align>right</align>
<colordiffuse>d0FFFFFF</colordiffuse>
<label>$INFO[VideoPlayer.Duration] ($INFO[Player.FinishTime])</label>
</control>

</control>

</controls>
</window>


look for the mod start comment
<!-- Auto movie/show cover and info on Pause mod -->

Hitcher
2009-05-18, 10:42
No luck here. It looks like the cover is the only image you can use when playing a video.

If you want fanart, season or show images then it looks like you'll have to make a request.

reaven
2009-05-18, 12:28
No luck here. It looks like the cover is the only image you can use when playing a video.

If you want fanart, season or show images then it looks like you'll have to make a request.

Thanks a lot man, can you tell me where I make the requests and to whom ?

BTW how about the implementation of the poster_glass.png overlay its ok? or how is the correct way so the size can match perfect?



Thanks again

Hitcher
2009-05-18, 12:33
http://xbmc.org/wiki/?title=HOW-TO_submit_an_official_feature_request

reaven
2009-05-18, 20:03
Thanks lot..!

reaven
2009-05-19, 07:17
Already made the request.

this is what I want, there is no use to see an screenshot when you are already viewing the show and an screenshot on pause.. the show poster make more sense.

http://i93.photobucket.com/albums/l66/reavenm/sample-1.jpg