您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

JitsiTrack.js 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. * Represents a single media track (either audio or video).
  3. * @constructor
  4. */
  5. function JitsiTrack()
  6. {
  7. }
  8. /**
  9. * JitsiTrack video type.
  10. * @type {string}
  11. */
  12. JitsiTrack.VIDEO = "video";
  13. /**
  14. * JitsiTrack audio type.
  15. * @type {string}
  16. */
  17. JitsiTrack.AUDIO = "audio";
  18. /**
  19. * Returns the type (audio or video) of this track.
  20. */
  21. JitsiTrack.prototype.getType = function() {
  22. };
  23. /**
  24. * Returns the JitsiParticipant to which this track belongs, or null if it is a local track.
  25. */
  26. JitsiTrack.prototype.getParitcipant() = function() {
  27. };
  28. /**
  29. * Returns the RTCMediaStream from the browser (?).
  30. */
  31. JitsiTrack.prototype.getOriginalStream() {
  32. }
  33. /**
  34. * Mutes the track.
  35. */
  36. JitsiTrack.prototype.mute = function () {
  37. }
  38. /**
  39. * Unmutes the stream.
  40. */
  41. JitsiTrack.prototype.unmute = function () {
  42. }
  43. /**
  44. * Attaches the MediaStream of this track to an HTML container (?).
  45. * @param container the HTML container
  46. */
  47. JitsiTrack.prototype.attach = function (container) {
  48. }
  49. /**
  50. * Removes the track from the passed HTML container.
  51. * @param container the HTML container
  52. */
  53. JitsiTrack.prototype.detach = function (container) {
  54. }
  55. /**
  56. * Stops sending the media track. And removes it from the HTML.
  57. * NOTE: Works for local tracks only.
  58. */
  59. JitsiTrack.prototype.stop = function () {
  60. }
  61. /**
  62. * Starts sending the track.
  63. * NOTE: Works for local tracks only.
  64. */
  65. JitsiTrack.prototype.start = function() {
  66. }
  67. /**
  68. * Returns true if this is a video track and the source of the video is a
  69. * screen capture as opposed to a camera.
  70. */
  71. JitsiTrack.prototype.isScreenSharing = function(){
  72. }
  73. module.exports = JitsiTrack;