Added onMediaError function

This function is invoked when the loadstart method of audio/video element catch an error.