mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 14:40:50 +01:00
Add shutter sound to Thumbnail Camera
This commit is contained in:
parent
a8eb8ecf22
commit
02e3e04fe7
@ -1,6 +1,7 @@
|
||||
import { NitroRectangle } from '@nitrots/nitro-renderer';
|
||||
import { FC, useCallback, useRef } from 'react';
|
||||
import { GetRoomEngine, LocalizeText } from '../../api';
|
||||
import { PlaySound } from '../../api/utils/PlaySound';
|
||||
import { DraggableWindow } from '../draggable-window';
|
||||
import { NitroLayoutMiniCameraViewProps } from './NitroLayoutMiniCameraView.types';
|
||||
|
||||
@ -20,6 +21,7 @@ export const NitroLayoutMiniCameraView: FC<NitroLayoutMiniCameraViewProps> = pro
|
||||
|
||||
const takePicture = useCallback(() =>
|
||||
{
|
||||
PlaySound('camera_shutter');
|
||||
textureReceiver(GetRoomEngine().createTextureFromRoom(roomId, 1, getCameraBounds()));
|
||||
}, [ roomId, getCameraBounds, textureReceiver ]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user