fixed function onready in picture and video