@mebtte/react-media-session
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@mebtte/react-media-session", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "The react component that wraps MediaSession.", | ||
@@ -5,0 +5,0 @@ "author": "mebtte<mebtte@gmail.com>", |
@@ -42,3 +42,3 @@ # react-media-session | ||
src: 'cover_large.jpeg', | ||
size: '256x256,384x384,512x512', | ||
sizes: '256x256,384x384,512x512', | ||
type: 'image/jpeg', | ||
@@ -48,3 +48,3 @@ }, | ||
src: 'cover_small.jpeg', | ||
size: '96x96,128x128,192x192', | ||
sizes: '96x96,128x128,192x192', | ||
type: 'image/jpeg', | ||
@@ -64,14 +64,14 @@ }, | ||
| props | type | required | default | | ||
| --------------- | --------------------------------------------------- | -------- | ------- | | ||
| title | string | false | '' | | ||
| artist | string | false | '' | | ||
| album | string | false | '' | | ||
| artwork | array({ src: string, size: string, type?: string }) | false | [] | | ||
| onPlay | func | false | null | | ||
| onPause | func | false | null | | ||
| onSeekBackward | func | false | null | | ||
| onSeekForward | func | false | null | | ||
| onPreviousTrack | func | false | null | | ||
| onNextTrack | func | false | null | | ||
| props | type | required | default | | ||
| --------------- | ---------------------------------------------------- | -------- | ------- | | ||
| title | string | false | '' | | ||
| artist | string | false | '' | | ||
| album | string | false | '' | | ||
| artwork | array({ src: string, sizes: string, type?: string }) | false | [] | | ||
| onPlay | func | false | null | | ||
| onPause | func | false | null | | ||
| onSeekBackward | func | false | null | | ||
| onSeekForward | func | false | null | | ||
| onPreviousTrack | func | false | null | | ||
| onNextTrack | func | false | null | | ||
@@ -78,0 +78,0 @@ # Example |
24906
13