選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

trackRecorder.js 853B

12345678910111213141516171819202122232425262728
  1. /**
  2. * A TrackRecorder object holds all the information needed for recording a
  3. * single JitsiTrack (either remote or local)
  4. * @param track The JitsiTrack the object is going to hold
  5. */
  6. export default class TrackRecorder {
  7. /**
  8. * @param track The JitsiTrack the object is going to hold
  9. */
  10. constructor(track) {
  11. // The JitsiTrack holding the stream
  12. this.track = track;
  13. // The MediaRecorder recording the stream
  14. this.recorder = null;
  15. // The array of data chunks recorded from the stream
  16. // acts as a buffer until the data is stored on disk
  17. this.data = null;
  18. // the name of the person of the JitsiTrack. This can be undefined and/or
  19. // not unique
  20. this.name = null;
  21. // the time of the start of the recording
  22. this.startTime = null;
  23. }
  24. }