Forum Discussion

aram-cbs's avatar
aram-cbs
Visitor
9 years ago

Problem using ComponentLibrary

Hi guys, 

I have Roku custom library, and I can successfully load it into the my project runtime. But I want my component to extend component from downloadable library. Here is the link of documentation that tells it is possible https://sdkdocs.roku.com/display/sdkdoc ... entLibrary

<Component name="customComponent" Extends="Library:Component">

But when app is start from main.brs it's scanning all components from package "components" and gives me an XML parse-in error. So if this is not working why not remove from documentation or do you know how to extend library component? 

Thank you

4 Replies

  • aram-cbs Wow, thanks! I had no idea we could publish external libraries for SG. 
    I can't answer your question, but at least now I know this feature exists.
  • It should be working. Perhaps you are confused about what "Library:Component" above means? I added a note on usage, does it help?
    • oa24153's avatar
      oa24153
      Binge Watcher

      When i package my component library some times it says.And than doesn't get library from my server? What is the reason?

       

  • "RokuNB" wrote:
    It should be working. Perhaps you are confused about what "Library:Component" above means? I added a note on usage, does it help?


    hi RokuNB,  sorry for "summoning" this old thread, 
    i have a doubt; it's posible to create a library component from a brightscript? some thing like:
    mycomponent = CreateObject("roSGNode", "Library:Component")
    i've triede the above sintaxis but it doesn't works, so i wonder how could do someting like that?
    thanks.


    Forget about it, the sintaxis above is working perfectly, the problem was a typo. XD