feat: fix timestamps
This commit is contained in:
@@ -16,6 +16,7 @@ import { gutters, Palette } from '../../styles'
|
||||
import { FONT_FAMILY } from '../../styles/Fonts'
|
||||
const RecordedPlayback = ({ route }) => {
|
||||
const { videoUri, project, syncOffsetMs = 0 } = route.params || {}
|
||||
|
||||
const songUrl = project?.songUrl || null
|
||||
const audioPlayer = useSharedAudioPlayer(songUrl ? { uri: songUrl } : undefined, {
|
||||
id: project?.id ? `recorded-${project.id}` : songUrl ? `recorded-${songUrl}` : undefined,
|
||||
@@ -127,7 +128,11 @@ const RecordedPlayback = ({ route }) => {
|
||||
|
||||
const resumeAfterSeek = useCallback(async () => {
|
||||
try {
|
||||
if (audioPlayer) await audioPlayer.play?.()
|
||||
if (audioPlayer?.resume) {
|
||||
await audioPlayer.resume?.()
|
||||
} else if (audioPlayer) {
|
||||
await audioPlayer.play?.()
|
||||
}
|
||||
} catch (e) { }
|
||||
try {
|
||||
if (videoPlayer) videoPlayer.play()
|
||||
|
||||
Reference in New Issue
Block a user