Skip to content

Action when cue is detected #92

Closed Answered by pcb105
pcb105 asked this question in Q&A
Nov 2, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Sorry I figured it out here is code that does what I was asking for.... If anyone cares :)

import json
import sys
import threefive

def add_cue(cue):
print(cue.get())

if name == "main":
if len(sys.argv) > 1:
for arg in sys.argv[1:]:
strm = threefive.Stream(arg)
strm.decode(func=add_cue)
else:
threefive.decode(sys.stdin.buffer)

python3 NodeSCTE35.py udp://:1234

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@futzu
Comment options

Answer selected by pcb105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants