diff --git a/webapp/src/ts/services/enketo.service.ts b/webapp/src/ts/services/enketo.service.ts index 4026d025b96..62868cded91 100644 --- a/webapp/src/ts/services/enketo.service.ts +++ b/webapp/src/ts/services/enketo.service.ts @@ -241,7 +241,6 @@ export class EnketoService { window.history.pushState({ enketo_page_number: currentIndex }, ''); } this.setupNavButtons($wrapper, currentIndex); - this.pauseMultimedia($wrapper); } this.forceRecalculate(form); }); @@ -264,18 +263,10 @@ export class EnketoService { this.setupNavButtons($wrapper, pageIndex); this.forceRecalculate(form); - this.pauseMultimedia($wrapper); return false; }); } - // This code can be removed once this issue is fixed: https://github.com/enketo/enketo-core/issues/816 - private pauseMultimedia($wrapper) { - $wrapper - .find('audio, video') - .each((idx, element) => element.pause()); - } - private addPopStateHandler(form, $wrapper) { $(window).on('popstate.enketo-pagemode', (event: any) => { if (event.originalEvent &&