updated onCanPlay