How to subscribe and unscribe a remote user feed on demand( with input taken from local user)

Hi all,
I want to implement a features where a list of all remote users are displayed and local user can choose which remote user to subscribe or unsubscribe with option to choose either audio or video or both feed ? Any suggestion how to do it ?

So implement it so whats problem
Thanks
Vipin