From 409d583c12e70a5d4a68dc9da1f7d2f88eff3fbb Mon Sep 17 00:00:00 2001 From: loopy750 <35911135+loopy750@users.noreply.github.com> Date: Thu, 29 Apr 2021 17:16:09 +1000 Subject: [PATCH] v0.9.0 --- LICENSE | 674 +++++++ README.md | 76 + modifications/adiirc/outputSRT.ini | 6 + modifications/adiirc/vars.ini | 1 + source/icon.ico | Bin 0 -> 104032 bytes source/image.png.MEM | 668 +++++++ source/loopy_srt_monitor.bas | 2633 ++++++++++++++++++++++++++++ source/loopy_srt_monitor.frm | 866 +++++++++ source/loopy_srt_monitor_light.frm | 874 +++++++++ source/readme_InForm.txt | 19 + srt_stats_monitor.png | Bin 0 -> 24079 bytes 11 files changed, 5817 insertions(+) create mode 100644 LICENSE create mode 100644 README.md create mode 100644 modifications/adiirc/outputSRT.ini create mode 100644 modifications/adiirc/vars.ini create mode 100644 source/icon.ico create mode 100644 source/image.png.MEM create mode 100644 source/loopy_srt_monitor.bas create mode 100644 source/loopy_srt_monitor.frm create mode 100644 source/loopy_srt_monitor_light.frm create mode 100644 source/readme_InForm.txt create mode 100644 srt_stats_monitor.png diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/README.md b/README.md new file mode 100644 index 0000000..a9adee3 --- /dev/null +++ b/README.md @@ -0,0 +1,76 @@ +# Loopy SRT Stats Monitor + +![Loopy SRT Stats Monitor](./srt_stats_monitor.png) + +Latest release available [here](https://github.com/loopy750/SRT-Stats-Monitor/releases/latest). + +This is a program to assist with "IRL streaming" for popular streaming websites such as Twitch, using OBS Studio. This program is currently in use by Twitch streamers and has been proven to a be a valuable asset to their stream. + +SRT is described as an open source video transport protocol that utilises the UDP transport protocol. It has several advantages over the abandoned RTMP protocol, including H.265/HEVC streaming. + +Using a "homemade" solution to SRT stream from your location back to your home PC, this program will automatically switch to a "fallback" OBS scene whenever your connection is lost, and is restored when your connection resumes. + +Basic features (**_MultiCameraSwitch=false_**) allow a simple two-scene scenario, either "LIVE" or "FALLBACK" scene. + +Advanced features (**_MultiCameraSwitch=true_**) consider for a two-camera multiple-scene scenario, and can alternate between scenes depending on the combination of cameras/streams used, i.e. stream 1, stream 2, and both stream 1&2 simultaneously. See 'readme.txt' for a full description regarding these and other settings. + + + + +DOWNLOADS +========= + +Programs to download +-------------------- +OBS Studio - [https://obsproject.com/](https://obsproject.com/) +OBS Websocket - [https://github.com/Palakis/obs-websocket/releases/latest](https://github.com/Palakis/obs-websocket/releases/latest) +Node.js - [https://nodejs.org/](https://nodejs.org/) +VLC 64-bit - [https://www.videolan.org/vlc/download-windows.html](https://www.videolan.org/vlc/download-windows.html) + + +INSTALLATION +============ + +OBS Studio +---------- +This guide assumes you have OBS installed and have spent time streaming and an understanding of how it works. + +OBS Websocket +------------- +After installing OBS Websocket, create a password in OBS (Tools -> Websockets Server Settings). + +Node.js +------- +Following installation of Node.js, run __install.cmd__ within '__Documents\Loopy SRT Monitor__' to install "obs-websocket-js" and complete the installation. + +VLC 64-bit +---------- +This will be used in OBS as a **_VLC Video Source_** for the "fallback" streams. It has features not currently available with the default OBS video player. + +* See the "Modifications" section below for recommended changes. + + +MODIFICATIONS +============= + +OBS Studio +---------- +Open OBS, and within the "Media Source", configure your SRT stream. Consult the [OBS SRT Wiki](https://obsproject.com/wiki/Streaming-With-SRT-Protocol) for more information. Ensure **_Restart playback when source becomes active_** is disabled. Recommended setting for **_Reconnect Delay_** is 1 second. + +VLC 64-bit +---------- +Open OBS, and within the "fallback" scene, add a source **_VLC Video Source_**. Select your video that viewers will see when your connection is lost. The following settings are recommended: **_Loop Playlist_** enabled, **_Pause when not visible, unpause when visible_** enabled. + +AdiIRC +------ + +[AdiIRC](https://www.adiirc.com/) is a free alternative to mIRC. If you have set **_FileStatusOutput=true_** for the purpose of outputting the stream status to a chat room, a sample script is supplied here. Edit [vars.ini](https://raw.githubusercontent.com/loopy750/SRT-Stats-Monitor/master/modifications/adiirc/vars.ini) with your channel name, and place in AdiIRC's root folder. Then load the [outputSRT.ini](https://raw.githubusercontent.com/loopy750/SRT-Stats-Monitor/master/modifications/adiirc/outputSRT.ini) script. Alt+R can be used to quickly access scripts. + + +ADDITIONAL STEPS +================ +OS firewall and router settings may prevent connecting to your home PC from an external source, such as mobile internet. Check firewall settings to allow the correct programs/ports to be accessed. Set a new rule for both inbound and outbound for the selected port. + +Investigate how to use your router's "Port Forwarding" setting for allowing connections to the selected port. For security reasons, this should only be enabled while in use. If port forwarding does not work for your connection, your ISP might have CG-NAT enabled for your service. Confirm whether or not this is the case, and if so, contact your ISP and ask that it be disabled. + +If you have been assigned a dynamic IP address from your ISP, [No-IP](https://www.noip.com/) is a great solution. diff --git a/modifications/adiirc/outputSRT.ini b/modifications/adiirc/outputSRT.ini new file mode 100644 index 0000000..a0ae210 --- /dev/null +++ b/modifications/adiirc/outputSRT.ini @@ -0,0 +1,6 @@ +on 1:LOGON:*://set %statusFile " $+ $sysdir(documents) $+ Loopy SRT Monitor\Temp\outputStatus.txt $+ " | /join %channelName | //timer $+ writeStatus 0 10 if ($isfile(%statusFile)) outputStatus + +alias outputStatus { + //msg %channelName $read(%statusFile) + /remove %statusFile +} diff --git a/modifications/adiirc/vars.ini b/modifications/adiirc/vars.ini new file mode 100644 index 0000000..9064953 --- /dev/null +++ b/modifications/adiirc/vars.ini @@ -0,0 +1 @@ +%channelName=#ChannelName diff --git a/source/icon.ico b/source/icon.ico new file mode 100644 index 0000000000000000000000000000000000000000..2f52b80a09d8c4ebb851873c8e9f0e9abb07a6ed GIT binary patch literal 104032 zcmeI52Urxj7r+#2Gnttr@BLmTlbK|)I2;{rG7c_uxaGK}**Kge z*fuu)5?(cx4tH)24!3*vKjFRL*g`tox^-W|{>(U>{{;|p`9EP0|M+D(+-$Ih=}Aw* z;W}*Ta5s+gADlUT(R7gXOx{ELPr{>6royZRRsBJpv*UR8?>VJiT3@cCeoDgm`Dc;S zbDw>j{U;rL)c$p|EXqw4#AjURdM>ml;f9RVB$dU#JXc$^M|1A}7E7*L%MfEtxuZL{ z^61S8IN2?hvpp`GvK=a(yLb7#xodV$g=xIiA=Ta6%+x&I#C|fUJJ}x4 z{-&FKE>PhIFDBPQ!sk8ryBB+V(}CO!yUB;*51hQaG6By>Hz}NpSHiCCaOo=i5neg9 zh{#ON4;jmTd(;utVr}PUyXizL%MM({nLqJ-ycXan|GCrh>*y?x9bvTHbUs&*H^-NI zj`3e>?Kkn|mTfCJ|LMr-2jcV#-0!^EbJDubr3cqjCbDwpEqhmurb-i$mBycC@IuT6 zY|LunIxXg}G-fjDEaI(`;1a;GDMtF70EuNbbC}-6(rk)))~=kn zX(=-(6+*P^F3C@t=EgtL((P!_7p(ecF7z>9b|qj>M;ic7-P1?b)pyCy@KLc^Yna zV_XUQ>J;_=;Vc)3p6&JDg?r5Ml06i=EL!lGJ++zP@fu5erl}WK;+9{x#ThR@K#wz7 zFbzk!c;cD(^P8v$MyZ*QD*^>g-8y4twvoGqqADDUU2gT@3Udeau;HHgt{4*NY|I2>E5pwDI^~(ndKIs zQk5F0P!{9+RA&8V7ruRFZ#-(|i~H-vD*8VCygEEQT(`xR*SV!}|5d@t2&rRxE*FN0 zC~>75OYNZB&%+~=YKcF5`0$3M=0#CT6~cLb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ge%Ke@((+~gREvM+&?D&#*CWYaUQU)ce;k~L z5zeDWF0elW_Ft3RuMYYm$BU>k&==Uiufd3^mTQyCyyUfw_JK`(gS6^8cB0 zI>T`)PGtI!>-HnI9YEgnKn?*B{lRh&=KU|a4I@<$0YqSe5%}`HVCY}tQNCFjI@K>n z;d=`3T7vklqW?X`B=nwQU@-*uifKTYMkz4vYapY&rf(YK8yOPgQHu|sMeh0d^y?4DGs0&Il0C4EYiVvy42J{< y5!aGm=F)}vzbDg&T({wD!+8_u0$DdonLDsNOtdgYe3uO0Cx4M|*-tu;wEjP&a1ssx literal 0 HcmV?d00001 diff --git a/source/image.png.MEM b/source/image.png.MEM new file mode 100644 index 0000000..469105a --- /dev/null +++ b/source/image.png.MEM @@ -0,0 +1,668 @@ +'SCREEN _NEWIMAGE(720, 460, 32) +'_PUTIMAGE (0, 0), __imageMEM&("tick_warning.png") + +FUNCTION __imageMEM& (caseImage$) + DIM v& + DIM A$ + DIM btemp$ + DIM i& + DIM B$ + DIM C% + DIM F$ + DIM C$ + DIM j + DIM t% + DIM B& + DIM X$ + DIM m AS _MEM + SELECT CASE caseImage$ + CASE "tick.png" + v& = _NEWIMAGE(64, 64, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haIcK]7RFE45gEgMeMMGM]G#YAU59DDI2mdLR0OTiJf3B8T#1CYb2\Wm\cmi:P>kAW4X;Z[am[8BKdXK468QY#hI9\12kP`" + A$ = A$ + "?#hG8LH2o8QMChm8\D2CS``9LRATMaHOM9POFUg>inRoF3Q:5]Y[NDQ#>eTQ" + A$ = A$ + "oOV46;QGdkKoGARSBh=9<92W_B75SmQkG]:6E;QN8nO8fdCOkT]Y>U\K`7gT" + A$ = A$ + "fdH8\ifPo63kd7;ZGYgD\_jm]A>>XJooW7?`nN=1R?bneCAO`eG7Q]F6mK=f" + A$ = A$ + ";QaAXGNK#bE\m9mm^[lm:mG;7KT5_G_Bf=8^N84njfAoFS3AHl:oZGAhmZmn" + A$ = A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P_79ig7INZ;" + A$ = A$ + "eDAXliak47kM6;W0_[2>cA>_3ilVYToQnKU=42mMC8WK4caVB]7GZ1ZO;in5" + A$ = A$ + "6Z61]hmZMQo6C2mlO:O[>hMJW_;NmgfF0FKmU8Li2mbOk[iQgkZ?NU2o[G3A" + A$ = A$ + "??:^F>G2bQh:M5NG[ME2lIlMRSidKdejj<#?^<;k;DNWiegigeD_6B=ZfXkg" + A$ = A$ + "Ei:lmWPJ8McnH2f[A^f3`N;Ri#`g#46kPc72kIh3i:l>VQVWVe]N_WRIOEYJ" + A$ = A$ + "CWnO[?8;%%%0" + btemp$ = "" + FOR i& = 1 TO LEN(A$) STEP 4: B$ = MID$(A$, i&, 4) + IF INSTR(1, B$, "%") THEN + FOR C% = 1 TO LEN(B$): F$ = MID$(B$, C%, 1) + IF F$ <> "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + CASE "cross.png" + v& = _NEWIMAGE(64, 64, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haIcK]6ZEE45fSgcmmmjmL]nAj]P27b`Ng?::[oDXR_[XT2Q<8CR:X<=Z;n0;FU5cbRaKaP5b2Q6mC;Jd9[60ICfE" + A$ = A$ + "[2IC]9W`fKbSl6R5CaRWcIKoC6a1\he]hF]hl4SAJgB\=C" + A$ = A$ + "ah[^Mj0bE\n9i6=n1=lN1hgS`R_oXXM;1=oa=0jCNSohB]fN8N??h;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A$ = A$ + "\_0bSb_UV?i_2dVaH:?NbGMQ`kQ=;kSSaCY\_hi8ag=#BaUWL4I=BGkNW0]i" + A$ = A$ + "E3`k=0SeEU1N?Wh_a>oN6?Z[m]jQgAmk638S3J:5KO;1J7Ucf0=UVoEjkik?" + A$ = A$ + ":fI>;imT^oPUYd78[=BOiM6jPhmaMZE1_kkLK8\d8bT[_TTf_AXkbQ>G[f5]?flfc" + A$ = A$ + "ce>l>KQNaeide5YOK" + A$ = A$ + "5j75c9_3JN^4jLE7TYBK?=kSC^7fA8loM0b=?H3874KN8nn_aLLR]7mk7j;6" + A$ = A$ + "gikn_aeVbJm1hc7WDn7GI4MW0GOFbk=RaDE8Si:\Aim`:_?^jEMQT7l5SDQN" + A$ = A$ + "_L#>bk;\=H\N;5bRc;TlQbjBANOLeSj21im#Wa7SMj67\^2`a_3Hlk#Ql8g\Yl_UVJ9_cP" + A$ = A$ + "nFCfTBMjK4jQ_aViMIM4QnmEZLl8#WY6NVEBXQgKfCo^NSnJNUS9Un?Oc7ik" + A$ = A$ + "kOP[_>\MJS3H#W[:MgKGPaoj\a05?BiBAk=mCBiH_ACU[_iKn8OeoWLm[VjliYLBXm#B[YBW_1Mo7Qf?F8\:QmXMM8" + A$ = A$ + ">fDF7l55#W`L_TlN>?l^lkUUm78_cn\#iccP>3X7c4O_gE3XJfR^" + A$ = A$ + "cP;BH7Qd?>_lHgC<_O2\nVKeDIl2^^8_626gA?Sn61Ycc>F]8[1oZYhj1SeD" + A$ = A$ + "ikOJe?hTi4eXX=bL3UOKEn0i;XlXYJ8UVcTZgTOfDZf3XkPVV3I" + A$ = A$ + "k>o5m]oAe\4]FiH "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + CASE "face_sad_x.png" + v& = _NEWIMAGE(57, 112, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haIiLU7KDE46gob#862aH86SaX81E2bE#Sa3l6A0S81A4_86SaXh5N4?9R8F" + A$ = A$ + "Ji\P2D:UbAZ#i#]]LH51\PE\D:GEXPM?jNlj^K_fMkNfmji>__imfIgg[52c" + A$ = A$ + "ljh^nBnem]MCVikgkKNcgJ`#1gnPh]?N;SdR#2" + A$ = A$ + "WL_4jVQ4?LgG4h4aHD\Mo" + A$ = A$ + "^okOlki]AbE4g=]RAN]lF6Y1f;kiVPXR]NR;P_2ha`LG>Y1QJ" + A$ = A$ + "mdk7h4il

TdF1X33fbO^KN;Od2WEn>c#DciB1MH[o" + A$ = A$ + "h[?EN;SdRPfZ_2PCTf3a_7ff5><_U?JQ]]n<`NOcH=KbkSbeNoXGTgb8]`g5" + A$ = A$ + "fG9Tj=bkSjceYJ>_KI0lF6Y1VFiX7BlNlYJMYbj#geEd2h]g1`:>2^Q]G0c3AMOh8iLbn^hn;9R7KeQ6kkoOne=k" + A$ = A$ + "hWOcYeO`?;5o8g^X6f;TeY>[h]W1=]_Ql_U14\UJg9d7TfLU^G8\con06GfM" + A$ = A$ + "RGkX>>>ml74[hB" + A$ = A$ + "aAIO9JBb?LGa]][mma8k=29R5A<=o0AL1oVXPkSG\^<_VeBNRA9Z<6BmJgL]" + A$ = A$ + "g?Lfddn1]MldJ?]99lKALKiHj17KoP;l=Q^AmlY9oOF<\TQ=#JJoTc_PK<]e" + A$ = A$ + "QhO4gOa\IYX7Lh\VSQ\g#ET?;9_W5[o>RGQ;K>Rn4?o7chWQ2^e1V8JHcYg?" + A$ = A$ +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?KE^DZgHdU_78oWXD7N8NW8NHOG\m3m=mKWo0Nm8IClI5f_`?4#alAZcdBmn]lNfMUC4;mn^`N;6XU6e`" + A$ = A$ + "a81JfDQi0n7XT91ieJ6G:[C_1f\>MN3=[g3:L=V=C[LDImi`3>F[4Di7MlhG" + A$ = A$ + "?=\Uli]R173bg3=GkC#;eb\LMUWX]ZoBYjAZZmaS[1K>[hMW9_UAFP#2hJ" + A$ = A$ + "8P6eEFD^gfLNm_[7C?PURU]UTnU\^=GIn7\_2bY[iL8TZ>cZf_?XJQLc;NXI" + A$ = A$ + "mSI=_jkiVR7E;O>SSOYcDn:h] "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + CASE "icon.png" + v& = _NEWIMAGE(32, 32, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haIeFf5BC5667_;S8J1BB1Qd=maeR#F4BHGdTnJ:U#UA1FT2A5IgTcnfXlRX" + A$ = A$ + "KBF^U3Vd7<]BX9edZ5^Ma\878S1U:E\iLP7gBg\JfnhYcoUMhhIWcnZ]3d;l" + A$ = A$ + "3>kmmiio?H?k\cQ8J9doYHIDSe0TK_>llf]eHgKM#UJFQO0^6kEXm>i\ON]G" + A$ = A$ + "clQ3eT_m>glc^_21mPNcE_^l=DYWiYEfo2ch\b=?lS<#FIZGV#CDLK_nhJZjN[DTIL^1b" + A$ = A$ + "2IR\CUkgmEcEZBgZmT_l:4T=L8UoFko8M:E_G`dnXKKYAAM0F?RF3LT]n__m;B" + A$ = A$ + "lGlgekKUll]" + A$ = A$ + "ahnl3o#KbZOhh4?^<:Hh09nL\haXKmZjUEoH_V=YRR4mGLcTcn\M8[n1]K]9" + A$ = A$ + "^k;WN^9Y^ML7Ie?`TC]LW5=F4Igo^jX8JHgF8Q;ib?Hoj;QL7hC5E?E#\_WWXWmGDYK=9N" + A$ = A$ + ">e9=^I9[1>Tb_;Of;kP6F_[DihO1T=L8UO`gW?hBkdnUJI_J;>]_[GV2b2IR" + A$ = A$ + "\CUKn "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + CASE "tick_warning.png" + v& = _NEWIMAGE(64, 64, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haIcK]7RFE45gEgMeMMGM]G#YAY59DDI2eDIB4hSa8b^H\_^4`?[bKWLOaO[Q#URfdE?Z#8WJb" + A$ = A$ + "`o?32SS`;jm]o[8aA9lV4VE17IakjW;ha;FlNURHcP9l=73hcJlW4^5Q=gS" + A$ = A$ + "4hm:m]cRgA\Z[nO?jRdf>2Q]AHM4V_[`LHSfSQCXA_]??2_1Q=k:ne=VR`g\" + A$ = A$ + "hmJlG;KWVgUgoA;2KI]463QCF8cD16k>:2;cc]iE_beldl>la^YdG8NWKcDc" + A$ = A$ + "Q^oE2=AH06nFm^F>V3fXL=5=j3QWP`gU3k0iJQe3[fI?OH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LKA\" + A$ = A$ + "ci8\aD>G6IXD`" + A$ = A$ + "k#WEhA\gUnl5m[;2iLCAjgN4m;Uj[C_olmcc=WEIPgig5cJon0N1EoTeo7dA" + A$ = A$ + "FkE0SI9hN;N?DMFYAYPgUe[de5af1hjc:Dmo1g8Vo`_7F2fm" + A$ = A$ + "R4b9DmoajJ=98;>_`jR`kU[c;DbkFka7SmkJ^F0cZnoHmGG2b3H6^FbG]Wl^" + A$ = A$ + "\fOnk4\enkJNL?;W#eo7?>NB963Te1UeiaEZhMiH]DNN7Pgo5I<=[jo[G2k9" + A$ = A$ + "Fmd`0eRHODnEiPgUfn[WX]eT#nbjEBGoOQZ5:0[g=BROcEhLIec[D:cW70O[" + A$ = A$ + "9k8AKJW:k8T^IOG^nUl<41FBRj30kYfD3HgiQg3EKBSgUN=_bS9ea_\>WHMM" + A$ = A$ + "Pae=]\M[?7j60k9:>k=W;NN0Q0\YcfEHhG^noBaoU]" + A$ = A$ + "3a0[cD?EPmL2cIPcV8Um2>5lh2kaaNWab9`kZPcLTck#>_I:iOXoFI3Q#Og4bi6aL\YDkaUJPjgB^OQ" + A$ = A$ + "QZA#;N_JGh_aT#?oWbgZ3NWf7f5_nKK;0[]nB4^DQNi_mel`kMe7_BQoe[QX" + A$ = A$ + "W75G;W;1i#Li^2_[e^:1naaLj=jJMM6X7GVUm5:_cljklkJZG3Y6EKdmk" + A$ = A$ + ":L5nnC#=T^9O<1ke8Gk1H_5aL8hK82SM`i3Qm "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + CASE "srt_logo_16.png" + v& = _NEWIMAGE(75, 16, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haIcK]7RFE45gEgMeMMGM]G#YAU59DDI2mdLR0OTiJf3B8T#1CYb2\Wm\cmi:P>kAW4X;Z[am[8BKdXK468QY#hI9\12kP`" + A$ = A$ + "?#hG8LH2o8QMChm8\D2CS``9LRATMaHOM9POFUg>inRoF3Q:5]Y[NDQ#>eTQ" + A$ = A$ + "oOV46;QGdkKoGARSBh=9<92W_B75SmQkG]:6E;QN8nO8fdCOkT]Y>U\K`7gT" + A$ = A$ + "fdH8\ifPo63kd7;ZGYgD\_jm]A>>XJooW7?`nN=1R?bneCAO`eG7Q]F6mK=f" + A$ = A$ + ";QaAXGNK#bE\m9mm^[lm:mG;7KT5_G_Bf=8^N84njfAoFS3AHl:oZGAhmZmn" + A$ = A$ + "#8OgRg[D4;PbRge?G`SG\hm:5aV1AhK>6`Weh?9L[2K^79" + A$ = A$ + "`kEjKW5_SHEGmoND5Y]M42KS`j8=_;_oSF4fbJ9gVYT3" + A$ = A$ + "Mo[4JR#o=l]jM]L<7\AiJ:Jd72?1Q_;7f1be2[7F]cNn`\NN_Fo_O\LXC`EW" + A$ = A$ + "PBfjHO3^FolF?5G7JM8ILJfi`NN7AO[`kSeZnOQVWWS?GKRj1lb=5`FUL:[O" + A$ = A$ + ";N?UeQ0^H2OBRffdmmYK^F_F#EZh1_F0[SDiLmh9N^FihiRQg3UoQ\?c8AKl" + A$ = A$ + "n2HOeY\?FfL>T7:1inl:iF>im#ie1lP963J83McbFVgdCUPl^KAoiHFiTg3U" + A$ = A$ + "G7gWQWPmna2oGJOEZR[3<1I]T>HNGWG7`3TPM?3EOdnN:SkGaa0l^>_^^kom" + A$ = A$ + "m4afo7E<\BG;GKJ4AjoQ5]Wmm>BNWc[C63gM4OH>2KB?6N?Ajke[JO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Q=Vbib8S1=UQo^HFkg7`;XjW\noP>b" + A$ = A$ + "J_2H0GOFQZo?PaWPimbei6al7nm#C`^G" + A$ = A$ + "T#>QZo?FG[91Iai5FG4N_LMNQBNgJ?nH\OGce2HFeo7[ojB#N0CgeBnZmTgU" + A$ = A$ + "encOWP]f?GcSkIi4ZnohaaCX\>?^B5_;7[Ubck0ln_8SYIEoOmBH?a" + A$ = A$ + "ZW66XF4kSb_:7l^dfOm4]]V4bGF_Bjjo;D]#1Hm^ABlK^2W;[NNUBInl0hK=" + A$ = A$ + "I79JCkDI7Qd=kkbe_TWQ8`BBDO0H?eVB0k>?lNXJCJL^d[iENnUei4[[3" + A$ = A$ + "<^^YU]Kmi#g0H?AaI_M9^hi142`V>7GQaDO#>emFM]^NHbRgSI7bf?eLJ7K2\ol8WTccEH^LLVdhK0L_5Y^FJ0nEckPOijo;5oGf" + A$ = A$ + ">43\>CmD1fc9KRDf;hD`S;\cHeWXNNZD0?o4h]g_4IcU2P_79ig7INZ;" + A$ = A$ + "eDAXliak47kM6;W0_[2>cA>_3ilVYToQnKU=42mMC8WK4caVB]7GZ1ZO;in5" + A$ = A$ + "6Z61]hmZMQo6C2mlO:O[>hMJW_;NmgfF0FKmU8Li2mbOk[iQgkZ?NU2o[G3A" + A$ = A$ + "??:^F>G2bQh:M5NG[ME2lIlMRSidKdejj<#?^<;k;DNWiegigeD_6B=ZfXkg" + A$ = A$ + "Ei:lmWPJ8McnH2f[A^f3`N;Ri#`g#46kPc72kIh3i:l>VQVWVe]N_WRIOEYJ" + A$ = A$ + "CWnO[?8;%%%0" + btemp$ = "" + FOR i& = 1 TO LEN(A$) STEP 4: B$ = MID$(A$, i&, 4) + IF INSTR(1, B$, "%") THEN + FOR C% = 1 TO LEN(B$): F$ = MID$(B$, C%, 1) + IF F$ <> "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + CASE "srt_logo_17.png" + v& = _NEWIMAGE(85, 17, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haIWH]6REE55NUQ196Z#4EPUm2:99a41CZdODBQ2JFAiS09XT\R4RXSV>Z=JSiSVd:M:=;=[dkcN_Nl]G?fk3UUV45#iXi1d1=FlGRn71ZOoG0K2h]1F_0eog<=>:=V" + A$ = A$ + "Q;#F\^V`H:d8#F3hC]CNH>NdOF2L6:3VCSdc#[ATSB7o0`Q0n2jVPNjTeG0m" + A$ = A$ + ":dKQaZ7`U^=\fCbf_7m4D:X1CUC7C\[WRF:;;2bI<#^iP" + A$ = A$ + "=W3?77?V_8[b0nM3I\KP5:_gW65TCG`OcQi>9bQ>8c;NR\JPN40RAFii:1F5" + A$ = A$ + "#;2F=?n^`J3GW;]MFo>0NRoVU]a9[UMgQ<\^oNJMHMKTgc8JnRMG1VQWf6oK" + A$ = A$ + "H?G5;O7<;?IOeU>2nmU`jgC\U0Pg3h30NOP]`oNhH?[;`oiHk?;hFElB=0;V" + A$ = A$ + "f1c1AbdSVJ9id5ali3T`G>8`aelYb_Z6X6J:\>DXJPjTmnD2ZS]im[e_7]Gf" + A$ = A$ + "?L5o8;c[m2ooQ>dP4^[=Sa?5dAOUhV#k8#lkb" + A$ = A$ + "1F0SARmY;`lIDlX3MFX_[Pf?J;hg7[8n" + A$ = A$ + "g=N^kQ7cEhkDlkW3KcnR^ZVnDHo_0TaLaHU9HfH_Ja0M9nW" + A$ = A$ + "bVn#>g^93Mk1Oef?ShdeI=0jk`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ASW" + A$ = A$ + "R>SDB>=55m=565Noi=lU_1i4S6fm9PFn9ll>hJN=I`?Z_cg5mG5knh2Debn:D__JnKb5fg9ZgZj>JNhV=Qe" + A$ = A$ + "3_GMm\BaYQmc7:NnShi9`cal_L]S%%h1" + btemp$ = "" + FOR i& = 1 TO LEN(A$) STEP 4: B$ = MID$(A$, i&, 4) + IF INSTR(1, B$, "%") THEN + FOR C% = 1 TO LEN(B$): F$ = MID$(B$, C%, 1) + IF F$ <> "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + CASE "srt_logo_18.png" + v& = _NEWIMAGE(85, 18, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haISHM5SEE55Mc7J<892ZH8::5A498UHR9R:A\RA8H2OXOa7nQJd_m3Cd?##" + A$ = A$ + "Y<=VfkfN_Q1#::838P:5AP8XAJ:5;DTF<1d5k4d1U3cI>dK9Wcl1nBPm3L#PM#g?>WfUc;RNGimA0nd" + A$ = A$ + "3QeNFAn3X9C=QaJFA]0i0^TZ7fHcd#YYCWDU[GWJEf;N?7;U7S52T7jW_8oV" + A$ = A$ + "mJJ0WcJ?f6`fW[1m]8VkT8?jG5N9#g[FXG4P4D#O^8P?1Ha:nDIl_" + A$ = A$ + "3[e\>OJSbik14XjKNiiTBfk^26>MOd:ajF3`20n8E^[2kB#RH" + A$ = A$ + "53DkZ?MDi\SA>E>F;`60F?`G3l=d#`Zj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(1, B$, "%") THEN + FOR C% = 1 TO LEN(B$): F$ = MID$(B$, C%, 1) + IF F$ <> "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + CASE "srt_logo_bottom.png" + v& = _NEWIMAGE(401, 30, 32) + m = _MEMIMAGE(v&) + A$ = "" + A$ = A$ + "haIkM^eLDLL57On:XGR]cSj[Pn:h4T#H38YER;24BP4>faQ#2P0\3fVH1bVH" + A$ = A$ + "1E^lP0QMhR0\L8?04L2;PQD18a55D>HRMYDK5K80B##BhR:6A1LBOJ]SB[cd" + A$ = A$ + "gVIWIWAXNMm_\m^MgcdMO>WOm]I40P7hTC>iTC>iTC>iTC>iTC>iTC>iTCU9" + A$ = A$ + "elRF8Z_3Cm`dP9FLcWUY[`4<3GO>C?GJgO" + A$ = A$ + "hTC>idd9aRKfK68nMFAmUfm7>iTC>=MB\hVG?34k>[X_>]k?Lb9W:?b[Gno0" + A$ = A$ + "2jiIbcBQY]CBnAU_hgKKihEbRK>J68fMFAgaBK_>ddo9f_KZ?FVb[`6CfeA<=dnLK5e_afjV9YZX`jRVjj]=HcQf?GdRn[>R#O\>6R\[" + A$ = A$ + "9=MUJ\Z`FgR:3AgHdj#ANDa#:EO#I]I5:fFTUH89AmDYmGJ7K?3c#\e7aVbD" + A$ = A$ + "U]NHR;4Vh;Shmo7o6M^858];dabYL>86I8;NAlHf;_eU1KY[g6N_]]=[EgKY" + A$ = A$ + ";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k=AlkOm=^1M_[AVR`gc^hjPQiKGk\GX" + A$ = A$ + "ce^6Yi5WcdbFjBhkO2VFlIJdf[A2`#Dm^CeF6R=_KYD5OQN]SK6RYjV]<4C?" + A$ = A$ + "3ff`#R3O#KI8XT5gXL`#BRjY\WCMY[7FJ7W?3b#lE>5i_G;j?5E55kgXnmbn" + A$ = A$ + "KoadB6Rohlahif\G8nRo^OGH]WJ:Gml_GfcgQ>Q[OUOIZS;PL4okACk1ODH8" + A$ = A$ + "5K[kDSMGWFf7ZSQ4fmAEfigBLM>2khM;ejV]<4Jk0MMn]UQDZnPQQQ8k\=E^" + A$ = A$ + "H8aMmDjkgM_Pc[M6aJJiDYYVMo=XBDFmgP:WLb9WLJ2e\k_5^Rbmg2GWLb9W" + A$ = A$ + "2QHa=gI68fMFAk>]k?Lb9WLJjTHa=O>Vnl<#lkdFo3Vn^YMoQC>iTCCW4;^9" + A$ = A$ + "ZWQYM`dGbd` "%" THEN C$ = C$ + F$ + NEXT: B$ = C$: END IF: FOR j = 1 TO LEN(B$) + IF MID$(B$, j, 1) = "#" THEN + MID$(B$, j) = "@": END IF: NEXT + FOR t% = LEN(B$) TO 1 STEP -1 + B& = B& * 64 + ASC(MID$(B$, t%)) - 48 + NEXT: X$ = "": FOR t% = 1 TO LEN(B$) - 1 + X$ = X$ + CHR$(B& AND 255): B& = B& \ 256 + NEXT: btemp$ = btemp$ + X$: NEXT + btemp$ = _INFLATE$(btemp$) + _MEMPUT m, m.OFFSET, btemp$: _MEMFREE m + __imageMEM& = _COPYIMAGE(v&): _FREEIMAGE v& + END SELECT +END FUNCTION + +SUB LoadImageMEM (This AS __UI_ControlTYPE, FileMEM$) + DIM PrevDest AS LONG, ErrorMessage$ + STATIC NotFoundImage AS LONG + + IF This.HelperCanvas <> 0 THEN _FREEIMAGE This.HelperCanvas + + IF FileMEM$ <> "" THEN + This.HelperCanvas = __imageMEM&(FileMEM$) + IF This.HelperCanvas >= -1 THEN + 'Maybe it's an .ICO file + This.HelperCanvas = IconPreview(FileMEM$) + IF This.HelperCanvas >= -1 THEN ErrorMessage$ = "Unable to load file:" + END IF + ELSE + IF FileMEM$ = "" THEN + 'Passing an empty file name can be used to clean the canvas + IF This.Type = __UI_Type_PictureBox THEN + This.HelperCanvas = _NEWIMAGE(This.Width, This.Height, 32) + END IF + ELSE + ErrorMessage$ = "Missing image file:" + END IF + END IF + + IF LEN(ErrorMessage$) THEN + IF NotFoundImage = 0 THEN NotFoundImage = __UI_LoadThemeImage("notfound.png") + + PrevDest = _DEST + This.HelperCanvas = _NEWIMAGE(This.Width, This.Height, 32) + _DEST This.HelperCanvas + _PRINTMODE _KEEPBACKGROUND + _FONT (This.Font) + CLS , _RGBA32(0, 0, 0, 0) + 'Place the "missing" icon + _PUTIMAGE (This.Width / 2 - _WIDTH(NotFoundImage) / 2, This.Height / 2 - _HEIGHT(NotFoundImage) / 2), NotFoundImage + + COLOR This.ForeColor + __UI_PrintString 5, 5, ErrorMessage$ + __UI_PrintString 5, 5 + uspacing&, FileMEM$ + _DEST PrevDest + Text(This.ID) = "" + ELSE + IF This.Type = __UI_Type_PictureBox OR This.Type = __UI_Type_Button OR This.Type = __UI_Type_MenuItem THEN + Text(This.ID) = FileMEM$ + END IF + END IF + This.Redraw = True +END SUB + diff --git a/source/loopy_srt_monitor.bas b/source/loopy_srt_monitor.bas new file mode 100644 index 0000000..9fbe04f --- /dev/null +++ b/source/loopy_srt_monitor.bas @@ -0,0 +1,2633 @@ +': This program uses +': InForm - GUI library for QB64 - v1.3 +': Fellippe Heitor, 2016-2020 - fellippe@qb64.org - @fellippeheitor +': https://github.com/FellippeHeitor/InForm +'----------------------------------------------------------- + +': Controls' IDs: ------------------------------------------------------------------ +OPTION _EXPLICIT +DIM SHARED LoopySRTMonitor AS LONG +DIM SHARED FileMenu AS LONG +DIM SHARED OptionsMenu AS LONG +DIM SHARED HelpMenu AS LONG +DIM SHARED SRT AS LONG +DIM SHARED Status AS LONG +DIM SHARED Settings AS LONG +DIM SHARED CurrentScene AS LONG +DIM SHARED DebugFrame AS LONG +DIM SHARED Stream1 AS LONG +DIM SHARED Stream2 AS LONG +DIM SHARED versionFrame AS LONG +DIM SHARED FileMenuExit AS LONG +DIM SHARED RMTPLB AS LONG +DIM SHARED clientsLB AS LONG +DIM SHARED VideoLB AS LONG +DIM SHARED AudioLB AS LONG +DIM SHARED InBytesLB AS LONG +DIM SHARED OutBytesLB AS LONG +DIM SHARED InBitssLB AS LONG +DIM SHARED OutBitssLB AS LONG +DIM SHARED TimeLB AS LONG +DIM SHARED rtmp_nacceptedLB AS LONG +DIM SHARED rtmp_codec_nclientsLB AS LONG +DIM SHARED rtmp_codec_videoLB AS LONG +DIM SHARED rtmp_codec_audioLB AS LONG +DIM SHARED rtmp_bytes_inLB AS LONG +DIM SHARED rtmp_bytes_outLB AS LONG +DIM SHARED rtmp_bw_inLB AS LONG +DIM SHARED rtmp_bw_outLB AS LONG +DIM SHARED rtmp_uptimeLB AS LONG +DIM SHARED InBytesDifferenceLB AS LONG +DIM SHARED StreamFailTimerLB AS LONG +DIM SHARED FailCountLB AS LONG +DIM SHARED ServerPingLB AS LONG +DIM SHARED UpdateIntervalLB AS LONG +DIM SHARED Kb_DiffLB AS LONG +DIM SHARED Timer_FailLB AS LONG +DIM SHARED Timer_Fail_CountLB AS LONG +DIM SHARED tPingOutLB AS LONG +DIM SHARED td_updateLB AS LONG +DIM SHARED BandwidthThresholdLB AS LONG +DIM SHARED StreamFailDelayLB AS LONG +DIM SHARED MultiCameraSwitchLB AS LONG +DIM SHARED Bandwidth_ThresholdLB AS LONG +DIM SHARED Stream_Fail_DelayLB AS LONG +DIM SHARED MultiCameraSwitchStatusLB AS LONG +DIM SHARED TimerLB AS LONG +DIM SHARED TimerSnapshotLB AS LONG +DIM SHARED td_displayVarLB AS LONG +DIM SHARED mouseXVarLB AS LONG +DIM SHARED mouseYVarLB AS LONG +DIM SHARED __ERRORLINEVarLB AS LONG +DIM SHARED Debug_TimerLB AS LONG +DIM SHARED Debug_Timer_SnapshotLB AS LONG +DIM SHARED td_displayLB AS LONG +DIM SHARED mouseXLB AS LONG +DIM SHARED mouseYLB AS LONG +DIM SHARED __ERRORLINELB AS LONG +DIM SHARED InBytesLB2 AS LONG +DIM SHARED InBytesDifferenceLB2 AS LONG +DIM SHARED failLB AS LONG +DIM SHARED multiStream1LB AS LONG +DIM SHARED Kb_Diff_stream1LB AS LONG +DIM SHARED Timer_Fail_Stream1LB AS LONG +DIM SHARED Scene_CurrentLB AS LONG +DIM SHARED PictureBox1 AS LONG +DIM SHARED InBytesLB3 AS LONG +DIM SHARED InBytesDifferenceLB3 AS LONG +DIM SHARED failLB2 AS LONG +DIM SHARED multiStream2LB AS LONG +DIM SHARED Kb_Diff_stream2LB AS LONG +DIM SHARED Timer_Fail_Stream2LB AS LONG +DIM SHARED OptionsMenuDebug AS LONG +DIM SHARED HelpMenuVisitWebsite AS LONG +DIM SHARED HelpMenuCheckForUpdates AS LONG +DIM SHARED OptionsMenuFullscreen AS LONG +DIM SHARED IndicatorLB AS LONG +DIM SHARED HelpMenuAbout AS LONG +DIM SHARED StatusLB AS LONG +DIM SHARED PictureBoxLogoBottom AS LONG +DIM SHARED OBSRemoteLB AS LONG +DIM SHARED OBS_RemoteLB AS LONG + +'InForm v1.3 or newer required else this section gets removed (InForm_Deleted.bas) +DEFINT A-Z +COMMON SHARED Error_Display AS STRING +COMMON SHARED Error_msg AS STRING +COMMON SHARED Ver AS STRING +COMMON SHARED VerDate AS STRING +COMMON SHARED bout AS STRING +COMMON SHARED tout AS STRING +COMMON SHARED BG_Count AS LONG +COMMON SHARED ConnErr +COMMON SHARED Refresh_Request +COMMON SHARED RefreshDisplayRequest +COMMON SHARED rtmp_uptime# +COMMON SHARED ba& +COMMON SHARED winstyle& +COMMON SHARED timerFree +COMMON SHARED BG AS DOUBLE +COMMON SHARED BG_New AS DOUBLE +COMMON SHARED BGA AS DOUBLE +COMMON SHARED __BGA AS _BYTE +COMMON SHARED SpaceLength AS INTEGER +COMMON SHARED ProgressCounter AS INTEGER +COMMON SHARED updateResult AS STRING +COMMON SHARED updateDisplay AS INTEGER +COMMON SHARED updateDisplayCounter AS INTEGER +COMMON SHARED verCheck AS STRING +COMMON SHARED CheckUpdateOnStartup AS STRING +COMMON SHARED file224 AS STRING +COMMON SHARED __FileStatusOutput AS _BYTE +COMMON SHARED FileStatusOutput AS STRING +COMMON SHARED outputBitrateFile AS STRING +COMMON SHARED outputStatusFile AS STRING +COMMON SHARED iniFeatures AS _BYTE +COMMON SHARED Debug AS _BYTE +COMMON SHARED q +COMMON SHARED Timer_Failed AS _BYTE +COMMON SHARED WebsocketMethod AS STRING +COMMON SHARED MediaSource1 AS STRING +COMMON SHARED MediaSource2 AS STRING +COMMON SHARED MediaSource1Time AS LONG +COMMON SHARED MediaSource2Time AS LONG +COMMON SHARED c34 AS STRING + +COMMON SHARED image_data() AS _UNSIGNED LONG +COMMON SHARED Scene_OK AS STRING +COMMON SHARED Scene_Fail AS STRING +COMMON SHARED Scene_Intro AS STRING +COMMON SHARED URL AS STRING +COMMON SHARED Port AS STRING +COMMON SHARED OBS_URL AS STRING +COMMON SHARED OBS_PW AS STRING +COMMON SHARED urlStream1 AS STRING +COMMON SHARED urlStream2 AS STRING +COMMON SHARED titleScene1 AS STRING +COMMON SHARED titleScene2 AS STRING +COMMON SHARED titleScene12 AS STRING +COMMON SHARED returnPreviousScene AS STRING +COMMON SHARED shell_obscommand_1 AS STRING +COMMON SHARED shell_obscommand_2 AS STRING +COMMON SHARED shell_nodejs_1 AS STRING +COMMON SHARED shell_nodejs_2 AS STRING + +COMMON SHARED config_dir AS STRING +COMMON SHARED obscommand_dir AS STRING +COMMON SHARED nodejs_dir AS STRING +COMMON SHARED temp_dir AS STRING +COMMON SHARED config_main AS STRING +COMMON SHARED obs_change_scene AS STRING +COMMON SHARED obs_get_scene AS STRING +COMMON SHARED obs_get_media1 AS STRING +COMMON SHARED obs_get_media2 AS STRING +COMMON SHARED filePrevious AS STRING +COMMON SHARED fileStat AS STRING +COMMON SHARED fileCheckVersion AS STRING +COMMON SHARED obscommand_file AS STRING + +COMMON SHARED Exe_OK AS _BYTE +COMMON SHARED Exe_Fail AS _BYTE +COMMON SHARED Exe_Fail_First AS _BYTE +COMMON SHARED Exe_Fail_First_Stream1 AS _BYTE +COMMON SHARED Exe_Fail_First_Stream2 AS _BYTE + +COMMON SHARED __MultiCameraSwitch AS _BYTE + +'Tooltips +COMMON SHARED rtmp_codec_video_level$ +COMMON SHARED rtmp_codec_video_profile$ +COMMON SHARED rtmp_codec_audio_channels$ +COMMON SHARED rtmp_codec_audio_samplerate$ +COMMON SHARED rtmp_codec_audio_profile$ +COMMON SHARED rtmp_codec_video_width$ +COMMON SHARED rtmp_codec_video_height$ +COMMON SHARED rtmp_codec_video_resolution$ +COMMON SHARED rtmp_codec_version$ +COMMON SHARED rtmp_codec_rtmp_version$ + +'Timer01 +COMMON SHARED mouseX +COMMON SHARED mouseY +COMMON SHARED Timer_Fail AS INTEGER +COMMON SHARED Timer_Fail_Count AS INTEGER +COMMON SHARED Timer_Fail_Stream1 AS INTEGER +COMMON SHARED Timer_Fail_Stream2 AS INTEGER +COMMON SHARED FullScreen AS _BYTE +COMMON SHARED BG +COMMON SHARED srt_warmup AS _BYTE +COMMON SHARED Port_Client$ +COMMON SHARED td_update# +COMMON SHARED timer1# +COMMON SHARED Debug_Timer# +COMMON SHARED __returnPreviousScene +COMMON SHARED returnPreviousSceneTime AS _BYTE +COMMON SHARED returnFirstCheck +COMMON SHARED filePrevious +COMMON SHARED PUT_Refresh +COMMON SHARED NoKill +COMMON SHARED file92$ +COMMON SHARED file96$ +COMMON SHARED findSceneName +COMMON SHARED findSceneName2 +COMMON SHARED streamsUp$ +COMMON SHARED previousScene$ +COMMON SHARED previousSceneDisplay$ +COMMON SHARED rtmp_naccepted$ +COMMON SHARED rtmp_bytes_in$ +COMMON SHARED rtmp_bytes_out$ +COMMON SHARED rtmp_bw_in$ +COMMON SHARED rtmp_bw_out$ +COMMON SHARED rtmp_codec_video$ +COMMON SHARED rtmp_codec_audio$ +COMMON SHARED rtmp_codec_nclients$ +COMMON SHARED rtmp_codec_nclients# +COMMON SHARED rtmp_codec_nclients_temp# +COMMON SHARED a$ +COMMON SHARED a2$ +COMMON SHARED d$ +COMMON SHARED I +COMMON SHARED i2 +COMMON SHARED i3 +COMMON SHARED stats_rtmp.xml$ +COMMON SHARED tPing1# +COMMON SHARED client +COMMON SHARED tPing2# +COMMON SHARED tPingOut# +COMMON SHARED EOL$ +COMMON SHARED Timer_GET! +COMMON SHARED __MultiCameraSwitch +COMMON SHARED Stream% +COMMON SHARED multiStream1# +COMMON SHARED multiStream2# +COMMON SHARED pos_xml_m& +COMMON SHARED Kb_Diff# +COMMON SHARED Bandwidth_Threshold +COMMON SHARED rtmp_bytes_in# +COMMON SHARED rtmp_bytes_in_temp1# +COMMON SHARED rtmp_bytes_in_temp2# +COMMON SHARED Stream_Fail_Delay +COMMON SHARED SD +COMMON SHARED Kb_Diff_stream1# +COMMON SHARED multiStream1_temp1# +COMMON SHARED multiStream1_temp2# +COMMON SHARED Kb_Diff_stream2# +COMMON SHARED multiStream2_temp1# +COMMON SHARED multiStream2_temp2# +COMMON SHARED Scene_OK +COMMON SHARED Scene_Fail +COMMON SHARED Scene_Intro +COMMON SHARED Exe_OK +COMMON SHARED Scene_Current$ +COMMON SHARED Exe_Fail +COMMON SHARED lastStreamUp$ +COMMON SHARED returnPreviousSceneRemember +COMMON SHARED titleScene1 +COMMON SHARED titleScene2 +COMMON SHARED titleScene12 +COMMON SHARED OBS_URL +COMMON SHARED OBS_PW +COMMON SHARED Exe_Fail_First +COMMON SHARED Timer_Fail_First +COMMON SHARED Timer_Fail_First_Stream1 +COMMON SHARED Exe_Fail_First_Stream1 +COMMON SHARED Exe_Fail_First_Stream2 +COMMON SHARED Timer_Fail_First_Stream +COMMON SHARED Timer_Fail_First_Stream2 +COMMON SHARED td_display# + +'Misc +COMMON SHARED FGwin AS LONG +COMMON SHARED file4_var AS STRING +COMMON SHARED file4_val AS STRING +COMMON SHARED BSOD AS LONG +COMMON SHARED OptionsMenuAlwaysOnTop AS INTEGER +COMMON SHARED AlwaysOnTop AS INTEGER +COMMON SHARED Myhwnd AS _UNSIGNED LONG +COMMON SHARED y AS LONG +COMMON SHARED HWND_TOPMOST AS LONG +COMMON SHARED SWP_NOMOVE AS LONG +COMMON SHARED SWP_NOSIZE AS LONG +COMMON SHARED SWP_SHOWWINDOW AS LONG +COMMON SHARED HWND_BOTTOM AS LONG +COMMON SHARED SWP_NOACTIVATE AS LONG +COMMON SHARED About AS INTEGER +COMMON SHARED Answer AS INTEGER +COMMON SHARED Pt AS LONG +COMMON SHARED x2 AS INTEGER +COMMON SHARED Px AS INTEGER +COMMON SHARED Py AS INTEGER +COMMON SHARED NULL AS INTEGER +COMMON SHARED xHeader1 AS STRING +COMMON SHARED xHeader2 AS STRING +COMMON SHARED xHeader3 AS STRING +COMMON SHARED xHeader4 AS STRING +COMMON SHARED xHeader5 AS STRING +COMMON SHARED xHeader6 AS STRING +COMMON SHARED xHeader7 AS STRING +COMMON SHARED xHeader8 AS STRING +COMMON SHARED xHeader9 AS STRING +COMMON SHARED x AS STRING +COMMON SHARED l AS INTEGER +COMMON SHARED rtmp_naccepted AS DOUBLE +COMMON SHARED rtmp_bytes_out AS DOUBLE +COMMON SHARED rtmp_bw_in AS DOUBLE +COMMON SHARED rtmp_bw_out AS DOUBLE + +'OnLoad +COMMON SHARED config_dir +COMMON SHARED config_main +COMMON SHARED URL +COMMON SHARED Port +COMMON SHARED fileStat +COMMON SHARED Desktop_Width_Position +COMMON SHARED Desktop_Height_Position +COMMON SHARED file4$ +COMMON SHARED EqualFound +COMMON SHARED MultiCameraSwitch$ +COMMON SHARED urlStream1 +COMMON SHARED urlStream2 +COMMON SHARED returnPreviousScene +COMMON SHARED returnPreviousSceneRemember$ + + +'SUB Indicators +COMMON SHARED AliveIndicator! +COMMON SHARED __BGA +COMMON SHARED BGA +COMMON SHARED aioffsetX +COMMON SHARED aioffsetY + +'SUB TIMEms +COMMON SHARED tout +COMMON SHARED tout# +COMMON SHARED tout2# +COMMON SHARED toutint# +COMMON SHARED toutdec# +COMMON SHARED plus + +'SUB calcbw +COMMON SHARED bout +COMMON SHARED bout2# +COMMON SHARED bout# +COMMON SHARED boutnodec +COMMON SHARED bits +COMMON SHARED boutint# +COMMON SHARED boutm$ +COMMON SHARED boutdec# +COMMON SHARED boutdec$ + +'FUNC calc_srt$ +COMMON SHARED convertTime# +COMMON SHARED includeSec +COMMON SHARED t_hr +COMMON SHARED t_min +COMMON SHARED t_sec + +COMMON SHARED RED_WARNING AS _UNSIGNED LONG +COMMON SHARED RED_FAIL AS _UNSIGNED LONG +COMMON SHARED GREEN_OK AS _UNSIGNED LONG + +RED_WARNING = _RGB32(205, 64, 32) +RED_FAIL = _RGB32(255, 32, 16) +GREEN_OK = _RGB32(123, 151, 163) + +q = _EXIT + +PUT_Fail: +IF ERR THEN CLS: _PRINTSTRING (20, 30), "ERR, _ERRORLINE:" + STR$(ERR) + "," + STR$(_ERRORLINE): _AUTODISPLAY: _DELAY 3: IF PUT_Refresh = 1 THEN PUT_Refresh = 0: Refresh_Request = 1: RESUME NEXT ELSE RESUME NEXT +'END (InForm_Deleted.bas) + +': External modules: --------------------------------------------------------------- +'$INCLUDE:'InForm\InForm.ui' +'$INCLUDE:'InForm\xp.uitheme' +'$INCLUDE:'loopy_srt_monitor.frm' + +': Event procedures: --------------------------------------------------------------- +': External modules: --------------------------------------------------------------- +'$INCLUDE:'loopy_srt_monitor_light.frm' +'$INCLUDE:'image.png.MEM' +': --------------------------------------------------------------------------------- +SUB __UI_BeforeInit + $VERSIONINFO:CompanyName=loopy750 + $VERSIONINFO:ProductName=Loopy SRT Monitor + $VERSIONINFO:Comments=Monitor SRT Streams + $VERSIONINFO:FileDescription=Loopy SRT Monitor + $VERSIONINFO:FILEVERSION#=0,9,0,0 + $VERSIONINFO:PRODUCTVERSION#=0,9,0,0 + $CHECKING:ON + $RESIZE:OFF + IF ERR = 0 THEN + $EXEICON:'.\icon.ico' + _TITLE "Loopy SRT Monitor - loopy750" + END IF + Ver = "0.9.0" + VerDate = "05/21" + + 'Always on top : ------------------------------------------------------------------ + CONST HWND_TOPMOST%& = -1 + CONST SWP_NOSIZE%& = &H1 + CONST SWP_NOMOVE%& = &H2 + CONST SWP_SHOWWINDOW%& = &H40 + + DECLARE DYNAMIC LIBRARY "user32" + FUNCTION SetWindowPos& (BYVAL hWnd AS LONG, BYVAL hWndInsertAfter AS _OFFSET, BYVAL X AS INTEGER, BYVAL Y AS INTEGER, BYVAL cx AS INTEGER, BYVAL cy AS INTEGER, BYVAL uFlags AS _OFFSET) + FUNCTION GetForegroundWindow& 'find currently focused process handle + END DECLARE + + 'DIM Myhwnd AS _UNSIGNED LONG 'Commented until Always on top can work + 'Myhwnd = _WINDOWHANDLE + + FGwin& = GetForegroundWindow& + '---------------------------------------------------------------------------------- +END SUB + +SUB __UI_OnLoad + 'SRT + SetCaption rtmp_nacceptedLB, "-" + SetCaption rtmp_codec_nclientsLB, "-" + SetCaption rtmp_codec_videoLB, "-" + SetCaption rtmp_codec_audioLB, "-" + SetCaption rtmp_bytes_inLB, "-" + SetCaption rtmp_bytes_outLB, "-" + SetCaption rtmp_bw_inLB, "-" + SetCaption rtmp_bw_outLB, "-" + SetCaption rtmp_uptimeLB, "-" + 'Status + SetCaption Kb_DiffLB, "-" + SetCaption Timer_FailLB, "-" + SetCaption Timer_Fail_CountLB, "-" + SetCaption tPingOutLB, "-" + SetCaption td_updateLB, "-" + 'Settings + SetCaption Bandwidth_ThresholdLB, "-" + SetCaption Stream_Fail_DelayLB, "-" + SetCaption MultiCameraSwitchStatusLB, "-" + SetCaption OBS_RemoteLB, "-" + 'Stream #1 + SetCaption multiStream1LB, "-" + SetCaption Kb_Diff_stream1LB, "-" + SetCaption Timer_Fail_Stream1LB, "-" + 'Stream #2 + SetCaption multiStream2LB, "-" + SetCaption Kb_Diff_stream2LB, "-" + SetCaption Timer_Fail_Stream2LB, "-" + 'Current Scene + SetCaption Scene_CurrentLB, "-" + 'Debug + SetCaption Debug_TimerLB, "-" + SetCaption Debug_Timer_SnapshotLB, "-" + SetCaption td_displayLB, "-" + SetCaption mouseXLB, "-" + SetCaption mouseYLB, "-" + SetCaption __ERRORLINELB, "-" + 'Debug titles + SetCaption TimerLB, "-" + SetCaption TimerSnapshotLB, "-" + SetCaption td_displayVarLB, "-" + SetCaption mouseXVarLB, "-" + SetCaption mouseYVarLB, "-" + SetCaption __ERRORLINEVarLB, "-" + + 'Variables + c34 = CHR$(34) + BG = _RGB(32, 32, 32) + Exe_OK = 1 + URL = "127.0.0.1" + Port = "8080" + fileStat = "stat" + + 'File variables + config_dir = _DIR$("documents") + "Loopy SRT Monitor" + obscommand_dir = _DIR$("documents") + "Loopy SRT Monitor\OBSCommand" + nodejs_dir = _DIR$("documents") + "Loopy SRT Monitor\js" + temp_dir = _DIR$("documents") + "Loopy SRT Monitor\Temp" + config_main = config_dir + "\config.ini" + obs_change_scene = config_dir + "\js\obs_change_scene.js" + obs_get_scene = config_dir + "\js\obs_get_scene.js" + obs_get_media1 = config_dir + "\js\obs_get_media1.js" + obs_get_media2 = config_dir + "\js\obs_get_media2.js" + obscommand_file = obscommand_dir + "\OBSCommand.exe" + filePrevious = temp_dir + "\returnPreviousScene.tmp" + fileCheckVersion = temp_dir + "\checkversion.txt" + outputBitrateFile = temp_dir + "\outputBitrate.txt" + outputStatusFile = temp_dir + "\outputStatus.txt" + + IF _DIREXISTS(config_dir) THEN IF NOT _DIREXISTS(temp_dir) THEN MKDIR temp_dir + IF _FILEEXISTS(filePrevious) THEN KILL filePrevious + _ALLOWFULLSCREEN OFF + RANDOMIZE TIMER + + 'Check config + Bandwidth_Threshold = 25 + Stream_Fail_Delay = 10 + Desktop_Width_Position = 160 + Desktop_Height_Position = 100 + IF NOT _FILEEXISTS(config_main) THEN RefreshDisplayRequest = 1: Error_msg$ = "- Unable to read config file in the " + c34 + "Documents\Loopy SRT Monitor" + c34 + " folder" + CHR$(10) + "- File " + c34 + config_main + c34 + " cannot be accessed, check if it exists. (#1)": _DELAY 3 + IF _FILEEXISTS(config_main) THEN + OPEN config_main FOR INPUT AS #4 'Basic INI management, nothing fancy needed + DO + LINE INPUT #4, file4$ + IF LEFT$(file4$, 1) <> "#" AND LEFT$(file4$, 1) <> ";" AND LEFT$(file4$, 1) <> "" THEN + EqualFound = INSTR(file4$, "=") + IF EqualFound THEN + file4_var$ = LEFT$(file4$, INSTR(file4$, "=") - 1) + file4_val$ = MID$(file4$, INSTR(file4$, "=") + 1) + file4_var$ = LCASE$(file4_var$) + 'IF file4_var$ = "bandwidththreshold" THEN Bandwidth_Threshold = VAL(file4_val$) + IF file4_var$ = "streamfaildelay" THEN Stream_Fail_Delay = VAL(file4_val$) + IF file4_var$ = "xwindow" THEN Desktop_Width_Position = VAL(file4_val$) + IF file4_var$ = "ywindow" THEN Desktop_Height_Position = VAL(file4_val$) + IF file4_var$ = "sceneok" THEN Scene_OK = file4_val$ + IF file4_var$ = "scenefail" THEN Scene_Fail = file4_val$ + IF file4_var$ = "sceneintro" THEN Scene_Intro = file4_val$ + 'IF file4_var$ = "serverip" THEN URL = file4_val$ + 'IF file4_var$ = "serverport" THEN Port = file4_val$ + IF file4_var$ = "mediasource1" THEN MediaSource1 = file4_val$ + IF file4_var$ = "mediasource2" THEN MediaSource2 = file4_val$ + IF file4_var$ = "websocketaddress" THEN OBS_URL = file4_val$ + IF file4_var$ = "websocketpassword" THEN OBS_PW = file4_val$ + 'IF file4_var$ = "websocketmethod" THEN WebsocketMethod = file4_val$ + IF file4_var$ = "filestatusoutput" THEN FileStatusOutput = file4_val$ + IF file4_var$ = "checkupdateonstartup" THEN CheckUpdateOnStartup = file4_val$ + IF file4_var$ = "multicameraswitch" THEN MultiCameraSwitch$ = file4_val$ + 'IF file4_var$ = "urlstream1" THEN urlStream1 = file4_val$ + 'IF file4_var$ = "urlstream2" THEN urlStream2 = file4_val$ + IF file4_var$ = "titlescene1" THEN titleScene1 = file4_val$ + IF file4_var$ = "titlescene2" THEN titleScene2 = file4_val$ + IF file4_var$ = "titlescene12" THEN titleScene12 = file4_val$ + IF file4_var$ = "returnpreviousscene" THEN returnPreviousScene = file4_val$ + IF file4_var$ = "returnprevioussceneremember" THEN returnPreviousSceneRemember$ = file4_val$ + END IF + END IF + LOOP UNTIL EOF(4) + CLOSE #4 + + IF Scene_OK = "" OR Scene_Fail = "" OR Scene_Intro = "" OR OBS_URL = "" OR OBS_PW = "" OR FileStatusOutput = "" OR CheckUpdateOnStartup = "" OR MultiCameraSwitch$ = "" OR titleScene1 = "" OR titleScene2 = "" OR titleScene12 = "" OR returnPreviousScene = "" OR returnPreviousSceneRemember$ = "" THEN verCheck$ = "Settings missing in 'config.ini' file, check 'readme.txt'...": iniFeatures = 1 + + IF Bandwidth_Threshold < 0 THEN + Bandwidth_Threshold = 0 + ELSEIF Bandwidth_Threshold > 9999 THEN Bandwidth_Threshold = 9999 + END IF + + IF Stream_Fail_Delay < 3 THEN + Stream_Fail_Delay = 3 + ELSEIF Stream_Fail_Delay > 99 THEN Stream_Fail_Delay = 99 + END IF + + IF Desktop_Width_Position < -(_DESKTOPWIDTH * 4) THEN Desktop_Width_Position = -(_DESKTOPWIDTH * 4) + IF Desktop_Width_Position > (_DESKTOPWIDTH * 4) THEN Desktop_Width_Position = (_DESKTOPWIDTH * 4) + IF Desktop_Width_Position < -9999 THEN Desktop_Width_Position = -9999 + + IF Desktop_Height_Position < -(_DESKTOPHEIGHT * 4) THEN Desktop_Height_Position = -(_DESKTOPHEIGHT * 4) + IF Desktop_Height_Position > (_DESKTOPHEIGHT * 4) THEN Desktop_Height_Position = (_DESKTOPHEIGHT * 4) + IF Desktop_Height_Position < -9999 THEN Desktop_Height_Position = -9999 + + IF Desktop_Width_Position < -9999 AND Desktop_Height_Position = -9999 THEN + ELSE + _SCREENMOVE Desktop_Width_Position, Desktop_Height_Position + END IF + END IF + IF MultiCameraSwitch$ = "true" THEN __MultiCameraSwitch = 1 ELSE __MultiCameraSwitch = 0 + IF returnPreviousScene = "true" THEN __returnPreviousScene = 1 ELSE __returnPreviousScene = 0 + IF FileStatusOutput = "true" THEN __FileStatusOutput = 1 ELSE __FileStatusOutput = 0 + IF returnPreviousSceneRemember$ = "true" THEN returnPreviousSceneRemember = 1 ELSE returnPreviousSceneRemember = 0 + IF __MultiCameraSwitch = 0 THEN __returnPreviousScene = 0: returnPreviousSceneRemember = 0 + WebsocketMethod = "nodejs" + IF WebsocketMethod <> "nodejs" THEN WebsocketMethod = "obscommand" + + IF WebsocketMethod = "nodejs" AND NOT _DIREXISTS(nodejs_dir) THEN + Error_msg$ = "- Folder " + c34 + nodejs_dir + c34 + " cannot be accessed, check if it exists. (#2)" + ELSEIF WebsocketMethod = "obscommand" AND NOT _DIREXISTS(obscommand_dir) THEN + Error_msg$ = "- Folder " + c34 + obscommand_dir + c34 + " cannot be accessed, check if it exists. (#2)" + END IF + IF Error_msg$ <> "" THEN + _DELAY 1 + CLS , _RGB(1, 120, 220) + BSOD& = __imageMEM&("face_sad_x.png") + _PUTIMAGE (50, 50)-(107, 162), BSOD& + _FREEIMAGE BSOD& + COLOR _RGB(254, 254, 254), _RGB(1, 120, 220) + _PRINTSTRING (37, 12 * 18), "Program encountered an error and needs to restart." + IF INSTR(Error_msg$, CHR$(10)) >= 1 THEN + _PRINTSTRING (37, 14 * 18), LEFT$(Error_msg$, INSTR(Error_msg$, CHR$(10)) - 1) + _PRINTSTRING (37, 15 * 18), MID$(Error_msg$, INSTR(Error_msg$, CHR$(10)) + 1) + ELSE + _PRINTSTRING (37, 14 * 18), Error_msg$ + END IF + _PRINTSTRING (37, 22 * 18), "Program will exit shortly" + _DISPLAY + _DELAY 15 + SYSTEM + END IF + + shell_obscommand_1 = "%ComSpec% /C " + c34 + c34 + obscommand_file + c34 + " /server=" + OBS_URL + " /password=" + OBS_PW + " /scene=" + c34 + shell_obscommand_2 = c34 + c34 + shell_nodejs_1 = "%ComSpec% /C node.exe " + c34 + obs_change_scene + c34 + " " + shell_nodejs_2 = "" + + IF WebsocketMethod = "nodejs" THEN + OPEN obs_change_scene FOR OUTPUT AS #64 + PRINT #64, "// This file has been automatically generated" + PRINT #64, "// Any changes made will be lost" + PRINT #64, "// https://github.com/loopy750/SRT-Stats-Monitor" + PRINT #64, "const OBSWebSocket = require('obs-websocket-js');" + PRINT #64, "const obs = new OBSWebSocket();" + PRINT #64, "const WebsocketAddress = " + c34 + OBS_URL + c34 + ";" + PRINT #64, "const WebsocketPassword = " + c34 + OBS_PW + c34 + ";" + PRINT #64, "var sceneName_1 = process.argv[2];" + PRINT #64, "var sceneName_2 = process.argv[3];" + PRINT #64, "var sceneName_3 = process.argv[4];" + PRINT #64, "var sceneName_4 = process.argv[5];" + PRINT #64, "var sceneName_5 = process.argv[6];" + PRINT #64, "var sceneName_6 = process.argv[7];" + PRINT #64, "var sceneName_7 = process.argv[8];" + PRINT #64, "var sceneName_8 = process.argv[9];" + PRINT #64, "if (sceneName_2 === undefined) { var sceneName_2 = '' } else { var sceneName_1 = sceneName_1 + " + c34 + " " + c34 + " }" + PRINT #64, "if (sceneName_3 === undefined) { var sceneName_3 = '' } else { var sceneName_2 = sceneName_2 + " + c34 + " " + c34 + " }" + PRINT #64, "if (sceneName_4 === undefined) { var sceneName_4 = '' } else { var sceneName_3 = sceneName_3 + " + c34 + " " + c34 + " }" + PRINT #64, "if (sceneName_5 === undefined) { var sceneName_5 = '' } else { var sceneName_4 = sceneName_4 + " + c34 + " " + c34 + " }" + PRINT #64, "if (sceneName_6 === undefined) { var sceneName_6 = '' } else { var sceneName_5 = sceneName_5 + " + c34 + " " + c34 + " }" + PRINT #64, "if (sceneName_7 === undefined) { var sceneName_7 = '' } else { var sceneName_6 = sceneName_6 + " + c34 + " " + c34 + " }" + PRINT #64, "if (sceneName_8 === undefined) { var sceneName_8 = '' } else { var sceneName_7 = sceneName_7 + " + c34 + " " + c34 + " }" + PRINT #64, "obs.connect({ address: WebsocketAddress, password: WebsocketPassword })" + PRINT #64, ".then(() => { return obs.send('GetSceneList'); })" + PRINT #64, ".then(data => { data.scenes.forEach(scene => {" + PRINT #64, " if (scene.name !== data.currentScene) {" + PRINT #64, " // console.log(`${scene.name}`);" + PRINT #64, " obs.send('SetCurrentScene', {" + PRINT #64, " 'scene-name': sceneName_1 + sceneName_2 + sceneName_3 + sceneName_4 + sceneName_5 + sceneName_6 + sceneName_7 + sceneName_8" + PRINT #64, " });" + PRINT #64, " }" + PRINT #64, " });" + PRINT #64, "})" + PRINT #64, ".then(() => { obs.disconnect(); });" + CLOSE #64 + + OPEN obs_get_scene FOR OUTPUT AS #72 + PRINT #72, "// This file has been automatically generated" + PRINT #72, "// Any changes made will be lost" + PRINT #72, "// https://github.com/loopy750/SRT-Stats-Monitor" + PRINT #72, "const OBSWebSocket = require('obs-websocket-js');" + PRINT #72, "const obs = new OBSWebSocket();" + PRINT #72, "const WebsocketAddress = " + c34 + OBS_URL + c34 + ";" + PRINT #72, "const WebsocketPassword = " + c34 + OBS_PW + c34 + ";" + PRINT #72, "obs.connect({ address: WebsocketAddress, password: WebsocketPassword })" + PRINT #72, ".then(() => { return obs.send('GetCurrentScene'); })" + PRINT #72, ".then(data => { data.sources.forEach(sources => {" + PRINT #72, " console.log(`${data.name}`);" + PRINT #72, " });" + PRINT #72, "})" + PRINT #72, ".then(() => { obs.disconnect(); });" + CLOSE #72 + + OPEN obs_get_media1 FOR OUTPUT AS #72 + PRINT #72, "// This file has been automatically generated" + PRINT #72, "// Any changes made will be lost" + PRINT #72, "// https://github.com/loopy750/SRT-Stats-Monitor" + PRINT #72, "const OBSWebSocket = require('obs-websocket-js');" + PRINT #72, "const obs = new OBSWebSocket();" + PRINT #72, "const WebsocketAddress = " + c34 + OBS_URL + c34 + ";" + PRINT #72, "const WebsocketPassword = " + c34 + OBS_PW + c34 + ";" + PRINT #72, "var timer1 = setTimeout(function() { obs.disconnect(); }, 3000);" + PRINT #72, "obs.connect({ address: WebsocketAddress, password: WebsocketPassword })" + + PRINT #72, ".then(() => {" + PRINT #72, " return obs.send('GetMediaTime', {" + PRINT #72, " 'sourceName': " + c34 + MediaSource1 + c34 + PRINT #72, " })" + PRINT #72, " })" + PRINT #72, ".then((data) => {" + PRINT #72, " console.log(`${data.timestamp}`);" + PRINT #72, "})" + + PRINT #72, ".then(() => { obs.disconnect(); clearTimeout(timer1); });" + CLOSE #72 + + OPEN obs_get_media2 FOR OUTPUT AS #72 + PRINT #72, "// This file has been automatically generated" + PRINT #72, "// Any changes made will be lost" + PRINT #72, "// https://github.com/loopy750/SRT-Stats-Monitor" + PRINT #72, "const OBSWebSocket = require('obs-websocket-js');" + PRINT #72, "const obs = new OBSWebSocket();" + PRINT #72, "const WebsocketAddress = " + c34 + OBS_URL + c34 + ";" + PRINT #72, "const WebsocketPassword = " + c34 + OBS_PW + c34 + ";" + PRINT #72, "var timer1 = setTimeout(function() { obs.disconnect(); }, 3000);" + PRINT #72, "obs.connect({ address: WebsocketAddress, password: WebsocketPassword })" + + PRINT #72, ".then(() => {" + PRINT #72, " return obs.send('GetMediaTime', {" + PRINT #72, " 'sourceName': " + c34 + MediaSource1 + c34 + PRINT #72, " })" + PRINT #72, " })" + PRINT #72, ".then((data) => {" + PRINT #72, " console.log(`${data.timestamp}`);" + PRINT #72, "})" + PRINT #72, ".then(() => {" + PRINT #72, " return obs.send('GetMediaTime', {" + PRINT #72, " 'sourceName': " + c34 + MediaSource2 + c34 + PRINT #72, " })" + PRINT #72, "})" + PRINT #72, ".then((data) => {" + PRINT #72, " console.log(`${data.timestamp}`);" + PRINT #72, "})" + + PRINT #72, ".then(() => { obs.disconnect(); clearTimeout(timer1); });" + CLOSE #72 + END IF + + IF CheckUpdateOnStartup = "true" AND iniFeatures = 0 THEN + file224$ = "" + updateResult$ = "" + _DELAY .25 + SHELL _HIDE "%ComSpec% /C curl -H " + c34 + "Cache-Control: no-cache" + c34 + " https://raw.githubusercontent.com/loopy750/SRT-Stats-Monitor-Version/master/checkversion.txt > " + c34 + fileCheckVersion + c34 + "" + _DELAY .25 + IF _FILEEXISTS(fileCheckVersion) THEN + OPEN fileCheckVersion FOR INPUT AS #224 + DO UNTIL EOF(224) + IF LOF(224) = 0 THEN NoKill = 1: EXIT DO 'Overkill with EOF checking, but just being safe + IF EOF(224) THEN EXIT DO + LINE INPUT #224, file224$ + LOOP + END IF + CLOSE #224 + IF _FILEEXISTS(fileCheckVersion) THEN KILL fileCheckVersion + updateResult$ = file224$ + IF file224$ <> Ver THEN verCheck$ = "A new version is available..." + IF file224$ = "" OR file224$ = "404: Not Found" THEN verCheck$ = "Unable to check for new version..." + IF file224$ = Ver THEN verCheck$ = "You are using the latest version..." + END IF + + iniFeatures = 0 + + 'Port_Client$ = "TCP/IP:" + Port + ":" + + IF Scene_OK = "" OR Scene_Fail = "" OR Scene_Intro = "" OR URL = "" OR Port = "" OR OBS_URL = "" THEN RefreshDisplayRequest = 1: Error_msg$ = "- Variable/s for scenes empty, check if " + c34 + config_main + c34 + " exists. (#3)": _DELAY 3 + + IF __MultiCameraSwitch = 0 THEN + Scene_Current$ = Scene_OK + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + Scene_OK + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + Scene_OK + shell_obscommand_2 + END SELECT + END IF + + IF __MultiCameraSwitch = 1 THEN + Scene_Current$ = titleScene12 + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + titleScene12 + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + titleScene12 + shell_obscommand_2 + END SELECT + END IF + + _DELAY .25 + _TITLE "Loopy SRT Monitor" + + IF __MultiCameraSwitch = 0 THEN + Control(Stream1).Hidden = True + Control(Stream2).Hidden = True + Control(InBytesLB2).Hidden = True + Control(InBytesDifferenceLB2).Hidden = True + Control(failLB).Hidden = True + Control(multiStream1LB).Hidden = True + Control(Kb_Diff_stream1LB).Hidden = True + Control(Timer_Fail_Stream1LB).Hidden = True + Control(InBytesLB3).Hidden = True + Control(InBytesDifferenceLB3).Hidden = True + Control(failLB2).Hidden = True + Control(multiStream2LB).Hidden = True + Control(Kb_Diff_stream2LB).Hidden = True + Control(Timer_Fail_Stream2LB).Hidden = True + END IF + + Control(DebugFrame).Hidden = True + Control(versionFrame).Hidden = False + LoadImageMEM Control(PictureBoxLogoBottom), "srt_logo_bottom.png" + Control(TimerLB).Hidden = True + Control(TimerSnapshotLB).Hidden = True + Control(td_displayVarLB).Hidden = True + Control(mouseXVarLB).Hidden = True + Control(mouseYVarLB).Hidden = True + Control(__ERRORLINEVarLB).Hidden = True + Control(Debug_TimerLB).Hidden = True + Control(Debug_Timer_SnapshotLB).Hidden = True + Control(td_displayLB).Hidden = True + Control(mouseXLB).Hidden = True + Control(mouseYLB).Hidden = True + Control(__ERRORLINELB).Hidden = True + Control(PictureBoxLogoBottom).Hidden = False + SetCaption (versionFrame), "v" + Ver + + ON TIMER(1) Timer01 + TIMER ON +END SUB + +SUB __UI_BeforeUpdateDisplay + 'This event occurs at approximately 30 frames per second. + 'You can change the update frequency by calling SetFrameRate DesiredRate% + + 'BeforeUpdateDisplay ---------------------------------------------------------------------------------------------------------------------------------------------------- + IF NOT _WINDOWHASFOCUS THEN SetFrameRate 15 ELSE SetFrameRate 30 + + IF RefreshDisplayRequest = 1 THEN + RefreshDisplayRequest = 0 + TIMER STOP + CLS , _RGB(1, 120, 220) + BSOD& = __imageMEM&("face_sad_x.png") + _PUTIMAGE (50, 50)-(107, 162), BSOD& + _FREEIMAGE BSOD& + COLOR _RGB(254, 254, 254), _RGB(1, 120, 220) + _PRINTSTRING (37, 12 * 18), "Program encountered an error and needs to restart." + IF INSTR(Error_msg$, CHR$(10)) >= 1 THEN + _PRINTSTRING (37, 14 * 18), LEFT$(Error_msg$, INSTR(Error_msg$, CHR$(10)) - 1) + _PRINTSTRING (37, 15 * 18), MID$(Error_msg$, INSTR(Error_msg$, CHR$(10)) + 1) + ELSE + _PRINTSTRING (37, 14 * 18), Error_msg$ + END IF + _PRINTSTRING (37, 22 * 18), "Program will resume shortly" + _DISPLAY + _DELAY 10 + CLS , BG + TIMER ON + END IF + + IF Debug = 1 THEN + mouseX = _MOUSEX + mouseY = _MOUSEY + Debug_Timer# = TIMER(.001) + TIMEms Debug_Timer#, 0 + SetCaption (Debug_TimerLB), tout + " sec " + TIMEms td_display#, 1 + SetCaption (td_displayLB), tout + " sec " + SetCaption (mouseXLB), LTRIM$(STR$(mouseX + 1)) + " " + SetCaption (mouseYLB), LTRIM$(STR$(mouseY + 1)) + " " + SetCaption (__ERRORLINELB), LTRIM$(STR$(_ERRORLINE)) + " " + END IF + + IF updateDisplay >= 1 THEN + updateDisplayCounter = updateDisplayCounter + 1 + IF updateDisplayCounter >= 300 THEN + file224$ = "" + verCheck$ = "" + updateResult$ = "" + updateDisplay = 0 + updateDisplayCounter = 0 + SetCaption StatusLB, "" + END IF + END IF + + IF _EXIT THEN + IF _FILEEXISTS(filePrevious) THEN KILL filePrevious + IF _FILEEXISTS(outputBitrateFile) THEN KILL outputBitrateFile + IF _FILEEXISTS(outputStatusFile) THEN KILL outputStatusFile + SYSTEM + END IF + + ProgressCounter = ProgressCounter + 1 '| / - \ | / - \ + SELECT CASE ProgressCounter + CASE 1 TO 8 + SetCaption IndicatorLB, "|" + CASE 9 TO 16 + SetCaption IndicatorLB, "/" + CASE 17 TO 24 + SetCaption IndicatorLB, "-" + CASE 25 TO 32 + SetCaption IndicatorLB, "\" + CASE 33 TO 40 + SetCaption IndicatorLB, "|" + CASE 41 TO 48 + SetCaption IndicatorLB, "/" + CASE 49 TO 56 + SetCaption IndicatorLB, "-" + CASE 57 TO 64 + SetCaption IndicatorLB, "\" + CASE IS >= 64 + ProgressCounter = 1 + END SELECT + '------------------------------------------------------------------------------------------------------------------------------------------------------------------------ + +END SUB + +SUB __UI_BeforeUnload + 'If you set __UI_UnloadSignal = False here you can + 'cancel the user's request to close. + +END SUB + +SUB __UI_Click (id AS LONG) + SELECT CASE id + CASE LoopySRTMonitor + + CASE FileMenu + + CASE OptionsMenu + + CASE HelpMenu + + CASE SRT + + CASE Status + + CASE Settings + + CASE CurrentScene + + CASE DebugFrame + + CASE Stream1 + + CASE Stream2 + + CASE versionFrame + + CASE FileMenuExit + IF _FILEEXISTS(filePrevious) THEN KILL filePrevious + IF _FILEEXISTS(outputBitrateFile) THEN KILL outputBitrateFile + IF _FILEEXISTS(outputStatusFile) THEN KILL outputStatusFile + SYSTEM + + CASE RMTPLB + + CASE clientsLB + + CASE VideoLB + + CASE AudioLB + + CASE InBytesLB + + CASE OutBytesLB + + CASE InBitssLB + + CASE OutBitssLB + + CASE TimeLB + + CASE rtmp_nacceptedLB + + CASE rtmp_codec_nclientsLB + + CASE rtmp_codec_videoLB + + CASE rtmp_codec_audioLB + + CASE rtmp_bytes_inLB + + CASE rtmp_bytes_outLB + + CASE rtmp_bw_inLB + + CASE rtmp_bw_outLB + + CASE rtmp_uptimeLB + + CASE InBytesDifferenceLB + + CASE StreamFailTimerLB + + CASE FailCountLB + + CASE ServerPingLB + + CASE UpdateIntervalLB + + CASE Kb_DiffLB + + CASE Timer_FailLB + + CASE Timer_Fail_CountLB + + CASE tPingOutLB + + CASE td_updateLB + + CASE BandwidthThresholdLB + + CASE StreamFailDelayLB + + CASE MultiCameraSwitchLB + + CASE Bandwidth_ThresholdLB + + CASE Stream_Fail_DelayLB + + CASE MultiCameraSwitchStatusLB + + CASE TimerLB + + CASE TimerSnapshotLB + + CASE td_displayVarLB + + CASE mouseXVarLB + + CASE mouseYVarLB + + CASE __ERRORLINEVarLB + + CASE Debug_TimerLB + + CASE Debug_Timer_SnapshotLB + + CASE td_displayLB + + CASE mouseXLB + + CASE mouseYLB + + CASE __ERRORLINELB + + CASE InBytesLB2 + + CASE InBytesDifferenceLB2 + + CASE failLB + + CASE multiStream1LB + + CASE Kb_Diff_stream1LB + + CASE Timer_Fail_Stream1LB + + CASE Scene_CurrentLB + + CASE PictureBox1 + + CASE InBytesLB3 + + CASE InBytesDifferenceLB3 + + CASE failLB2 + + CASE multiStream2LB + + CASE Kb_Diff_stream2LB + + CASE Timer_Fail_Stream2LB + + CASE OptionsMenuAlwaysOnTop + IF AlwaysOnTop <> 1 THEN + AlwaysOnTop = 1 + FGwin& = GetForegroundWindow&: IF Myhwnd <> FGwin& THEN y& = SetWindowPos&(Myhwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE + SWP_SHOWWINDOW) + ELSE + AlwaysOnTop = 0 + FGwin& = GetForegroundWindow&: IF Myhwnd <> FGwin& THEN y& = SetWindowPos&(Myhwnd, HWND_BOTTOM, 0, 0, 0, 0, SWP_NOMOVE + SWP_NOSIZE + SWP_NOACTIVATE) + END IF + + CASE OptionsMenuDebug + IF Debug <> 1 THEN + Debug = 1 + Control(DebugFrame).Hidden = False + Control(versionFrame).Hidden = True + Control(PictureBoxLogoBottom).Hidden = True + SetRadioButtonValue OptionsMenuDebug + ELSE + Debug = 0 + Control(versionFrame).Hidden = True + Control(PictureBoxLogoBottom).Hidden = True + SetRadioButtonValue OptionsMenuDebug + END IF + + CASE HelpMenuVisitWebsite + SHELL _DONTWAIT _HIDE "%ComSpec% /C START " + c34 + c34 + " /B https://github.com/loopy750/SRT-Stats-Monitor" + + CASE HelpMenuCheckForUpdates + verCheck$ = "Checking for new version..." + SetCaption StatusLB, verCheck$ + file224$ = "" + updateResult$ = "" + _DELAY .25 + SHELL _HIDE "%ComSpec% /C curl -H " + c34 + "Cache-Control: no-cache" + c34 + " https://raw.githubusercontent.com/loopy750/SRT-Stats-Monitor-Version/master/checkversion.txt > " + c34 + fileCheckVersion + c34 + "" + _DELAY .25 + IF _FILEEXISTS(fileCheckVersion) THEN + OPEN fileCheckVersion FOR INPUT AS #224 + DO UNTIL EOF(224) + IF LOF(224) = 0 THEN NoKill = 1: EXIT DO 'Overkill with EOF checking, but just being safe + IF EOF(224) THEN EXIT DO + LINE INPUT #224, file224$ + LOOP + END IF + CLOSE #224 + IF _FILEEXISTS(fileCheckVersion) THEN KILL fileCheckVersion + updateResult$ = file224$ + IF file224$ <> Ver THEN verCheck$ = "A new version is available..." + IF file224$ = "" OR file224$ = "404: Not Found" THEN verCheck$ = "Unable to check for new version..." + IF file224$ = Ver THEN verCheck$ = "You are using the latest version..." + IF verCheck <> "" THEN updateDisplayCounter = 0 + + CASE OptionsMenuFullscreen + IF FullScreen <> 1 THEN + FullScreen = 1 + _FULLSCREEN _SQUAREPIXELS , _SMOOTH + ELSE + FullScreen = 0 + _FULLSCREEN _OFF + END IF + + CASE IndicatorLB + + CASE HelpMenuAbout + Answer = MessageBox("Loopy SRT Stats Monitor v" + Ver + " (" + VerDate + ") \nby loopy750\n\nGitHub: https://www.github.com/loopy750", "About", MsgBox_OkOnly + MsgBox_Information) + + CASE StatusLB + + CASE PictureBoxLogoBottom + + CASE OBSRemoteLB + + CASE OBS_RemoteLB + + END SELECT +END SUB + +SUB __UI_MouseEnter (id AS LONG) + SELECT CASE id + CASE LoopySRTMonitor + + CASE FileMenu + + CASE OptionsMenu + + CASE HelpMenu + + CASE SRT + + CASE Status + + CASE Settings + + CASE CurrentScene + + CASE DebugFrame + + CASE Stream1 + + CASE Stream2 + + CASE versionFrame + + CASE FileMenuExit + + CASE RMTPLB + + CASE clientsLB + + CASE VideoLB + + CASE AudioLB + + CASE InBytesLB + + CASE OutBytesLB + + CASE InBitssLB + + CASE OutBitssLB + + CASE TimeLB + + CASE rtmp_nacceptedLB + + CASE rtmp_codec_nclientsLB + + CASE rtmp_codec_videoLB + + CASE rtmp_codec_audioLB + + CASE rtmp_bytes_inLB + + CASE rtmp_bytes_outLB + + CASE rtmp_bw_inLB + + CASE rtmp_bw_outLB + + CASE rtmp_uptimeLB + + CASE InBytesDifferenceLB + + CASE StreamFailTimerLB + + CASE FailCountLB + + CASE ServerPingLB + + CASE UpdateIntervalLB + + CASE Kb_DiffLB + + CASE Timer_FailLB + + CASE Timer_Fail_CountLB + + CASE tPingOutLB + + CASE td_updateLB + + CASE BandwidthThresholdLB + + CASE StreamFailDelayLB + + CASE MultiCameraSwitchLB + + CASE Bandwidth_ThresholdLB + + CASE Stream_Fail_DelayLB + + CASE MultiCameraSwitchStatusLB + + CASE TimerLB + + CASE TimerSnapshotLB + + CASE td_displayVarLB + + CASE mouseXVarLB + + CASE mouseYVarLB + + CASE __ERRORLINEVarLB + + CASE Debug_TimerLB + + CASE Debug_Timer_SnapshotLB + + CASE td_displayLB + + CASE mouseXLB + + CASE mouseYLB + + CASE __ERRORLINELB + + CASE InBytesLB2 + + CASE InBytesDifferenceLB2 + + CASE failLB + + CASE multiStream1LB + + CASE Kb_Diff_stream1LB + + CASE Timer_Fail_Stream1LB + + CASE Scene_CurrentLB + + CASE PictureBox1 + + CASE InBytesLB3 + + CASE InBytesDifferenceLB3 + + CASE failLB2 + + CASE multiStream2LB + + CASE Kb_Diff_stream2LB + + CASE Timer_Fail_Stream2LB + + CASE OptionsMenuDebug + + CASE HelpMenuVisitWebsite + + CASE HelpMenuCheckForUpdates + + CASE OptionsMenuFullscreen + + CASE IndicatorLB + + CASE HelpMenuAbout + + CASE StatusLB + + CASE PictureBoxLogoBottom + + CASE OBSRemoteLB + + CASE OBS_RemoteLB + + END SELECT +END SUB + +SUB __UI_MouseLeave (id AS LONG) + SELECT CASE id + CASE LoopySRTMonitor + + CASE FileMenu + + CASE OptionsMenu + + CASE HelpMenu + + CASE SRT + + CASE Status + + CASE Settings + + CASE CurrentScene + + CASE DebugFrame + + CASE Stream1 + + CASE Stream2 + + CASE versionFrame + + CASE FileMenuExit + + CASE RMTPLB + + CASE clientsLB + + CASE VideoLB + + CASE AudioLB + + CASE InBytesLB + + CASE OutBytesLB + + CASE InBitssLB + + CASE OutBitssLB + + CASE TimeLB + + CASE rtmp_nacceptedLB + + CASE rtmp_codec_nclientsLB + + CASE rtmp_codec_videoLB + + CASE rtmp_codec_audioLB + + CASE rtmp_bytes_inLB + + CASE rtmp_bytes_outLB + + CASE rtmp_bw_inLB + + CASE rtmp_bw_outLB + + CASE rtmp_uptimeLB + + CASE InBytesDifferenceLB + + CASE StreamFailTimerLB + + CASE FailCountLB + + CASE ServerPingLB + + CASE UpdateIntervalLB + + CASE Kb_DiffLB + + CASE Timer_FailLB + + CASE Timer_Fail_CountLB + + CASE tPingOutLB + + CASE td_updateLB + + CASE BandwidthThresholdLB + + CASE StreamFailDelayLB + + CASE MultiCameraSwitchLB + + CASE Bandwidth_ThresholdLB + + CASE Stream_Fail_DelayLB + + CASE MultiCameraSwitchStatusLB + + CASE TimerLB + + CASE TimerSnapshotLB + + CASE td_displayVarLB + + CASE mouseXVarLB + + CASE mouseYVarLB + + CASE __ERRORLINEVarLB + + CASE Debug_TimerLB + + CASE Debug_Timer_SnapshotLB + + CASE td_displayLB + + CASE mouseXLB + + CASE mouseYLB + + CASE __ERRORLINELB + + CASE InBytesLB2 + + CASE InBytesDifferenceLB2 + + CASE failLB + + CASE multiStream1LB + + CASE Kb_Diff_stream1LB + + CASE Timer_Fail_Stream1LB + + CASE Scene_CurrentLB + + CASE PictureBox1 + + CASE InBytesLB3 + + CASE InBytesDifferenceLB3 + + CASE failLB2 + + CASE multiStream2LB + + CASE Kb_Diff_stream2LB + + CASE Timer_Fail_Stream2LB + + CASE OptionsMenuDebug + + CASE HelpMenuVisitWebsite + + CASE HelpMenuCheckForUpdates + + CASE OptionsMenuFullscreen + + CASE IndicatorLB + + CASE HelpMenuAbout + + CASE StatusLB + + CASE PictureBoxLogoBottom + + CASE OBSRemoteLB + + CASE OBS_RemoteLB + + END SELECT +END SUB + +SUB __UI_FocusIn (id AS LONG) + SELECT CASE id + CASE 0 + END SELECT +END SUB + +SUB __UI_FocusOut (id AS LONG) + 'This event occurs right before a control loses focus. + 'To prevent a control from losing focus, set __UI_KeepFocus = True below. + SELECT CASE id + CASE 0 + END SELECT +END SUB + +SUB __UI_MouseDown (id AS LONG) + SELECT CASE id + CASE LoopySRTMonitor + + CASE FileMenu + + CASE OptionsMenu + + CASE HelpMenu + + CASE SRT + + CASE Status + + CASE Settings + + CASE CurrentScene + + CASE DebugFrame + + CASE Stream1 + + CASE Stream2 + + CASE versionFrame + + CASE FileMenuExit + + CASE RMTPLB + + CASE clientsLB + + CASE VideoLB + + CASE AudioLB + + CASE InBytesLB + + CASE OutBytesLB + + CASE InBitssLB + + CASE OutBitssLB + + CASE TimeLB + + CASE rtmp_nacceptedLB + + CASE rtmp_codec_nclientsLB + + CASE rtmp_codec_videoLB + + CASE rtmp_codec_audioLB + + CASE rtmp_bytes_inLB + + CASE rtmp_bytes_outLB + + CASE rtmp_bw_inLB + + CASE rtmp_bw_outLB + + CASE rtmp_uptimeLB + + CASE InBytesDifferenceLB + + CASE StreamFailTimerLB + + CASE FailCountLB + + CASE ServerPingLB + + CASE UpdateIntervalLB + + CASE Kb_DiffLB + + CASE Timer_FailLB + + CASE Timer_Fail_CountLB + + CASE tPingOutLB + + CASE td_updateLB + + CASE BandwidthThresholdLB + + CASE StreamFailDelayLB + + CASE MultiCameraSwitchLB + + CASE Bandwidth_ThresholdLB + + CASE Stream_Fail_DelayLB + + CASE MultiCameraSwitchStatusLB + + CASE TimerLB + + CASE TimerSnapshotLB + + CASE td_displayVarLB + + CASE mouseXVarLB + + CASE mouseYVarLB + + CASE __ERRORLINEVarLB + + CASE Debug_TimerLB + + CASE Debug_Timer_SnapshotLB + + CASE td_displayLB + + CASE mouseXLB + + CASE mouseYLB + + CASE __ERRORLINELB + + CASE InBytesLB2 + + CASE InBytesDifferenceLB2 + + CASE failLB + + CASE multiStream1LB + + CASE Kb_Diff_stream1LB + + CASE Timer_Fail_Stream1LB + + CASE Scene_CurrentLB + + CASE PictureBox1 + + CASE InBytesLB3 + + CASE InBytesDifferenceLB3 + + CASE failLB2 + + CASE multiStream2LB + + CASE Kb_Diff_stream2LB + + CASE Timer_Fail_Stream2LB + + CASE OptionsMenuDebug + + CASE HelpMenuVisitWebsite + + CASE HelpMenuCheckForUpdates + + CASE OptionsMenuFullscreen + + CASE IndicatorLB + + CASE HelpMenuAbout + + CASE StatusLB + + CASE PictureBoxLogoBottom + + CASE OBSRemoteLB + + CASE OBS_RemoteLB + + END SELECT +END SUB + +SUB __UI_MouseUp (id AS LONG) + SELECT CASE id + CASE LoopySRTMonitor + + CASE FileMenu + + CASE OptionsMenu + + CASE HelpMenu + + CASE SRT + + CASE Status + + CASE Settings + + CASE CurrentScene + + CASE DebugFrame + + CASE Stream1 + + CASE Stream2 + + CASE versionFrame + + CASE FileMenuExit + + CASE RMTPLB + + CASE clientsLB + + CASE VideoLB + + CASE AudioLB + + CASE InBytesLB + + CASE OutBytesLB + + CASE InBitssLB + + CASE OutBitssLB + + CASE TimeLB + + CASE rtmp_nacceptedLB + + CASE rtmp_codec_nclientsLB + + CASE rtmp_codec_videoLB + + CASE rtmp_codec_audioLB + + CASE rtmp_bytes_inLB + + CASE rtmp_bytes_outLB + + CASE rtmp_bw_inLB + + CASE rtmp_bw_outLB + + CASE rtmp_uptimeLB + + CASE InBytesDifferenceLB + + CASE StreamFailTimerLB + + CASE FailCountLB + + CASE ServerPingLB + + CASE UpdateIntervalLB + + CASE Kb_DiffLB + + CASE Timer_FailLB + + CASE Timer_Fail_CountLB + + CASE tPingOutLB + + CASE td_updateLB + + CASE BandwidthThresholdLB + + CASE StreamFailDelayLB + + CASE MultiCameraSwitchLB + + CASE Bandwidth_ThresholdLB + + CASE Stream_Fail_DelayLB + + CASE MultiCameraSwitchStatusLB + + CASE TimerLB + + CASE TimerSnapshotLB + + CASE td_displayVarLB + + CASE mouseXVarLB + + CASE mouseYVarLB + + CASE __ERRORLINEVarLB + + CASE Debug_TimerLB + + CASE Debug_Timer_SnapshotLB + + CASE td_displayLB + + CASE mouseXLB + + CASE mouseYLB + + CASE __ERRORLINELB + + CASE InBytesLB2 + + CASE InBytesDifferenceLB2 + + CASE failLB + + CASE multiStream1LB + + CASE Kb_Diff_stream1LB + + CASE Timer_Fail_Stream1LB + + CASE Scene_CurrentLB + + CASE PictureBox1 + + CASE InBytesLB3 + + CASE InBytesDifferenceLB3 + + CASE failLB2 + + CASE multiStream2LB + + CASE Kb_Diff_stream2LB + + CASE Timer_Fail_Stream2LB + + CASE OptionsMenuDebug + + CASE HelpMenuVisitWebsite + + CASE HelpMenuCheckForUpdates + + CASE OptionsMenuFullscreen + + CASE IndicatorLB + + CASE HelpMenuAbout + + CASE StatusLB + + CASE PictureBoxLogoBottom + + CASE OBSRemoteLB + + CASE OBS_RemoteLB + + END SELECT +END SUB + +SUB __UI_KeyPress (id AS LONG) + 'When this event is fired, __UI_KeyHit will contain the code of the key hit. + 'You can change it and even cancel it by making it = 0 + SELECT CASE id + CASE 0 + END SELECT +END SUB + +SUB __UI_TextChanged (id AS LONG) + SELECT CASE id + CASE 0 + END SELECT +END SUB + +SUB __UI_ValueChanged (id AS LONG) + SELECT CASE id + CASE 0 + END SELECT +END SUB + +SUB __UI_FormResized + +END SUB + +SUB TIMEms (tout#, plus) + + TIMER STOP + tout = "" + tout2# = tout# + toutint# = FIX(tout2#) + IF tout# >= 0 THEN + toutdec# = (tout2# - toutint#) + 1 + IF plus THEN tout = tout + "+" + ELSE + toutdec# = (tout2# - toutint#) - 1 + IF toutint# = 0 THEN tout = tout + "-" + END IF + tout = tout + LTRIM$(STR$(toutint#)) + IF tout# >= 0 THEN tout = tout + "." + MID$(LTRIM$(STR$(toutdec#)), 3, 3) ELSE tout = tout + "." + MID$(LTRIM$(STR$(toutdec#)), 4, 3) + IF LEN(STR$(toutdec#)) = 5 THEN tout = tout + "0" + IF LEN(STR$(toutdec#)) = 4 THEN tout = tout + "00" + IF LEN(STR$(toutdec#)) = 2 THEN tout = tout + "000" 'Output to tout + TIMER ON + +END SUB + +SUB calcbw (bout#, bits) + + TIMER STOP + bout = "" + bout2# = bout# + boutnodec = 0 + + IF bits = 0 THEN + SELECT CASE bout2# + CASE IS < 1048576 + boutint# = bout2# / 1024 + boutm$ = "KB" + CASE IS < 1073741824 + boutint# = bout2# / 1048576 + boutm$ = "MB" + CASE IS >= 1073741824 + boutint# = bout2# / 1073741824 + boutm$ = "GB" + END SELECT + boutdec# = boutint# + 1 + boutint# = FIX(boutint#) + bout = STR$(boutint#) + IF boutdec# = FIX(boutdec#) THEN + boutdec$ = "000" + ELSE + boutdec$ = MID$(LTRIM$(STR$(boutdec#)), INSTR(LTRIM$(STR$(boutdec#)), ".") + 1, 3) + END IF + IF LEN(LTRIM$(STR$(boutint#))) >= 5 THEN + boutdec$ = LEFT$(boutdec$, 1) + ELSE + IF LEN(boutdec$) = 2 THEN boutdec$ = boutdec$ + "0" + IF LEN(boutdec$) = 1 THEN boutdec$ = boutdec$ + "00" + IF LEN(boutdec$) = 0 THEN boutdec$ = boutdec$ + "000" + END IF + IF bout# < 1073741824 THEN boutdec$ = LEFT$(boutdec$, 2) + bout = bout + "." + boutdec$ + " " + boutm$ 'Output to bout + ELSE + SELECT CASE bout2# + CASE IS < 1048576 + boutint# = bout2# / 1024 + boutm$ = "Kb/s" + boutnodec = 1 + CASE IS < 1073741824 + boutint# = bout2# / 1048576 + boutm$ = "Mb/s" + CASE IS > 1073741824 + boutint# = bout2# / 1073741824 + boutm$ = "Gb/s" + END SELECT + boutdec# = boutint# + 1 + boutint# = FIX(boutint#) + bout = STR$(boutint#) + IF boutdec# = FIX(boutdec#) THEN + boutdec$ = "00" + ELSE + boutdec$ = MID$(LTRIM$(STR$(boutdec#)), INSTR(LTRIM$(STR$(boutdec#)), ".") + 1, 2) + END IF + IF LEN(LTRIM$(STR$(boutint#))) >= 5 THEN boutdec$ = LEFT$(boutdec$, 1) + boutdec$ = "." + boutdec$ + IF boutnodec = 1 THEN boutdec$ = "" + bout = bout + boutdec$ + " " + boutm$ 'Output to bout + END IF + TIMER ON + +END SUB + +FUNCTION calc_srt$ (convertTime#, includeSec) + + TIMER STOP + IF convertTime# > 3596400 THEN convertTime# = 3596400 + t_hr = convertTime# \ 3600 + t_min = (convertTime# - (3600 * t_hr)) \ 60 + t_sec = (convertTime# - (3600 * t_hr)) - (t_min * 60) + calc_srt$ = LTRIM$(STR$(t_hr)) + "h " + LTRIM$(STR$(t_min)) + "m " + IF includeSec = 1 THEN calc_srt$ = calc_srt$ + LTRIM$(STR$(t_sec)) + "s " + TIMER ON + +END FUNCTION + +SUB statusOutputToFile (outputMSG$) + + TIMER STOP + OPEN outputStatusFile FOR OUTPUT AS #48 + PRINT #48, outputMSG$ + CLOSE #48 + TIMER ON + +END SUB + +SUB statusBitrateToFile (outputBR$) + + TIMER STOP + OPEN outputBitrateFile FOR OUTPUT AS #56 + PRINT #56, outputBR$ + CLOSE #56 + TIMER ON + +END SUB + +SUB Timer01 + 'Timer01 ---------------------------------------------------------------------------------------------------------------------------------------------------------------- + td_update# = TIMER(.001) - timer1# + timer1# = TIMER(.001) + + 'Debug moved down from here --------------------------------------------------------------------------------------------------------------------------------------------------- + 'Get OBS scene moved down from here ------------------------------------------------------------------------------------------------------------------------------------------- + + IF _DIREXISTS(config_dir) THEN IF NOT _DIREXISTS(temp_dir) THEN MKDIR temp_dir + + SELECT CASE WebsocketMethod + CASE "nodejs" + SetCaption OBS_RemoteLB, "Node.js" + CASE "obscommand" + SetCaption OBS_RemoteLB, "OBSCommand" + CASE ELSE + WebsocketMethod = "obscommand" + END SELECT + + rtmp_naccepted$ = "": rtmp_bytes_in$ = "": rtmp_bytes_out$ = "": rtmp_bw_in$ = "": rtmp_bw_out$ = "": rtmp_codec_video$ = "": rtmp_codec_audio$ = "": rtmp_codec_nclients$ = "" + rtmp_codec_nclients# = 0: rtmp_codec_nclients_temp# = 0 + a$ = "": a2$ = "": d$ = "": I = 0: i2 = 0: i3 = 0: stats_rtmp.xml$ = "" + + tPing1# = TIMER(.001) + 'client = _OPENCLIENT(Port_Client$ + URL) + + + + + + + IF __MultiCameraSwitch = 0 THEN + + 'Get Media Source times ------------------------- + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _HIDE "%ComSpec% /C node.exe " + c34 + obs_get_media1 + c34 + " > " + c34 + filePrevious + c34 + CASE "obscommand" + SHELL _HIDE "%ComSpec% /C " + c34 + c34 + obscommand_file + c34 + " /server=" + OBS_URL + " /password=" + OBS_PW + " /command=GetCurrentScene > " + c34 + filePrevious + c34 + c34 + END SELECT + _DELAY .01 + ON ERROR GOTO PUT_Fail + PUT_Refresh = 1 + IF _FILEEXISTS(filePrevious) THEN + OPEN filePrevious FOR INPUT AS #92 + IF LOF(92) = 0 THEN NoKill = 1: GOTO LOF92 'Overkill with EOF checking, but just being safe + IF EOF(92) THEN GOTO LOF92 + LINE INPUT #92, file92$ + MediaSource1Time = VAL(file92$) / 1000 + LOF92: + END IF + CLOSE #92 + + IF NoKill = 1 THEN NoKill = 0 ELSE IF _FILEEXISTS(filePrevious) THEN KILL filePrevious + ON ERROR GOTO 0 + PUT_Refresh = 0 + + END IF + + + + IF __MultiCameraSwitch = 1 THEN + + 'Get Media Source times ------------------------- + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _HIDE "%ComSpec% /C node.exe " + c34 + obs_get_media2 + c34 + " > " + c34 + filePrevious + c34 + CASE "obscommand" + SHELL _HIDE "%ComSpec% /C " + c34 + c34 + obscommand_file + c34 + " /server=" + OBS_URL + " /password=" + OBS_PW + " /command=GetCurrentScene > " + c34 + filePrevious + c34 + c34 + END SELECT + _DELAY .01 + ON ERROR GOTO PUT_Fail + PUT_Refresh = 1 + IF _FILEEXISTS(filePrevious) THEN + OPEN filePrevious FOR INPUT AS #92 + IF LOF(92) = 0 THEN NoKill = 1: GOTO LOF922 'Overkill with EOF checking, but just being safe + IF EOF(92) THEN GOTO LOF922 + LINE INPUT #92, file92$ + MediaSource1Time = VAL(file92$) / 1000 + IF EOF(92) THEN GOTO LOF922 + LINE INPUT #92, file92$ + MediaSource2Time = VAL(file92$) / 1000 + LOF922: + END IF + CLOSE #92 + + IF NoKill = 1 THEN NoKill = 0 ELSE IF _FILEEXISTS(filePrevious) THEN KILL filePrevious + ON ERROR GOTO 0 + PUT_Refresh = 0 + + END IF + + + + + tPing2# = TIMER(.001) + tPingOut# = (tPing2# - tPing1#) + + + + + + + + + + + + + 'PUT_Fail moved from here ---------- + + URL_OK: + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_uptime# = VAL(MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 8, 16)) + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_naccepted# = VAL(MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 11, 16)) + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_bytes_in# = VAL(MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 10, 16)) + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_bytes_out# = VAL(MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 11, 16)) + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_bw_in# = VAL(MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 7, 16)) + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_bw_out# = VAL(MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 8, 16)) + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_codec_video$ = MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 20, 4) + IF INSTR(stats_rtmp.xml$, "") + 1), stats_rtmp.xml$, "") THEN rtmp_codec_audio_profile$ = MID$(stats_rtmp.xml$, INSTR((INSTR(stats_rtmp.xml$, "") + 1), stats_rtmp.xml$, "") + 17, 10) + rtmp_codec_audio_profile$ = LEFT$(rtmp_codec_audio_profile$, INSTR(rtmp_codec_audio_profile$, "<") - 1) + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_codec_audio_channels$ = STR$(VAL(MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 20, 1))) + IF INSTR(stats_rtmp.xml$, "") THEN rtmp_codec_audio_samplerate$ = STR$(VAL(MID$(stats_rtmp.xml$, INSTR(stats_rtmp.xml$, "") + 24, 6))) + + 'Dirty fix + IF rtmp_codec_video_profile$ = "LC" OR rtmp_codec_video_profile$ = "MP3" THEN rtmp_codec_audio_profile$ = rtmp_codec_video_profile$: rtmp_codec_video_profile$ = "" + IF rtmp_codec_audio_profile$ = "Baseline" OR rtmp_codec_audio_profile$ = "Main" OR rtmp_codec_audio_profile$ = "High" THEN rtmp_codec_video_profile$ = rtmp_codec_audio_profile$: rtmp_codec_audio_profile$ = "" + + 'ToolTip(rtmp_codec_audioLB) = "Profile: " + rtmp_codec_audio_profile$ + "\nChannels: " + _TRIM$(rtmp_codec_audio_channels$) + "\nSample rate: " + _TRIM$(rtmp_codec_audio_samplerate$) + "\n" + 'ToolTip(rtmp_codec_videoLB) = "Resolution: " + rtmp_codec_video_resolution$ + "\nProfile: " + rtmp_codec_video_profile$ + "\nLevel: " + _TRIM$(rtmp_codec_video_level$) + "\n" + 'ToolTip(tPingOutLB) = "URL: " + URL + "\nPort: " + Port$ + "\n" + + 'ToolTip(RMTPLB) = "SRT Version: " + rtmp_codec_version$ + "\nSRT Version: " + rtmp_codec_rtmp_version$ + "\n" + 'ToolTip(rtmp_nacceptedLB) = "SRT Version: " + rtmp_codec_version$ + "\nSRT Version: " + rtmp_codec_rtmp_version$ + "\n" + IF Timer_Failed = 1 THEN Timer_Failed = 0: ToolTip(Timer_Fail_CountLB) = "Last Failed: " + TIME$ + + IF __MultiCameraSwitch = 1 THEN + Stream% = 0 + Stream% = INSTR(Stream% + 1, stats_rtmp.xml$, "" + urlStream1 + "") + Stream% = INSTR(Stream% + 1, stats_rtmp.xml$, CHR$(13) + CHR$(10)) + Stream% = INSTR(Stream% + 1, stats_rtmp.xml$, CHR$(13) + CHR$(10)) + multiStream1# = VAL(MID$(stats_rtmp.xml$, Stream% + 12, 16)) + Stream% = INSTR(Stream% + 1, stats_rtmp.xml$, "" + urlStream2 + "") + Stream% = INSTR(Stream% + 1, stats_rtmp.xml$, CHR$(13) + CHR$(10)) + Stream% = INSTR(Stream% + 1, stats_rtmp.xml$, CHR$(13) + CHR$(10)) + multiStream2# = VAL(MID$(stats_rtmp.xml$, Stream% + 12, 16)) + END IF + + rtmp_codec_nclients# = 0 + rtmp_codec_nclients_temp# = 0 + DO + pos_xml_m& = INSTR(pos_xml_m& + 1, stats_rtmp.xml$, "") + rtmp_codec_nclients_temp# = VAL(MID$(stats_rtmp.xml$, pos_xml_m& + 10, 16)) + IF rtmp_codec_nclients_temp# > rtmp_codec_nclients# THEN rtmp_codec_nclients# = rtmp_codec_nclients_temp# + LOOP UNTIL pos_xml_m& = 0 + + 'temp1 variables + IF srt_warmup = 0 THEN Kb_Diff# = (Bandwidth_Threshold + 1) + IF rtmp_bytes_in# = 0 THEN rtmp_bytes_in# = 1 + rtmp_bytes_in_temp1# = rtmp_bytes_in# + IF rtmp_bytes_in_temp1# >= 1 AND rtmp_bytes_in_temp2# >= 1 THEN + Kb_Diff# = INT((rtmp_bytes_in_temp1# - rtmp_bytes_in_temp2#) / 128) + END IF + + 'IF Kb_Diff# >= Bandwidth_Threshold THEN Timer_Fail = 0 + IF MediaSource1Time <> 0 OR MediaSource2Time <> 0 THEN Timer_Fail = 0 'SRT + + IF MediaSource1Time = 0 AND MediaSource2Time = 0 AND srt_warmup = 1 THEN Timer_Fail = Timer_Fail + 1 'SRT + 'IF Kb_Diff# <= Bandwidth_Threshold AND srt_warmup = 1 THEN Timer_Fail = Timer_Fail + 1 + IF Timer_Fail > 20999 THEN Timer_Fail = 20999 + + SetCaption (rtmp_nacceptedLB), "Acc:" + STR$(rtmp_naccepted#) + SetCaption (rtmp_codec_nclientsLB), LTRIM$(STR$(rtmp_codec_nclients#)) + IF rtmp_codec_video$ <> "" THEN SetCaption (rtmp_codec_videoLB), rtmp_codec_video$ ELSE SetCaption rtmp_codec_videoLB, "-" + IF rtmp_codec_audio$ <> "" THEN SetCaption (rtmp_codec_audioLB), rtmp_codec_audio$ ELSE SetCaption rtmp_codec_audioLB, "-" + calcbw rtmp_bytes_in#, 0 + SetCaption (rtmp_bytes_inLB), LTRIM$(bout) + calcbw rtmp_bytes_out#, 0 + SetCaption (rtmp_bytes_outLB), LTRIM$(bout) + calcbw rtmp_bw_in#, 1 + SetCaption (rtmp_bw_inLB), LTRIM$(bout) + calcbw rtmp_bw_out#, 1 + SetCaption (rtmp_bw_outLB), LTRIM$(bout) + SetCaption (rtmp_uptimeLB), calc_srt$(rtmp_uptime#, 0) + + IF Timer_Fail >= Stream_Fail_Delay THEN Control(Kb_DiffLB).ForeColor = RED_FAIL ELSE IF Kb_Diff# <= Bandwidth_Threshold THEN Control(Kb_DiffLB).ForeColor = RED_WARNING ELSE Control(Kb_DiffLB).ForeColor = GREEN_OK + SetCaption (Kb_DiffLB), LTRIM$(STR$(Kb_Diff#)) + " Kb/s" + + IF Timer_Fail >= Stream_Fail_Delay THEN Control(Timer_FailLB).ForeColor = RED_FAIL ELSE IF Timer_Fail >= 1 THEN Control(Timer_FailLB).ForeColor = RED_WARNING: SD = 1: _TITLE "Stream Down!" ELSE Control(Timer_FailLB).ForeColor = GREEN_OK + SetCaption (Timer_FailLB), calc_srt$(Timer_Fail, 1) + + IF Timer_Fail = 0 AND SD = 1 THEN SD = 0: _TITLE "Loopy SRT Monitor" + + IF Timer_Fail_Count >= 1 THEN Control(Timer_Fail_CountLB).ForeColor = RED_WARNING ELSE Control(Timer_Fail_CountLB).ForeColor = GREEN_OK + IF Timer_Fail_Count <> 1 THEN SetCaption (Timer_Fail_CountLB), LTRIM$(STR$(Timer_Fail_Count)) + " times" ELSE SetCaption (Timer_Fail_CountLB), LTRIM$(STR$(Timer_Fail_Count)) + " time" + + TIMEms tPingOut#, 0 + IF VAL(tout) >= .25 THEN Control(tPingOutLB).ForeColor = RED_WARNING ELSE Control(tPingOutLB).ForeColor = GREEN_OK + SetCaption (tPingOutLB), LTRIM$(STR$(VAL(tout) * 1000)) + "ms" + + IF srt_warmup = 1 THEN + IF td_update# <= 0.001 THEN td_update# = 0.001 + IF td_update# >= 9.999 THEN td_update# = 9.999 + IF td_update# <= 0.989 OR td_update# >= 1.011 THEN Control(td_updateLB).ForeColor = RED_WARNING ELSE Control(td_updateLB).ForeColor = GREEN_OK + TIMEms td_update#, 0 + SetCaption (td_updateLB), tout + " sec " + END IF + + SetCaption (Bandwidth_ThresholdLB), LTRIM$(STR$(Bandwidth_Threshold)) + " Kb/s" + SetCaption (Stream_Fail_DelayLB), calc_srt$(Stream_Fail_Delay, 1) + IF __MultiCameraSwitch = 0 THEN SetCaption (MultiCameraSwitchStatusLB), "Disabled" ELSE SetCaption (MultiCameraSwitchStatusLB), "Enabled" + IF __returnPreviousScene = 1 THEN SetCaption (Scene_CurrentLB), LEFT$(previousSceneDisplay$, 20) ELSE SetCaption (Scene_CurrentLB), LEFT$(Scene_Current$, 20) + + IF __MultiCameraSwitch = 1 THEN + 'temp1_stream1 variables + IF srt_warmup = 0 THEN Kb_Diff_stream1# = (Bandwidth_Threshold + 1) + IF multiStream1# = 0 THEN multiStream1# = 1 + multiStream1_temp1# = multiStream1# + IF multiStream1_temp1# >= 1 AND multiStream1_temp2# >= 1 THEN + Kb_Diff_stream1# = INT((multiStream1_temp1# - multiStream1_temp2#) / 128) + END IF + + IF Kb_Diff_stream1# >= Bandwidth_Threshold THEN Timer_Fail_Stream1 = 0 + IF Kb_Diff_stream1# <= Bandwidth_Threshold AND srt_warmup = 1 THEN Timer_Fail_Stream1 = Timer_Fail_Stream1 + 1 + IF MediaSource1Time <> 0 THEN Timer_Fail_Stream1 = 0: Timer_Fail = 0 'SRT + IF Timer_Fail_Stream1 > 19999 THEN Timer_Fail_Stream1 = 19999 + + 'temp1_stream2 variables + IF srt_warmup = 0 THEN Kb_Diff_stream2# = (Bandwidth_Threshold + 1) + IF multiStream2# = 0 THEN multiStream2# = 1 + multiStream2_temp1# = multiStream2# + IF multiStream2_temp1# >= 1 AND rtmp_bytes_in_temp2# >= 1 THEN + Kb_Diff_stream2# = INT((multiStream2_temp1# - multiStream2_temp2#) / 128) + END IF + + IF Kb_Diff_stream2# >= Bandwidth_Threshold THEN Timer_Fail_Stream2 = 0 + IF Kb_Diff_stream2# <= Bandwidth_Threshold AND srt_warmup = 1 THEN Timer_Fail_Stream2 = Timer_Fail_Stream2 + 1 + IF MediaSource2Time <> 0 THEN Timer_Fail_Stream2 = 0: Timer_Fail = 0 'SRT + IF Timer_Fail_Stream2 > 19999 THEN Timer_Fail_Stream2 = 19999 + + calcbw multiStream1#, 0 + SetCaption (multiStream1LB), LTRIM$(bout) + + IF Kb_Diff_stream1# < 0 THEN Kb_Diff_stream1# = 0 'Dirty fix for now + + IF Timer_Fail_Stream1 >= Stream_Fail_Delay THEN Control(Kb_Diff_stream1LB).ForeColor = RED_FAIL ELSE IF Kb_Diff_stream1# <= Bandwidth_Threshold THEN Control(Kb_Diff_stream1LB).ForeColor = RED_WARNING ELSE Control(Kb_Diff_stream1LB).ForeColor = GREEN_OK + SetCaption (Kb_Diff_stream1LB), LTRIM$(STR$(Kb_Diff_stream1#)) + " Kb/s" + + IF Timer_Fail_Stream1 >= Stream_Fail_Delay THEN Control(Timer_Fail_Stream1LB).ForeColor = RED_FAIL ELSE IF Timer_Fail_Stream1 >= 1 THEN Control(Timer_Fail_Stream1LB).ForeColor = RED_WARNING ELSE Control(Timer_Fail_Stream1LB).ForeColor = GREEN_OK + SetCaption (Timer_Fail_Stream1LB), calc_srt$(Timer_Fail_Stream1, 1) + + calcbw multiStream2#, 0 + SetCaption (multiStream2LB), LTRIM$(bout) + + IF Kb_Diff_stream2# < 0 THEN Kb_Diff_stream2# = 0 'Dirty fix for now + + IF Timer_Fail_Stream2 >= Stream_Fail_Delay THEN Control(Kb_Diff_stream2LB).ForeColor = RED_FAIL ELSE IF Kb_Diff_stream2# <= Bandwidth_Threshold THEN Control(Kb_Diff_stream2LB).ForeColor = RED_WARNING ELSE Control(Kb_Diff_stream2LB).ForeColor = GREEN_OK + SetCaption (Kb_Diff_stream2LB), LTRIM$(STR$(Kb_Diff_stream2#)) + " Kb/s" + + IF Timer_Fail_Stream2 >= Stream_Fail_Delay THEN Control(Timer_Fail_Stream2LB).ForeColor = RED_FAIL ELSE IF Timer_Fail_Stream2 >= 1 THEN Control(Timer_Fail_Stream2LB).ForeColor = RED_WARNING ELSE Control(Timer_Fail_Stream2LB).ForeColor = GREEN_OK + SetCaption (Timer_Fail_Stream2LB), calc_srt$(Timer_Fail_Stream2, 1) + END IF + + IF Scene_OK = "" OR Scene_Fail = "" OR Scene_Intro = "" THEN RefreshDisplayRequest = 1: Error_msg$ = "- Variable/s for scenes empty, check if " + c34 + config_main + c34 + " exists. (#5)": _DELAY 3 + + IF Timer_Fail >= 1 AND Exe_OK = 1 AND streamsUp$ <> "0" THEN + LoadImageMEM Control(PictureBox1), "tick_warning.png" + ELSEIF Timer_Fail = 0 AND Exe_OK = 1 THEN + LoadImageMEM Control(PictureBox1), "tick.png" + END IF + + 'Debug --- + IF Debug = 0 THEN + Control(DebugFrame).Hidden = True + Control(versionFrame).Hidden = False + Control(TimerLB).Hidden = True + Control(TimerSnapshotLB).Hidden = True + Control(td_displayVarLB).Hidden = True + Control(mouseXVarLB).Hidden = True + Control(mouseYVarLB).Hidden = True + Control(__ERRORLINEVarLB).Hidden = True + Control(Debug_TimerLB).Hidden = True + Control(Debug_Timer_SnapshotLB).Hidden = True + Control(td_displayLB).Hidden = True + Control(mouseXLB).Hidden = True + Control(mouseYLB).Hidden = True + Control(__ERRORLINELB).Hidden = True + Control(PictureBoxLogoBottom).Hidden = False + SetCaption Debug_TimerLB, "-" + SetCaption Debug_Timer_SnapshotLB, "-" + SetCaption td_displayLB, "-" + SetCaption mouseXLB, "-" + SetCaption mouseYLB, "-" + SetCaption __ERRORLINELB, "-" + SetCaption TimerLB, "-" 'TIMER + SetCaption TimerSnapshotLB, "-" + SetCaption td_displayVarLB, "-" + SetCaption mouseXVarLB, "-" + SetCaption mouseYVarLB, "-" + SetCaption __ERRORLINEVarLB, "-" + ELSEIF Debug = 1 THEN + Control(DebugFrame).Hidden = False + Control(versionFrame).Hidden = True + Control(TimerLB).Hidden = False + Control(TimerSnapshotLB).Hidden = False + Control(td_displayVarLB).Hidden = False + Control(mouseXVarLB).Hidden = False + Control(mouseYVarLB).Hidden = False + Control(__ERRORLINEVarLB).Hidden = False + Control(Debug_TimerLB).Hidden = False + Control(Debug_Timer_SnapshotLB).Hidden = False + Control(td_displayLB).Hidden = False + Control(mouseXLB).Hidden = False + Control(mouseYLB).Hidden = False + Control(__ERRORLINELB).Hidden = False + Control(PictureBoxLogoBottom).Hidden = True + SetCaption TimerLB, "TIMER" 'TIMER + SetCaption TimerSnapshotLB, "TIMER (snapshot)" + SetCaption td_displayVarLB, "td_display var" + SetCaption mouseXVarLB, "mouseX var" + SetCaption mouseYVarLB, "mouseY var" + SetCaption __ERRORLINEVarLB, "_ERRORLINE var" + TIMEms Debug_Timer#, 0 + SetCaption (Debug_Timer_SnapshotLB), tout + " sec " + END IF + + + + 'Remove RTMP stats + 'SRT + Control(rtmp_nacceptedLB).Hidden = True + Control(rtmp_codec_nclientsLB).Hidden = True + Control(rtmp_codec_videoLB).Hidden = True + Control(rtmp_codec_audioLB).Hidden = True + Control(rtmp_bytes_inLB).Hidden = True + Control(rtmp_bytes_outLB).Hidden = True + Control(rtmp_bw_inLB).Hidden = True + Control(rtmp_bw_outLB).Hidden = True + Control(rtmp_uptimeLB).Hidden = True + Control(Kb_DiffLB).Hidden = True + Control(Bandwidth_ThresholdLB).Hidden = True + Control(OBS_RemoteLB).Hidden = True + Control(multiStream1LB).Hidden = True + Control(Kb_Diff_stream1LB).Hidden = True + Control(multiStream2LB).Hidden = True + Control(Kb_Diff_stream2LB).Hidden = True + SetCaption (ServerPingLB), "MS ping" + SetCaption (RMTPLB), "" + SetCaption (clientsLB), "" + SetCaption (VideoLB), "" + SetCaption (AudioLB), "" + SetCaption (InBytesLB), "" + SetCaption (OutBytesLB), "" + SetCaption (InBitssLB), "" + SetCaption (OutBitssLB), "" + SetCaption (TimeLB), "" + SetCaption (InBytesDifferenceLB), "" + SetCaption (BandwidthThresholdLB), "" + SetCaption (OBSRemoteLB), "" + SetCaption (InBytesLB2), "" + SetCaption (InBytesDifferenceLB2), "" + SetCaption (InBytesLB3), "" + SetCaption (InBytesDifferenceLB3), "" + + + + IF verCheck$ <> "" THEN + SetCaption StatusLB, verCheck$ + updateDisplay = 1 + END IF + '--------- + + 'Get OBS scene ------------------------- + IF __returnPreviousScene = 1 THEN + returnPreviousSceneTime = returnPreviousSceneTime + 1 + IF returnPreviousSceneTime > 2 THEN returnPreviousSceneTime = 1 ELSE GOTO Exit_returnPreviousSceneCheck + returnFirstCheck = 1 + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _HIDE "%ComSpec% /C node.exe " + c34 + obs_get_scene + c34 + " > " + c34 + filePrevious + c34 + CASE "obscommand" + SHELL _HIDE "%ComSpec% /C " + c34 + c34 + obscommand_file + c34 + " /server=" + OBS_URL + " /password=" + OBS_PW + " /command=GetCurrentScene > " + c34 + filePrevious + c34 + c34 + END SELECT + _DELAY .01 + ON ERROR GOTO PUT_Fail + PUT_Refresh = 1 + IF _FILEEXISTS(filePrevious) THEN + OPEN filePrevious FOR INPUT AS #96 + 'LOCK #96 + DO UNTIL EOF(96) + IF LOF(96) = 0 THEN NoKill = 1: EXIT DO 'Overkill with EOF checking, but just being safe + IF EOF(96) THEN EXIT DO + LINE INPUT #96, file96$ + SELECT CASE WebsocketMethod + CASE "nodejs" + IF streamsUp$ <> "0" THEN previousScene$ = file96$ + previousSceneDisplay$ = file96$ + EXIT DO 'Output to previousScene$ + CASE "obscommand" + findSceneName = INSTR(file96$, " " + c34 + "name" + c34 + ": " + c34) + IF findSceneName THEN + findSceneName2 = INSTR(findSceneName + 11, file96$, c34) + IF streamsUp$ <> "0" THEN previousScene$ = MID$(file96$, findSceneName + 11, findSceneName2 - 12) + previousSceneDisplay$ = MID$(file96$, findSceneName + 11, findSceneName2 - 12) + EXIT DO 'Output to previousScene$ + END IF + END SELECT + LOOP + END IF + END IF + CLOSE #96 + + IF NoKill = 1 THEN NoKill = 0 ELSE IF _FILEEXISTS(filePrevious) THEN KILL filePrevious + ON ERROR GOTO 0 + PUT_Refresh = 0 + + + + + + + Exit_returnPreviousSceneCheck: + '--------------------------------------- + 'IF __FileStatusOutput = 1 THEN statusBitrateToFile "Bitrate: (#1: " + _TRIM$(STR$(Kb_Diff_stream1#)) + " Kb/s) (#2: " + _TRIM$(STR$(Kb_Diff_stream2#)) + " Kb/s)" + + 'Execute Stream OK + IF __MultiCameraSwitch = 0 THEN + IF MediaSource1Time <> 0 THEN 'SRT + 'IF Kb_Diff# >= Bandwidth_Threshold THEN + Timer_Fail = 0 + Scene_Current$ = Scene_OK + IF Exe_Fail = 1 THEN + Exe_Fail = 0 + Exe_OK = 1 + LoadImageMEM Control(PictureBox1), "tick.png" + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + Scene_OK + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + Scene_OK + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM UP]" + END IF + ELSE + IF Timer_Fail >= Stream_Fail_Delay THEN + IF Exe_OK = 1 THEN + Exe_OK = 0 + Exe_Fail = 1 + LoadImageMEM Control(PictureBox1), "cross.png" + IF Exe_Fail_First = 0 THEN + Exe_Fail_First = 1 + Scene_Current$ = Scene_Intro + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + Scene_Intro + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + Scene_Intro + shell_obscommand_2 + END SELECT + _DELAY .1 + ELSE + Scene_Current$ = Scene_Fail + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + Scene_Fail + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + Scene_Fail + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM DOWN]" + Timer_Fail_Count = Timer_Fail_Count + 1 + Timer_Failed = 1 + IF Timer_Fail_Count > 999 THEN Timer_Fail_Count = 999 + END IF + END IF + END IF + END IF + END IF + + IF streamsUp$ <> "0" THEN lastStreamUp$ = streamsUp$ + + IF streamsUp$ <> "0" AND returnPreviousSceneRemember = 1 THEN + IF streamsUp$ = "1" THEN titleScene1 = previousScene$ + IF streamsUp$ = "2" THEN titleScene2 = previousScene$ + IF streamsUp$ = "12" THEN titleScene12 = previousScene$ + END IF + + IF __MultiCameraSwitch = 1 THEN + IF Timer_Fail_Stream1 = 0 AND Timer_Fail_Stream2 >= Stream_Fail_Delay THEN + IF streamsUp$ <> "1" THEN + IF previousScene$ <> titleScene1 AND streamsUp$ = "0" THEN + IF lastStreamUp$ <> "1" THEN previousScene$ = titleScene1 + Scene_Current$ = previousScene$ + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + previousScene$ + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + previousScene$ + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM UP]:[CAMERA #1 UP]:[CAMERA #2 DOWN]" + ELSE + Scene_Current$ = titleScene1 + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + titleScene1 + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + titleScene1 + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM UP]:[CAMERA #1 UP]" + END IF + END IF + streamsUp$ = "1" + END IF + + IF Timer_Fail_Stream1 >= Stream_Fail_Delay AND Timer_Fail_Stream2 = 0 THEN + IF streamsUp$ <> "2" THEN + IF previousScene$ <> titleScene2 AND streamsUp$ = "0" THEN + IF lastStreamUp$ <> "2" THEN previousScene$ = titleScene2 + Scene_Current$ = previousScene$ + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + previousScene$ + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + previousScene$ + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM UP]:[CAMERA #2 UP]:[CAMERA #1 DOWN]" + ELSE + Scene_Current$ = titleScene2 + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + titleScene2 + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + titleScene2 + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM UP]:[CAMERA #2 UP]" + END IF + END IF + streamsUp$ = "2" + END IF + + IF Timer_Fail_Stream1 = 0 AND Timer_Fail_Stream2 = 0 THEN + IF streamsUp$ <> "12" THEN + IF previousScene$ <> titleScene12 AND streamsUp$ = "0" THEN + IF lastStreamUp$ <> "12" THEN previousScene$ = titleScene12 + Scene_Current$ = previousScene$ + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + previousScene$ + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + previousScene$ + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM UP]:[ALL CAMERAS UP]" + ELSE + Scene_Current$ = titleScene12 + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + titleScene12 + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + titleScene12 + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM UP]:[ALL CAMERAS UP]" + END IF + END IF + streamsUp$ = "12" + END IF + + IF Timer_Fail_Stream1 >= Stream_Fail_Delay AND Timer_Fail_Stream2 >= Stream_Fail_Delay THEN + IF streamsUp$ <> "0" THEN + streamsUp$ = "0" + LoadImageMEM Control(PictureBox1), "cross.png" + IF Exe_Fail_First = 0 THEN + Exe_Fail_First = 1 + Scene_Current$ = Scene_Intro + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + Scene_Intro + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + Scene_Intro + shell_obscommand_2 + END SELECT + _DELAY .1 + ELSE + Scene_Current$ = Scene_Fail + SELECT CASE WebsocketMethod + CASE "nodejs" + SHELL _DONTWAIT _HIDE shell_nodejs_1 + Scene_Fail + CASE "obscommand" + SHELL _DONTWAIT _HIDE shell_obscommand_1 + Scene_Fail + shell_obscommand_2 + END SELECT + _DELAY .1 + IF __FileStatusOutput = 1 THEN statusOutputToFile "[STREAM DOWN]:[ALL CAMERAS DOWN]" + Timer_Fail_Count = Timer_Fail_Count + 1 + Timer_Failed = 1 + IF Timer_Fail_Count > 999 THEN Timer_Fail_Count = 999 + END IF + END IF + END IF + END IF + + IF srt_warmup = 1 AND returnFirstCheck = 1 AND __MultiCameraSwitch = 1 AND previousSceneDisplay$ = "" THEN RefreshDisplayRequest = 1: Error_msg$ = "- Variable/s for scenes empty, check if OBS is open." + CHR$(10) + "- If OBS is open, check communication is available via Node.js. (#6)": _DELAY 3 + + 'temp2 variables + rtmp_bytes_in_temp2# = rtmp_bytes_in# + + 'temp_stream1 & temp_stream2 variables + multiStream1_temp2# = multiStream1# + multiStream2_temp2# = multiStream2# + + IF Exe_Fail_First = 0 THEN + Timer_Fail_First = Timer_Fail_First + 1 + IF (Stream_Fail_Delay + 3) - Timer_Fail_First <= 0 THEN Exe_Fail_First = 1 + END IF + + IF Exe_Fail_First_Stream1 = 0 THEN + Timer_Fail_First_Stream1 = Timer_Fail_First_Stream1 + 1 + IF (Stream_Fail_Delay + 3) - Timer_Fail_First_Stream1 <= 0 THEN Exe_Fail_First_Stream1 = 1 + END IF + + IF Exe_Fail_First_Stream2 = 0 THEN + Timer_Fail_First_Stream2 = Timer_Fail_First_Stream2 + 1 + IF (Stream_Fail_Delay + 3) - Timer_Fail_First_Stream2 <= 0 THEN Exe_Fail_First_Stream2 = 1 + END IF + + IF Refresh_Request = 1 THEN + Refresh_Request = 0 + RefreshDisplayRequest = 1 + END IF + + IF srt_warmup = 0 THEN srt_warmup = 1 + + td_display# = TIMER(.001) - timer1# +END SUB + diff --git a/source/loopy_srt_monitor.frm b/source/loopy_srt_monitor.frm new file mode 100644 index 0000000..a435c4d --- /dev/null +++ b/source/loopy_srt_monitor.frm @@ -0,0 +1,866 @@ +': This form was generated by +': InForm - GUI library for QB64 - v1.3 +': Fellippe Heitor, 2016-2020 - fellippe@qb64.org - @fellippeheitor +': https://github.com/FellippeHeitor/InForm +'----------------------------------------------------------- +SUB __UI_LoadForm + + DIM __UI_NewID AS LONG, __UI_RegisterResult AS LONG + + __UI_NewID = __UI_NewControl(__UI_Type_Form, "LoopySRTMonitor", 800, 450, 0, 0, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Loopy SRT Monitor" + Control(__UI_NewID).Font = SetFont("phagspa.ttf?segoeui.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 1) + Control(__UI_NewID).BackColor = _RGB32(38, 40, 45) + Control(__UI_NewID).BorderColor = _RGB32(163, 166, 170) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuBar, "FileMenu", 34, 22, 8, 0, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "File" + Control(__UI_NewID).ForeColor = _RGB32(255, 255, 255) + Control(__UI_NewID).BorderColor = _RGB32(170, 166, 170) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuBar, "OptionsMenu", 62, 22, 42, 0, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Options" + Control(__UI_NewID).ForeColor = _RGB32(255, 255, 255) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuBar, "HelpMenu", 41, 22, 104, 0, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Help" + Control(__UI_NewID).ForeColor = _RGB32(255, 255, 255) + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "SRT", 753, 64, 24, 34, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Status", 753, 64, 24, 111, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Settings", 753, 64, 24, 187, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "CurrentScene", 199, 106, 301, 264, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "DebugFrame", 753, 59, 24, 382, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(33, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Stream1", 245, 106, 24, 264, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream #1" + Control(__UI_NewID).Font = SetFont("phagspa.ttf?seguisb.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(64, 252, 48) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Stream2", 245, 106, 532, 264, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream #2" + Control(__UI_NewID).Font = SetFont("phagspa.ttf?seguisb.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(64, 252, 48) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "versionFrame", 753, 59, 24, 382, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("phagspa.ttf?seguisb.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(32, 128, 16) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "FileMenuExit", 63, 20, 0, 4, __UI_GetID("FileMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Exit" + ToolTip(__UI_NewID) = "Exits the program" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + Control(__UI_NewID).BorderColor = _RGB32(170, 166, 170) + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "RMTPLB", 65, 21, 42, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "RMTP" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "clientsLB", 62, 21, 98, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "#clients" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "VideoLB", 69, 21, 157, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Video" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "AudioLB", 57, 21, 210, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Audio" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesLB", 114, 21, 266, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "OutBytesLB", 108, 21, 370, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Out Bytes" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBitssLB", 110, 21, 472, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bits/s" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "OutBitssLB", 109, 21, 576, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Out bits/s" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "TimeLB", 83, 21, 677, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Time" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_nacceptedLB", 65, 21, 42, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_naccepted" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_codec_nclientsLB", 62, 21, 98, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_codec_nclients" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_codec_videoLB", 69, 21, 157, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_codec_video" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_codec_audioLB", 57, 21, 210, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_codec_audio" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_bytes_inLB", 114, 21, 266, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_bytes_in" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_bytes_outLB", 108, 21, 370, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_bytes_out" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_bw_inLB", 110, 21, 472, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_bw_in" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_bw_outLB", 109, 21, 576, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_bw_out" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_uptimeLB", 83, 21, 677, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_uptime" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(125, 187, 154) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesDifferenceLB", 189, 21, 42, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes difference" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "StreamFailTimerLB", 191, 21, 230, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream fail timer" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "FailCountLB", 111, 21, 418, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Fail count" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "ServerPingLB", 104, 21, 528, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Server ping" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "UpdateIntervalLB", 129, 21, 631, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Update interval" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Kb_DiffLB", 189, 21, 42, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Kb_Diff" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(131, 151, 163) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Timer_FailLB", 190, 21, 231, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer_Fail" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(131, 151, 163) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Timer_Fail_CountLB", 111, 21, 418, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer_Fail_Count" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(131, 151, 163) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "tPingOutLB", 104, 21, 528, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "tPingOut#" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(131, 151, 163) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "td_updateLB", 128, 21, 632, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "td_update" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(131, 151, 163) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "BandwidthThresholdLB", 190, 21, 42, 200, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Bandwidth threshold" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "StreamFailDelayLB", 190, 21, 232, 200, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream fail delay" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "MultiCameraSwitchLB", 225, 21, 420, 200, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Multi Camera Switch" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Bandwidth_ThresholdLB", 190, 21, 42, 222, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Bandwidth_Threshold" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(142, 166, 143) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Stream_Fail_DelayLB", 190, 21, 232, 222, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream_Fail_Delay" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(142, 166, 143) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "MultiCameraSwitchStatusLB", 225, 21, 420, 222, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "MultiCameraSwitchStatus" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(142, 166, 143) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "TimerLB", 146, 21, 42, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(33, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(195, 4, 4) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "TimerSnapshotLB", 175, 21, 185, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer (snapshot)" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(33, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(195, 4, 4) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "td_displayVarLB", 125, 21, 350, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "td_display var" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(33, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(195, 4, 4) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "mouseXVarLB", 80, 21, 460, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "mouseX var" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(33, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(195, 4, 4) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "mouseYVarLB", 90, 21, 540, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "mouseY var" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(33, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(195, 4, 4) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "__ERRORLINEVarLB", 130, 21, 622, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "_ERRORLINE var" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(33, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(195, 4, 4) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Debug_TimerLB", 146, 21, 42, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Debug_Timer" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(235, 96, 57) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Debug_Timer_SnapshotLB", 175, 21, 185, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Debug_Timer_Snapshot" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(235, 96, 57) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "td_displayLB", 125, 21, 350, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "td_display" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(235, 96, 57) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "mouseXLB", 80, 21, 460, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "mouseX" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(235, 96, 57) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "mouseYLB", 90, 21, 540, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "mouseY" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(235, 96, 57) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "__ERRORLINELB", 130, 21, 622, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "_ERRORLINE" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(235, 96, 57) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesLB2", 65, 21, 89, 278, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 221, 200) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 35) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesDifferenceLB2", 121, 21, 33, 306, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes difference" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 221, 200) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 35) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "failLB", 107, 21, 42, 334, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream fail timer" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 221, 200) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 35) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "multiStream1LB", 77, 21, 153, 278, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "multiStream1" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 181, 211) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Kb_Diff_stream1LB", 90, 21, 153, 306, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Kb_Diff_stream1" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 181, 211) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Timer_Fail_Stream1LB", 108, 21, 153, 334, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer_Fail_Stream1" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 181, 211) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Scene_CurrentLB", 187, 29, 307, 265, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Scene_Current" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?ebrimabd.ttf?phagspa.ttf?segoeui.ttf", 18) + Control(__UI_NewID).ForeColor = _RGB32(155, 255, 240) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 35) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).Align = __UI_Center + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_PictureBox, "PictureBox1", 64, 64, 369, 296, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).BackStyle = __UI_Transparent + Control(__UI_NewID).Align = __UI_Center + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesLB3", 65, 21, 597, 278, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 221, 200) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 35) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesDifferenceLB3", 121, 21, 541, 306, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes difference" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 221, 200) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 35) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "failLB2", 107, 21, 549, 334, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream fail timer" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 221, 200) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 35) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "multiStream2LB", 77, 21, 661, 278, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "multiStream2" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 181, 211) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Kb_Diff_stream2LB", 90, 21, 661, 306, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Kb_Diff_stream2" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 181, 211) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Timer_Fail_Stream2LB", 108, 21, 661, 334, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer_Fail_Stream2" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(185, 181, 211) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "OptionsMenuDebug", 82, 20, 0, 4, __UI_GetID("OptionsMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Debug" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + __UI_RegisterResult = RegisterKeyCombo("Ctrl+D", __UI_NewID) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "HelpMenuVisitWebsite", 114, 20, 0, 4, __UI_GetID("HelpMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Visit Website" + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "HelpMenuCheckForUpdates", 149, 20, 0, 24, __UI_GetID("HelpMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Check for updates-" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "OptionsMenuFullscreen", 98, 20, 0, 24, __UI_GetID("OptionsMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Fullscreen" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + __UI_RegisterResult = RegisterKeyCombo("Ctrl+F", __UI_NewID) + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "IndicatorLB", 20, 20, 786, 0, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).ForeColor = _RGB32(73, 70, 76) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "HelpMenuAbout", 79, 20, 0, 51, __UI_GetID("HelpMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "About" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "StatusLB", 310, 21, 450, 1, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("segoeui.ttf?seguisb.ttf?phagspa.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(60, 180, 240) + Control(__UI_NewID).Align = __UI_Right + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_PictureBox, "PictureBoxLogoBottom", 401, 30, 200, 396, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(33, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).Align = __UI_Center + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "OBSRemoteLB", 118, 21, 642, 200, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "OBS Remote" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(3, 4, 4) + Control(__UI_NewID).BackColor = _RGB32(164, 168, 172) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "OBS_RemoteLB", 118, 21, 642, 222, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "OBS_Remote" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(142, 166, 143) + Control(__UI_NewID).BackColor = _RGB32(25, 28, 33) + Control(__UI_NewID).BorderColor = _RGB32(10, 12, 15) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + +END SUB + +SUB __UI_AssignIDs + LoopySRTMonitor = __UI_GetID("LoopySRTMonitor") + FileMenu = __UI_GetID("FileMenu") + OptionsMenu = __UI_GetID("OptionsMenu") + HelpMenu = __UI_GetID("HelpMenu") + SRT = __UI_GetID("SRT") + Status = __UI_GetID("Status") + Settings = __UI_GetID("Settings") + CurrentScene = __UI_GetID("CurrentScene") + DebugFrame = __UI_GetID("DebugFrame") + Stream1 = __UI_GetID("Stream1") + Stream2 = __UI_GetID("Stream2") + versionFrame = __UI_GetID("versionFrame") + FileMenuExit = __UI_GetID("FileMenuExit") + RMTPLB = __UI_GetID("RMTPLB") + clientsLB = __UI_GetID("clientsLB") + VideoLB = __UI_GetID("VideoLB") + AudioLB = __UI_GetID("AudioLB") + InBytesLB = __UI_GetID("InBytesLB") + OutBytesLB = __UI_GetID("OutBytesLB") + InBitssLB = __UI_GetID("InBitssLB") + OutBitssLB = __UI_GetID("OutBitssLB") + TimeLB = __UI_GetID("TimeLB") + rtmp_nacceptedLB = __UI_GetID("rtmp_nacceptedLB") + rtmp_codec_nclientsLB = __UI_GetID("rtmp_codec_nclientsLB") + rtmp_codec_videoLB = __UI_GetID("rtmp_codec_videoLB") + rtmp_codec_audioLB = __UI_GetID("rtmp_codec_audioLB") + rtmp_bytes_inLB = __UI_GetID("rtmp_bytes_inLB") + rtmp_bytes_outLB = __UI_GetID("rtmp_bytes_outLB") + rtmp_bw_inLB = __UI_GetID("rtmp_bw_inLB") + rtmp_bw_outLB = __UI_GetID("rtmp_bw_outLB") + rtmp_uptimeLB = __UI_GetID("rtmp_uptimeLB") + InBytesDifferenceLB = __UI_GetID("InBytesDifferenceLB") + StreamFailTimerLB = __UI_GetID("StreamFailTimerLB") + FailCountLB = __UI_GetID("FailCountLB") + ServerPingLB = __UI_GetID("ServerPingLB") + UpdateIntervalLB = __UI_GetID("UpdateIntervalLB") + Kb_DiffLB = __UI_GetID("Kb_DiffLB") + Timer_FailLB = __UI_GetID("Timer_FailLB") + Timer_Fail_CountLB = __UI_GetID("Timer_Fail_CountLB") + tPingOutLB = __UI_GetID("tPingOutLB") + td_updateLB = __UI_GetID("td_updateLB") + BandwidthThresholdLB = __UI_GetID("BandwidthThresholdLB") + StreamFailDelayLB = __UI_GetID("StreamFailDelayLB") + MultiCameraSwitchLB = __UI_GetID("MultiCameraSwitchLB") + Bandwidth_ThresholdLB = __UI_GetID("Bandwidth_ThresholdLB") + Stream_Fail_DelayLB = __UI_GetID("Stream_Fail_DelayLB") + MultiCameraSwitchStatusLB = __UI_GetID("MultiCameraSwitchStatusLB") + TimerLB = __UI_GetID("TimerLB") + TimerSnapshotLB = __UI_GetID("TimerSnapshotLB") + td_displayVarLB = __UI_GetID("td_displayVarLB") + mouseXVarLB = __UI_GetID("mouseXVarLB") + mouseYVarLB = __UI_GetID("mouseYVarLB") + __ERRORLINEVarLB = __UI_GetID("__ERRORLINEVarLB") + Debug_TimerLB = __UI_GetID("Debug_TimerLB") + Debug_Timer_SnapshotLB = __UI_GetID("Debug_Timer_SnapshotLB") + td_displayLB = __UI_GetID("td_displayLB") + mouseXLB = __UI_GetID("mouseXLB") + mouseYLB = __UI_GetID("mouseYLB") + __ERRORLINELB = __UI_GetID("__ERRORLINELB") + InBytesLB2 = __UI_GetID("InBytesLB2") + InBytesDifferenceLB2 = __UI_GetID("InBytesDifferenceLB2") + failLB = __UI_GetID("failLB") + multiStream1LB = __UI_GetID("multiStream1LB") + Kb_Diff_stream1LB = __UI_GetID("Kb_Diff_stream1LB") + Timer_Fail_Stream1LB = __UI_GetID("Timer_Fail_Stream1LB") + Scene_CurrentLB = __UI_GetID("Scene_CurrentLB") + PictureBox1 = __UI_GetID("PictureBox1") + InBytesLB3 = __UI_GetID("InBytesLB3") + InBytesDifferenceLB3 = __UI_GetID("InBytesDifferenceLB3") + failLB2 = __UI_GetID("failLB2") + multiStream2LB = __UI_GetID("multiStream2LB") + Kb_Diff_stream2LB = __UI_GetID("Kb_Diff_stream2LB") + Timer_Fail_Stream2LB = __UI_GetID("Timer_Fail_Stream2LB") + OptionsMenuDebug = __UI_GetID("OptionsMenuDebug") + HelpMenuVisitWebsite = __UI_GetID("HelpMenuVisitWebsite") + HelpMenuCheckForUpdates = __UI_GetID("HelpMenuCheckForUpdates") + OptionsMenuFullscreen = __UI_GetID("OptionsMenuFullscreen") + IndicatorLB = __UI_GetID("IndicatorLB") + HelpMenuAbout = __UI_GetID("HelpMenuAbout") + StatusLB = __UI_GetID("StatusLB") + PictureBoxLogoBottom = __UI_GetID("PictureBoxLogoBottom") + OBSRemoteLB = __UI_GetID("OBSRemoteLB") + OBS_RemoteLB = __UI_GetID("OBS_RemoteLB") +END SUB diff --git a/source/loopy_srt_monitor_light.frm b/source/loopy_srt_monitor_light.frm new file mode 100644 index 0000000..70ba707 --- /dev/null +++ b/source/loopy_srt_monitor_light.frm @@ -0,0 +1,874 @@ +': This form was generated by +': InForm - GUI library for QB64 - v1.2 +': Fellippe Heitor, 2016-2019 - fellippe@qb64.org - @fellippeheitor +': https://github.com/FellippeHeitor/InForm +'----------------------------------------------------------- +SUB __UI_LoadForm_Light + + DIM __UI_NewID AS LONG, __UI_RegisterResult AS LONG + + __UI_NewID = __UI_NewControl(__UI_Type_Form, "LoopySRTMonitor", 800, 450, 0, 0, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Loopy SRT Monitor" + Control(__UI_NewID).Font = SetFont("phagspa.ttf?segoeui.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 1) + Control(__UI_NewID).BackColor = _RGB32(233, 235, 237) + Control(__UI_NewID).BorderColor = _RGB32(163, 166, 170) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuBar, "FileMenu", 34, 22, 8, 0, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "File" + Control(__UI_NewID).ForeColor = _RGB32(1, 2, 3) + Control(__UI_NewID).BorderColor = _RGB32(170, 166, 170) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuBar, "OptionsMenu", 62, 22, 42, 0, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Options" + Control(__UI_NewID).ForeColor = _RGB32(1, 2, 3) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuBar, "HelpMenu", 41, 22, 104, 0, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Help" + Control(__UI_NewID).ForeColor = _RGB32(1, 2, 3) + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "SRT", 753, 64, 24, 34, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Status", 753, 64, 24, 111, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Settings", 753, 64, 24, 187, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "CurrentScene", 199, 106, 301, 264, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "DebugFrame", 753, 59, 24, 382, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Stream1", 245, 106, 24, 264, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream #1" + Control(__UI_NewID).Font = SetFont("phagspa.ttf?seguisb.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Stream2", 245, 106, 532, 264, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream #2" + Control(__UI_NewID).Font = SetFont("phagspa.ttf?seguisb.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "versionFrame", 753, 59, 24, 382, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("phagspa.ttf?seguisb.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).HasBorder = True + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "FileMenuExit", 63, 20, 0, 4, __UI_GetID("FileMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Exit" + ToolTip(__UI_NewID) = "Exits the program" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + Control(__UI_NewID).BorderColor = _RGB32(170, 166, 170) + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "RMTPLB", 65, 21, 42, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "RMTP" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "clientsLB", 62, 21, 98, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "#clients" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "VideoLB", 69, 21, 157, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Video" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "AudioLB", 57, 21, 210, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Audio" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesLB", 114, 21, 266, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "OutBytesLB", 108, 21, 370, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Out Bytes" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBitssLB", 110, 21, 472, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bits/s" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "OutBitssLB", 109, 21, 576, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Out bits/s" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "TimeLB", 83, 21, 677, 47, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Time" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_nacceptedLB", 65, 21, 42, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_naccepted" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_codec_nclientsLB", 62, 21, 98, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_codec_nclients" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_codec_videoLB", 69, 21, 157, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_codec_video" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_codec_audioLB", 57, 21, 210, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_codec_audio" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_bytes_inLB", 114, 21, 266, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_bytes_in" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_bytes_outLB", 108, 21, 370, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_bytes_out" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_bw_inLB", 110, 21, 472, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_bw_in" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_bw_outLB", 109, 21, 576, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_bw_out" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "rtmp_uptimeLB", 83, 21, 677, 69, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "rtmp_uptime" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesDifferenceLB", 189, 21, 42, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes difference" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "StreamFailTimerLB", 191, 21, 230, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream fail timer" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "FailCountLB", 111, 21, 418, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Fail count" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "ServerPingLB", 104, 21, 528, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Server ping" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "UpdateIntervalLB", 129, 21, 631, 124, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Update interval" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Kb_DiffLB", 189, 21, 42, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Kb_Diff" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Timer_FailLB", 190, 21, 231, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer_Fail" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Timer_Fail_CountLB", 111, 21, 418, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer_Fail_Count" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "tPingOutLB", 104, 21, 528, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "tPingOut#" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "td_updateLB", 128, 21, 632, 146, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "td_update" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "BandwidthThresholdLB", 190, 21, 42, 200, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Bandwidth threshold" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "StreamFailDelayLB", 190, 21, 232, 200, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream fail delay" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "MultiCameraSwitchLB", 225, 21, 420, 200, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Multi Camera Switch" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Bandwidth_ThresholdLB", 190, 21, 42, 222, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Bandwidth_Threshold" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Stream_Fail_DelayLB", 190, 21, 232, 222, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream_Fail_Delay" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "MultiCameraSwitchStatusLB", 225, 21, 420, 222, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "MultiCameraSwitchStatus" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "TimerLB", 146, 21, 42, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(250, 73, 69) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "TimerSnapshotLB", 175, 21, 185, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer (snapshot)" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(250, 73, 69) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "td_displayVarLB", 125, 21, 350, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "td_display var" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(250, 73, 69) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "mouseXVarLB", 80, 21, 460, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "mouseX var" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(250, 73, 69) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "mouseYVarLB", 90, 21, 540, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "mouseY var" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(250, 73, 69) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "__ERRORLINEVarLB", 130, 21, 622, 393, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "_ERRORLINE var" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(250, 73, 69) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Debug_TimerLB", 146, 21, 42, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Debug_Timer" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Debug_Timer_SnapshotLB", 175, 21, 185, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Debug_Timer_Snapshot" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "td_displayLB", 125, 21, 350, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "td_display" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "mouseXLB", 80, 21, 460, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "mouseX" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "mouseYLB", 90, 21, 540, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "mouseY" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "__ERRORLINELB", 130, 21, 622, 415, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "_ERRORLINE" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesLB2", 65, 21, 89, 278, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesDifferenceLB2", 121, 21, 33, 306, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes difference" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "failLB", 107, 21, 42, 334, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream fail timer" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "multiStream1LB", 77, 21, 153, 278, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "multiStream1" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Kb_Diff_stream1LB", 90, 21, 153, 306, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Kb_Diff_stream1" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Timer_Fail_Stream1LB", 108, 21, 153, 334, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer_Fail_Stream1" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Scene_CurrentLB", 187, 29, 307, 265, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Scene_Current" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?ebrimabd.ttf?phagspa.ttf?segoeui.ttf", 18) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).Align = __UI_Center + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_PictureBox, "PictureBox1", 64, 64, 369, 296, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).BackStyle = __UI_Transparent + Control(__UI_NewID).Align = __UI_Center + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesLB3", 65, 21, 597, 278, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "InBytesDifferenceLB3", 121, 21, 541, 306, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "In bytes difference" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "failLB2", 107, 21, 549, 334, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Stream fail timer" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "multiStream2LB", 77, 21, 661, 278, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "multiStream2" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Kb_Diff_stream2LB", 90, 21, 661, 306, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Kb_Diff_stream2" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "Timer_Fail_Stream2LB", 108, 21, 661, 334, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Timer_Fail_Stream2" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "OptionsMenuDebug", 82, 20, 0, 4, __UI_GetID("OptionsMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Debug" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + __UI_RegisterResult = RegisterKeyCombo("Ctrl+D", __UI_NewID) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "HelpMenuVisitWebsite", 114, 20, 0, 4, __UI_GetID("HelpMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Visit Website" + Control(__UI_NewID).BackColor = _RGB32(38, 40, 45) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "HelpMenuCheckForUpdates", 149, 20, 0, 24, __UI_GetID("HelpMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Check for updates-" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "OptionsMenuFullscreen", 98, 20, 0, 24, __UI_GetID("OptionsMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "Fullscreen" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + __UI_RegisterResult = RegisterKeyCombo("Ctrl+F", __UI_NewID) + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "IndicatorLB", 20, 20, 786, 0, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_MenuItem, "HelpMenuAbout", 79, 20, 0, 51, __UI_GetID("HelpMenu")) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "About" + Control(__UI_NewID).ForeColor = _RGB32(1, 1, 2) + Control(__UI_NewID).BackColor = _RGB32(254, 254, 255) + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "StatusLB", 310, 21, 450, 1, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("segoeui.ttf?seguisb.ttf?phagspa.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).Align = __UI_Right + Control(__UI_NewID).VAlign = __UI_Middle + + __UI_NewID = __UI_NewControl(__UI_Type_PictureBox, "PictureBoxLogoBottom", 401, 30, 200, 396, 0) + __UI_RegisterResult = 0 + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).Align = __UI_Center + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).BorderSize = 1 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "OBSRemoteLB", 118, 21, 642, 200, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "OBS Remote" + Control(__UI_NewID).Font = SetFont("segoeui.ttf?phagspa.ttf?seguisb.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(192, 194, 196) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + + __UI_NewID = __UI_NewControl(__UI_Type_Label, "OBS_RemoteLB", 118, 21, 642, 222, 0) + __UI_RegisterResult = 0 + SetCaption __UI_NewID, "OBS_Remote" + Control(__UI_NewID).Font = SetFont("seguisb.ttf?phagspa.ttf?segoeui.ttf", 12) + Control(__UI_NewID).ForeColor = _RGB32(5, 5, 9) + Control(__UI_NewID).BackColor = _RGB32(220, 219, 223) + Control(__UI_NewID).BorderColor = _RGB32(255, 254, 255) + Control(__UI_NewID).VAlign = __UI_Middle + Control(__UI_NewID).Padding = 10 + +END SUB + +SUB __UI_AssignIDs_Light + LoopySRTMonitor = __UI_GetID("LoopySRTMonitor") + FileMenu = __UI_GetID("FileMenu") + OptionsMenu = __UI_GetID("OptionsMenu") + HelpMenu = __UI_GetID("HelpMenu") + SRT = __UI_GetID("SRT") + Status = __UI_GetID("Status") + Settings = __UI_GetID("Settings") + CurrentScene = __UI_GetID("CurrentScene") + DebugFrame = __UI_GetID("DebugFrame") + Stream1 = __UI_GetID("Stream1") + Stream2 = __UI_GetID("Stream2") + versionFrame = __UI_GetID("versionFrame") + FileMenuExit = __UI_GetID("FileMenuExit") + RMTPLB = __UI_GetID("RMTPLB") + clientsLB = __UI_GetID("clientsLB") + VideoLB = __UI_GetID("VideoLB") + AudioLB = __UI_GetID("AudioLB") + InBytesLB = __UI_GetID("InBytesLB") + OutBytesLB = __UI_GetID("OutBytesLB") + InBitssLB = __UI_GetID("InBitssLB") + OutBitssLB = __UI_GetID("OutBitssLB") + TimeLB = __UI_GetID("TimeLB") + rtmp_nacceptedLB = __UI_GetID("rtmp_nacceptedLB") + rtmp_codec_nclientsLB = __UI_GetID("rtmp_codec_nclientsLB") + rtmp_codec_videoLB = __UI_GetID("rtmp_codec_videoLB") + rtmp_codec_audioLB = __UI_GetID("rtmp_codec_audioLB") + rtmp_bytes_inLB = __UI_GetID("rtmp_bytes_inLB") + rtmp_bytes_outLB = __UI_GetID("rtmp_bytes_outLB") + rtmp_bw_inLB = __UI_GetID("rtmp_bw_inLB") + rtmp_bw_outLB = __UI_GetID("rtmp_bw_outLB") + rtmp_uptimeLB = __UI_GetID("rtmp_uptimeLB") + InBytesDifferenceLB = __UI_GetID("InBytesDifferenceLB") + StreamFailTimerLB = __UI_GetID("StreamFailTimerLB") + FailCountLB = __UI_GetID("FailCountLB") + ServerPingLB = __UI_GetID("ServerPingLB") + UpdateIntervalLB = __UI_GetID("UpdateIntervalLB") + Kb_DiffLB = __UI_GetID("Kb_DiffLB") + Timer_FailLB = __UI_GetID("Timer_FailLB") + Timer_Fail_CountLB = __UI_GetID("Timer_Fail_CountLB") + tPingOutLB = __UI_GetID("tPingOutLB") + td_updateLB = __UI_GetID("td_updateLB") + BandwidthThresholdLB = __UI_GetID("BandwidthThresholdLB") + StreamFailDelayLB = __UI_GetID("StreamFailDelayLB") + MultiCameraSwitchLB = __UI_GetID("MultiCameraSwitchLB") + Bandwidth_ThresholdLB = __UI_GetID("Bandwidth_ThresholdLB") + Stream_Fail_DelayLB = __UI_GetID("Stream_Fail_DelayLB") + MultiCameraSwitchStatusLB = __UI_GetID("MultiCameraSwitchStatusLB") + TimerLB = __UI_GetID("TimerLB") + TimerSnapshotLB = __UI_GetID("TimerSnapshotLB") + td_displayVarLB = __UI_GetID("td_displayVarLB") + mouseXVarLB = __UI_GetID("mouseXVarLB") + mouseYVarLB = __UI_GetID("mouseYVarLB") + __ERRORLINEVarLB = __UI_GetID("__ERRORLINEVarLB") + Debug_TimerLB = __UI_GetID("Debug_TimerLB") + Debug_Timer_SnapshotLB = __UI_GetID("Debug_Timer_SnapshotLB") + td_displayLB = __UI_GetID("td_displayLB") + mouseXLB = __UI_GetID("mouseXLB") + mouseYLB = __UI_GetID("mouseYLB") + __ERRORLINELB = __UI_GetID("__ERRORLINELB") + InBytesLB2 = __UI_GetID("InBytesLB2") + InBytesDifferenceLB2 = __UI_GetID("InBytesDifferenceLB2") + failLB = __UI_GetID("failLB") + multiStream1LB = __UI_GetID("multiStream1LB") + Kb_Diff_stream1LB = __UI_GetID("Kb_Diff_stream1LB") + Timer_Fail_Stream1LB = __UI_GetID("Timer_Fail_Stream1LB") + Scene_CurrentLB = __UI_GetID("Scene_CurrentLB") + PictureBox1 = __UI_GetID("PictureBox1") + InBytesLB3 = __UI_GetID("InBytesLB3") + InBytesDifferenceLB3 = __UI_GetID("InBytesDifferenceLB3") + failLB2 = __UI_GetID("failLB2") + multiStream2LB = __UI_GetID("multiStream2LB") + Kb_Diff_stream2LB = __UI_GetID("Kb_Diff_stream2LB") + Timer_Fail_Stream2LB = __UI_GetID("Timer_Fail_Stream2LB") + OptionsMenuDebug = __UI_GetID("OptionsMenuDebug") + HelpMenuVisitWebsite = __UI_GetID("HelpMenuVisitWebsite") + HelpMenuCheckForUpdates = __UI_GetID("HelpMenuCheckForUpdates") + OptionsMenuFullscreen = __UI_GetID("OptionsMenuFullscreen") + IndicatorLB = __UI_GetID("IndicatorLB") + HelpMenuAbout = __UI_GetID("HelpMenuAbout") + StatusLB = __UI_GetID("StatusLB") + PictureBoxLogoBottom = __UI_GetID("PictureBoxLogoBottom") + OBSRemoteLB = __UI_GetID("OBSRemoteLB") + OBS_RemoteLB = __UI_GetID("OBS_RemoteLB") +END SUB diff --git a/source/readme_InForm.txt b/source/readme_InForm.txt new file mode 100644 index 0000000..e43837e --- /dev/null +++ b/source/readme_InForm.txt @@ -0,0 +1,19 @@ +Download QB64 v1.4 or newer from: https://www.qb64.org/ +Download InForm v1.3 or newer from: https://www.qb64.org/inform/ + +Changes to InForm: + +InForm.ui +--------- + +FIND: b$ = "Initializing..." +ADD BEFORE: COLOR _RGB32(254,254,255) + +FIND: 'This.Canvas holds the children controls' images +ADD BEFORE: _SETALPHA 16, _RGB(0, 0, 0) TO _RGB(255, 255, 255), ControlImage + +FIND: __UI_LoadForm +REPLACE W/: IF INSTR(COMMAND$, "-light") THEN __UI_LoadForm_Light ELSE __UI_LoadForm + +FIND: IF FPS >= 30 THEN +REPLACE W/: IF FPS >= 15 THEN diff --git a/srt_stats_monitor.png b/srt_stats_monitor.png new file mode 100644 index 0000000000000000000000000000000000000000..5b710ec7f4ab1f4dbd5839678df8197cb96c8a4f GIT binary patch literal 24079 zcmc$_cT`i+wl5s9ASj?9AWal$Ql)ny(tGc{caYwLihy(lDbhmkz4xdPdXZj3=)FVe zA#dwBcYODJ_dEB#H^v*|`y<)edt|LO*P3(w*8I)6c9@EiG#)NFE(ip|la-NB1A%VS zfIznp_pyK{PVRa;z=hadQpa7~)zZ}6*4gQ~hOMI|2z&Jo750nQ`FYcYz#p*PWfdj= zKB6Jm-;rPd9^t%`(RBlX9uWTd+!{eZu0bHfC|LK|)y2_d_e)c)ff-LZ@i@De(kb6dYzo8LBB-rW2n+55)n2n-!9txgj;aHj?D z>+72s@c@2SD0Q#^msg*4fp4`()xdYobE{h*kc?PAF!e9LS~!?pYZSXA*L#ci%p3zL zsC+Q?9>W3Unl()M3v2|$b&y-_>&wC;dF;S+g^DKve30#@*j z4)=|z%^z*8GpNTNkAlrK3Q7Hp`;!Gd^m=z^=?6Erwl1faBv+^JoXLJhQg3YMK0Bo> zPjUE&9l~e@70JKPo9umk{bZYF5beCyjWQ1X^vR#fx-tq_g@orL@!dKzvhrz_?jN;f z5niJz7A!(S&20f6{qCZkfYSs$c80T?eH)ySqRKUPbobH&PRS0NeLeDL>F;rl2k`Iu z`Q5|SAE|~gg>vvl$wU@j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