@tvkitchen/appliance-video-segment-generator v0.3.0
TV Kitchen Video Segment Generator Appliance
inputTypes: STREAM.CONTAINER
outputTypes: SEGMENT.STARTThe Video Segment Generator Appliance will take a stream of payloads and identify new segment starts according to the timestamp of those payloads.
Configuration Options
The appliance takes in the following configuration values:
interval(milliseconds): the number of milliseconds that the clock will track (e.g. 60000 would be a clock that can track up to one minute). Default isINTERVALS.INFINITE.startingAt(ISO String): what is the absolute time of the beginning of the first interval. Default is the ISO string value for the time of instantiation.segments: array of objects and / or numbers specifying segment start times. If the value is an object theoffsetattribute is used to convey the segment start offset. Default is[0]. -offset(milliseconds): the period offset that demarks the start of the segment. -data(json): the data to associate with the new segment.
Exposed Constants
- PERIOD.INFINITE (0)
- PERIOD.MINUTE (60000)
- PERIOD.HOUR (3600000)
- PERIOD.DAY (86400000)
- PERIOD.WEEK (604800000)
Dependencies
None.
About the TV Kitchen
TV Kitchen is a project of Bad Idea Factory. Learn more at the TV Kitchen project site.