Studio icon in the OSD
#1
Hello, I would like to know how can i add the studio icon of a movie or a tv show in the videoplayer. I know it is the white studio icon addon that permits to display the studio icon in Estuary. I found these lines in the includes.xml file which I think permit to display the icon studio in the views.

xml:
<control type="grouplist">
                <orientation>horizontal</orientation>
                <right>-12</right>
                <top>-47</top>
                <height>70</height>
                <align>right</align>
                <itemgap>10</itemgap>
                <width>1900</width>
                <usecontrolcoords>true</usecontrolcoords>
        <control type="group">
                    <width>147</width>
                    <visible>System.AddonIsEnabled(resource.images.studios.white) + !String.IsEmpty($PARAM[infolabel_prefix]ListItem.Studio)</visible>
                    <include content="MediaFlag">
                        <param name="texture" value="$INFO[$PARAM[infolabel_prefix]ListItem.Studio,resource://resource.images.studios.white/,.png]" />
                    </include>
       </control>
</control>

Thanks
Reply
#2
try
xml:



<param name="infolabel_prefix" value="videoplayer" />
.....
<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]" />
</include>

just note the param usecase
- i mean the difference in the call vs defintion, as i am not sure how you use it, it may can be wrong handled
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#3
(2021-07-06, 11:13)mardukL Wrote: try
xml:



<param name="infolabel_prefix" value="videoplayer" />
.....
<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]" />
</include>

just note the param usecase
- i mean the difference in the call vs defintion, as i am not sure how you use it, it may can be wrong handled

Thanks for your answer but it still doesn't appear. I am trying to make the studio icon appear in the custom_1109_TopBarOverlay.xml file.
Reply
#4
(2021-07-06, 11:28)Bungee_G Wrote:
(2021-07-06, 11:13)mardukL Wrote: try
xml:



<param name="infolabel_prefix" value="videoplayer" />
.....
<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]" />
</include>

just note the param usecase
- i mean the difference in the call vs defintion, as i am not sure how you use it, it may can be wrong handled

Thanks for your answer but it still doesn't appear. I am trying to make the studio icon appear in the custom_1109_TopBarOverlay.xml file.


you may need go over your usecase scenario for include call and definition

call
xml:

<include content="MediaFlag">
     ...
     <param name="infolabel_prefix" value="videoplayer" />
     ...
</include>
                    
 definition
xml:

<include name="MediaFlag">
    ...
    <texture>$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]</texture>
     ...
</include>
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#5
(2021-07-06, 12:17)mardukL Wrote:
(2021-07-06, 11:28)Bungee_G Wrote:
(2021-07-06, 11:13)mardukL Wrote: try
xml:



<param name="infolabel_prefix" value="videoplayer" />
.....
<include content="MediaFlag">
<param name="texture" value="$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]" />
</include>

just note the param usecase
- i mean the difference in the call vs defintion, as i am not sure how you use it, it may can be wrong handled

Thanks for your answer but it still doesn't appear. I am trying to make the studio icon appear in the custom_1109_TopBarOverlay.xml file.


you may need go over your usecase scenario for include call and definition

call
xml:

<include content="MediaFlag">
     ...
     <param name="infolabel_prefix" value="videoplayer" />
     ...
</include>
                    
 definition
xml:

<include name="MediaFlag">
    ...
    <texture>$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]</texture>
     ...
</include>
I don't know if I understood right but this is what I added in the custom_1109_TopBarOverlay.xml file :

xml:
<control type="grouplist">
                <orientation>horizontal</orientation>
                <right>-12</right>
                <top>-47</top>
                <height>70</height>
                <align>right</align>
                <itemgap>10</itemgap>
                <width>1900</width>
                <usecontrolcoords>true</usecontrolcoords>
        <control type="group">
                    <width>147</width>
                    <visible>System.AddonIsEnabled(resource.images.studios.white) + !String.IsEmpty($PARAM[infolabel_prefix]ListItem.Studio)</visible>
                     <include content="MediaFlag">
                       <param name="infolabel_prefix" value="videoplayer" />
                    </include>
                    <include name="MediaFlag">
                       <texture>$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]</texture>
                  </include>
       </control>
</control>

But the studio icon still doesn't appear.
Reply
#6
(2021-07-06, 12:50)Bungee_G Wrote:
(2021-07-06, 12:17)mardukL Wrote:
(2021-07-06, 11:28)Bungee_G Wrote: Thanks for your answer but it still doesn't appear. I am trying to make the studio icon appear in the custom_1109_TopBarOverlay.xml file.


you may need go over your usecase scenario for include call and definition

call
xml:

<include content="MediaFlag">
     ...
     <param name="infolabel_prefix" value="videoplayer" />
     ...
</include>
                    
 definition
xml:

<include name="MediaFlag">
    ...
    <texture>$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]</texture>
     ...
</include>
I don't know if I understood right but this is what I added in the custom_1109_TopBarOverlay.xml file :

