THEOplayer > Player
Inherits from ChromelessPlayer . See parent page for inherited properties and methods.
The player API extended with UI functionality.
Signature:
export declare class Player extends ChromelessPlayer
- Only available with the feature 'ui'
.
Constructor |
Description |
---|---|
constructor(element: |
Constructs a new instance of the |
Property |
Type |
Description |
---|---|---|
|
Whether the player controls are visible. |
|
The presentation mode of the player. |
||
The related content UI API. |
||
The social sharing UI API. |
||
The Video.js player on which the UI is built. |
||
The up next UI API. |
Constructs a new instance of the Player
class
Signature:
constructor(element: HTMLElement, configuration?: UIPlayerConfiguration);
Parameter |
Type |
Description |
---|---|---|
element |
|
|
configuration |
Whether the player controls are visible.
Signature:
controls: boolean;
Warning: This API is deprecated.
Superseded by Presentation.currentMode and Presentation.requestMode().
The presentation mode of the player.
Signature:
presentationMode?: PresentationMode;
The related content UI API.
Signature:
readonly related?: UIRelatedContent;
- Only available with the feature 'relatedcontent'
.
The social sharing UI API.
Signature:
readonly social?: SocialSharing;
- Only available with the feature 'social'
.
The Video.js player on which the UI is built.
Signature:
readonly ui: videojs.Player;
The up next UI API.
Signature:
readonly upnext?: UpNextManager;
- Only available with the feature 'upnext'
.