aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/videosourcesettings.tsx2
-rw-r--r--pages/present.tsx48
2 files changed, 1 insertions, 49 deletions
diff --git a/components/videosourcesettings.tsx b/components/videosourcesettings.tsx
index 9464cef..3cc4ce0 100644
--- a/components/videosourcesettings.tsx
+++ b/components/videosourcesettings.tsx
@@ -1,6 +1,6 @@
import { State } from '@hookstate/core';
import { useRef, useState } from 'react';
-import { globalState, rerenderComponent } from '../pages/editor';
+import { globalState } from '../pages/editor';
import { TimedVideoPlayer } from '../pages/present';
import { arrayBufferToBase64, LocalVideo } from '../project';
diff --git a/pages/present.tsx b/pages/present.tsx
index f1fbc58..09714a9 100644
--- a/pages/present.tsx
+++ b/pages/present.tsx
@@ -9,9 +9,6 @@ import PlayArrowRoundedIcon from '@material-ui/icons/PlayArrowRounded';
import SettingsRemoteRoundedIcon from '@material-ui/icons/SettingsRemoteRounded';
import SettingsRoundedIcon from '@material-ui/icons/SettingsRounded';
-import CodeRoundedIcon from '@material-ui/icons/CodeRounded';
-import MovieRoundedIcon from '@material-ui/icons/MovieRounded';
-
export class TimedVideoPlayer {
slide: number;
timeline: timeline;
@@ -275,51 +272,6 @@ export default function Present() {
document.getElementById('menu').classList.remove('active');
}}
/>
- <input
- type='file'
- id='vidUpload'
- accept='video/*'
- className='dispnone'
- onChange={event => {
- var file = event.target.files[0];
- if (!file) return;
- var reader = new FileReader();
- reader.addEventListener('load', ev => {
- player.loadVideo(ev.target.result as string);
- });
- reader.readAsDataURL(file);
- }}
- />
- <input
- type='file'
- id='jsonUpload'
- accept='application/json'
- className='dispnone'
- onChange={event => {
- var file = event.target.files[0];
- if (!file) return;
- var reader = new FileReader();
- reader.addEventListener('load', ev => {
- player.loadSlides(ev.target.result as string);
- rerender();
- });
- reader.readAsText(file);
- }}
- />
- <Button
- variant='contained'
- color='default'
- children='Load video'
- startIcon={<MovieRoundedIcon />}
- onClick={() => document.getElementById('vidUpload').click()}
- />
- <Button
- variant='contained'
- color='default'
- children='Load json'
- startIcon={<CodeRoundedIcon />}
- onClick={() => document.getElementById('jsonUpload').click()}
- />
{false && <Button
variant='contained'
color='default'