Skip to content

Could not convert from struct FB::variant_detail error if PeerConnnection constraints are null. #4

@warrenjmcdonald

Description

@warrenjmcdonald

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions