Bug 880571 - [video] handle error codes for video element

This PR is not ready for reviewing.