To run the example:
- Create a sandbox account.
- Create an
.env
file in this folder as follows using the values of your sandbox account.REACT_APP_INSCREEN_TENANT_ID=... REACT_APP_INSCREEN_API_KEY=...
- Run
npm start
graph TB
subgraph Application
M[Main]
VP[Video Player]
end
subgraph inScreen
ISSDK[inScreen SDK & timeline component]
end
M ==>|1. initialize with token| ISSDK
M -.->|render| VP
VP ==>|2. update current time| ISSDK
VP ==>|3. start new thread| ISSDK
ISSDK ==>|4. seek & pause when activated| VP
ISSDK ==>|5. analytics events| M
graph TB
subgraph Application
M[Main]
VP[Video Player]
end
subgraph inScreen
ISSDK[inScreen SDK]
ISA["<inscreen-anchor /> element"]
ISTL["inScreen timeline component"]
end
M ==>|1. initialize with token| ISSDK
M -.->|render| VP
VP -.->|render| ISA
VP -.->|optionally render, based on toggle| ISTL
VP ==>|2. update current time| ISA
VP ==>|3. start new thread| ISSDK
ISSDK ==>|4. seek & pause when activated| VP
ISTL <-.->|synchronization| ISSDK
ISA -.->|synchronization| ISSDK
ISSDK ==>|5. analytics events| M