How to check if video is loaded

How to check if video is loaded like in html video “loadeddata” event