element-hq / element-hq/element-web

A specific audio file cannot be played.

Open
#32,034 2 comments 2 reactions 0 assignees View on GitHub
A-Electron A-Media O-Uncommon S-Minor T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

Download the following sample file and upload it to a room (unencrypted).
[{FBE8A786-7F04-962F-6202-E99364B00315}.zip](https://github.com/user-attachments/files/20822164/FBE8A786-7F04-962F-6202-E99364B00315.zip)
Password: `{DAA8217B-D191-3CE4-A23D-1DD64B00D2F6}`
**Please download this file as soon as possible.**

### Outcome

#### What did you expect?
n/a

#### What happened instead?
The sample file cannot be played in the app after uploading, but it can be downloaded normally, and after downloading to the local computer, it can still be played using a third-party player.
Error message in the console:
```
Error processing audio file: TypeError: Cannot perform Construct on a detached ArrayBuffer
at new Uint8Array ()
at compat.ts:35:28
at new Promise ()
at c (compat.ts:32:12)
at r.prepare (Playback.ts:174:39)
```

Strange things:
1. This file cannot be played only on desktop clients, but it can be played normally on the following clients:
- Element Web
- Elemnet Android
- Element iOS
- Element X Android
- Element X iOS
- Fluffy Chat Web
2. The audio file is a recording, generated by an Android app. However, not all M4A audio files generated by the app have this problem, and some files can be played normally after being uploaded.

### Operating system

x64 Windows 11 (10.0.26100)

### Application version

Element Desktop 1.11.104

### How did you install the app?

_No response_

### Homeserver

Synapse 1.132.0

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.