A vidyard video player component.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
props | object | Component props. Properties
| ||||||||||||
ref | object | | 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:
Name | Type | Description |
---|---|---|
e | CustomEvent | The event object. |
- Since
- 1.2.2
Returns:
- Type:
- void