OnTheAir Video can trigger SCTE on the output (see the following article), but it can also detect SCTE in the VANC of inputs set in the settings. This allows OnTheAir Video to be used as an ad server for example.
Create Live sources
First you will need to have at lease one Live source available. To create one, go to "OnTheAir Video > Settings > Inputs". Then click on the "+" icon to create a new Live Source that you will be able to use.
If your live source is already created, click on the little gear to show the option.
Make sure to enable the "Process SCTE Triggers" option. This is the option that makes sure that we monitor that specific input.
Once the live input is created make sure to enable it in the list by checking the checkbox.
Select an AppleScript to Launch
Then at the bottom of the Inputs settings pane, make sure to select an "AppleScript to Launch":
This AppleScript must be saved in the following folder:
/Library/Application Support/Softron/OnTheAir Video/OnTheAir Video/Actions
Attached, you will find two short sample scripts.
A short one that simply shows a notification with the content of the SCTE. :
on Action(spliceType, spliceDescription, eventID, programID, duration)
set notificationMessage to "Splice Type Description: '" & spliceDescription & "' - Splice Type N°: '" & spliceType & "' - Event ID: '" & eventID & "' - Program ID: '" & programID & "' - Duration: '" & duration & "'"
display notification notificationMessage with title "Received SCTE:"
end Action
The second one, will check the type of SCTE received and do a different action depending on the type:
on Action(spliceType, spliceDescription, eventID, programID, duration)
-- do something with all these parameters…..
tell application "OnTheAir Video"
tell front playlist
if spliceType = 1 then
play
else if spliceType = 3 then
stop
end if
end tell
end tell
end Action
The possible splice Type descriptions, with their corresponding numbers are:
- Start Normal
- Start Immediate
- End Normal
- End Immediate
- Cancel
Comments
0 comments
Please sign in to leave a comment.