Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. [4/24/17, 5:22:18 PM] Eugene Machulskyi: Мы только что посмотрели наш код. Последние изменения были сделаны в феврале 2017 года.
  2. [4/24/17, 5:22:35 PM] Eugene Machulskyi: On 4/24/17, at 5:18 PM, Maksim Savolya  wrote:
  3. > #define QUICKBLOX_API_ENDPOINT @"http://apichatsaucetest.quickblox.com"
  4. Sent on:
  5. 5:18 pm
  6. From:
  7. Maksim Savolya 
  8. - (void)configureQuickblox {
  9. [QBSettings setApplicationID:QUICKBLOX_APP_ID];
  10. [QBSettings setAuthKey:QUICKBLOX_AUTH_KEY];
  11. [QBSettings setAuthSecret:QUICKBLOX_AUTH_SECRET];
  12. [QBSettings setAccountKey:QUICKBLOX_ACCOUNT_KEY];
  13.  
  14. [QBSettings setApiEndpoint:QUICKBLOX_API_ENDPOINT
  15. chatEndpoint:QUICKBLOX_CHAT_ENDPOINT
  16. forServiceZone:QBConnectionZoneTypeProduction];
  17. [QBSettings setServiceZone:QBConnectionZoneTypeProduction];
  18.  
  19. NSArray > URLs = @[@"stun:turnsingapore.quickblox.com",
  20. @"turn:turnsingapore.quickblox.com:3478?transport=udp",
  21. @"turn:turnsingapore.quickblox.com:3478?transport=tcp"];
  22. [QBRTCICEServer serverWithURLs:URLs username:QUICKBLOX_TURN_SERVER_USERNAME password:QUICKBLOX_TURN_SERVER_PASSWORD];
  23.  
  24. [QBRTCConfig setAnswerTimeInterval:kQBAnswerTimeInterval];
  25. [QBRTCConfig setDialingTimeInterval:kQBDialingTimeInterval];
  26.  
  27. [QBSettings setKeepAliveInterval:300];
  28. [QBSettings setAutoReconnectEnabled:YES];
  29.  
  30. [QBSettings setCarbonsEnabled:YES];
  31. [QBSettings setLogLevel:QBLogLevelDebug];
  32. [QBSettings enableXMPPLogging];
  33.  
  34. [QBRTCClient initializeRTC];
  35. [QBRTCClient.instance addDelegate:self];
  36. }
  37. From:
  38. Maksim Savolya 
  39. #define QUICKBLOX_CHAT_ENDPOINT @"chatchatsaucetest.quickblox.com"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement