Skip to content
This repository has been archived by the owner on May 24, 2021. It is now read-only.

Commit

Permalink
fix(hls): Fixes hls integration
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Jun 9, 2018
1 parent c7a71ce commit 6ae1bcb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"dist/"
],
"dependencies": {
"@podlove/html5-audio-driver": "1.2.1",
"@podlove/html5-audio-driver": "1.2.2",
"babel-polyfill": "6.26.0",
"binary-search": "1.3.3",
"color": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/effects/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default mediaPlayer => handleActions({
const player = mediaPlayer(audioFiles)

playerActions = player.actions
player.events.onError(console.log)

// register events
player.events.onPlaytimeUpdate(compose(dispatch, actions.setPlaytime, secondsToMilliseconds))
player.events.onDurationChange(compose(dispatch, actions.setDuration, secondsToMilliseconds))
Expand Down
2 changes: 1 addition & 1 deletion src/effects/storage/episode.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default storageFactory => handleActions({
const playtime = get(state, 'playtime', 0)

if (playtime === 0 && storedPlaytime) {
dispatch(actions.setPlaytime(storedPlaytime))
dispatch(actions.updatePlaytime(storedPlaytime))
dispatch(actions.idle())
}

Expand Down
2 changes: 1 addition & 1 deletion src/effects/storage/episode.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test(`storageEffects: it sets the playtime on INIT if stored`, t => {

t.truthy(storage.called)
t.deepEqual(store.dispatch.getCall(0).args[0], {
type: 'SET_PLAYTIME',
type: 'UPDATE_PLAYTIME',
payload: 42
})
t.deepEqual(store.dispatch.getCall(1).args[0], {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@
pretty-ms "^0.2.1"
text-table "^0.2.0"

"@podlove/[email protected].1":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@podlove/html5-audio-driver/-/html5-audio-driver-1.2.1.tgz#c66b8bfe98cf75ad538b4c496e9f05a440657422"
"@podlove/[email protected].2":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@podlove/html5-audio-driver/-/html5-audio-driver-1.2.2.tgz#9509d356ac35927537d78133291f843b1c78965f"
dependencies:
hls.js "0.9.1"
ramda "0.24.1"
Expand Down

0 comments on commit 6ae1bcb

Please sign in to comment.