Skip to content

Commit

Permalink
feat(LocalMedia): invoke useStream()
Browse files Browse the repository at this point in the history
Co-authored-by: Arash koushkebaghi <[email protected]>
  • Loading branch information
taymoork2 and akoushke committed Dec 19, 2019
1 parent c2eb1ff commit 21a99de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/WebexLocalMedia/WebexLocalMedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';

import {WebexAvatar} from '../';
import {useMe, useMeeting, useVideo} from '../hooks';
import {useMe, useMeeting, useStream} from '../hooks';

import './WebexLocalMedia.scss';

Expand All @@ -14,8 +14,8 @@ import './WebexLocalMedia.scss';
*/
export default function WebexLocalMedia({meetingID}) {
const {localVideo} = useMeeting(meetingID);
const videoRef = useVideo(localVideo);
const {ID} = useMe();
const videoRef = useStream(localVideo);

return (
<div className="local-media">
Expand Down
2 changes: 1 addition & 1 deletion src/components/WebexLocalMedia/WebexLocalMedia.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import WebexLocalMedia from './WebexLocalMedia';

jest.mock('../hooks/useMe');
jest.mock('../hooks/useMeeting');
jest.mock('../hooks/useVideo');
jest.mock('../hooks/useStream');

describe('Webex Local Media component', () => {
describe('snapshot', () => {
Expand Down

0 comments on commit 21a99de

Please sign in to comment.