mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 00:17:14 +02:00
v2: prepare to move
This commit is contained in:
parent
dc7ef96849
commit
45736200b0
172 changed files with 0 additions and 0 deletions
|
@ -1,33 +0,0 @@
|
|||
import React from 'react';
|
||||
import Helmet from 'react-helmet';
|
||||
import YouTube from 'react-youtube';
|
||||
import Layout from '@theme/Layout';
|
||||
|
||||
export default class Player extends React.Component {
|
||||
render() {
|
||||
const opts = {
|
||||
height: '390',
|
||||
width: '640',
|
||||
playerVars: {
|
||||
autoplay: 1
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<Layout {...this.props}>
|
||||
<Helmet>
|
||||
<title>My Youtube</title>
|
||||
</Helmet>
|
||||
<p align="center">
|
||||
{/* this is a React-youtube component */ }
|
||||
<YouTube videoId="d9IxdwEFk1c" opts={opts} onReady={this._onReady} />
|
||||
</p>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
_onReady(event) {
|
||||
// access to player in all event handlers via event.target
|
||||
event.target.playVideo();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue