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:
parent
ca52ea9ff9
commit
f7a139a654
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user