Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

JitsiParticipant.js 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. /**
  2. * Represents a participant in (a member of) a conference.
  3. */
  4. function JitsiParticipant(id, conference, displayName){
  5. this._id = id;
  6. this._conference = conference;
  7. this._displayName = displayName;
  8. this._supportsDTMF = false;
  9. }
  10. /**
  11. * @returns {JitsiConference} The conference that this participant belongs to.
  12. */
  13. JitsiParticipant.prototype.getConference = function() {
  14. return this._conference;
  15. };
  16. /**
  17. * @returns {Array.<JitsiTrack>} The list of media tracks for this participant.
  18. */
  19. JitsiParticipant.prototype.getTracks = function() {
  20. };
  21. /**
  22. * @returns {String} The ID (i.e. JID) of this participant.
  23. */
  24. JitsiParticipant.prototype.getId = function() {
  25. return this._id;
  26. };
  27. /**
  28. * @returns {String} The human-readable display name of this participant.
  29. */
  30. JitsiParticipant.prototype.getDisplayName = function() {
  31. return this._displayName;
  32. };
  33. /**
  34. * @returns {Boolean} Whether this participant is a moderator or not.
  35. */
  36. JitsiParticipant.prototype.isModerator = function() {
  37. };
  38. // Gets a link to an etherpad instance advertised by the participant?
  39. //JitsiParticipant.prototype.getEtherpad = function() {
  40. //
  41. //}
  42. /*
  43. * @returns {Boolean} Whether this participant has muted their audio.
  44. */
  45. JitsiParticipant.prototype.isAudioMuted = function() {
  46. };
  47. /*
  48. * @returns {Boolean} Whether this participant has muted their video.
  49. */
  50. JitsiParticipant.prototype.isVideoMuted = function() {
  51. };
  52. /*
  53. * @returns {???} The latest statistics reported by this participant (i.e. info used to populate the GSM bars)
  54. * TODO: do we expose this or handle it internally?
  55. */
  56. JitsiParticipant.prototype.getLatestStats = function() {
  57. };
  58. /**
  59. * @returns {String} The role of this participant.
  60. */
  61. JitsiParticipant.prototype.getRole = function() {
  62. };
  63. /*
  64. * @returns {Boolean} Whether this participant is the conference focus (i.e. jicofo).
  65. */
  66. JitsiParticipant.prototype.isFocus = function() {
  67. };
  68. /*
  69. * @returns {Boolean} Whether this participant is a conference recorder (i.e. jirecon).
  70. */
  71. JitsiParticipant.prototype.isRecorder = function() {
  72. };
  73. /*
  74. * @returns {Boolean} Whether this participant is a SIP gateway (i.e. jigasi).
  75. */
  76. JitsiParticipant.prototype.isSipGateway = function() {
  77. };
  78. /**
  79. * @returns {String} The ID for this participant's avatar.
  80. */
  81. JitsiParticipant.prototype.getAvatarId = function() {
  82. };
  83. /**
  84. * @returns {Boolean} Whether this participant is currently sharing their screen.
  85. */
  86. JitsiParticipant.prototype.isScreenSharing = function() {
  87. };
  88. /**
  89. * @returns {String} The user agent of this participant (i.e. browser userAgent string).
  90. */
  91. JitsiParticipant.prototype.getUserAgent = function() {
  92. };
  93. /**
  94. * Kicks the participant from the conference (requires certain privileges).
  95. */
  96. JitsiParticipant.prototype.kick = function() {
  97. };
  98. /**
  99. * Asks this participant to mute themselves.
  100. */
  101. JitsiParticipant.prototype.askToMute = function() {
  102. };
  103. JitsiParticipant.prototype.supportsDTMF = function () {
  104. return this._supportsDTMF;
  105. };
  106. module.exports = JitsiParticipant;