Procházet zdrojové kódy

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 před 9 roky
rodič
revize
592656c721
3 změnil soubory, kde provedl 24 přidání a 0 odebrání
  1. 6
    0
      JitsiConference.js
  2. 2
    0
      JitsiMeetJS.js
  3. 16
    0
      modules/transcription/transcriberHolder.js

+ 6
- 0
JitsiConference.js Zobrazit soubor

@@ -16,6 +16,9 @@ var Settings = require("./modules/settings/Settings");
16 16
 var ComponentsVersions = require("./modules/version/ComponentsVersions");
17 17
 var GlobalOnErrorHandler = require("./modules/util/GlobalOnErrorHandler");
18 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 24
  * Creates a JitsiConference object with the given name and properties.
@@ -56,6 +59,9 @@ function JitsiConference(options) {
56 59
     };
57 60
     this.isMutedByFocus = false;
58 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 Zobrazit soubor

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

+ 16
- 0
modules/transcription/transcriberHolder.js Zobrazit soubor

@@ -0,0 +1,16 @@
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;

Načítá se…
Zrušit
Uložit