This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @file: use-state.h.ts | |
*/ | |
import {Ref} from "vue"; | |
export type DispatchFn<T> = (nextValue: T) => void | |
export type ResetFn = () => void | |
export type State = object | number | string | boolean | null; | |
export type MapFn<T> = (currentValue: T, nextValue: T) => T |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
loadProcessEnv function is setting process.env vars accessible in the vite.config and parse process.env vars. | |
(string process.env.FLAG="true" => boolean process.env.FLAG=true) | |
*/ | |
// @file: .env | |
VITE_NEED_MINIFY=true | |
// @file: load-process-env.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modprobe -r v4l2loopback | |
modprobe v4l2loopback exclusive_caps=1 | |
ls /dev/video* | |
gst-launch-1.0 souphttpsrc location="http://admin:[email protected]:4201/videofeed" do-timestamp=true is-live=true ! multipartdemux ! jpegdec ! videoconvert ! v4l2sink device="/dev/video0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# STEP 1 | |
# Install deps | |
sudo apt install v4l2loopback-dkms | |
sudo apt install ffmpeg | |
# STEP 2 | |
# Create fake webcam dummy device | |
# It will be used like a stream source in third-party programs like Zoom, Skype, etc | |
sudo modprobe v4l2loopback card_label="Fake Webcam" exclusive_caps=1 |