mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
Use config to declare signal/stun server info
This commit is contained in:
@@ -3,7 +3,9 @@
|
||||
#include "rtc.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
CreatePeerConnectionWithID("ws://localhost:9002", "000000");
|
||||
Params params;
|
||||
params.cfg_path = "config\config.ini";
|
||||
CreatePeerConnectionWithID(params, "000000");
|
||||
|
||||
std::cout << "Finish CreatePeerConnectionWithID" << std::endl;
|
||||
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
#include "rtc.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
CreatePeerConnection("ws://localhost:9002");
|
||||
Params params;
|
||||
params.cfg_path = "config\config.ini";
|
||||
CreatePeerConnection(params);
|
||||
|
||||
getchar();
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user