What is a pre-recorded scenario JSON file?
masterThe emulator works by REPLAYING IPC (Inter-Process Communication) messages between a sender and a receiver. A scenario JSON file contains a timeline array of these messages, recorded from a real Google Cast device. Each entry in the timeline includes:
time: The timestamp of the message (counted from bootstrap).ipcMessage: The stringified IPC message data sent from the sender.
{
"timeline": [
{
"time": 5520,
"ipcMessage": "{\"data\":{\\\"type\\\":\\\"visibilitychanged\\\"},\"namespace\":\"urn:x-cast:com.google.cast.system\",\"senderId\":\"SystemSender\"}"
}
]
}