Direct file upload

This commit is contained in:
2022-01-04 01:42:51 +03:00
parent c60c9b6522
commit a9585f1e82
6 changed files with 130 additions and 15 deletions

View File

@@ -63,8 +63,10 @@ export default defineComponent({
clearInterval(this.positionInterval);
},
methods: {
onDownloaded() {
this.room.downloaded = true;
async onDownloaded() {
if (!this.room.downloaded) {
this.room = await getRoom(this.id);
}
this.$nextTick(() => {
const element = this.$refs.video as HTMLVideoElement;
this.positionInterval = setInterval(async () => {