GingaConfig class

Ginga environment configuration.

Example configuration JSON:

{
  "appSrc": "main.ncl",
  "mainAvSrc": "video.mp4",
  "startWithCCWS": true,
  "startWithMainAv": true,
  "envVariables": {
    "system.language": "por",
    "user.age": "30",
    "default.font": "sans",
    "service.id": "1",
    "si.ts": "2",
    "channel.num": "10",
    "shared.key": "val"
  },
  "usersDataJson": [
    {
      "id": "u1",
      "name": "User 1",
      "properties": {
        "age": 30,
        "closedCaptioning": true
      }
    }
  ]
}

Note: "usersDataJson" can also be a URI or file path string pointing to a JSON file (e.g. "usersDataJson": "users.json").

Constructors

GingaConfig({String? appSrc, bool startWithCCWS = false, bool startWithMainAv = false, String mainAvSrc = defaultMainAvSrc, Rectangle<double> graphsPlaneBounds = const Rectangle<double>(0.0, 0.0, 720.0, 480.0), Map<String, String>? envVariables, Users? users})

Properties

appSrc ↔ String?
getter/setter pair
envVariables → Map<String, String>
final
graphsPlaneBounds → Rectangle<double>
final
hashCode → int
The hash code for this object.
no setterinherited
mainAvSrc → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startWithCCWS → bool
final
startWithMainAv → bool
final
users → Users
final

Methods

getGroup(String group) → Map<String, String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(String jsonOrSrc, [String? baseDirSrc, GingaCC? gingacc]) → Future<GingaConfig>

Constants

defaultMainAVSrc → const String
defaultMainAvSrc → const String
supportedGroups → const List<String>