woooot, got streaming via the jellyfin api working!
This commit is contained in:
parent
826a30f95f
commit
d96f89d4b3
21 changed files with 282 additions and 169 deletions
19
src/features/player/controls/settings.tsx
Normal file
19
src/features/player/controls/settings.tsx
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { Component } from "solid-js";
|
||||
import { useVideo } from "../context";
|
||||
import { FaSolidEllipsisVertical } from "solid-icons/fa";
|
||||
|
||||
export const Settings: Component<{}> = (props) => {
|
||||
const video = useVideo();
|
||||
|
||||
return (
|
||||
<button
|
||||
onclick={(e) =>
|
||||
video.state.setState((last) =>
|
||||
last === "playing" ? "paused" : "playing"
|
||||
)
|
||||
}
|
||||
>
|
||||
<FaSolidEllipsisVertical />
|
||||
</button>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue