Rec. ITU-T H.766 (08/2018) - Lua for IPTV services
Summary
History
Table of Contents
1 Scope
2 References
3 Definitions
     3.1 Terms defined elsewhere
     3.2 Terms defined in this Recommendation
4 Abbreviations and acronyms
5 The Lua scripting language
6 Lua restricted functionalities
     6.1 Functions removed from Lua library
7 Execution model
8 Lua IPTV core API
     8.1 The canvas module
     8.2 The event module
     8.3 The persistent module
     8.4 The security module
     8.5 Lua event classes
          8.5.1 The key class
          8.5.2 The pointer class
          8.5.3 The udp class
          8.5.4 The tcp class
          8.5.5 The http class
          8.5.6 The metadata class
          8.5.7 The user class
9 Lua IPTV extended API
     9.1 The pvr module
          9.1.1 Constructors
          9.1.2 Attributes
          9.1.3 Primitives
     9.2 The widgets module
          9.2.1 Object widget
               9.2.1.1 Constructors
               9.2.1.2 Attributes
               9.2.1.3 Miscellaneous
          9.2.2 Object textinput
               9.2.2.1 Constructors
               9.2.2.2 Attributes
          9.2.3 Object cursor
               9.2.3.1 Attributes
               9.2.3.2 Miscellaneous
     9.3 Lua event classes
          9.3.1 Extended tcp class:
          9.3.2 Extended udp class:
          9.3.3 The rtp class
          9.3.4 The sms class
          9.3.5 The sds class
          9.3.6 The smartcard class
          9.3.7 The pvr class
          9.3.8 The widget class
     A.1 The language
          A.1.1 Notation used
          A.1.2 Lexical conventions
          A.1.3 Values and types
               A.1.3.1 Basic types
               A.1.3.2 Coercion
          A.1.4 Variables
          A.1.5 Statements
               A.1.5.1 Basic concepts
               A.1.5.2 Chunks
               A.1.5.3 Blocks
               A.1.5.4 Assignment
               A.1.5.5 Control structures
               A.1.5.6 For statement
               A.1.5.7 Function calls as statements
               A.1.5.8 Local declarations
          A.1.6 Expressions
               A.1.6.1 Basic expressions
               A.1.6.2 Arithmetic operators
               A.1.6.3 Relational operators
               A.1.6.4 Logical operators
               A.1.6.5  Concatenation
               A.1.6.6  The length operator
               A.1.6.7 Precedence
               A.1.6.8 Table constructors
               A.1.6.9  Function calls
               A.1.6.10 Function definitions
          A.1.7 Visibility rules
          A.1.8 Error handling
          A.1.9 Metatables
          A.1.10 Environments
          A.1.11 Garbage collection
               A.1.11.1 Basic concepts
               A.1.11.2 Garbage-collection metamethods
               A.1.11.3 Weak tables
          A.1.12 Coroutines
     A.2 The application program interface
          A.2.1 Basic concepts
          A.2.2 The stack
          A.2.3 Stack size
          A.2.4 Pseudo-indices
          A.2.5 C Closures
          A.2.6 Registry
          A.2.7 Error handling in C
          A.2.8 Functions and types
          A.2.9 The debug interface
     A.3 The auxiliary library
          A.3.1 Basic concepts
          A.3.2 Functions and types
     A.4 Standard libraries
          A.4.1 Overview
          A.4.2 Basic functions
          A.4.3 Coroutine manipulation
          A.4.4 Modules
          A.4.5 String manipulation
          A.4.6 Table manipulation
          A.4.7 Mathematical functions
          A.4.8 Input and output facilities
          A.4.9 Operating system facilities
          A.4.10 The debug library
     A.5 Lua Stand-alone
     A.6 Incompatibilities with the version 5.0
          A.6.1 Changes in the language
          A.6.2 Changes in the libraries
          A.6.3 Changes in the API
     A.7 The complete syntax of Lua
     I.1 Example using canvas and event modules