Generate base64 waveform in audio message body

This commit is contained in:
N-Pex 2024-10-25 11:56:27 +02:00
parent 254eb72870
commit 1d33657569
3 changed files with 125 additions and 0 deletions

View file

@ -6,15 +6,22 @@
<div class="play-time">
{{ currentTime }} / {{ totalTime }}
</div>
<div style="position:relative;flex: 1 1 100%">
<v-slider @change="seeked" :disabled="!info.url" color="currentColor" track-color="#cccccc" class="play-progress" :value="info.playPercent" min="0"
max="100" />
<div style="position:absolute;left:18px;right:18px;top:0;bottom:0;height:100%">
<AudioWaveformView :event="event" style="width:100%;height:100%" />
</div>
</div>
</div>
</template>
<script>
import util from "../../plugins/utils";
import AudioWaveformView from "./AudioWaveformView.vue";
export default {
components: { AudioWaveformView },
props: {
event: {
type: Object,