可通过粘性广播获取audio format。
/*------------------hippo encode -------------------------------*/
Intent temp = context.registerReceiver(
/* receiver= */ null, new IntentFilter(AudioManager.ACTION_HDMI_AUDIO_PLUG));
int[] formats = temp.getIntArrayExtra(AudioManager.EXTRA_ENCODINGS);
for (int i=0; i<formats.length; i++) {
Log.i("hippo", "hippo enableAutoPowerOff format["+i+"]:"+formats[i]);
}
/*-------------------------------------------------*/