import React from 'react'; import SublimeVideo from 'react-sublime-video'; export default class VideoPlayer extends React.Component { render() { const video = this.props.video; const span = document.createElement('span'); span.innerHTML = video; const attributes = span.children[0].attributes; const { alt, description, src } = attributes; const videoClassName = attributes.class.nodeValue; return (
{alt && alt.nodeValue}
); } }