You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Connection.js 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. var Conference = require("./Conference");
  2. /**
  3. * Creates new connection object for the Jitsi Meet server side video conferencing service. Provides access to the
  4. * Conference interface.
  5. * @param appID identification for the provider of Jitsi Meet video conferencing services.
  6. * @param token secret generated by the provider of Jitsi Meet video conferencing services.
  7. * The token will be send to the provider from the Jitsi Meet server deployment for authorization of the current client.
  8. * @param options Object with properties / settings related to connection with the server.
  9. * @constructor
  10. */
  11. function Connection(appID, token, options) {
  12. }
  13. /**
  14. * Connect the client with the server.
  15. * @param successCallback this callback will be called when the connection is successfull
  16. * @param errorCallback this callback will be called when the connection fail.
  17. */
  18. Connection.prototype.connect = function (successCallback, errorCallback) {
  19. }
  20. /**
  21. * Disconnect the client from the server.
  22. * @param successCallback this callback will be called when we have successfully disconnected
  23. * @param errorCallback this callback will be called when the disconnect didn't succeed
  24. */
  25. Connection.prototype.disconnect = function (successCallback, errorCallback) {
  26. }
  27. /**
  28. * This method allows renewal of the tokens if they are expiring.
  29. * @param token the new token.
  30. */
  31. Connection.prototype.setToken = function (token) {
  32. }
  33. /**
  34. * Creates and joins new conference.
  35. * @param name the name of the conference; if null - a generated name will be provided from the api
  36. * @param options Object with properties / settings related to the conference that will be created.
  37. * @returns {Conference} returns the new conference object.
  38. */
  39. Connection.prototype.initConference = function (name, options) {
  40. return new Conference(name, options, this);
  41. }
  42. module.exports = Connection;