fix checkCanPlayAudio method.