Hi,
Yes, you can specify media constraints in CreateOffer() api and
CreateAnswer api's. Something like below for RTCPeerConnection:-
var mediaConstraints = {'has_audio':true, 'has_video':true};
pc.createOffer(setLocalAndSendMessage, null, mediaConstraints);
You can also refer to the apprtc demo code (https://
apprtc.appspot.com/).
/Vikas