acreskey
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2018
10:46 AM
Define XML component in Brightscript?
I don't think this is possible, but asking just in case:
Is it possible to define an XML component purely from Brightscript?
i.e. a create a new, named, component definition that could be used, for instance, as the itemComponentName, in a RowList. (https://sdkdocs.roku.com/display/sdkdoc ... LComponent)
We have very dynamic component types that are not known before-hand so packaging XML components with the channel is not possible without using a remote component library or else using component definitions with many extra fields that we then hide.
Is it possible to define an XML component purely from Brightscript?
i.e. a create a new, named, component definition that could be used, for instance, as the itemComponentName, in a RowList. (https://sdkdocs.roku.com/display/sdkdoc ... LComponent)
We have very dynamic component types that are not known before-hand so packaging XML components with the channel is not possible without using a remote component library or else using component definitions with many extra fields that we then hide.
2 REPLIES 2
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018
10:10 PM
Re: Define XML component in Brightscript?
I don't think that's possible either, you can create an existing component on the fly (from brs) but afaik you can't define a new one. But, you can addFields after the fact to dynamically add any fields you need to your component. so you might be able to create shell components (extend Group) and put any fields on them later.
aspiring
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2018
04:20 PM
Re: Define XML component in Brightscript?
I did try doing this with the video component, defining/creating it entirely from brightscript without a single XML reference. Now perhaps I did something wrong, but doing it this way resulted in a video that only played audio, didn't have any trickplay capability/bif files visible, and other issues. The default video component when created in XML has about 40 separate children and features created with it by default that aren't present when you create it from brightscript only.