Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

middleware.js 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. // @flow
  2. import i18n from 'i18next';
  3. import { batch } from 'react-redux';
  4. import UIEvents from '../../../../service/UI/UIEvents';
  5. import { approveParticipant } from '../../av-moderation/actions';
  6. import { toggleE2EE } from '../../e2ee/actions';
  7. import { MAX_MODE } from '../../e2ee/constants';
  8. import {
  9. NOTIFICATION_TIMEOUT_TYPE,
  10. RAISE_HAND_NOTIFICATION_ID,
  11. showNotification
  12. } from '../../notifications';
  13. import { isForceMuted } from '../../participants-pane/functions';
  14. import { CALLING, INVITED } from '../../presence-status';
  15. import { RAISE_HAND_SOUND_ID } from '../../reactions/constants';
  16. import { APP_WILL_MOUNT, APP_WILL_UNMOUNT } from '../app';
  17. import {
  18. CONFERENCE_WILL_JOIN,
  19. forEachConference,
  20. getCurrentConference
  21. } from '../conference';
  22. import { getDisableRemoveRaisedHandOnFocus } from '../config/functions.any';
  23. import { JitsiConferenceEvents } from '../lib-jitsi-meet';
  24. import { MEDIA_TYPE } from '../media';
  25. import { MiddlewareRegistry, StateListenerRegistry } from '../redux';
  26. import { playSound, registerSound, unregisterSound } from '../sounds';
  27. import {
  28. DOMINANT_SPEAKER_CHANGED,
  29. GRANT_MODERATOR,
  30. KICK_PARTICIPANT,
  31. LOCAL_PARTICIPANT_AUDIO_LEVEL_CHANGED,
  32. LOCAL_PARTICIPANT_RAISE_HAND,
  33. MUTE_REMOTE_PARTICIPANT,
  34. PARTICIPANT_DISPLAY_NAME_CHANGED,
  35. PARTICIPANT_JOINED,
  36. PARTICIPANT_LEFT,
  37. PARTICIPANT_UPDATED,
  38. RAISE_HAND_UPDATED
  39. } from './actionTypes';
  40. import {
  41. localParticipantIdChanged,
  42. localParticipantJoined,
  43. localParticipantLeft,
  44. participantLeft,
  45. participantUpdated,
  46. raiseHand,
  47. raiseHandUpdateQueue,
  48. setLoadableAvatarUrl
  49. } from './actions';
  50. import {
  51. LOCAL_PARTICIPANT_DEFAULT_ID,
  52. LOWER_HAND_AUDIO_LEVEL,
  53. PARTICIPANT_JOINED_SOUND_ID,
  54. PARTICIPANT_LEFT_SOUND_ID
  55. } from './constants';
  56. import {
  57. getDominantSpeakerParticipant,
  58. getFirstLoadableAvatarUrl,
  59. getLocalParticipant,
  60. getParticipantById,
  61. getParticipantCount,
  62. getParticipantDisplayName,
  63. getRaiseHandsQueue,
  64. getRemoteParticipants,
  65. hasRaisedHand,
  66. isLocalParticipantModerator
  67. } from './functions';
  68. import { PARTICIPANT_JOINED_FILE, PARTICIPANT_LEFT_FILE } from './sounds';
  69. import './subscriber';
  70. declare var APP: Object;
  71. /**
  72. * Middleware that captures CONFERENCE_JOINED and CONFERENCE_LEFT actions and
  73. * updates respectively ID of local participant.
  74. *
  75. * @param {Store} store - The redux store.
  76. * @returns {Function}
  77. */
  78. MiddlewareRegistry.register(store => next => action => {
  79. switch (action.type) {
  80. case APP_WILL_MOUNT:
  81. _registerSounds(store);
  82. return _localParticipantJoined(store, next, action);
  83. case APP_WILL_UNMOUNT:
  84. _unregisterSounds(store);
  85. return _localParticipantLeft(store, next, action);
  86. case CONFERENCE_WILL_JOIN:
  87. store.dispatch(localParticipantIdChanged(action.conference.myUserId()));
  88. break;
  89. case DOMINANT_SPEAKER_CHANGED: {
  90. // Lower hand through xmpp when local participant becomes dominant speaker.
  91. const { id } = action.participant;
  92. const state = store.getState();
  93. const participant = getLocalParticipant(state);
  94. const isLocal = participant && participant.id === id;
  95. if (isLocal && hasRaisedHand(participant) && !getDisableRemoveRaisedHandOnFocus(state)) {
  96. store.dispatch(raiseHand(false));
  97. }
  98. break;
  99. }
  100. case LOCAL_PARTICIPANT_AUDIO_LEVEL_CHANGED: {
  101. const state = store.getState();
  102. const participant = getDominantSpeakerParticipant(state);
  103. if (
  104. participant
  105. && participant.local
  106. && hasRaisedHand(participant)
  107. && action.level > LOWER_HAND_AUDIO_LEVEL
  108. && !getDisableRemoveRaisedHandOnFocus(state)
  109. ) {
  110. store.dispatch(raiseHand(false));
  111. }
  112. break;
  113. }
  114. case GRANT_MODERATOR: {
  115. const { conference } = store.getState()['features/base/conference'];
  116. conference.grantOwner(action.id);
  117. break;
  118. }
  119. case KICK_PARTICIPANT: {
  120. const { conference } = store.getState()['features/base/conference'];
  121. conference.kickParticipant(action.id);
  122. break;
  123. }
  124. case LOCAL_PARTICIPANT_RAISE_HAND: {
  125. const { raisedHandTimestamp } = action;
  126. const localId = getLocalParticipant(store.getState())?.id;
  127. store.dispatch(participantUpdated({
  128. // XXX Only the local participant is allowed to update without
  129. // stating the JitsiConference instance (i.e. participant property
  130. // `conference` for a remote participant) because the local
  131. // participant is uniquely identified by the very fact that there is
  132. // only one local participant.
  133. id: localId,
  134. local: true,
  135. raisedHandTimestamp
  136. }));
  137. store.dispatch(raiseHandUpdateQueue({
  138. id: localId,
  139. raisedHandTimestamp
  140. }));
  141. if (typeof APP !== 'undefined') {
  142. APP.API.notifyRaiseHandUpdated(localId, raisedHandTimestamp);
  143. }
  144. break;
  145. }
  146. case MUTE_REMOTE_PARTICIPANT: {
  147. const { conference } = store.getState()['features/base/conference'];
  148. conference.muteParticipant(action.id, action.mediaType);
  149. break;
  150. }
  151. // TODO Remove this middleware when the local display name update flow is
  152. // fully brought into redux.
  153. case PARTICIPANT_DISPLAY_NAME_CHANGED: {
  154. if (typeof APP !== 'undefined') {
  155. const participant = getLocalParticipant(store.getState());
  156. if (participant && participant.id === action.id) {
  157. APP.UI.emitEvent(UIEvents.NICKNAME_CHANGED, action.name);
  158. }
  159. }
  160. break;
  161. }
  162. case RAISE_HAND_UPDATED: {
  163. const { participant } = action;
  164. let queue = getRaiseHandsQueue(store.getState());
  165. if (participant.raisedHandTimestamp) {
  166. queue.push({
  167. id: participant.id,
  168. raisedHandTimestamp: participant.raisedHandTimestamp
  169. });
  170. // sort the queue before adding to store.
  171. queue = queue.sort(({ raisedHandTimestamp: a }, { raisedHandTimestamp: b }) => a - b);
  172. } else {
  173. // no need to sort on remove value.
  174. queue = queue.filter(({ id }) => id !== participant.id);
  175. }
  176. action.queue = queue;
  177. break;
  178. }
  179. case PARTICIPANT_JOINED: {
  180. const { isVirtualScreenshareParticipant } = action.participant;
  181. // Do not play sounds when a virtual participant tile is created for screenshare.
  182. !isVirtualScreenshareParticipant && _maybePlaySounds(store, action);
  183. return _participantJoinedOrUpdated(store, next, action);
  184. }
  185. case PARTICIPANT_LEFT: {
  186. const { isVirtualScreenshareParticipant } = action.participant;
  187. // Do not play sounds when a tile for screenshare is removed.
  188. !isVirtualScreenshareParticipant && _maybePlaySounds(store, action);
  189. break;
  190. }
  191. case PARTICIPANT_UPDATED:
  192. return _participantJoinedOrUpdated(store, next, action);
  193. }
  194. return next(action);
  195. });
  196. /**
  197. * Syncs the redux state features/base/participants up with the redux state
  198. * features/base/conference by ensuring that the former does not contain remote
  199. * participants no longer relevant to the latter. Introduced to address an issue
  200. * with multiplying thumbnails in the filmstrip.
  201. */
  202. StateListenerRegistry.register(
  203. /* selector */ state => getCurrentConference(state),
  204. /* listener */ (conference, { dispatch, getState }) => {
  205. batch(() => {
  206. for (const [ id, p ] of getRemoteParticipants(getState())) {
  207. (!conference || p.conference !== conference)
  208. && dispatch(participantLeft(id, p.conference, p.isReplaced));
  209. }
  210. });
  211. });
  212. /**
  213. * Reset the ID of the local participant to
  214. * {@link LOCAL_PARTICIPANT_DEFAULT_ID}. Such a reset is deemed possible only if
  215. * the local participant and, respectively, her ID is not involved in a
  216. * conference which is still of interest to the user and, consequently, the app.
  217. * For example, a conference which is in the process of leaving is no longer of
  218. * interest the user, is unrecoverable from the perspective of the user and,
  219. * consequently, the app.
  220. */
  221. StateListenerRegistry.register(
  222. /* selector */ state => state['features/base/conference'],
  223. /* listener */ ({ leaving }, { dispatch, getState }) => {
  224. const state = getState();
  225. const localParticipant = getLocalParticipant(state);
  226. let id;
  227. if (!localParticipant
  228. || (id = localParticipant.id)
  229. === LOCAL_PARTICIPANT_DEFAULT_ID) {
  230. // The ID of the local participant has been reset already.
  231. return;
  232. }
  233. // The ID of the local may be reset only if it is not in use.
  234. const dispatchLocalParticipantIdChanged
  235. = forEachConference(
  236. state,
  237. conference =>
  238. conference === leaving || conference.myUserId() !== id);
  239. dispatchLocalParticipantIdChanged
  240. && dispatch(
  241. localParticipantIdChanged(LOCAL_PARTICIPANT_DEFAULT_ID));
  242. });
  243. /**
  244. * Registers listeners for participant change events.
  245. */
  246. StateListenerRegistry.register(
  247. state => state['features/base/conference'].conference,
  248. (conference, store) => {
  249. if (conference) {
  250. const propertyHandlers = {
  251. 'e2ee.enabled': (participant, value) => _e2eeUpdated(store, conference, participant.getId(), value),
  252. 'features_e2ee': (participant, value) =>
  253. store.dispatch(participantUpdated({
  254. conference,
  255. id: participant.getId(),
  256. e2eeSupported: value
  257. })),
  258. 'features_jigasi': (participant, value) =>
  259. store.dispatch(participantUpdated({
  260. conference,
  261. id: participant.getId(),
  262. isJigasi: value
  263. })),
  264. 'features_screen-sharing': (participant, value) => // eslint-disable-line no-unused-vars
  265. store.dispatch(participantUpdated({
  266. conference,
  267. id: participant.getId(),
  268. features: { 'screen-sharing': true }
  269. })),
  270. 'raisedHand': (participant, value) =>
  271. _raiseHandUpdated(store, conference, participant.getId(), value),
  272. 'region': (participant, value) =>
  273. store.dispatch(participantUpdated({
  274. conference,
  275. id: participant.getId(),
  276. region: value
  277. })),
  278. 'remoteControlSessionStatus': (participant, value) =>
  279. store.dispatch(participantUpdated({
  280. conference,
  281. id: participant.getId(),
  282. remoteControlSessionStatus: value
  283. }))
  284. };
  285. // update properties for the participants that are already in the conference
  286. conference.getParticipants().forEach(participant => {
  287. Object.keys(propertyHandlers).forEach(propertyName => {
  288. const value = participant.getProperty(propertyName);
  289. if (value !== undefined) {
  290. propertyHandlers[propertyName](participant, value);
  291. }
  292. });
  293. });
  294. // We joined a conference
  295. conference.on(
  296. JitsiConferenceEvents.PARTICIPANT_PROPERTY_CHANGED,
  297. (participant, propertyName, oldValue, newValue) => {
  298. if (propertyHandlers.hasOwnProperty(propertyName)) {
  299. propertyHandlers[propertyName](participant, newValue);
  300. }
  301. });
  302. } else {
  303. const localParticipantId = getLocalParticipant(store.getState).id;
  304. // We left the conference, the local participant must be updated.
  305. _e2eeUpdated(store, conference, localParticipantId, false);
  306. _raiseHandUpdated(store, conference, localParticipantId, 0);
  307. }
  308. }
  309. );
  310. /**
  311. * Handles a E2EE enabled status update.
  312. *
  313. * @param {Store} store - The redux store.
  314. * @param {Object} conference - The conference for which we got an update.
  315. * @param {string} participantId - The ID of the participant from which we got an update.
  316. * @param {boolean} newValue - The new value of the E2EE enabled status.
  317. * @returns {void}
  318. */
  319. function _e2eeUpdated({ getState, dispatch }, conference, participantId, newValue) {
  320. const e2eeEnabled = newValue === 'true';
  321. const { e2ee = {} } = getState()['features/base/config'];
  322. dispatch(participantUpdated({
  323. conference,
  324. id: participantId,
  325. e2eeEnabled
  326. }));
  327. if (e2ee.externallyManagedKey) {
  328. return;
  329. }
  330. const { maxMode } = getState()['features/e2ee'] || {};
  331. if (maxMode !== MAX_MODE.THRESHOLD_EXCEEDED || !e2eeEnabled) {
  332. dispatch(toggleE2EE(e2eeEnabled));
  333. }
  334. }
  335. /**
  336. * Initializes the local participant and signals that it joined.
  337. *
  338. * @private
  339. * @param {Store} store - The redux store.
  340. * @param {Dispatch} next - The redux dispatch function to dispatch the
  341. * specified action to the specified store.
  342. * @param {Action} action - The redux action which is being dispatched
  343. * in the specified store.
  344. * @private
  345. * @returns {Object} The value returned by {@code next(action)}.
  346. */
  347. function _localParticipantJoined({ getState, dispatch }, next, action) {
  348. const result = next(action);
  349. const settings = getState()['features/base/settings'];
  350. dispatch(localParticipantJoined({
  351. avatarURL: settings.avatarURL,
  352. email: settings.email,
  353. name: settings.displayName
  354. }));
  355. return result;
  356. }
  357. /**
  358. * Signals that the local participant has left.
  359. *
  360. * @param {Store} store - The redux store.
  361. * @param {Dispatch} next - The redux {@code dispatch} function to dispatch the
  362. * specified {@code action} into the specified {@code store}.
  363. * @param {Action} action - The redux action which is being dispatched in the
  364. * specified {@code store}.
  365. * @private
  366. * @returns {Object} The value returned by {@code next(action)}.
  367. */
  368. function _localParticipantLeft({ dispatch }, next, action) {
  369. const result = next(action);
  370. dispatch(localParticipantLeft());
  371. return result;
  372. }
  373. /**
  374. * Plays sounds when participants join/leave conference.
  375. *
  376. * @param {Store} store - The redux store.
  377. * @param {Action} action - The redux action. Should be either
  378. * {@link PARTICIPANT_JOINED} or {@link PARTICIPANT_LEFT}.
  379. * @private
  380. * @returns {void}
  381. */
  382. function _maybePlaySounds({ getState, dispatch }, action) {
  383. const state = getState();
  384. const { startAudioMuted } = state['features/base/config'];
  385. const { soundsParticipantJoined: joinSound, soundsParticipantLeft: leftSound } = state['features/base/settings'];
  386. // We're not playing sounds for local participant
  387. // nor when the user is joining past the "startAudioMuted" limit.
  388. // The intention there was to not play user joined notification in big
  389. // conferences where 100th person is joining.
  390. if (!action.participant.local
  391. && (!startAudioMuted
  392. || getParticipantCount(state) < startAudioMuted)) {
  393. const { isReplacing, isReplaced } = action.participant;
  394. if (action.type === PARTICIPANT_JOINED) {
  395. if (!joinSound) {
  396. return;
  397. }
  398. const { presence } = action.participant;
  399. // The sounds for the poltergeist are handled by features/invite.
  400. if (presence !== INVITED && presence !== CALLING && !isReplacing) {
  401. dispatch(playSound(PARTICIPANT_JOINED_SOUND_ID));
  402. }
  403. } else if (action.type === PARTICIPANT_LEFT && !isReplaced && leftSound) {
  404. dispatch(playSound(PARTICIPANT_LEFT_SOUND_ID));
  405. }
  406. }
  407. }
  408. /**
  409. * Notifies the feature base/participants that the action
  410. * {@code PARTICIPANT_JOINED} or {@code PARTICIPANT_UPDATED} is being dispatched
  411. * within a specific redux store.
  412. *
  413. * @param {Store} store - The redux store in which the specified {@code action}
  414. * is being dispatched.
  415. * @param {Dispatch} next - The redux {@code dispatch} function to dispatch the
  416. * specified {@code action} in the specified {@code store}.
  417. * @param {Action} action - The redux action {@code PARTICIPANT_JOINED} or
  418. * {@code PARTICIPANT_UPDATED} which is being dispatched in the specified
  419. * {@code store}.
  420. * @private
  421. * @returns {Object} The value returned by {@code next(action)}.
  422. */
  423. function _participantJoinedOrUpdated(store, next, action) {
  424. const { dispatch, getState } = store;
  425. const { participant: { avatarURL, email, id, local, name, raisedHandTimestamp } } = action;
  426. // Send an external update of the local participant's raised hand state
  427. // if a new raised hand state is defined in the action.
  428. if (typeof raisedHandTimestamp !== 'undefined') {
  429. if (local) {
  430. const { conference } = getState()['features/base/conference'];
  431. const rHand = parseInt(raisedHandTimestamp, 10);
  432. // Send raisedHand signalling only if there is a change
  433. if (conference && rHand !== getLocalParticipant(getState()).raisedHandTimestamp) {
  434. conference.setLocalParticipantProperty('raisedHand', rHand);
  435. }
  436. }
  437. }
  438. // Allow the redux update to go through and compare the old avatar
  439. // to the new avatar and emit out change events if necessary.
  440. const result = next(action);
  441. // Only run this if the config is populated, otherwise we preload external resources
  442. // even if disableThirdPartyRequests is set to true in config
  443. if (Object.keys(getState()['features/base/config']).length) {
  444. const { disableThirdPartyRequests } = getState()['features/base/config'];
  445. if (!disableThirdPartyRequests && (avatarURL || email || id || name)) {
  446. const participantId = !id && local ? getLocalParticipant(getState()).id : id;
  447. const updatedParticipant = getParticipantById(getState(), participantId);
  448. getFirstLoadableAvatarUrl(updatedParticipant, store)
  449. .then(urlData => {
  450. dispatch(setLoadableAvatarUrl(participantId, urlData?.src, urlData?.isUsingCORS));
  451. });
  452. }
  453. }
  454. // Notify external listeners of potential avatarURL changes.
  455. if (typeof APP === 'object') {
  456. const currentKnownId = local ? APP.conference.getMyUserId() : id;
  457. // Force update of local video getting a new id.
  458. APP.UI.refreshAvatarDisplay(currentKnownId);
  459. }
  460. return result;
  461. }
  462. /**
  463. * Handles a raise hand status update.
  464. *
  465. * @param {Function} dispatch - The Redux dispatch function.
  466. * @param {Object} conference - The conference for which we got an update.
  467. * @param {string} participantId - The ID of the participant from which we got an update.
  468. * @param {boolean} newValue - The new value of the raise hand status.
  469. * @returns {void}
  470. */
  471. function _raiseHandUpdated({ dispatch, getState }, conference, participantId, newValue) {
  472. let raisedHandTimestamp;
  473. switch (newValue) {
  474. case undefined:
  475. case 'false':
  476. raisedHandTimestamp = 0;
  477. break;
  478. case 'true':
  479. raisedHandTimestamp = Date.now();
  480. break;
  481. default:
  482. raisedHandTimestamp = parseInt(newValue, 10);
  483. }
  484. const state = getState();
  485. dispatch(participantUpdated({
  486. conference,
  487. id: participantId,
  488. raisedHandTimestamp
  489. }));
  490. dispatch(raiseHandUpdateQueue({
  491. id: participantId,
  492. raisedHandTimestamp
  493. }));
  494. if (typeof APP !== 'undefined') {
  495. APP.API.notifyRaiseHandUpdated(participantId, raisedHandTimestamp);
  496. }
  497. const isModerator = isLocalParticipantModerator(state);
  498. const participant = getParticipantById(state, participantId);
  499. let shouldDisplayAllowAction = false;
  500. if (isModerator) {
  501. shouldDisplayAllowAction = isForceMuted(participant, MEDIA_TYPE.AUDIO, state)
  502. || isForceMuted(participant, MEDIA_TYPE.VIDEO, state);
  503. }
  504. const action = shouldDisplayAllowAction ? {
  505. customActionNameKey: [ 'notify.allowAction' ],
  506. customActionHandler: [ () => dispatch(approveParticipant(participantId)) ]
  507. } : {};
  508. if (raisedHandTimestamp) {
  509. let notificationTitle;
  510. const participantName = getParticipantDisplayName(state, participantId);
  511. const { raisedHandsQueue } = state['features/base/participants'];
  512. if (raisedHandsQueue.length > 1) {
  513. const raisedHands = raisedHandsQueue.length - 1;
  514. notificationTitle = i18n.t('notify.raisedHands', {
  515. participantName,
  516. raisedHands
  517. });
  518. } else {
  519. notificationTitle = participantName;
  520. }
  521. dispatch(showNotification({
  522. titleKey: 'notify.somebody',
  523. title: notificationTitle,
  524. descriptionKey: 'notify.raisedHand',
  525. concatText: true,
  526. uid: RAISE_HAND_NOTIFICATION_ID,
  527. ...action
  528. }, shouldDisplayAllowAction ? NOTIFICATION_TIMEOUT_TYPE.MEDIUM : NOTIFICATION_TIMEOUT_TYPE.SHORT));
  529. dispatch(playSound(RAISE_HAND_SOUND_ID));
  530. }
  531. }
  532. /**
  533. * Registers sounds related with the participants feature.
  534. *
  535. * @param {Store} store - The redux store.
  536. * @private
  537. * @returns {void}
  538. */
  539. function _registerSounds({ dispatch }) {
  540. dispatch(
  541. registerSound(PARTICIPANT_JOINED_SOUND_ID, PARTICIPANT_JOINED_FILE));
  542. dispatch(registerSound(PARTICIPANT_LEFT_SOUND_ID, PARTICIPANT_LEFT_FILE));
  543. }
  544. /**
  545. * Unregisters sounds related with the participants feature.
  546. *
  547. * @param {Store} store - The redux store.
  548. * @private
  549. * @returns {void}
  550. */
  551. function _unregisterSounds({ dispatch }) {
  552. dispatch(unregisterSound(PARTICIPANT_JOINED_SOUND_ID));
  553. dispatch(unregisterSound(PARTICIPANT_LEFT_SOUND_ID));
  554. }