diff --git a/.dockerignore b/.dockerignore index 1308843..95b324c 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,7 @@ +* +!voicebot +!server +!client node_modules build dist diff --git a/Dockerfile.server b/Dockerfile.server index ae0838c..b385aef 100644 --- a/Dockerfile.server +++ b/Dockerfile.server @@ -1,4 +1,4 @@ -FROM ubuntu:oracular +FROM ubuntu:plucky # Install some utilities frequently used RUN apt-get update \ diff --git a/clean-venvs b/clean-venvs new file mode 100755 index 0000000..2b1a3ac --- /dev/null +++ b/clean-venvs @@ -0,0 +1,9 @@ +#!/bin/bash +find . -name .venv | while read path; do + echo "Removing ${path}" + sudo rm -rf "${path}" +done +find . -name .python-version | while read path; do + echo "Removing ${path}" + sudo rm "${path}" +done diff --git a/client/src/MediaControl.tsx b/client/src/MediaControl.tsx index 104812c..11d5ad4 100644 --- a/client/src/MediaControl.tsx +++ b/client/src/MediaControl.tsx @@ -164,6 +164,8 @@ interface VideoProps extends React.VideoHTMLAttributes { const Video: React.FC = ({ srcObject, local, ...props }) => { const refVideo = useRef(null); + const clickHandlerRef = useRef<(() => void) | null>(null); + const hasUserInteractedRef = useRef(false); useEffect(() => { if (!refVideo.current || !srcObject) return; @@ -171,6 +173,15 @@ const Video: React.FC = ({ srcObject, local, ...props }) => { const ref = refVideo.current; console.log("media-agent -