Constructor
(export) new FullscreenButton(parentnon-null, controlsnon-null)
Parameters:
Name | Type | Description |
---|---|---|
parent |
HTMLElement | |
controls |
shaka.ui.Controls |
- Extends:
- Source:
Extends
Classes
Members
(protected, non-null) parent :HTMLElement
Type:
- HTMLElement
- Overrides:
- Source:
(private, non-null) videoContainer_ :HTMLElement
Type:
- HTMLElement
- Source:
Methods
(private) onScreenRotation_()
When a mobile device is rotated to landscape layout, and the video is
loaded, make the demo app go into fullscreen.
Similarly, exit fullscreen when the device is rotated to portrait layout.
- Source:
(async, private) toggleFullScreen_()
- Source:
(private) updateAriaLabel_()
- Source:
(private) updateIcon_()
- Source: