Motty
Motty

Reputation: 27

How does netflix fullscreen feature work?

I know that Netflix has moved from Silverlight to React. After looking through the source code and not finding what I'm looking for, I want to understand how Netflix can enter the user into fullscreen mode when clicking on the fullscreen button. The DOM window can't be resized through JS...unless I'm missing something. So what kind of technology is Netflix using to completely take over the screen?

Thanks in advance!

Upvotes: 0

Views: 295

Answers (1)

takrishna
takrishna

Reputation: 5002

We have a web api to control full screen:

Enter Full screen:

document.documentElement.requestFullscreen();

Exit Full screen:

document.exitFullscreen();

Upvotes: 3

Related Questions