瀏覽代碼

fix(conference.js): add tracks to the conference

master
Pawel Domas 3 年之前
父節點
當前提交
bba1917820
共有 2 個檔案被更改,包括 5 行新增4 行删除
  1. 4
    3
      conference.js
  2. 1
    1
      react/features/base/conference/actions.js

+ 4
- 3
conference.js 查看文件

@@ -44,7 +44,8 @@ import {
44 44
     lockStateChanged,
45 45
     onStartMutedPolicyChanged,
46 46
     p2pStatusChanged,
47
-    sendLocalParticipant
47
+    sendLocalParticipant,
48
+    _conferenceWillJoin
48 49
 } from './react/features/base/conference';
49 50
 import { getReplaceParticipant } from './react/features/base/config/functions';
50 51
 import {
@@ -1315,14 +1316,14 @@ export default {
1315 1316
                 APP.conference.roomName,
1316 1317
                 this._getConferenceOptions());
1317 1318
 
1318
-        APP.store.dispatch(conferenceWillJoin(room));
1319
-
1320 1319
         // Filter out the tracks that are muted (except on mobile Safari).
1321 1320
         const tracks = isIosMobileBrowser() ? localTracks : localTracks.filter(track => !track.isMuted());
1322 1321
 
1323 1322
         this._setLocalAudioVideoStreams(tracks);
1324 1323
         this._room = room; // FIXME do not use this
1325 1324
 
1325
+        APP.store.dispatch(_conferenceWillJoin(room));
1326
+
1326 1327
         sendLocalParticipant(APP.store, room);
1327 1328
 
1328 1329
         this._setupListeners();

+ 1
- 1
react/features/base/conference/actions.js 查看文件

@@ -357,7 +357,7 @@ export function conferenceUniqueIdSet(conference: Object) {
357 357
  * the local participant will (try to) join.
358 358
  * @returns {Function}
359 359
  */
360
-function _conferenceWillJoin(conference: Object) {
360
+export function _conferenceWillJoin(conference: Object) {
361 361
     return (dispatch: Dispatch<any>, getState: Function) => {
362 362
         const localTracks
363 363
             = getLocalTracks(getState()['features/base/tracks'])

Loading…
取消
儲存