039:* sendRTSPCommand(socket, commandArray, mtop)
040: end sub
Function Call Operator ( ) attempted on non-function. (runtime error &he0) in pkg:/source/stream.brs(39)
<script type = "text/brightscript" uri = "pkg:/components/VideoTheater.brs" />
"joetesta" wrote:
Assuming you're working in RSG, you probably need to include the new file in the XML of any other files where you intend to use its functions;<script type = "text/brightscript" uri = "pkg:/components/VideoTheater.brs" />
https://sdkdocs.roku.com/display/sdkdoc/script
"ioan" wrote:
[The files that I'm trying to share the functions between are just brs files with utility functions with no xml equivalent and they are all in the /source folder. The old ones can share the functions fine between them, just the last one that I created cannot be seen by the other files from the same folder.
"RokuNB" wrote:
i would venture a guess the .brs file was not included in the build.
to troubleshoot, just check in console when the error happens what's in sendRTSPCommand (? sendRTSPCommand); if it's a function, try calling it with params and so on... you'll figure out what's happening soon enough
------ Compiling dev 'IP Camera Viewer Pro' ------
*** ERROR compiling /pkg:/source/rtsputils.brs:
SUB or FUNCTION defined twice. (compile error &had) in pkg:/source/rtsputils.brs(2) 'sendRTSPCommand'
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!