Add initial player component
This commit is contained in:
parent
f6831b5d48
commit
cadb2f4591
2 changed files with 22 additions and 0 deletions
19
src/pflPlayer/index.tsx
Normal file
19
src/pflPlayer/index.tsx
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
import React, { useState } from "react";
|
||||||
|
|
||||||
|
export function PflPlayer() {
|
||||||
|
return (
|
||||||
|
<div id="pfl-player">
|
||||||
|
<div
|
||||||
|
className={"m-0 graph" + (playerState.loading !== -1 ? " loading" : "")}
|
||||||
|
id={"waveform-pfl"}
|
||||||
|
style={
|
||||||
|
playerState.loading !== -1
|
||||||
|
? {
|
||||||
|
width: playerState.loading * 100 + "%",
|
||||||
|
}
|
||||||
|
: {}
|
||||||
|
}
|
||||||
|
></div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
|
@ -8,12 +8,15 @@ import { LibraryColumn } from "./libraries";
|
||||||
|
|
||||||
import * as OptionsMenuState from "../optionsMenu/state";
|
import * as OptionsMenuState from "../optionsMenu/state";
|
||||||
import * as MixerState from "../mixer/state";
|
import * as MixerState from "../mixer/state";
|
||||||
|
import { PflPlayer } from "../pflPlayer";
|
||||||
|
|
||||||
export function Sidebar() {
|
export function Sidebar() {
|
||||||
return (
|
return (
|
||||||
<div id="sidebar">
|
<div id="sidebar">
|
||||||
<LibraryColumn />
|
<LibraryColumn />
|
||||||
<div className="border-top"></div>
|
<div className="border-top"></div>
|
||||||
|
<PflPlayer />
|
||||||
|
<div className="border-top"></div>
|
||||||
<MicControl />
|
<MicControl />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue