Config

0 views
Skip to first unread message

Craig

unread,
Jan 27, 2010, 7:39:53 AM1/27/10
to VideoBrowser Devs
Hey guys.

I pass the instance of my config class through to the plugin loader
(Basically the line thats there when you open a fresh template), How
do I then get a reference to it in the mcml? I see there a property
called 'ThemeConfig' being passed around on the default theme. But
when I try the same thing I get errors saying that the ThemeConfig
object is null when I use it.

thanks all.
Craig

Jas Manghera

unread,
Jan 27, 2010, 7:43:45 AM1/27/10
to videobro...@googlegroups.com
Have you tried:

<

app:Config Name="ThemeConfig" />
where app is a reference to your plugin assembly.
 
 
 
On a totally unrelated note, I'm having one of those moments, how the heck does studio images work? I swear I've put everything in the right place. Actors are loading fine, just no studios whatsoever.



--
You received this message because you are subscribed to the Google Groups "VideoBrowser Devs" group.
To post to this group, send email to videobro...@googlegroups.com.
To unsubscribe from this group, send email to videobrowser-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/videobrowser-devs?hl=en.


Craig Thomas

unread,
Jan 27, 2010, 7:47:21 AM1/27/10
to videobro...@googlegroups.com
Thanks, I'll give that a try.


This is what my studio images look like.

<Binding Target="[StudioRepeater.Source]"
Source="[Folder.SelectedChild.StudioItems]"></Binding>

<Repeater Name="StudioRepeater"
Source="[Folder.SelectedChild.StudioItems]">
<Layout>
<FlowLayout Orientation="Horizontal"
ItemAlignment="Center" Spacing="0,0"/>
</Layout>
<Content>
<vs:Studio
StudioItem="[RepeatedItem!lib:StudioItemWrapper]" Name="StudioLogo"/>
</Content>
</Repeater>

Jas Manghera wrote:
> Have you tried:
>
> <
>
> app:Config Name="ThemeConfig" />
> where app is a reference to your plugin assembly.
>
>
>
> On a totally unrelated note, I'm having one of those moments, how the
> heck does studio images work? I swear I've put everything in the right
> place. Actors are loading fine, just no studios whatsoever.
>
>
> On Wed, Jan 27, 2010 at 12:39 PM, Craig <crai...@gmail.com
> <mailto:crai...@gmail.com>> wrote:
>
> Hey guys.
>
> I pass the instance of my config class through to the plugin loader
> (Basically the line thats there when you open a fresh template), How
> do I then get a reference to it in the mcml? I see there a property
> called 'ThemeConfig' being passed around on the default theme. But
> when I try the same thing I get errors saying that the ThemeConfig
> object is null when I use it.
>
> thanks all.
> Craig
>
> --
> You received this message because you are subscribed to the Google
> Groups "VideoBrowser Devs" group.
> To post to this group, send email to
> videobro...@googlegroups.com

> <mailto:videobro...@googlegroups.com>.


> To unsubscribe from this group, send email to
> videobrowser-d...@googlegroups.com

> <mailto:videobrowser-devs%2Bunsu...@googlegroups.com>.

Jas Manghera

unread,
Jan 27, 2010, 7:52:29 AM1/27/10
to videobro...@googlegroups.com
I found a solution to my problem... very simple .. blow up the image cache and let MB repopulate it. I don't like it but ... it works :(

justin thomas

unread,
Jan 27, 2010, 7:55:11 AM1/27/10
to videobro...@googlegroups.com
as in MediaBrowser.BlowUp();   ?

Jas Manghera

unread,
Jan 27, 2010, 8:04:06 AM1/27/10
to videobro...@googlegroups.com
As in SHIFT-DEL:  Are you sure you sure you wish to delete media browser cache
 
 
YES!!!!! I AM %#$@^$ SURE!!!!!!!!!!!!!!!!!11111


Craig Thomas

unread,
Jan 27, 2010, 8:14:58 AM1/27/10
to videobro...@googlegroups.com
Ok, I still cant get this thing to work... :(

I have tried cor:Object even and it keep retruning null. As a test I
tried just setting a labels content to ThemeConfig.ToString but it
always just says ThemeConfic is null


Jas Manghera wrote:
> As in SHIFT-DEL: Are you sure you sure you wish to delete media
> browser cache
>
>

> YES!!!!! I AM %#$@^$ <mailto:%#$@%5E$> SURE!!!!!!!!!!!!!!!!!11111

Jas Manghera

unread,
Jan 27, 2010, 8:23:11 AM1/27/10
to videobro...@googlegroups.com
Here is a bit more context:
 

<

UI Name="Something">

<

Properties>
   <
a:Application Name="Application" Application="$Required"/>
   <app:Config Name="ThemeConfig" />

</

Properties>

<

Rules>

<Binding Source="[SourceText]" Target="[TargetText]" >
   <
Conditions>
       <
Equality Source="[ThemeConfig.InfoOption]" ConditionOp="Equals" Value="true" />
   </
Conditions>
</
Binding>

</Rules>
.

.


 

Craig Thomas

unread,
Jan 27, 2010, 8:29:18 AM1/27/10
to videobro...@googlegroups.com
Thats what I tried, but it still said ThemeConfig is null.

To which pages does mediabrowser pass the instance?

Page, moviedetails and your config panel?

> <mailto:videobro...@googlegroups.com>.


> To unsubscribe from this group, send email to
> videobrowser-d...@googlegroups.com

> <mailto:videobrowser-devs%2Bunsu...@googlegroups.com>.


> For more options, visit this group at
> http://groups.google.com/group/videobrowser-devs?hl=en.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "VideoBrowser Devs" group.
> To post to this group, send email to
> videobro...@googlegroups.com

> <mailto:videobro...@googlegroups.com>.


> To unsubscribe from this group, send email to
> videobrowser-d...@googlegroups.com

> <mailto:videobrowser-devs%2Bunsu...@googlegroups.com>.

Eric Reed

unread,
Jan 27, 2010, 8:44:15 AM1/27/10
to videobro...@googlegroups.com
You don't have a "$Required" on it, right? If you do, it will be null.

This whole thing doesn't work exactly like I think it should. I don't know
if it's a bug or a design deficiency or what but I can't get it to pass the
actual object reference around properly. So, if you just declare it as a
local or declare it as a non-required property, you should get a fresh
instance of your config object. This should work in most instances but,
sometimes, changes to the options won't be seen until you re-start MB.

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.730 / Virus Database: 271.1.1/2647 - Release Date: 01/26/10
14:36:00

Craig Thomas

unread,
Jan 27, 2010, 8:47:07 AM1/27/10
to videobro...@googlegroups.com
Cool, thanks for the info.

Still doesn't work. I have implemented another system for the settings,
so at least I can continue till I have time to figure out whats up.

Jas Manghera

unread,
Jan 27, 2010, 8:47:40 AM1/27/10
to videobro...@googlegroups.com
Layouts (coverflow, thumbs, etc..), Movie Details

Reply all
Reply to author
Forward
0 new messages