fn convert_constraints(
    js: &BooleanOrMediaTrackConstraints
) -> Option<MediaTrackConstraintSet>