浏览代码

readded forgotten file

removed white space
redid the hooking of the Transcribing module to JitsiConference
redid the exposing of the Transcribing module to JitsiMeetJs
dev1
nikvaessen 9 年前
父节点
当前提交
592656c721
共有 3 个文件被更改,包括 24 次插入0 次删除
  1. 6
    0
      JitsiConference.js
  2. 2
    0
      JitsiMeetJS.js
  3. 16
    0
      modules/transcription/transcriberHolder.js

+ 6
- 0
JitsiConference.js 查看文件

16
 var ComponentsVersions = require("./modules/version/ComponentsVersions");
16
 var ComponentsVersions = require("./modules/version/ComponentsVersions");
17
 var GlobalOnErrorHandler = require("./modules/util/GlobalOnErrorHandler");
17
 var GlobalOnErrorHandler = require("./modules/util/GlobalOnErrorHandler");
18
 var JitsiConferenceEventManager = require("./JitsiConferenceEventManager");
18
 var JitsiConferenceEventManager = require("./JitsiConferenceEventManager");
19
+var Transcriber = require("./modules/transcription/transcriber");
20
+var AudioRecorder = require("./modules/transcription/audioRecorder");
21
+var transcriberHolder = require("./modules/transcription/transcriberHolder");
19
 
22
 
20
 /**
23
 /**
21
  * Creates a JitsiConference object with the given name and properties.
24
  * Creates a JitsiConference object with the given name and properties.
56
     };
59
     };
57
     this.isMutedByFocus = false;
60
     this.isMutedByFocus = false;
58
     this.reportedAudioSSRCs = {};
61
     this.reportedAudioSSRCs = {};
62
+    this.audioRecorder = new AudioRecorder(this);
63
+    this.transcriber = new Transcriber(this.audioRecorder);
64
+    transcriberHolder.add(this.transcriber);
59
 }
65
 }
60
 
66
 
61
 /**
67
 /**

+ 2
- 0
JitsiMeetJS.js 查看文件

20
 var ScriptUtil = require("./modules/util/ScriptUtil");
20
 var ScriptUtil = require("./modules/util/ScriptUtil");
21
 var GlobalOnErrorHandler = require("./modules/util/GlobalOnErrorHandler");
21
 var GlobalOnErrorHandler = require("./modules/util/GlobalOnErrorHandler");
22
 var RTCBrowserType = require("./modules/RTC/RTCBrowserType");
22
 var RTCBrowserType = require("./modules/RTC/RTCBrowserType");
23
+var transcriberHolder = require("./modules/transcription/transcriberHolder");
23
 
24
 
24
 // The amount of time to wait until firing
25
 // The amount of time to wait until firing
25
 // JitsiMediaDevicesEvents.PERMISSION_PROMPT_IS_SHOWN event
26
 // JitsiMediaDevicesEvents.PERMISSION_PROMPT_IS_SHOWN event
90
     logLevels: Logger.levels,
91
     logLevels: Logger.levels,
91
     mediaDevices: JitsiMediaDevices,
92
     mediaDevices: JitsiMediaDevices,
92
     analytics: null,
93
     analytics: null,
94
+    transcriberHolder: transcriberHolder,
93
     init: function (options) {
95
     init: function (options) {
94
         var logObject, attr;
96
         var logObject, attr;
95
         Statistics.init(options);
97
         Statistics.init(options);

+ 16
- 0
modules/transcription/transcriberHolder.js 查看文件

1
+/**
2
+ * This objets holds all created transcriberHolders so that they can be
3
+ * accessed through the JitsiMeetJS object.
4
+ *
5
+ * This is probably temporary until there is a better way to expose the
6
+ * Transcriber in a conference
7
+ */
8
+var transcriberHolder = {
9
+    transcribers : [],
10
+
11
+    add : function(transcriber){
12
+        transcriberHolder.transcribers.push(transcriber);
13
+    }
14
+};
15
+
16
+module.exports = transcriberHolder;

正在加载...
取消
保存