A vidyard video player component.

Parameters:
NameTypeDescription
propsobject

Component props.

Properties
NameTypeDescription
customAttributesobject

Custom attributes for the component.

customClassesstring | Array | object

Custom classes for the component.

videoOptionsobject

Video options for player type from consumer. See https://knowledge.vidyard.com/hc/en-us/articles/360009879754-Use-query-strings-to-override-player-settings.

refobject | null

Ref to the component.

Since
  • 1.2.2
Returns:

A vidyard video component.

Type: 
JSX.Element
Example
import VidyardVideo from '@gravityforms/components/react/admin/modules/Videos/VidyardVideo';

return (
     <VidyardVideo
         customClasses={ [ 'example-class' ] }
         videoOptions={ { uuid: 'example-id' } }
     />
);

Methods

(inner) controlPlayer(e) → {void}

Listen on document for custom events to either play or pause the player using the vidyard api.

Parameters:
NameTypeDescription
eCustomEvent

The event object.

Since
  • 1.2.2
Returns:
Type: 
void