Agora C++ API Reference for All Platforms
setPlayerOption(KEY_PLAYER_REAL_TIME_STREAM_ANALYZE_DURATION,1000000)

set analyze duration for real time stream

(KEY_PLAYER_REAL_TIME_STREAM_ANALYZE_DURATION,1000000)