cyndilib.metadata_frame#
MetadataFrame#
- class cyndilib.metadata_frame.MetadataFrame#
Bases:
objectAn NDIĀ® metadata frame
Metadata frames carry miscellaneous information between sources and receivers formatted as a single XML tag.
The data can be application-specific although there are some reserved namespaces and tag names for standardized use:
<ndi_tally_echo on_program="true" on_preview="false"/> <ndi_product long_name="NDILib Receive Example" short_name="NDILib Receive" manufacturer="CoolCo, inc." version="1.000.000" model_name="PBX-42Q" session_name="My Midday Show" serial="ABCDEFG"/>
This class provides an interface to the parsed xml data with the attributes available in the
attrsattribute or through dict-like methods:>>> metadata_frame['on_program'] 'true' >>> metadata_frame.get('on_preview') 'false'
- get(self, tag: unicode)#
- get_tag(self)#
- get_timecode(self)#
- set_tag(self, tag: unicode)#
MetadataRecvFrame#
- class cyndilib.metadata_frame.MetadataRecvFrame#
Bases:
MetadataFrameA MetadataFrame used in
receiver.Receiver
MetadataSendFrame#
- class cyndilib.metadata_frame.MetadataSendFrame#
Bases:
MetadataFrameA MetadataFrame used in
sender.SenderThe attributes in this class can be set using dict-like methods:
>>> metadata_frame['program_tally'] = "false" >>> metadata_frame.update({'preview_tally':'true'})
- clear(self)#
- set_tag(self, tag: unicode)#