AVO-157: Changes following code review - calculating metadata frame on-demand instead of caching. Adding some extra handling to prevent unnecessary checks on data if no metadata is present in the stream.
AVO-157: Fixing cases where metadata step loses sync with stream following auto-reconnect. We now set the metadata step to 0 when attempting a reconnect, so we can re-calculate our metadata positioning.