If peerconnnection constraints are null then the following exception is raised
exports.createConnection = function(config, constraints) {
return loader.plugin && loader.plugin.PeerConnection(
loader.pageId,
(config || {}).iceServers || [],
(constraints || {}).mandatory || null,
(constraints || {}).optional || null
);
Could not convert from struct FB::variant_detail::null to long
};
In the rtc.io examples provided with rtc package these constraints are null. Documentation also does not cover config examples on how to set similarly to config items such as ice: and options: