Dynamic User Content

Video content dynamically updates based on user interactions.

based on clicks, you can seamlessly swap or change video content, with this simple snippet

async ({ data, inputs, element, event, player, jumpTypes }) => {
  // Fill in data field name (dataField1), and after that the content you want to push into it ("data content1")
  data.dataField1 = "data content1";
    data.dataField2 = "data content2";

  
    return {
    // Fill in the new scene lineup, after the user clicks the button.
    scenes: ["sceneName","sceneName2"],

    // both optional. pre fill with the non-advanced config, when switching to advanced
    jumpType: jumpTypes.sceneStart,
    jumpValue: "sceneName",
    data
  }
}
  

Last updated