Simple rendering of voice messages in the timeline
Fixes https://github.com/vector-im/element-web/issues/17138
This commit is contained in:
parent
d7ed2d3486
commit
3f4ee9742a
7 changed files with 168 additions and 6 deletions
|
@ -49,7 +49,7 @@ export class Playback extends EventEmitter implements IDestroyable {
|
|||
constructor(private buf: ArrayBuffer, seedWaveform = DEFAULT_WAVEFORM) {
|
||||
super();
|
||||
this.context = new AudioContext();
|
||||
this.resampledWaveform = arrayFastResample(seedWaveform, PLAYBACK_WAVEFORM_SAMPLES);
|
||||
this.resampledWaveform = arrayFastResample(seedWaveform ?? DEFAULT_WAVEFORM, PLAYBACK_WAVEFORM_SAMPLES);
|
||||
this.waveformObservable.update(this.resampledWaveform);
|
||||
this.clock = new PlaybackClock(this.context);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue