Comment by [deleted] on 20/05/2022 at 15:52 UTC

17 upvotes, 1 direct replies (showing 1)

View submission: Found Reddit video player source code

View parent comment

[deleted]

Replies

Comment by YouTube-r at 20/05/2022 at 19:52 UTC

12 upvotes, 2 direct replies

--------------------------------------------------------------------------------

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();
}
};

--------------------------------------------------------------------------------