3
0
mirror of https://github.com/Qortal/q-tube.git synced 2025-02-11 17:55:51 +00:00

Videoplayer data is stored in a context.

Mobile and PC Video Controls are split into different components.
This commit is contained in:
Qortal Dev 2024-10-24 16:00:27 -06:00
parent ca52ea9ff9
commit f7a139a654

View File

@ -41,7 +41,7 @@ export const VideoControls = () => {
} = useVideoContext();
useSignalEffect(() => {
console.log("canPlay is: ", canPlay.value);
console.log("canPlay is: ", canPlay.value); // makes the function execute when canPlay changes
const videoWidth = videoRef?.current?.offsetWidth;
if (videoWidth && videoWidth <= 600) {
isMobileView.value = true;