Coding style

This commit is contained in:
Lyubo Marinov 2017-03-24 09:06:54 -05:00
parent 43c8fc6847
commit 84b9c5f5fd
1 changed files with 5 additions and 5 deletions

View File

@ -65,9 +65,9 @@ export class Video extends Component {
componentDidMount() { componentDidMount() {
// RTCView currently does not support media events, so just fire // RTCView currently does not support media events, so just fire
// onPlaying callback when <RTCView> is rendered. // onPlaying callback when <RTCView> is rendered.
if (this.props.onPlaying) { const { onPlaying } = this.props;
this.props.onPlaying();
} onPlaying && onPlaying();
} }
/** /**
@ -77,7 +77,7 @@ export class Video extends Component {
* @returns {ReactElement|null} * @returns {ReactElement|null}
*/ */
render() { render() {
const stream = this.props.stream; const { stream } = this.props;
if (stream) { if (stream) {
const streamURL = stream.toURL(); const streamURL = stream.toURL();
@ -91,7 +91,7 @@ export class Video extends Component {
const style = styles.video; const style = styles.video;
const objectFit = (style && style.objectFit) || 'cover'; const objectFit = (style && style.objectFit) || 'cover';
const mirror = this.props.mirror; const { mirror } = this.props;
// XXX RTCView may not support support mirroring, even when // XXX RTCView may not support support mirroring, even when
// providing a transform style property (e.g. iOS) . As a // providing a transform style property (e.g. iOS) . As a