Create an instance of Fullscreen.
Button to toggle fullscreen effect.
Callback when user clicks Fullscreen button.
Flag to determine if fullscreen is available natively.
List of events when fullscreen change is fired.
Storage for user's full screen height.
Storage for user's full screen width.
Flag to determine if media is currently being played in fullscreen mode.
Instance of OpenPlayer.
Callback to toggle fullscreen for browsers thta do not support native Fullscreen API.
Set dimensions for the video tag and player's container.
The width of the media
The height of the media
Update the data-fullscreen
of the player's container and toggle button's class
depending if player is on fullscreen mode or not.
Whether media is fullscreen or not
Create HTML and insert it into OpenPlayer's DOM.
This method must include its events setup.
Remove HTML associated to specific OpenPlayer's element.
This method must include the removal of its previously set events.
Enter/cancel fullscreen depending of browser's capabilities.
If browser does not support native Fullscreen API, player will adjust the video and its parent container's dimensions via width and height styles.
Generated using TypeDoc
Fullscreen element.
Following the Fullscreen API, this class toggles media dimensions to present video using the user's entire screen, even when the player is playing Ads.
https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API
https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/cross_browser_video_player#Fullscreen
Fullscreen
PlayerComponent