|
|
|
@ -71,6 +71,7 @@ import { isScreenAudioSupported, isScreenVideoShared } from '../../react/feature |
|
|
|
|
import { startScreenShareFlow, startAudioScreenShareFlow } from '../../react/features/screen-share/actions'; |
|
|
|
|
import { toggleScreenshotCaptureSummary } from '../../react/features/screenshot-capture'; |
|
|
|
|
import { playSharedVideo, stopSharedVideo } from '../../react/features/shared-video/actions.any'; |
|
|
|
|
import { extractYoutubeIdOrURL } from '../../react/features/shared-video/functions'; |
|
|
|
|
import { toggleTileView, setTileView } from '../../react/features/video-layout'; |
|
|
|
|
import { muteAllParticipants } from '../../react/features/video-menu/actions'; |
|
|
|
|
import { setVideoQuality } from '../../react/features/video-quality'; |
|
|
|
@ -382,7 +383,11 @@ function initCommands() { |
|
|
|
|
'start-share-video': url => { |
|
|
|
|
logger.debug('Share video command received'); |
|
|
|
|
sendAnalytics(createApiEvent('share.video.start')); |
|
|
|
|
APP.store.dispatch(playSharedVideo(url)); |
|
|
|
|
const id = extractYoutubeIdOrURL(url); |
|
|
|
|
|
|
|
|
|
if (id) { |
|
|
|
|
APP.store.dispatch(playSharedVideo(id)); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
'stop-share-video': () => { |
|
|
|
|