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" />
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" />
[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.
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'