Kodi Community Forum

Full Version: how is DialogVideoInfo.xml displaying the cast thumbnails?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I am creating a new viewtype.xml

I want the cast thumbnails to be displayed like they are in the DialogVideoInfo.xml of the Estuary skin.

However after checking the DialogVideoInfo.xml I'm baffled as to how the cast is shown. 

Can someone enlighten me? I would really like to use it in a new view that I'm trying to create.

Appreciate any help!
It's a hardcoded list (ID=50) in DialogVideoInfo.xml.

https://kodi.wiki/index.php?title=List_o...eoInfo.xml
(2022-11-05, 17:18)Hitcher Wrote: [ -> ]It's a hardcoded list (ID=50) in DialogVideoInfo.xml.

https://kodi.wiki/index.php?title=List_o...eoInfo.xml

Thank you! I saw that page before but couldn't make anything of it. I appreciate the explanation. Now the question: is it possbile to use the ID 50 in a custom view to show the cast like it does in DialogVideoInfo.xml ?

Thanks a bunch!!
I think you'll need to use a addon to have access to cast information outside of the DialogVideoInfo.xml. Something like tmdbhelper should be able to help you I think.

https://github.com/jurialmunkey/plugin.v...ts-Related

There may be a better way to do it and you could probably get a better answer here (https://github.com/jurialmunkey/plugin.v...ts-Related)...

but one way I could think of using this plugin would be to have your view and then have a secondary list that uses this as the content path:

plugin://plugin.video.themoviedb.helper?info=cast&type=movie&imdb_id=$INFO[ListItem.IMDBNumber]

Then it should use the IMDB number of the highlighted item in your main view list to populate a secondary list with cast info. Not sure how instantaneous it would be though.
(2022-11-05, 22:39)realcopacetic Wrote: [ -> ]I think you'll need to use a addon to have access to cast information outside of the DialogVideoInfo.xml. Something like tmdbhelper should be able to help you I think.

https://github.com/jurialmunkey/plugin.v...ts-Related

There may be a better way to do it and you could probably get a better answer here (https://github.com/jurialmunkey/plugin.v...ts-Related)...

but one way I could think of using this plugin would be to have your view and then have a secondary list that uses this as the content path:

plugin://plugin.video.themoviedb.helper?info=cast&type=movie&imdb_id=$INFO[ListItem.IMDBNumber]

Then it should use the IMDB number of the highlighted item in your main view list to populate a secondary list with cast info. Not sure how instantaneous it would be though.

Thank you for the detailed response! I will look into this. I had a feeling it'd be more difficult. And not instantaneous is also a problem to be honest. I wish there'd be a way to use the hardcoded list outside of DialogVideoInfo.xml ...

Very much appreciated though for your help!
I was able to make the cast show. HOWEVER, I want it to appear when I press a third button named "CAST". 

I have tried adding 
xml:
<visible>Container.Position(2)</visible> 

this DOES work in the DialogVideoInfo.xml file but not on my custom view.


I appreciate any help! Thanks guys!
there is no way to use third button for custom cast view outside dialogvideoinfo it think this issue not solved on any version of kodi it will be nice ot have that feature not just for casting view lets say for playing trailer and so on, the issue is that third button cant hold the information from container list this is why it only can be done by dialogvideoinfo.
(2022-11-14, 12:29)3000 Wrote: [ -> ]I was able to make the cast show. HOWEVER, I want it to appear when I press a third button named "CAST". 

I have tried adding 
xml:
<visible>Container.Position(2)</visible> 

this DOES work in the DialogVideoInfo.xml file but not on my custom view.


I appreciate any help! Thanks guys!

Assuming I understand the issue correctly, you have cast info showing in a custom window using a plugin and now you wish to make it so that it is only visible when you click on a button called Cast. Is the button in the same window as the cast list?

If it is a standard button control, you might want to try adding these two lines to it...

xml:

<control type="button">
    ...
    <onclick>SetProperty(Cast_Info_Visible, true, home)</onclick>
    <onunfocus>ClearProperty(Cast_Info_Visible,home)</onunfocus>
    ...
</control>

...then setting the visibility condition for your cast info like so:

xml:

<visible>String.IsEqual(Window(home).Property(Cast_Info_Visible,true)</visible>

If you are using Kodi Nexus, this can be simplified with two new commands that have been added (https://forum.kodi.tv/showthread.php?tid=363553&page=2). On Nexus, you can add these to your button instead:

xml:

<onclick>Control.SetVisible(CAST LIST ID)</onclick>
<onunfocus>Control.SetHidden(CAST LIST ID)</onunfocus>

Does that solve it?
,,,