Last active
September 23, 2022 16:25
-
-
Save jaszczw/7f395bd5bb5d5aea1bd981689fc3aa0f to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions | |
| // - XState (all XState exports) | |
| const fetchMachine = Machine({ | |
| "id": "Channel State", | |
| "initial": "Slate", | |
| "context": { | |
| "JIT": false | |
| }, | |
| "states": { | |
| "Slate": { | |
| "entry": "yospace: StartBlankingSlateTag", | |
| "on": { | |
| "SCTE 16": { | |
| "actions": [ | |
| "Store UPID", | |
| "Notify CBPS" | |
| ], | |
| "description": "Start Program", | |
| "target": "Content" | |
| } | |
| } | |
| }, | |
| "Content": { | |
| "on": { | |
| "SCTE 34": { | |
| "description": "StartAdBreak", | |
| "cond": "EIDR_CABLENETS_GROUP", | |
| "target": "DAI" | |
| }, | |
| "SCTE 54": { | |
| "description": "Start Ad Break", | |
| "cond": "EIDR_FOX_GROUP", | |
| "target": "DAI" | |
| }, | |
| "INSERT SLATE": { | |
| "target": "Slate" | |
| }, | |
| "SCTE 17": { | |
| "description": "Program END", | |
| "target": "Slate" | |
| }, | |
| "SCTE 16": [ | |
| { | |
| "actions": [ | |
| "Store UPID", | |
| "Notify CBPS", | |
| "Start Prefetch" | |
| ], | |
| "cond": "JIT" | |
| }, | |
| { | |
| "actions": [ | |
| "Store UPID", | |
| "Notify CBPS" | |
| ] | |
| } | |
| ], | |
| "SCTE 52": { | |
| "actions": assign({ hylda: 'TAG' }) | |
| } | |
| } | |
| }, | |
| "DAI": { | |
| "entry": "yospace: StartAdBreak", | |
| "on": { | |
| "SCTE 35": { | |
| "actions": "yospace: BreakEndResponse", | |
| "description": "End Ad Break", | |
| "cond": "EIDR_CABLENETS_GROUP", | |
| "target": "Content" | |
| }, | |
| "SCTE 55": { | |
| "actions": "yospace: BreakEndResponse", | |
| "description": "End Ad Break", | |
| "cond": "EIDR_FOX_GROUP", | |
| "target": "Content" | |
| }, | |
| "INSERT SLATE": { | |
| "target": "Slate" | |
| }, | |
| "SCTE 16": [ | |
| { | |
| "actions": [ | |
| "Store UPID", | |
| "Notify CBPS", | |
| "Start Prefetch" | |
| ], | |
| "cond": "JIT", | |
| "target": "Content" | |
| }, | |
| { | |
| "actions": [ | |
| "Store UPID", | |
| "Notify CBPS" | |
| ], | |
| "target": "Content" | |
| } | |
| ], | |
| "SCTE 52": { | |
| "actions": "Store Hylda" | |
| } | |
| } | |
| } | |
| } | |
| }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment