jiti-meet/react/features/base
zbettenbuk 008645568c Fix startAudioOnly and startWithVideoMuted collision on start from URL
Zoltan Bettenbuk suggested the following:

         const state = getState();

          if (desiredTypes.length === 0) {
 -            const { audio, video } = state['features/base/media'];
 -
 -            audio.muted || desiredTypes.push(MEDIA_TYPE.AUDIO);
 -            video.muted || desiredTypes.push(MEDIA_TYPE.VIDEO);
 +            const startAudioOnly = getPropertyValue(state, 'startAudioOnly');
 +            const startWithAudioMuted
 +                = getPropertyValue(state, 'startWithAudioMuted');
 +            const startWithVideoMuted
 +                = getPropertyValue(state, 'startWithVideoMuted');
 +
 +            if (!startWithAudioMuted) {
 +                desiredTypes.push(MEDIA_TYPE.AUDIO);
 +            }
 +            if (!startAudioOnly && !startWithVideoMuted) {
 +                desiredTypes.push(MEDIA_TYPE.VIDEO);
 +            }
          }

          const availableTypes

The final commit is really a different implementation of the same idea
but takes into account that the state of base/media already contains the
intent of the URL and notices the delay in the realization of the
background app state.

Additionally, unbreaks one more case where setAudioOnly is incorrectly
dispatched on CONFERENCE_LEFT or CONFERENCE_FAILED and, consequently,
overrides the intent of the URL.
2018-04-16 22:02:37 -05:00
..
conference Fix startAudioOnly and startWithVideoMuted collision on start from URL 2018-04-16 22:02:37 -05:00
config ref(toolbar): remove reference to unused config autoEnableDesktopSharing 2018-04-11 10:35:01 +02:00
connection [RN] Fix calendar alerts when case sensitive URLs are used 2018-04-04 11:21:02 +02:00
devices [RN] Polyfill Symbol 2017-05-26 16:37:22 -05:00
dialog feat(new-toolbars): initial implementation 2018-03-27 00:54:30 -05:00
font-icons fix(toolbar): video quality button shows current video quality (#2761) 2018-04-11 13:04:40 -07:00
i18n Refactor i18n calendar formatter 2018-03-13 18:04:17 -05:00
jwt feat: add join/leave sounds on mobile 2018-03-13 16:57:28 -05:00
lib-jitsi-meet feat(android): support NAT64 2018-04-05 10:21:59 -05:00
logging [RN] Make full-screen more resilient on Android (Coding style: consistency) 2018-02-14 12:28:22 -06:00
media Proper use of getPropertyValue in base/media 2018-04-13 21:57:40 -05:00
participants fix(RN): bundle sound files in release build 2018-04-10 10:59:52 +02:00
popover fix(filmstrip-only): prevent stats display 2017-10-10 12:47:19 -05:00
profile Proper use of getPropertyValue in base/media 2018-04-13 21:57:40 -05:00
react Coding style: formatting, typos 2018-04-16 18:09:08 -05:00
redux Introduce base/storage to represent the Web Storage API and persistence-related customizations 2018-02-02 15:13:26 -06:00
responsive-ui Fix iPad rotation related issue when in PiP 2018-03-22 16:40:17 -04:00
sounds fix(RN): bundle sound files in release build 2018-04-10 10:59:52 +02:00
storage [RN] Fix base/profile and recent-list bugs 2018-02-27 20:52:34 -06:00
styles Remove obsolate PlatformElements.native.js 2018-03-13 18:04:17 -05:00
tracks Fix startAudioOnly and startWithVideoMuted collision on start from URL 2018-04-16 22:02:37 -05:00
util Fix app crash with special characters in the room name 2018-04-16 18:09:08 -05:00