nrkno / sofie-atem-connection

Sofie ATEM Connection: A Part of the Sofie TV Studio Automation System
https://github.com/nrkno/Sofie-TV-automation/
MIT License
134 stars 36 forks source link

Clip upload lazy frame loading #110

Closed Julusian closed 2 years ago

Julusian commented 3 years ago

https://github.com/nrkno/tv-automation-atem-connection/blob/abcff0c74a51b3ffb4880106b87109a7fc72b9ec/src/dataTransfer/dataTransferClip.ts#L12 Instead this should be able to take an Array<Promise<DataTransferFrame>>

There could be a strategy in place to preload x frames to keep the uploader running smoothly.

What should happen if a frame promise rejects? Should the whole clip be invalidated and aborted?

Julusian commented 2 years ago

Implemented with #122