Bug 837676 [video] Implement new startup loading events

We have firstScanEnd variable to indicate the first scan of mediadb is finished. Is it possible to reuse the variable instead of introducing a new one?

I know the event may need to be dispatched after all UI updated, like dialog, loading spinner, etc. So, if we cannot reuse the existing variable, why not just to declare it as  a local variable.