UNPKG

@cassette/core

Version:

A simple, clean, and responsive visual wrapper for the HTML audio tag, built with React.

31 lines (28 loc) 658 B
import createSingleGlobalContext from './utils/createSingleGlobalContext'; // TODO: test to make sure context contents stay in sync with // enumerated list here export default createSingleGlobalContext({ displayName: 'PlayerContext', keysWillUpdate: [ 'playlist', 'activeTrackIndex', 'trackLoading', 'paused', 'currentTime', 'seekPreviewTime', 'seekInProgress', 'awaitingPlayResume', 'duration', 'bufferedRanges', 'playedRanges', 'seekableRanges', 'volume', 'muted', 'shuffle', 'stalled', 'playbackRate', 'setVolumeInProgress', 'repeatStrategy', 'mediaCannotPlay' ] });