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

Bug: listening first verse does not continue to the next. #771

Merged
merged 6 commits into from
May 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions src/redux/modules/audioplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import {
TOGGLE_SCROLL,
UPDATE,
// LOAD,
LOAD_SUCCESS,
LOAD_SUCCESS
// LOAD_FAIL
} from 'redux/constants/audioplayer.js';
} from 'redux/constants/audioplayer.js';

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nor these two.

import {
LOAD as VERSES_LOAD,
Expand All @@ -33,6 +33,7 @@ const initialState = {
currentVerse: null,
currentWord: null,
currentTime: 0,
duration: 1,
isPlaying: false,
repeat: {
from: undefined,
Expand Down Expand Up @@ -212,7 +213,9 @@ export default function reducer(state = initialState, action = {}) {

if (!state.segments[chapterId][nextId].words[position]) return state;

const currentTime = state.segments[chapterId][nextId].words[position].startTime;
const currentTime =
state.segments[chapterId][nextId].words[position].startTime;

const endTime = state.segments[chapterId][nextId].words[position].endTime;
currentFile.currentTime = currentTime;

Expand Down