matrix-org / matrix-org/matrix-js-sdk

Uploading audio files

Open
#1,839 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.2k
Forks
704
Avg merge
1d 20h
Merged PRs (30d)
40

Description

I'm working on a feature to upload audio files in React Native using matrix-js-sdk uploadContent method. How can I upload audio files correctly so I will get link with audio extension (for example mp3 or m4a)? I cannot figure it out. I tried converting audio files to base64 and then to buffer but I get links with no extension and I cannot play them. Any help will be appreciated.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the matrix-js-sdk uploadContent entry point and its React Native usage. Check how audio MIME types and media URLs are handled, then verify the result with an mp3 or m4a upload and confirm that the returned media can be played.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
api, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.