Support send/receive of videos

Naive approach, just downloading the whole chunk every time! Need to figure out caching and streaming for long-play stuff.
This commit is contained in:
N-Pex 2021-03-17 12:13:53 +01:00
parent 4c1de61ff4
commit cd29f8d681
7 changed files with 131 additions and 7 deletions

View file

@ -0,0 +1,39 @@
<template>
<div class="messageOut">
<div class="op-button" ref="opbutton">
<v-btn icon @click.stop="showContextMenu($refs.opbutton)"
><v-icon>more_vert</v-icon></v-btn
>
</div>
<div class="bubble image-bubble">
<v-responsive :aspect-ratio="16 / 9" class="ma-0 pa-0">
<video :src="src" controls style="width:100%;height:100%">Video file</video>
</v-responsive>
<QuickReactions :event="event" :reactions="reactions" />
</div>
<v-avatar class="avatar" size="32" color="#ededed" @click.stop="ownAvatarClicked">
<img v-if="userAvatar" :src="userAvatar" />
<span v-else class="white--text headline">{{ userAvatarLetter }}</span>
</v-avatar>
<div class="senderAndTime">
<!-- <div class="sender">{{ "You" }}</div> -->
<div class="time">
{{ formatTime(event.event.origin_server_ts) }}
</div>
<div class="status">{{ event.status }}</div>
</div>
</div>
</template>
<script>
import messageMixin from "./messageMixin";
import attachmentMixin from "./attachmentMixin";
export default {
mixins: [messageMixin, attachmentMixin],
};
</script>
<style lang="scss">
@import "@/assets/css/chat.scss";
</style>