I modify code in broadcaster main.cpp below: //baseUrl.append(“/rooms/”).append(roomId);
baseUrl.append(“/?roomId=”).append(roomId);
Crash line:
auto response = nlohmann::json::parse(r.text);
Crash info below:
localhost:build machine$ SERVER_URL=https://v3demo.mediasoup.org ROOM_ID=broadcaster Debug/broadcaster
welcome to mediasoup broadcaster app!
verifying that room ‘broadcaster’ exists…
libc++abi.dylib: terminating with uncaught exception of type nlohmann::detail::parse_error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: ‘<’
Abort trap: 6
Thank you for you reply. I run ok now. First Have an room,name is broadcast. If After broadcast demo run auto create a room is all right.
Can broad demo achieve it?
If broad demo exit, Chrome also can see the people.Broad demo not tell mediasoup server i has exit.