Comment by YouTube-r on 21/05/2022 at 09:09 UTC

1 upvotes, 0 direct replies (showing 0)

View submission: Found Reddit video player source code

View parent comment

Actually i think this is better

const VideoHandler = (): void -> { if (Video.IsInteresting()) { RedditVideoPlayer.Play(); } else if(Math.random() > 0.5) { RedditVideoPlayer.Play(); } else if(Math.random() < 0.5) { RedditVideoPlayer.Play(); } else if(true) { RedditVideoPlayer.Play(); } else if(!RedditVideoPlayer.isPlaying) { RedditVideoPlayer.Play(); } else if(RedditVideoPlayer.isPlaying) { RedditVideoPlayer.Play(); } else if(true) { RedditVideoPlayer.Play(); } else if(false) { RedditVideoPlayer.Play(); } };

Replies

There's nothing here!