Optionalconfiguration: UIPlayerConfigurationWhether the player should immediately start playback.
- To autoplay with sound on certain platforms, MultiViewPlayer.prepareWithUserAction must be called at least once.
- To autoplay without sound, PlayerConfiguration.mutedAutoplay must be configured.
ReadonlybufferedReturns a TimeRanges object that represents the intersection of all buffered properties of the underlying players.
The current playback position of the player currently at position zero.
ReadonlydurationReturns the minimum of all duration properties of the underlying players.
ReadonlyendedWhether any of the underlying players is ended.
ReadonlyerrorReturns the last error that occurred of the underlying players.
The currently selected layout.
ReadonlymainThe View whose audio is in focus.
ReadonlymainThe View whose video is in focus.
This is the same as the View at position zero.
Whether all the underlying players are muted.
ReadonlypausedWhether any of the underlying players is muted.
Returns the playbackRate of the player at position zero.
ReadonlyplayedReturns the intersection of all played properties of the underlying players.
ReadonlyreadyReturns the minimum of all readyState properties of the underlying players.
ReadonlyseekableReturns the intersection of all seekable properties of the underlying players.
ReadonlyseekingWhether any of the underlying players is seeking.
ReadonlyuiThe Video.js player on which the UI is built.
ReadonlyviewsReturns all Views in their respective order.
Returns the volume of the player at position zero.
Add the given listener for the given event type(s).
The type of the event.
The callback which is executed when the event occurs.
Calls destroy() on all underlying players and removes all views.
Disables fullscreen mode.
Creates a new view.
The name belonging to a view which is used in the multiview menu.
The SourceDescription set on the view.
Optionaldescription: stringA short description of the view which will be displayed on top.
Optionaloffset: numberThe offset in milliseconds used for improving synchronization between views.
- If the given label clashes with an existing label, the existing view will be returned.
- A player which is created is with position set to the length of MultiViewPlayer.views.
Calls pause() on all underlying players.
Calls play() on all underlying players and starts in-sync playback.
Calls prepareWithUserAction() on all underlying players.
Remove the given listener for the given event type(s).
The type of the event.
The callback which will be removed.
Enables fullscreen mode on the element of the MultiViewPlayer.
Optionaloptions: FullscreenOptionsStops playback and removes all views.
The MultiViewPlayer API.
Remarks
- Available since v4.3.0
- Only available with the feature
'multiview'.- Only supported on modern browsers such as evergreen Chrome, Firefox and Safari. Not supported on Internet Explorer.