createSimpleSounMessage static method

dynamic createSimpleSounMessage(
  1. String snapshotPath,
  2. String videoFilePath,
  3. String type,
  4. int duration,
)

Implementation

static createSimpleSounMessage(
    String snapshotPath, String videoFilePath, String type, int duration) {
  return {
    "elemType": 6,
    "type": "video",
    "textAtElem": {
      "videoFilePath": videoFilePath,
      "snapshotPath": snapshotPath,
      "duration": duration
    }
  };
}