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

Commit

Permalink
fix(safari): uses fallback to native audio element
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-heimbuch committed Nov 8, 2018
1 parent b5f52f7 commit ba5d2e9
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"dist/"
],
"dependencies": {
"@podlove/html5-audio-driver": "1.3.2",
"@podlove/html5-audio-driver": "1.3.3",
"babel-polyfill": "6.26.0",
"color": "3.1.0",
"copy-to-clipboard": "3.0.8",
Expand Down
8 changes: 6 additions & 2 deletions src/components/tabs/audio/Audio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<div class="audio-tab" id="tab-audio">
<audio-volume-component class="seperator" v-if="components.audio.volumeControl"></audio-volume-component>
<audio-rate-component class="seperator" v-if="components.audio.rateControl"></audio-rate-component>
<audio-channels-component class="seperator" v-if="components.audio.channelControl"></audio-channels-component>
<audio-channels-component class="seperator" v-if="components.audio.channelControl && channelsAvailable"></audio-channels-component>
<footer-component></footer-component>
</div>
</template>

<script>
import { mapState } from 'redux-vuex'
import { selectBufferAvailable } from 'store/selectors'
import AudioRateComponent from './AudioRate'
import AudioVolumeComponent from './AudioVolume'
Expand All @@ -17,7 +18,10 @@
import FooterComponent from 'shared/Footer'
export default {
data: mapState('components'),
data: mapState({
components: 'components',
channelsAvailable: selectBufferAvailable
}),
components: {
AudioRateComponent,
AudioVolumeComponent,
Expand Down
4 changes: 3 additions & 1 deletion src/store/filter/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import { handleActions } from 'redux-actions'
import { LOADING, UPDATE_FILTER } from '../types'

export const INITIAL_STATE = {
channels: 2
channels: 2,
buffer: false
}

const stateHandler = (state, { payload }) => ({
...state,
buffer: !!payload.buffer,
channels: get(payload, 'channels', 2)
})

Expand Down
1 change: 1 addition & 0 deletions src/store/filter/selectors.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { get } from 'lodash/fp'

export const selectActiveChannels = get('channels')
export const selectBuffer = get('buffer')
1 change: 1 addition & 0 deletions src/store/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ export const selectAudioFiles = compose(files.selectAudio, filesSlice)
// Filters
const filterSlice = get('filter')
export const selectActiveChannels = compose(filter.selectActiveChannels, filterSlice)
export const selectBufferAvailable = compose(filter.selectBuffer, filterSlice)
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -897,9 +897,9 @@
version "1.1.0"
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.0.tgz#50c1e2260ac0ed9439a181de3725a0168d59c48a"

"@podlove/html5-audio-driver@1.3.2":
version "1.3.2"
resolved "https://registry.yarnpkg.com/@podlove/html5-audio-driver/-/html5-audio-driver-1.3.2.tgz#4328107eb82800fdc83a7405f1010c8123555577"
"@podlove/html5-audio-driver@1.3.3":
version "1.3.3"
resolved "https://registry.yarnpkg.com/@podlove/html5-audio-driver/-/html5-audio-driver-1.3.3.tgz#9cc6d68e784818350207e96a13abeca28ff04413"
dependencies:
hls.js "0.9.1"
ramda "0.24.1"
Expand Down

0 comments on commit ba5d2e9

Please sign in to comment.