Commit 853283b2 authored by Max Reeves's avatar Max Reeves
Browse files

added to viewer

parent 8162c3b2
......@@ -284,7 +284,7 @@ function DashboardElements({dashboardDispatch, selectedElementId, elements, high
if(element.type === 'static-text') { ele = <StaticText options={element.options}/> }
if(element.type === 'static-svg') { ele = <StaticSVG options={element.options}/> }
if(element.type === 'static-image') { ele = <StaticImage options={element.options}/> }
if(element.type === 'iframe-video') { ele = <IframeVideo options={element.options}/> }
if(element.type === 'iframe-video') { ele = <div><IframeVideo options={element.options}/><div class="move-button">Move</div></div> }
if(element.type === 'audio-stream') { ele = <AudioStream options={element.options}/> }
return <TransformableElement rect={element.rect} updateRect={updateRect}
......
......@@ -54,7 +54,6 @@ export function IframeVideo({options}, props) {
<div data-vjs-player>
<video ref={playerRef} id="hls_stream" width="140" height="264" id='livestream' className="video-js vjs-16-9 vjs-big-play-centered" playsInline />
</div>
<div class="move-button">Move</div>
</div>
)
};
\ No newline at end of file
......@@ -7,6 +7,8 @@ import { CheckCard } from './elements/card';
import { CheckImage } from './elements/image';
import { CheckSVG } from './elements/svg';
import { CheckLine } from './elements/line';
import { AudioStream } from './elements/audio';
import { IframeVideo } from './elements/video';
import { StaticText } from './statics/text';
import { StaticSVG } from './statics/svg';
......@@ -40,6 +42,8 @@ export function Viewer({slug}) {
if(element.type === 'static-text') { ele = <StaticText options={element.options}/> }
if(element.type === 'static-svg') { ele = <StaticSVG options={element.options}/> }
if(element.type === 'static-image') { ele = <StaticImage options={element.options}/> }
if(element.type === 'iframe-video') { ele = <IframeVideo options={element.options}/> }
if(element.type === 'audio-stream') { ele = <AudioStream options={element.options}/> }
return <div class="check" style={{left: left, top: top, width: width, height: height, transform: rotation}}>
{ele}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment