canDropSamples function
Whether a stream's header says it can drop samples
(desc/synchronization/can_drop_samples), e.g. video.
Implementation
bool canDropSamples(XdfStreamInfo info) =>
info.xml
.getElement('desc')
?.getElement('synchronization')
?.getElement('can_drop_samples')
?.innerText
.trim()
.toLowerCase() ==
'true';