Fix timestamps of recorded/http streamed videos

Change-Id: I1c55d8b4b82ef50f8afb817176750241d610e0ed
httpendpoint: Do not perform state changes on a different thread

I cannot observe any possible deadlock and could cause race conditions

Change-Id: I4f89e40f404a2df7e09bdccade76b1c3d1630a82