Ticket #1262 (closed feature: fixed)
Accept JSON flashvars in Flash mode
|Reported by:||pablo||Owned by:||pablo|
Another use case is plugins which may benefit from having its configuration represented in a nested structure.
The embedder should be able to accept objects in its configuration and pass the entire object to the player in Flash mode.
The proposed mechanism is:
- Have the Embedder serialize the JSON into a string (perhaps with some sequence of identifier characters to differentiate it from a string containing curly braces)
- Pass the serialized JSON to the Flash player at embed time via flashvars
- In Flash mode's Configger class, de-serialize any options (player or plugin) in serialized JSON format into generic Objects.