Replace deprecated CODEC_TYPE_AUDIO and CODEC_TYPE_VIDEO with the