2014-05-30, 01:00
After Gotham when playing videos from video addons VideoPlayer.Content() condition is not working. When browsing the items in the addon the views and the artwork are showing based to the content that the addon has set (eg Movies) but when i play a video i get simple video content.
Just to be more clear to what i am saying and in case that i am doing something wrong, here is the code that i am using...
These are image controls:
and this is my variable:
When i play local files all working fine. Movies content have poster aspect ratio thumb and simple videos have landscape aspect ratio thumb. Now, when i play Movies content inside an addon, i always get landscape aspect ratio thumb and not a poster aspect ratio thumb. You can test this out by trying the GQ or the Sports Illustrated addons. Both of them have set the content to Movies.
Is that a bug or am i missing something here ?
Cheers
Nessus
Just to be more clear to what i am saying and in case that i am doing something wrong, here is the code that i am using...
These are image controls:
PHP Code:
<!-- Movies/Episodes Cover -->
<control type="group" id="1">
<visible>VideoPlayer.Content(Movies) | VideoPlayer.Content(Episodes)</visible>
<control type="image" id="1">
<left>10</left>
<top>10</top>
<width>185</width>
<height>258</height>
<aspectratio align="center" aligny="center" scalediffuse="false">stretch</aspectratio>
<texture background="true" diffuse="thumbs/poster_diffuse.png">thumbs/thumb_back.png</texture>
<fadetime>800</fadetime>
</control>
<control type="image" id="1">
<left>10</left>
<top>10</top>
<width>185</width>
<height>258</height>
<aspectratio align="center" aligny="center" scalediffuse="false">scale</aspectratio>
<texture background="true" fallback="thumbs/fallback_poster_tp.png" diffuse="thumbs/poster_diffuse.png">$VAR[VideoPlayerThumb]</texture>
<fadetime>800</fadetime>
</control>
</control>
<!-- Videos Cover -->
<control type="group" id="1">
<top>60</top>
<visible>!VideoPlayer.Content(Movies) + !VideoPlayer.Content(Episodes) + !VideoPlayer.Content(LiveTV)</visible>
<control type="image" id="1">
<left>8</left>
<top>8</top>
<width>274</width>
<height>199</height>
<aspectratio align="center" aligny="center" scalediffuse="false">stretch</aspectratio>
<texture background="true" diffuse="thumbs/video_diffuse.png">thumbs/thumb_back.png</texture>
<fadetime>800</fadetime>
</control>
<control type="image" id="1">
<left>8</left>
<top>8</top>
<width>274</width>
<height>199</height>
<aspectratio align="center" aligny="center" scalediffuse="false">scale</aspectratio>
<texture background="true" diffuse="thumbs/video_diffuse.png">$INFO[VideoPlayer.Cover]</texture>
<fadetime>800</fadetime>
</control>
</control>
and this is my variable:
PHP Code:
<variable name="VideoPlayerThumb">
<value condition="!IsEmpty(Player.Art(poster))">$INFO[Player.Art(poster)]</value>
<value condition="VideoPlayer.Content(Episodes) + !IsEmpty(Player.Art(tvshow.poster))">$INFO[Player.Art(tvshow.poster)]</value>
<value>$INFO[Player.Art(thumb)]</value>
</variable>
When i play local files all working fine. Movies content have poster aspect ratio thumb and simple videos have landscape aspect ratio thumb. Now, when i play Movies content inside an addon, i always get landscape aspect ratio thumb and not a poster aspect ratio thumb. You can test this out by trying the GQ or the Sports Illustrated addons. Both of them have set the content to Movies.
Is that a bug or am i missing something here ?
Cheers
Nessus