1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

23 Commits

Author SHA1 Message Date
e288f61f0a Prevent Element appearing in system media controls (#10995)
* Use WebAudio API to play notification sound

So that it won't appear in system media control.

* Run prettier

* Chosse from mp3 and ogg

* Run prettier

* Use WebAudioAPI everywhere

There's still one remoteAudio. I'm not sure what it does. It seems it's
only used in tests...

* Run prettier

* Eliminate a stupid error

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update setupManualMocks.ts

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* delint

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* mocks

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* mocks

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Iterate

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Simplify

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* covg

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2024-07-04 18:08:06 +00:00
431ae32304 Reuse media content/info types from the js-sdk (#12308) 2024-03-11 09:30:00 +00:00
ef385e6028 Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
a1328d8ef7 Switch to importing more things from the main js-sdk export (#11376) 2023-08-09 15:10:54 +00:00
f04a0e2860 Populate info.duration for audio & video file uploads (#11225)
* Improve m.file m.image m.audio m.video types

* Populate `info.duration` for audio & video file uploads

* Fix tests

* Iterate types

* Improve coverage

* Fix test

* Add small delay to stabilise cypress test

* Fix test idempotency

* Improve coverage

* Slow down

* iterate
2023-07-17 12:07:58 +00:00
0a6fe83a8c Add audible notifcation on broadcast error (#10654)
* Add audible notifcation on broadcast error

* Add error audio file

* Add error ogg

* Catch play broadcast error

* Await play error sound

* Add promise error handling

* Add comment about audio elements
2023-05-11 12:15:34 +00:00
5398db21ad Add ESLint Jest (#10261) 2023-03-01 16:23:35 +01:00
e8b92b308b Conform more code to strict null checking (#10169)
* Conform more code to strict null checking

* delint

* Iterate

* delint

* Fix bad test
2023-02-16 09:38:44 +00:00
fe0d3a7668 Error handling if broadcast events could not be sent (#9885) 2023-01-17 07:57:59 +00:00
4f0a5d1eb4 Fix broadcast last sequence number (#9858) 2023-01-09 17:18:46 +00:00
526645c791 Apply prettier formatting 2022-12-12 12:24:14 +01:00
e38c59c535 Pause voice broadcast on calls (#9623) 2022-11-28 11:43:59 +00:00
f6347d24ef Show time left for voice broadcast recordings (#9564) 2022-11-10 10:53:49 +00:00
04bc8fb71c Optimise Jest run in CI (#9542) 2022-11-04 10:48:08 +00:00
c497046e39 Implement voice broadcast last_chunk_sequence (#9513) 2022-10-27 16:24:03 +02:00
625971acb5 Replace voice broadcast running with resumed (#9502) 2022-10-26 12:54:44 +00:00
9d405a905d Set voice broadcast defaults (#9471) 2022-10-20 15:41:10 +02:00
b7996a2e49 Implement pause voice broadcast recording (#9469) 2022-10-20 12:44:41 +00:00
07a1e9a009 Stop voice broadcast recording on redaction (#9455) 2022-10-19 16:02:48 +00:00
0630a9c448 End voice broadcast recording on any call (#9425) 2022-10-16 11:35:25 +00:00
19bc3f1d9a Include device_id in voice broadcast info events (#9394) 2022-10-12 13:24:30 +02:00
bac6e12946 Implement Voice Broadcast recording (#9307)
* Implement VoiceBroadcastRecording

* Implement PR feedback

* Add voice broadcast recording stores

* Refactor startNewVoiceBroadcastRecording

* Refactor VoiceBroadcastRecordingsStore to VoiceBroadcastRecording

* Rename VoiceBroadcastRecording to VoiceBroadcastRecorder

* Return remaining chunk on stop

* Extract createVoiceMessageContent

* Implement recording

* Replace dev value with config

* Fix clientInformation-test

* Refactor VoiceBroadcastRecording

* Fix VoiceBroadcastRecording types

* Re-order getter

* Mark voice_broadcast config as optional

* Merge voice-broadcast modules

* Remove underscore props

* Add Optional types

* Add return types everywhere

* Remove test casts

* Add magic comments

* Trigger CI

* Switch VoiceBroadcastRecorder to TypedEventEmitter

* Trigger CI

* Add voice broadcast chunk event content

Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-10-11 22:31:28 +00:00
d775e403c4 Add voice broadcast recording stores (#9319)
* Add voice broadcast recording stores

* Refactor startNewVoiceBroadcastRecording
2022-09-28 10:22:50 +02:00