scte104
ANSI/SCTE 104 2023 — Automation System to Compression System Communications Applications Program Interface (API).
Parses and builds SCTE 104 messages: single_operation_message and
multiple_operation_message with all DPI operations from the opID
allocation tables (splice, time_signal, descriptor inserts,
segmentation, encryption, schedule, control words, and more).
Usage
use ;
use ;
use Timestamp;
use ;
// Build a single_operation_message (basic response).
let msg = new_response;
let bytes = msg.to_bytes;
let parsed = parse.unwrap;
assert_eq!;
// Build a multiple_operation_message with splice + time_signal.
let ops = vec!;
let mom = new;
let bytes = mom.to_bytes;
let parsed = parse.unwrap;
assert_eq!;
Features
std(default) — links the standard library.serde— derivesSerializeon all types.
Without std, the crate is #![no_std] + alloc only.
Examples
Run the bundled examples:
Coverage
All opID values from ANSI/SCTE 104 2023 Tables 8-3 and 8-4:
Basic (single_operation_message):
general_response, init_request, init_response, alive_request,
alive_response, inject_response, inject_complete_response.
Normal/Supplemental/Control (multiple_operation_message):
inject_section_data, splice_request, splice_null_request,
start_schedule_download, time_signal_request, transmit_schedule,
component_mode_DPI, encrypted_DPI, insert_descriptor,
insert_DTMF_descriptor, insert_avail_descriptor,
insert_segmentation_descriptor, proprietary_command,
schedule_component_mode, schedule_definition, insert_tier,
insert_time_descriptor, insert_audio_descriptor,
insert_audio_provisioning, insert_alternate_break_duration,
delete_ControlWord, update_ControlWord.
License
MIT OR Apache-2.0