Skip to content

Commit

Permalink
react-player was updated to force audio element
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-phillips committed May 7, 2017
1 parent 4649abe commit 66732ac
Show file tree
Hide file tree
Showing 3 changed files with 592 additions and 382 deletions.
1 change: 1 addition & 0 deletions components/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default class Player extends Component {
onError={e => console.log('onError', e)}
onProgress={this.onProgress}
onDuration={duration => this.setState({ duration })}
fileConfig={{forceAudio: true}}
/>

<img className='play-button'
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"dependencies": {
"isomorphic-fetch": "^2.2.1",
"moment": "^2.18.1",
"next": "beta",
"next": "^2.3.1",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-player": "babenzele/react-player",
"react-player": "^0.17.2",
"react-textfit": "^0.1.9"
},
"devDependencies": {
Expand All @@ -25,8 +25,7 @@
},
"now": {
"alias": [
"kchung.news",
"kchung-newsbody.now.sh"
"dev-kchung-newsbody.now.sh"
],
"env": {
"NODE_ENV": "production"
Expand Down
Loading

0 comments on commit 66732ac

Please sign in to comment.