When using onplay in firefox, the event fires before data is flowing, which can cause videoHeight and videoWidth to be 0 during resizing. By using onplaying, there is some assurance data is being received, so videoHeight and videoWidth should be set.