Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
ERLY-967 add preview to video
Browse files Browse the repository at this point in the history
  • Loading branch information
Elay committed Jul 21, 2017
1 parent a289532 commit aabd09c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions dist/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ var ReactPlayer = function (_Component) {
autoPlay = _props.autoPlay,
muted = _props.muted,
startTime = _props.startTime,
fluid = _props.fluid;
fluid = _props.fluid,
poster = _props.poster;
var _state = this.state,
activeTrack = _state.activeTrack,
tracks = _state.tracks;
Expand All @@ -107,6 +108,7 @@ var ReactPlayer = function (_Component) {
muted: muted,
startTime: startTime,
fluid: fluid,
poster: poster,
ref: function ref(player) {
_this2.player = player;
}
Expand Down Expand Up @@ -146,7 +148,8 @@ ReactPlayer.propTypes = {
autoPlay: _propTypes2.default.bool.isRequired,
muted: _propTypes2.default.bool.isRequired,
startTime: _propTypes2.default.number,
fluid: _propTypes2.default.bool
fluid: _propTypes2.default.bool,
poster: _propTypes2.default.string
};
ReactPlayer.defaultProps = {
isHLS: true,
Expand Down
7 changes: 5 additions & 2 deletions src/new/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class ReactPlayer extends Component {
autoPlay,
muted,
startTime,
fluid
fluid,
poster
} = this.props
const {
activeTrack,
Expand All @@ -66,6 +67,7 @@ class ReactPlayer extends Component {
muted={muted}
startTime={startTime}
fluid={fluid}
poster={poster}
ref={(player) => { this.player = player }}
>
{ (isHLS && !isApple)
Expand Down Expand Up @@ -104,7 +106,8 @@ ReactPlayer.propTypes = {
autoPlay: PropTypes.bool.isRequired,
muted: PropTypes.bool.isRequired,
startTime: PropTypes.number,
fluid: PropTypes.bool
fluid: PropTypes.bool,
poster: PropTypes.string
}
ReactPlayer.defaultProps = {
isHLS: true,
Expand Down

0 comments on commit aabd09c

Please sign in to comment.