Name folders consistently
This commit is contained in:
parent
4f8b7a934c
commit
eaed9db1e7
|
@ -9,21 +9,6 @@ import {
|
||||||
} from './actionTypes';
|
} from './actionTypes';
|
||||||
import { CAMERA_FACING_MODE } from './constants';
|
import { CAMERA_FACING_MODE } from './constants';
|
||||||
|
|
||||||
/**
|
|
||||||
* Listen for various actions related to media devices.
|
|
||||||
*
|
|
||||||
* @param {Object} state - State of media devices.
|
|
||||||
* @param {Object} action - Action object.
|
|
||||||
* @param {string} action.type - Type of action.
|
|
||||||
* @param {Object} action.media - Information about media devices to be
|
|
||||||
* modified.
|
|
||||||
* @returns {Object}
|
|
||||||
*/
|
|
||||||
ReducerRegistry.register('features/base/media', combineReducers({
|
|
||||||
audio,
|
|
||||||
video
|
|
||||||
}));
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Media state object for local audio.
|
* Media state object for local audio.
|
||||||
*
|
*
|
||||||
|
@ -105,3 +90,18 @@ function video(state = VIDEO_INITIAL_MEDIA_STATE, action) {
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Listen for various actions related to media devices.
|
||||||
|
*
|
||||||
|
* @param {Object} state - State of media devices.
|
||||||
|
* @param {Object} action - Action object.
|
||||||
|
* @param {string} action.type - Type of action.
|
||||||
|
* @param {Object} action.media - Information about media devices to be
|
||||||
|
* modified.
|
||||||
|
* @returns {Object}
|
||||||
|
*/
|
||||||
|
ReducerRegistry.register('features/base/media', combineReducers({
|
||||||
|
audio,
|
||||||
|
video
|
||||||
|
}));
|
||||||
|
|
|
@ -3,8 +3,8 @@ import { connect as reactReduxConnect } from 'react-redux';
|
||||||
|
|
||||||
import { connect, disconnect } from '../../base/connection';
|
import { connect, disconnect } from '../../base/connection';
|
||||||
import { Container } from '../../base/react';
|
import { Container } from '../../base/react';
|
||||||
import { FilmStrip } from '../../filmStrip';
|
import { FilmStrip } from '../../film-strip';
|
||||||
import { LargeVideo } from '../../largeVideo';
|
import { LargeVideo } from '../../large-video';
|
||||||
import { RoomLockPrompt } from '../../room-lock';
|
import { RoomLockPrompt } from '../../room-lock';
|
||||||
import { Toolbar } from '../../toolbar';
|
import { Toolbar } from '../../toolbar';
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,8 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
|
||||||
import {
|
import { Audio, MEDIA_TYPE } from '../../base/media';
|
||||||
Audio,
|
import { PARTICIPANT_ROLE, pinParticipant } from '../../base/participants';
|
||||||
MEDIA_TYPE
|
|
||||||
} from '../../base/media';
|
|
||||||
import {
|
|
||||||
PARTICIPANT_ROLE,
|
|
||||||
pinParticipant
|
|
||||||
} from '../../base/participants';
|
|
||||||
import { Container } from '../../base/react';
|
import { Container } from '../../base/react';
|
||||||
import { getTrackByMediaTypeAndParticipant } from '../../base/tracks';
|
import { getTrackByMediaTypeAndParticipant } from '../../base/tracks';
|
||||||
import { ParticipantView } from '../../conference';
|
import { ParticipantView } from '../../conference';
|
||||||
|
@ -148,10 +142,10 @@ class Thumbnail extends Component {
|
||||||
* }}
|
* }}
|
||||||
*/
|
*/
|
||||||
function mapStateToProps(state, ownProps) {
|
function mapStateToProps(state, ownProps) {
|
||||||
// We need read-only access to the state of features/largeVideo so that the
|
// We need read-only access to the state of features/large-video so that the
|
||||||
// film strip doesn't render the video of the participant who is rendered on
|
// film strip doesn't render the video of the participant who is rendered on
|
||||||
// the stage i.e. as a large video.
|
// the stage i.e. as a large video.
|
||||||
const largeVideo = state['features/largeVideo'];
|
const largeVideo = state['features/large-video'];
|
||||||
const tracks = state['features/base/tracks'];
|
const tracks = state['features/base/tracks'];
|
||||||
const id = ownProps.participant.id;
|
const id = ownProps.participant.id;
|
||||||
const audioTrack
|
const audioTrack
|
|
@ -20,7 +20,7 @@ export function selectParticipant() {
|
||||||
const conference = state['features/base/conference'].conference;
|
const conference = state['features/base/conference'].conference;
|
||||||
|
|
||||||
if (conference) {
|
if (conference) {
|
||||||
const largeVideo = state['features/largeVideo'];
|
const largeVideo = state['features/large-video'];
|
||||||
const tracks = state['features/base/tracks'];
|
const tracks = state['features/base/tracks'];
|
||||||
|
|
||||||
const id = largeVideo.participantId;
|
const id = largeVideo.participantId;
|
||||||
|
@ -53,7 +53,7 @@ export function selectParticipantInLargeVideo() {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const participantId = _electParticipantInLargeVideo(state);
|
const participantId = _electParticipantInLargeVideo(state);
|
||||||
const largeVideo = state['features/largeVideo'];
|
const largeVideo = state['features/large-video'];
|
||||||
|
|
||||||
if (participantId !== largeVideo.participantId) {
|
if (participantId !== largeVideo.participantId) {
|
||||||
dispatch({
|
dispatch({
|
|
@ -52,7 +52,7 @@ class LargeVideo extends Component {
|
||||||
*/
|
*/
|
||||||
function mapStateToProps(state) {
|
function mapStateToProps(state) {
|
||||||
return {
|
return {
|
||||||
_participantId: state['features/largeVideo'].participantId
|
_participantId: state['features/large-video'].participantId
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ MiddlewareRegistry.register(store => next => action => {
|
||||||
= getTrackByJitsiTrack(
|
= getTrackByJitsiTrack(
|
||||||
state['features/base/tracks'],
|
state['features/base/tracks'],
|
||||||
action.track.jitsiTrack);
|
action.track.jitsiTrack);
|
||||||
const participantId = state['features/largeVideo'].participantId;
|
const participantId = state['features/large-video'].participantId;
|
||||||
|
|
||||||
(track.participantId === participantId)
|
(track.participantId === participantId)
|
||||||
&& store.dispatch(selectParticipant());
|
&& store.dispatch(selectParticipant());
|
|
@ -3,7 +3,7 @@ import { ReducerRegistry } from '../base/redux';
|
||||||
|
|
||||||
import { SELECT_LARGE_VIDEO_PARTICIPANT } from './actionTypes';
|
import { SELECT_LARGE_VIDEO_PARTICIPANT } from './actionTypes';
|
||||||
|
|
||||||
ReducerRegistry.register('features/largeVideo', (state = {}, action) => {
|
ReducerRegistry.register('features/large-video', (state = {}, action) => {
|
||||||
switch (action.type) {
|
switch (action.type) {
|
||||||
|
|
||||||
// When conference is joined, we update ID of local participant from default
|
// When conference is joined, we update ID of local participant from default
|
|
@ -1,7 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { TouchableHighlight } from 'react-native';
|
import { TouchableHighlight } from 'react-native';
|
||||||
|
|
||||||
import { Icon } from '../../base/fontIcons';
|
import { Icon } from '../../base/font-icons';
|
||||||
|
|
||||||
import AbstractToolbarButton from './AbstractToolbarButton';
|
import AbstractToolbarButton from './AbstractToolbarButton';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue