I think check restoreTime in restoreView is good.

But I don't think we need to set restoreTime to undefined. I had tested a case: the restoreTime is correct and use press home too soon to make readyState === 0. So, user will get the previous restoreTime when he get back to video app. But if we reset it to undefined, user will feel we move the video to start.