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.

Stream.js 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /**
  2. * Represents media stream(audio, video, desktop)
  3. * @constructor
  4. */
  5. function Stream()
  6. {
  7. }
  8. /**
  9. * Stream video type.
  10. * @type {string}
  11. */
  12. Stream.VIDEO = "video";
  13. /**
  14. * Stream audio type.
  15. * @type {string}
  16. */
  17. Stream.AUDIO = "audio";
  18. /**
  19. * Stream desktop sharing type.
  20. * @type {string}
  21. */
  22. Stream.DESKTOP_SHARING = "desktopsharing";
  23. /**
  24. * The media stream type.
  25. */
  26. Stream.prototype.streamType;
  27. /**
  28. * The corresponding participant identifier.
  29. */
  30. Stream.prototype.participantId;
  31. /**
  32. * The media stream from the browser.
  33. */
  34. Stream.prototype.originalStream;
  35. /**
  36. * Mutes the stream.
  37. */
  38. Stream.prototype.mute = function () {
  39. }
  40. /**
  41. * Unmutes the stream.
  42. */
  43. Stream.prototype.unmute = function () {
  44. }
  45. /**
  46. * Attaches the stream to HTML container.
  47. * @param container the HTML container
  48. */
  49. Stream.prototype.attachStream = function (container) {
  50. }
  51. /**
  52. * Removes the stream from the passed HTML container.
  53. * @param container the HTML container
  54. */
  55. Stream.prototype.remove = function (container) {
  56. }
  57. /**
  58. * Stops sending the stream. And removes it from the HTML.
  59. * NOTE: Works for the local stream only.
  60. */
  61. Stream.prototype.stop = function () {
  62. }
  63. module.exports = Stream;