@therealtinhtute/baroiplayer 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/src/components/media-player-controls.js +1 -1
- package/dist/src/components/media-player-error.js +2 -2
- package/dist/src/components/media-player-error.tsx +2 -2
- package/dist/src/components/media-player-fullscreen.js +2 -2
- package/dist/src/components/media-player-fullscreen.tsx +2 -2
- package/dist/src/components/media-player-play.js +2 -2
- package/dist/src/components/media-player-play.tsx +2 -2
- package/dist/src/components/media-player-root.js +1 -1
- package/dist/src/components/media-player-seek.js +1 -1
- package/dist/src/components/media-player-seek.tsx +1 -1
- package/dist/src/components/media-player-tooltip.js +1 -1
- package/dist/src/components/media-player-tooltip.tsx +1 -1
- package/dist/src/components/media-player-volume.js +2 -2
- package/dist/src/components/media-player-volume.tsx +3 -3
- package/dist/src/components/react-player-wrapper.js +5 -5
- package/dist/src/components/react-player-wrapper.tsx +5 -5
- package/dist/src/hooks/use-touch-gestures.ts +1 -1
- package/package.json +1 -1
- package/src/components/media-player-controls.js +1 -1
- package/src/components/media-player-error.js +2 -2
- package/src/components/media-player-error.tsx +2 -2
- package/src/components/media-player-fullscreen.js +2 -2
- package/src/components/media-player-fullscreen.tsx +2 -2
- package/src/components/media-player-play.js +2 -2
- package/src/components/media-player-play.tsx +2 -2
- package/src/components/media-player-root.js +1 -1
- package/src/components/media-player-seek.js +1 -1
- package/src/components/media-player-seek.tsx +1 -1
- package/src/components/media-player-tooltip.js +1 -1
- package/src/components/media-player-tooltip.tsx +1 -1
- package/src/components/media-player-volume.js +2 -2
- package/src/components/media-player-volume.tsx +3 -3
- package/src/components/react-player-wrapper.js +5 -5
- package/src/components/react-player-wrapper.tsx +5 -5
- package/src/hooks/use-touch-gestures.ts +1 -1
package/dist/index.d.ts
CHANGED
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { useMediaSelector } from "../context/media-context";
|
|
5
|
-
import { useDeviceInfo, useContainerQuery } from "
|
|
5
|
+
import { useDeviceInfo, useContainerQuery } from "../hooks/use-mobile";
|
|
6
6
|
import { cn } from "../lib/utils";
|
|
7
7
|
export function MediaPlayerControls({ children, className, asChild = false, variant, adaptiveLayout = true, ...props }) {
|
|
8
8
|
const isFullscreen = useMediaSelector((state) => state.isFullscreen);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { AlertTriangleIcon, RefreshCcwIcon, RotateCcwIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button";
|
|
4
|
+
import { AlertTriangleIcon, RefreshCcwIcon, RotateCcwIcon } from "../components/ui/icons";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { useMediaContext, useMediaSelector } from "../context/media-context";
|
|
7
7
|
import { cn } from "../lib/utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { AlertTriangleIcon, RefreshCcwIcon, RotateCcwIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button"
|
|
4
|
+
import { AlertTriangleIcon, RefreshCcwIcon, RotateCcwIcon } from "../components/ui/icons"
|
|
5
5
|
import React from "react"
|
|
6
6
|
import { useMediaContext, useMediaSelector } from "../context/media-context"
|
|
7
7
|
import { cn } from "../lib/utils"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Maximize2Icon, Minimize2Icon } from "
|
|
3
|
+
import { Button } from "../components/ui/button";
|
|
4
|
+
import { Maximize2Icon, Minimize2Icon } from "../components/ui/icons";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
7
7
|
import { MediaPlayerTooltip } from "./media-player-tooltip";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Maximize2Icon, Minimize2Icon } from "
|
|
3
|
+
import { Button } from "../components/ui/button"
|
|
4
|
+
import { Maximize2Icon, Minimize2Icon } from "../components/ui/icons"
|
|
5
5
|
import React from "react"
|
|
6
6
|
import {
|
|
7
7
|
MediaActionTypes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { PauseIcon, PlayIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button";
|
|
4
|
+
import { PauseIcon, PlayIcon } from "../components/ui/icons";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
7
7
|
import { MediaPlayerTooltip } from "./media-player-tooltip";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { PauseIcon, PlayIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button"
|
|
4
|
+
import { PauseIcon, PlayIcon } from "../components/ui/icons"
|
|
5
5
|
import React from "react"
|
|
6
6
|
import {
|
|
7
7
|
MediaActionTypes,
|
|
@@ -4,7 +4,7 @@ import React from "react";
|
|
|
4
4
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
5
5
|
import { MediaProvider } from "../context/media-provider";
|
|
6
6
|
import { useMediaGestures } from "../hooks/use-touch-gestures";
|
|
7
|
-
import { useMobileOptimizations, useDeviceInfo } from "
|
|
7
|
+
import { useMobileOptimizations, useDeviceInfo } from "../hooks/use-mobile";
|
|
8
8
|
import { cn } from "../lib/utils";
|
|
9
9
|
// Utility function to compose refs
|
|
10
10
|
function composeRefs(...refs) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Slider } from "
|
|
3
|
+
import { Slider } from "../components/ui/slider";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
6
6
|
import { formatTime } from "../lib/format-time";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
3
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../components/ui/tooltip";
|
|
4
4
|
import { useMediaContext } from "../context/media-context";
|
|
5
5
|
export function MediaPlayerTooltip({ children, tooltip, shortcut, delayDuration, sideOffset }) {
|
|
6
6
|
const context = useMediaContext();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
3
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../components/ui/tooltip"
|
|
4
4
|
import React from "react"
|
|
5
5
|
import { useMediaContext } from "../context/media-context"
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Slider } from "
|
|
3
|
+
import { Button } from "../components/ui/button";
|
|
4
|
+
import { Slider } from "../components/ui/slider";
|
|
5
5
|
import { Volume1Icon, Volume2Icon, VolumeXIcon } from "lucide-react";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Slider } from "
|
|
5
|
-
import { Volume1Icon, Volume2Icon, VolumeXIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button"
|
|
4
|
+
import { Slider } from "../components/ui/slider"
|
|
5
|
+
import { Volume1Icon, Volume2Icon, VolumeXIcon } from "../components/ui/icons"
|
|
6
6
|
import React from "react"
|
|
7
7
|
import {
|
|
8
8
|
MediaActionTypes,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import "../styles/pixel-art.css";
|
|
4
|
-
import { Button } from "
|
|
5
|
-
import { DownloadIcon, ExitFullscreenIcon, Forward10Icon, FullscreenIcon, LoadingIcon, MuteIcon, PauseIcon, PictureInPictureIcon, PlayIcon, QualityIcon, Rewind10Icon, ShareIcon, SpeedIcon, SubtitlesIcon, VolumeIcon } from "
|
|
6
|
-
import { Slider } from "
|
|
7
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "
|
|
8
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "
|
|
4
|
+
import { Button } from "../components/ui/button";
|
|
5
|
+
import { DownloadIcon, ExitFullscreenIcon, Forward10Icon, FullscreenIcon, LoadingIcon, MuteIcon, PauseIcon, PictureInPictureIcon, PlayIcon, QualityIcon, Rewind10Icon, ShareIcon, SpeedIcon, SubtitlesIcon, VolumeIcon } from "../components/ui/icons";
|
|
6
|
+
import { Slider } from "../components/ui/slider";
|
|
7
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../components/ui/dropdown-menu";
|
|
8
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../components/ui/tooltip";
|
|
9
9
|
import { useState, useRef, useEffect, Suspense, lazy } from "react";
|
|
10
10
|
// Dynamic import for lazy loading
|
|
11
11
|
const ReactPlayer = lazy(() => import("react-player"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import "../styles/pixel-art.css"
|
|
4
|
-
import { Button } from "
|
|
4
|
+
import { Button } from "../components/ui/button"
|
|
5
5
|
import {
|
|
6
6
|
DownloadIcon,
|
|
7
7
|
ExitFullscreenIcon,
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
SpeedIcon,
|
|
22
22
|
SubtitlesIcon,
|
|
23
23
|
VolumeIcon
|
|
24
|
-
} from "
|
|
25
|
-
import { Slider } from "
|
|
24
|
+
} from "../components/ui/icons"
|
|
25
|
+
import { Slider } from "../components/ui/slider"
|
|
26
26
|
import {
|
|
27
27
|
DropdownMenu,
|
|
28
28
|
DropdownMenuContent,
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
DropdownMenuLabel,
|
|
31
31
|
DropdownMenuSeparator,
|
|
32
32
|
DropdownMenuTrigger
|
|
33
|
-
} from "
|
|
34
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "
|
|
33
|
+
} from "../components/ui/dropdown-menu"
|
|
34
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../components/ui/tooltip"
|
|
35
35
|
import React, { useState, useRef, useEffect, useCallback, Suspense, lazy } from "react"
|
|
36
36
|
// Dynamic import for lazy loading
|
|
37
37
|
const ReactPlayer = lazy(() => import("react-player"))
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { useMediaSelector } from "../context/media-context";
|
|
5
|
-
import { useDeviceInfo, useContainerQuery } from "
|
|
5
|
+
import { useDeviceInfo, useContainerQuery } from "../hooks/use-mobile";
|
|
6
6
|
import { cn } from "../lib/utils";
|
|
7
7
|
export function MediaPlayerControls({ children, className, asChild = false, variant, adaptiveLayout = true, ...props }) {
|
|
8
8
|
const isFullscreen = useMediaSelector((state) => state.isFullscreen);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { AlertTriangleIcon, RefreshCcwIcon, RotateCcwIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button";
|
|
4
|
+
import { AlertTriangleIcon, RefreshCcwIcon, RotateCcwIcon } from "../components/ui/icons";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { useMediaContext, useMediaSelector } from "../context/media-context";
|
|
7
7
|
import { cn } from "../lib/utils";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { AlertTriangleIcon, RefreshCcwIcon, RotateCcwIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button"
|
|
4
|
+
import { AlertTriangleIcon, RefreshCcwIcon, RotateCcwIcon } from "../components/ui/icons"
|
|
5
5
|
import React from "react"
|
|
6
6
|
import { useMediaContext, useMediaSelector } from "../context/media-context"
|
|
7
7
|
import { cn } from "../lib/utils"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Maximize2Icon, Minimize2Icon } from "
|
|
3
|
+
import { Button } from "../components/ui/button";
|
|
4
|
+
import { Maximize2Icon, Minimize2Icon } from "../components/ui/icons";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
7
7
|
import { MediaPlayerTooltip } from "./media-player-tooltip";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Maximize2Icon, Minimize2Icon } from "
|
|
3
|
+
import { Button } from "../components/ui/button"
|
|
4
|
+
import { Maximize2Icon, Minimize2Icon } from "../components/ui/icons"
|
|
5
5
|
import React from "react"
|
|
6
6
|
import {
|
|
7
7
|
MediaActionTypes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { PauseIcon, PlayIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button";
|
|
4
|
+
import { PauseIcon, PlayIcon } from "../components/ui/icons";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
7
7
|
import { MediaPlayerTooltip } from "./media-player-tooltip";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { PauseIcon, PlayIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button"
|
|
4
|
+
import { PauseIcon, PlayIcon } from "../components/ui/icons"
|
|
5
5
|
import React from "react"
|
|
6
6
|
import {
|
|
7
7
|
MediaActionTypes,
|
|
@@ -4,7 +4,7 @@ import React from "react";
|
|
|
4
4
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
5
5
|
import { MediaProvider } from "../context/media-provider";
|
|
6
6
|
import { useMediaGestures } from "../hooks/use-touch-gestures";
|
|
7
|
-
import { useMobileOptimizations, useDeviceInfo } from "
|
|
7
|
+
import { useMobileOptimizations, useDeviceInfo } from "../hooks/use-mobile";
|
|
8
8
|
import { cn } from "../lib/utils";
|
|
9
9
|
// Utility function to compose refs
|
|
10
10
|
function composeRefs(...refs) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Slider } from "
|
|
3
|
+
import { Slider } from "../components/ui/slider";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
6
6
|
import { formatTime } from "../lib/format-time";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
3
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../components/ui/tooltip";
|
|
4
4
|
import { useMediaContext } from "../context/media-context";
|
|
5
5
|
export function MediaPlayerTooltip({ children, tooltip, shortcut, delayDuration, sideOffset }) {
|
|
6
6
|
const context = useMediaContext();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "
|
|
3
|
+
import { Tooltip, TooltipContent, TooltipTrigger } from "../components/ui/tooltip"
|
|
4
4
|
import React from "react"
|
|
5
5
|
import { useMediaContext } from "../context/media-context"
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Slider } from "
|
|
3
|
+
import { Button } from "../components/ui/button";
|
|
4
|
+
import { Slider } from "../components/ui/slider";
|
|
5
5
|
import { Volume1Icon, Volume2Icon, VolumeXIcon } from "lucide-react";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import { MediaActionTypes, useMediaContext, useMediaDispatch, useMediaSelector } from "../context/media-context";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
|
-
import { Button } from "
|
|
4
|
-
import { Slider } from "
|
|
5
|
-
import { Volume1Icon, Volume2Icon, VolumeXIcon } from "
|
|
3
|
+
import { Button } from "../components/ui/button"
|
|
4
|
+
import { Slider } from "../components/ui/slider"
|
|
5
|
+
import { Volume1Icon, Volume2Icon, VolumeXIcon } from "../components/ui/icons"
|
|
6
6
|
import React from "react"
|
|
7
7
|
import {
|
|
8
8
|
MediaActionTypes,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import "../styles/pixel-art.css";
|
|
4
|
-
import { Button } from "
|
|
5
|
-
import { DownloadIcon, ExitFullscreenIcon, Forward10Icon, FullscreenIcon, LoadingIcon, MuteIcon, PauseIcon, PictureInPictureIcon, PlayIcon, QualityIcon, Rewind10Icon, ShareIcon, SpeedIcon, SubtitlesIcon, VolumeIcon } from "
|
|
6
|
-
import { Slider } from "
|
|
7
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "
|
|
8
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "
|
|
4
|
+
import { Button } from "../components/ui/button";
|
|
5
|
+
import { DownloadIcon, ExitFullscreenIcon, Forward10Icon, FullscreenIcon, LoadingIcon, MuteIcon, PauseIcon, PictureInPictureIcon, PlayIcon, QualityIcon, Rewind10Icon, ShareIcon, SpeedIcon, SubtitlesIcon, VolumeIcon } from "../components/ui/icons";
|
|
6
|
+
import { Slider } from "../components/ui/slider";
|
|
7
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../components/ui/dropdown-menu";
|
|
8
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../components/ui/tooltip";
|
|
9
9
|
import { useState, useRef, useEffect, Suspense, lazy } from "react";
|
|
10
10
|
// Dynamic import for lazy loading
|
|
11
11
|
const ReactPlayer = lazy(() => import("react-player"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client"
|
|
2
2
|
|
|
3
3
|
import "../styles/pixel-art.css"
|
|
4
|
-
import { Button } from "
|
|
4
|
+
import { Button } from "../components/ui/button"
|
|
5
5
|
import {
|
|
6
6
|
DownloadIcon,
|
|
7
7
|
ExitFullscreenIcon,
|
|
@@ -21,8 +21,8 @@ import {
|
|
|
21
21
|
SpeedIcon,
|
|
22
22
|
SubtitlesIcon,
|
|
23
23
|
VolumeIcon
|
|
24
|
-
} from "
|
|
25
|
-
import { Slider } from "
|
|
24
|
+
} from "../components/ui/icons"
|
|
25
|
+
import { Slider } from "../components/ui/slider"
|
|
26
26
|
import {
|
|
27
27
|
DropdownMenu,
|
|
28
28
|
DropdownMenuContent,
|
|
@@ -30,8 +30,8 @@ import {
|
|
|
30
30
|
DropdownMenuLabel,
|
|
31
31
|
DropdownMenuSeparator,
|
|
32
32
|
DropdownMenuTrigger
|
|
33
|
-
} from "
|
|
34
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "
|
|
33
|
+
} from "../components/ui/dropdown-menu"
|
|
34
|
+
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../components/ui/tooltip"
|
|
35
35
|
import React, { useState, useRef, useEffect, useCallback, Suspense, lazy } from "react"
|
|
36
36
|
// Dynamic import for lazy loading
|
|
37
37
|
const ReactPlayer = lazy(() => import("react-player"))
|