Found Reddit video player source code

https://i.redd.it/foqebz0nsj091.png

created by weird_dude_69_420 on 20/05/2022 at 03:11 UTC

42895 upvotes, 206 top-level comments (showing 25)

Comments

Comment by WeSaidMeh at 20/05/2022 at 03:16 UTC

3380 upvotes, 29 direct replies

This is exactly my experience, glad I'm not alone. Why is this?

Comment by cmdkeyy at 20/05/2022 at 05:02 UTC

973 upvotes, 3 direct replies

And when it does load, it plays in terrible quality before freezing after the first 5 seconds

Comment by OffBrandNameBrand at 20/05/2022 at 05:19 UTC

457 upvotes, 7 direct replies

​

If Reddit devs need a hand, I am sure that r/ProgrammerHumor community could make a better video player just for the meme.

Comment by dummyDummyOne at 20/05/2022 at 04:30 UTC

574 upvotes, 2 direct replies

if it's a gif, serve .mp4 with no audio if it's an mp4, serve .gif

Comment by -NiMa- at 20/05/2022 at 05:26 UTC

240 upvotes, 2 direct replies

`if (Video.LiveStream()){`

`RedditVideoPlayer.PlayFullHD();`

`}`

Comment by KickinWithKaine at 20/05/2022 at 04:02 UTC

625 upvotes, 5 direct replies

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

const VideoHandler = (): void -> {
  if (Video.IsInteresting() || Math.random() > 0.5) {
    RedditVideoPlayer.Freeze();
  } else {
    RedditVideoPlayer.Play();
  }
};

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

^^I'm a human volunteer content transcriber and you could be too! If you'd like more information on what we do and why we do it, click here!

Comment by whiznat at 20/05/2022 at 04:24 UTC

356 upvotes, 6 direct replies

This is fake. Reddit never just plays a video. You have to reload the page at least once, often twice, occasionally over and over and over.

Comment by petergriffin1115 at 20/05/2022 at 05:10 UTC

267 upvotes, 2 direct replies

If livestream:

runSoSmoothlyFeelsLikeOfline()

Comment by ApatheticWithoutTheA at 20/05/2022 at 04:36 UTC

95 upvotes, 2 direct replies

Amazing with how much Reddit is worth, they can’t hire a developer to fix the fucking video player!

Comment by [deleted] at 20/05/2022 at 05:46 UTC

41 upvotes, 2 direct replies

[deleted]

Comment by coulls at 20/05/2022 at 04:21 UTC

33 upvotes, 2 direct replies

I think I hit the other routine all the time.., the one where video brightness is set to 1000% on some videos. Ha ha!

Comment by GodGrabber at 20/05/2022 at 07:19 UTC

31 upvotes, 2 direct replies

document.onLoad = () => {

RedditVideoPlayer.play();

RedditVideoPlayer.stop();

RedditVideoPlayer.play();

RedditVideoPlayer.stop();

RedditVideoPlayer.play();

RedditVideoPlayer.stop();

if(Math.random() > 0.7) RedditVideoPlayer.play()

}

Comment by [deleted] at 20/05/2022 at 07:06 UTC

25 upvotes, 1 direct replies

https://imgur.com/a/SAc6xnb

Comment by GoldenretriverYT at 20/05/2022 at 06:24 UTC

20 upvotes, 1 direct replies

Now we know why livestreams always play. They aren't interesting.

Comment by PineCone227 at 20/05/2022 at 08:33 UTC

10 upvotes, 0 direct replies

Where are the DisplayRandomNoise() and DistortSound() functions?

Comment by user32532 at 20/05/2022 at 08:31 UTC

17 upvotes, 1 direct replies

an important part is missing like

`video.setQuality("4KUHD")`

`if (video.hasFinishedPlayingOnce()){`

`video.setQuality("120p")`

`video.enableRandomStutter(true)`

`}`

Comment by LKZToroH at 20/05/2022 at 11:34 UTC

6 upvotes, 4 direct replies

I don't know other options for web reddit but for mobile I use RIF as my reddit "browser" and I have 0 problems with videos using it. It even works for redgifs

Comment by [deleted] at 20/05/2022 at 06:26 UTC

6 upvotes, 1 direct replies

[deleted]

Comment by BertyTheBook at 20/05/2022 at 11:24 UTC

6 upvotes, 0 direct replies

if (Video.isAd()) {
    RedditVideoPlayer.LoadPriority();
}

Comment by ogreUnwanted at 20/05/2022 at 12:57 UTC*

6 upvotes, 0 direct replies

I know this is for fun and humour. But the syntax looks like typescript, but the naming convention of pascal case throws me off.

What is it?

Comment by DividedState at 20/05/2022 at 05:08 UTC

5 upvotes, 0 direct replies

Needs some time.sleep and endless buffering while loops.

Comment by Chamkaar at 20/05/2022 at 03:53 UTC

4 upvotes, 0 direct replies

Hahah happens to me all the time

Comment by [deleted] at 20/05/2022 at 05:21 UTC

5 upvotes, 0 direct replies

Freeze method: Hang the whole f*** cellphone

Comment by [deleted] at 20/05/2022 at 07:59 UTC

4 upvotes, 1 direct replies

The Intellisense doesn't show errors, this might be the real thing actually.

Comment by d3vil401 at 20/05/2022 at 08:07 UTC

4 upvotes, 0 direct replies

The line 3 (first if) should have not been using an OR || but an AND &&

At least from my experience