17 lines
669 B
TypeScript
17 lines
669 B
TypeScript
// Metro module 10819 (f10820).
|
|
import { resetFocus, toggleFocus } from "../ChannelCallStore";
|
|
import StreamTile from "./StreamTile";
|
|
import { ResizeMode } from "./VideoRenderer";
|
|
import ChannelRTCActionCreators from "../../../../actions/ChannelRTCActionCreators";
|
|
export default function SingleStream(props) {
|
|
const { participant, channel } = props;
|
|
return <StreamTile gestureEnabled resizeMode={ResizeMode.CONTAIN} onSingleTap={function onSingleTap() {
|
|
toggleFocus();
|
|
}} onDoubleTap={function onDoubleTap() {
|
|
resetFocus();
|
|
ChannelRTCActionCreators.selectParticipant(channel.id, null);
|
|
}} participant={participant} style={{
|
|
flex: 1
|
|
}} />;
|
|
};
|