xml:
<control type="grouplist">
                <orientation>horizontal</orientation>
                <right>-12</right>
                <top>-47</top>
                <height>70</height>
                <align>right</align>
                <itemgap>10</itemgap>
                <width>1900</width>
                <usecontrolcoords>true</usecontrolcoords>
        <control type="group">
                    <width>147</width>
                    <visible>System.AddonIsEnabled(resource.images.studios.white) + !String.IsEmpty($PARAM[infolabel_prefix]ListItem.Studio)</visible>
                     <include content="MediaFlag">
                       <param name="infolabel_prefix" value="videoplayer" />
                    </include>
                    <include name="MediaFlag">
                       <texture>$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]</texture>
                  </include>
       </control>
</control>

But the studio icon still doesn't appear.

Image


Can you post your code for previous

xml:
<include name="MediaFlag">
Huh need take look !
</include>
definition usecase ?
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#7
(2021-07-06, 13:15)mardukL Wrote:
(2021-07-06, 12:50)Bungee_G Wrote:
(2021-07-06, 12:17)mardukL Wrote: you may need go over your usecase scenario for include call and definition

call
xml:

<include content="MediaFlag">
     ...
     <param name="infolabel_prefix" value="videoplayer" />
     ...
</include>
                    
 definition
xml:

<include name="MediaFlag">
    ...
    <texture>$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]</texture>
     ...
</include>
I don't know if I understood right but this is what I added in the custom_1109_TopBarOverlay.xml file :

xml:
<control type="grouplist">
                <orientation>horizontal</orientation>
                <right>-12</right>
                <top>-47</top>
                <height>70</height>
                <align>right</align>
                <itemgap>10</itemgap>
                <width>1900</width>
                <usecontrolcoords>true</usecontrolcoords>
        <control type="group">
                    <width>147</width>
                    <visible>System.AddonIsEnabled(resource.images.studios.white) + !String.IsEmpty($PARAM[infolabel_prefix]ListItem.Studio)</visible>
                     <include content="MediaFlag">
                       <param name="infolabel_prefix" value="videoplayer" />
                    </include>
                    <include name="MediaFlag">
                       <texture>$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]</texture>
                  </include>
       </control>
</control>

But the studio icon still doesn't appear.

Image


Can you post your code for previous

xml:
<include name="MediaFlag">
Huh need take look !
</include>
definition usecase ?

I'm sorry but I don't really understand, what do you mean by "post your code for previous" ?
Reply
#8
(2021-07-06, 13:37)Bungee_G Wrote:
(2021-07-06, 13:15)mardukL Wrote:
(2021-07-06, 12:50)Bungee_G Wrote: I don't know if I understood right but this is what I added in the custom_1109_TopBarOverlay.xml file :

xml:
<control type="grouplist">
                <orientation>horizontal</orientation>
                <right>-12</right>
                <top>-47</top>
                <height>70</height>
                <align>right</align>
                <itemgap>10</itemgap>
                <width>1900</width>
                <usecontrolcoords>true</usecontrolcoords>
        <control type="group">
                    <width>147</width>
                    <visible>System.AddonIsEnabled(resource.images.studios.white) + !String.IsEmpty($PARAM[infolabel_prefix]ListItem.Studio)</visible>
                     <include content="MediaFlag">
                       <param name="infolabel_prefix" value="videoplayer" />
                    </include>
                    <include name="MediaFlag">
                       <texture>$INFO[$PARAM[infolabel_prefix].Studio,resource://resource.images.studios.white/,.png]</texture>
                  </include>
       </control>
</control>

But the studio icon still doesn't appear.

Image


Can you post your code for previous

xml:
<include name="MediaFlag">
Huh need take look !
</include>
definition usecase ?

I'm sorry but I don't really understand, what do you mean by "post your code for previous" ?

I mean, for help i need take a look and see anything what is used

between/from here
<include name="MediaFlag">
to here
</include>[/syntax]
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#9
This is an easier one.

For this

xml:
<include content="MediaFlag">
<param name="texture" value="$INFO[VideoPlayer.Studio,resource://resource.images.studios.white/,.png]" />
</include>
Reply
#10
(2021-07-06, 14:10)jjd-uk Wrote: This is an easier one.

For this

xml:
<include content="MediaFlag">
<param name="texture" value="$INFO[VideoPlayer.Studio,resource://resource.images.studios.white/,.png]" />
</include>
Thanks it worked ! Also thanks MarduKL !
Reply
#11
Btw your group visisbility should be:

xml:
<visible>System.AddonIsEnabled(resource.images.studios.white) + !String.IsEmpty(VideoPlayer.Studio)</visible>

or remove it from the group and add to the mediaflag definition

xml:
<include content="MediaFlag">
<param name="texture" value="$INFO[VideoPlayer.Studio,resource://resource.images.studios.white/,.png]" />
<param name="visible" value="System.AddonIsEnabled(resource.images.studios.white) + !String.IsEmpty(VideoPlayer.Studio)" />
</include>
Reply

Logout Mark Read Team Forum Stats Members Help
Studio icon in the OSD0