Closed chriszs closed 4 years ago
nuts! I wonder if this can be reproduced with a unit test or if we'll need integration tests to patch this one.
Regarding the second item: when I implemented as a class property I was trying to decide what was cleaner and this answer led me to the class properties approach.
I was under the impression that class properties are just syntactic sugar and are ultimately creating new copies on each instantiation / don't get instantiated before the class. What you're saying makes it seem like that's not the case (happy to be wrong, but want to sanity check)!
It’s worth checking that part of it. What I know for sure is this
wasn’t available.
This was also a method order issue, same as #60.
Closed by #56
Bug
Current Behavior
When I try to inherit from the AbstractIngestionEngine and use it to stream from a file, I get:
Input
Expected Behavior
I expected it to not throw that error.
Possible Solutions
There are two issues:
payloadIngestionStream
andmpegtsProcessingStream
are instantiated before the class is and therefore the references to methods withthis
aren't defined. Could move instantiation to either constructor or start. This may be a good idea with properties generally, since we want new copies on each instantiation.