Skip to content

Commit

Permalink
Upgrade React Player to 4.11.1, enabled MediaSession
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Apr 13, 2020
1 parent d81bf8a commit 4dff067
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 49 deletions.
83 changes: 41 additions & 42 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/package.json
Expand Up @@ -15,7 +15,7 @@
"react": "^16.13.1",
"react-admin": "^3.3.3",
"react-dom": "^16.13.1",
"react-jinke-music-player": "^4.10.1",
"react-jinke-music-player": "^4.11.1",
"react-redux": "^7.2.0",
"react-scripts": "^3.4.1"
},
Expand Down
15 changes: 9 additions & 6 deletions ui/src/audioplayer/Player.js
Expand Up @@ -21,16 +21,19 @@ const Player = () => {
showReload: false,
glassBg: false,
showThemeSwitch: false,
playModeText: {
order: translate('player.playModeText.order'),
orderLoop: translate('player.playModeText.orderLoop'),
singleLoop: translate('player.playModeText.singleLoop'),
shufflePlay: translate('player.playModeText.shufflePlay')
},
showMediaSession: true,
panelTitle: translate('player.panelTitle'),
defaultPosition: {
top: 300,
left: 120
},
locale: {
playModeText: {

This comment has been minimized.

Copy link
@lijinke666

lijinke666 Apr 14, 2020

panelTitle => locale: { playListsText:  translate('player.panelTitle') }

This comment has been minimized.

Copy link
@deluan

deluan Apr 14, 2020

Author Member

Thanks for the review, I fixed that in my local "localization" branch I'm working on

order: translate('player.playModeText.order'),
orderLoop: translate('player.playModeText.orderLoop'),
singleLoop: translate('player.playModeText.singleLoop'),
shufflePlay: translate('player.playModeText.shufflePlay')
}
}
}

Expand Down

0 comments on commit 4dff067

Please sign in to comment.