Thank For your reply Eric.
Actually my scenario is that :
Initially I have mediastream with audio and video. then after some time I am removing video tracks from media stream and then again I want video back in my mediastream without allowing permission bar.
I tried some hacks and got my functionality working but i want to confirm with you whether i am doing correct or not ?
1. At the starting, when I got other user's stream then i extract video tracks from that and stored that in a global variable.
var videoTracks= otherUserStream.getVideoTracks();
2. then removed audio track from mediastream and set that mediastream in video element.
var audioOnlyStream = otherUserStream.removeTrack(otherStream.getVideoTracks[0]);
3. and when again, when I tried to add video track to media stream then I took videoTracks global variable and add that to media stream.
otherUserStream.addTrack(videoTracks[0]);
Following above steps, i got my functionality working. Now let me know , if i am doing anything wrong or if it will affect browser performance ?
Thank You