I found a bug. But I am not too sure how to contribute to the code on WordPress.
This is where the error lies.
Too few arguments to function WP_Agora_Public::generateNewToken(), 2 passed in class-wp-includes/agora-cloud-recording.php on line 186 and exactly 3 expected.
I had a look at /public/class-wp-agora-io-public.php:122 where the class was defined. The last parameter should either be ‘rtm’ or something else. Trying ‘rtm’, it didn’t work. Changing the value for the last parameter with ” worked.
So I put a default value for the function in the class.
/wp-content/plugins/wp-agora-io/public/class-wp-agora-io-public.php line: 122
public function generateNewToken($channel_id, $uid, $tokenType = '' ) {