Agora Java API Reference for Android
setPlayerOption(KEY_PLAYER_ENABLE_VIDEO,0)

make the player to enable video or not

(KEY_PLAYER_ENABLE_VIDEO,0)