Skip to content

Commit

Permalink
video: Remove temporary logic to force missing chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaellehmkuhl committed Aug 15, 2024
1 parent 2a27044 commit 028c67b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/stores/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,6 @@ export const useVideoStore = defineStore('video', () => {
const chunkName = `${recordingHash}_${chunksCount}`

try {
// Intentional logic to lose every 5th chunk
if (chunksCount > 5 && chunksCount < 12) {
console.error(`Intentional chunk loss -> ${chunksCount}.`)
throw new Error(`Intentional chunk loss -> ${chunksCount}.`)
}
await tempVideoChunksDB.setItem(chunkName, e.data)
sequentialLostChunks = 0
} catch {
Expand Down

0 comments on commit 028c67b

Please sign in to comment.