Methods
-
componentDidMount()
-
Description
On mount, creates a new HTMLVideoLayer instance and initializes with ref to video element, user generated cloudinaryVideo and the plugins to be used.
Details
-
componentDidUpdate()
-
Description
On update, we cancel running plugins and update the video instance if the src was changed.
Details
-
componentWillUnmount()
-
Description
On unmount, we cancel the currently running plugins.
Details
-
getVideoAttributes()
-
Description
Returns video attributes.
Details
-
attachRef( element )
-
Description
Attach both this.videoRef and props.innerRef as ref to the given element.
Parameters
Name Type Description element
the element to attach a ref to
Details