From 939be05e5d0ff2ea1e369db2fcfd4e93bda9bcb9 Mon Sep 17 00:00:00 2001 From: Anthony Date: Tue, 12 Oct 2021 19:02:11 +0300 Subject: [PATCH] working prototype --- ui/component/viewers/videoViewer/internal/videojs.jsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ui/component/viewers/videoViewer/internal/videojs.jsx b/ui/component/viewers/videoViewer/internal/videojs.jsx index cfc4256d6..dd1799b98 100644 --- a/ui/component/viewers/videoViewer/internal/videojs.jsx +++ b/ui/component/viewers/videoViewer/internal/videojs.jsx @@ -85,11 +85,21 @@ function hitsTwentyPercent() { console.log(rand); console.log('rand'); + setTimeout(function(){ + console.log('play here'); + player.play() + }, 1000) + + return true + + if (rand > 799) { return true; } else { return false; } + + } const videoPlaybackRates = [0.25, 0.5, 0.75, 1, 1.1, 1.25, 1.5, 1.75, 2];