mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 14:35:41 +00:00
694567843f
Replaces the text-pill schedule badge with a circular SVG progress ring
around the play/pause button. Accent→lavender gradient stroke, counter-
clockwise depletion synced to the armed deadline, subtle accent glow.
While a timer is armed, the Play/Pause icon inside the button is
swapped for a two-line stack: a small Moon (sleep timer) or Sunrise
(delayed start) glyph above the countdown (m:ss / h:mm:ss). The icon
is the mode marker so the ring can stay unified with the rest of the
app's accent palette.
Redesigns the schedule modal with a mood-tinted header (Moon for
"Pause after", Sunrise for "Start after"), soft radial accent glow in
the background, slide-up open animation. Circular glass close-button
scoped to this modal, with hover rotation + focus ring. Custom-minutes
field gains an inline "min" suffix. A live preview line at the bottom
shows when the action fires ("Pauses at 23:47" / "Starts at 23:47"),
updating as the user hovers a preset or types. Chips gain a small
hover lift plus accent-coloured shadow.
Also fixes a pre-existing duplicate-tooltip on the play/pause button:
title= attributes removed alongside the data-tooltip (title violates
the project's "never native tooltips" rule, so both showed at once).
Adds scheduledPauseStartMs / scheduledResumeStartMs to the player
store so the progress ring has a total-duration baseline, set and
cleared alongside the existing deadline fields.
New usePlaybackScheduleRemaining hook wraps the store subscription
and 500 ms tick into a single hook used by all three player views
(PlayerBar / FullscreenPlayer / MobilePlayerView).
i18n: delayPreviewPause / delayPreviewStart keys across all 8 locales.
Co-authored-by: Psychotoxical <dev@psysonic.app>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
482 lines
19 KiB
TypeScript
482 lines
19 KiB
TypeScript
import React, { memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
import { createPortal } from 'react-dom';
|
|
import {
|
|
Play, Pause, SkipBack, SkipForward, Volume2, VolumeX, Music,
|
|
Square, Repeat, Repeat1, Maximize2, SlidersVertical, X, Heart, Cast,
|
|
PictureInPicture2, ArrowLeftRight, Moon, Sunrise,
|
|
} from 'lucide-react';
|
|
import { invoke } from '@tauri-apps/api/core';
|
|
import { usePlayerStore } from '../store/playerStore';
|
|
import { useShallow } from 'zustand/react/shallow';
|
|
import { useAuthStore } from '../store/authStore';
|
|
import { useThemeStore } from '../store/themeStore';
|
|
import { buildCoverArtUrl, coverArtCacheKey, star, unstar, setRating } from '../api/subsonic';
|
|
import CachedImage from './CachedImage';
|
|
import WaveformSeek from './WaveformSeek';
|
|
import Equalizer from './Equalizer';
|
|
import StarRating from './StarRating';
|
|
import { useTranslation } from 'react-i18next';
|
|
import { useNavigate } from 'react-router-dom';
|
|
import { useLyricsStore } from '../store/lyricsStore';
|
|
import MarqueeText from './MarqueeText';
|
|
import LastfmIcon from './LastfmIcon';
|
|
import { useRadioMetadata } from '../hooks/useRadioMetadata';
|
|
import { usePlaybackDelayPress } from '../hooks/usePlaybackDelayPress';
|
|
import PlaybackDelayModal from './PlaybackDelayModal';
|
|
import PlaybackScheduleBadge from './PlaybackScheduleBadge';
|
|
import { usePlaybackScheduleRemaining } from '../utils/playbackScheduleFormat';
|
|
|
|
function formatTime(seconds: number): string {
|
|
if (!seconds || isNaN(seconds)) return '0:00';
|
|
const m = Math.floor(seconds / 60);
|
|
const s = Math.floor(seconds % 60);
|
|
return `${m}:${s.toString().padStart(2, '0')}`;
|
|
}
|
|
|
|
// Renders the playback clock without ever causing PlayerBar to re-render.
|
|
// Updates the DOM directly via an imperative store subscription.
|
|
const PlaybackTime = memo(function PlaybackTime({ className }: { className?: string }) {
|
|
const spanRef = useRef<HTMLSpanElement>(null);
|
|
useEffect(() => {
|
|
if (spanRef.current) {
|
|
spanRef.current.textContent = formatTime(usePlayerStore.getState().currentTime);
|
|
}
|
|
return usePlayerStore.subscribe(state => {
|
|
if (spanRef.current) spanRef.current.textContent = formatTime(state.currentTime);
|
|
});
|
|
}, []);
|
|
return <span className={className} ref={spanRef} />;
|
|
});
|
|
|
|
// Renders the remaining time (duration - currentTime) without causing PlayerBar to re-render.
|
|
const RemainingTime = memo(function RemainingTime({ duration, className }: { duration: number; className?: string }) {
|
|
const spanRef = useRef<HTMLSpanElement>(null);
|
|
useEffect(() => {
|
|
const updateRemaining = () => {
|
|
if (spanRef.current) {
|
|
const remaining = Math.max(0, duration - usePlayerStore.getState().currentTime);
|
|
spanRef.current.textContent = `-${formatTime(remaining)}`;
|
|
}
|
|
};
|
|
updateRemaining();
|
|
return usePlayerStore.subscribe(updateRemaining);
|
|
}, [duration]);
|
|
return <span className={className} ref={spanRef} />;
|
|
});
|
|
|
|
export default function PlayerBar() {
|
|
const { t } = useTranslation();
|
|
const navigate = useNavigate();
|
|
const [eqOpen, setEqOpen] = useState(false);
|
|
const [showVolPct, setShowVolPct] = useState(false);
|
|
const [localShowRemaining, setLocalShowRemaining] = useState(() => useThemeStore.getState().showRemainingTime);
|
|
const premuteVolumeRef = useRef(1);
|
|
const showLyrics = useLyricsStore(s => s.showLyrics);
|
|
const activeTab = useLyricsStore(s => s.activeTab);
|
|
// currentTime is intentionally excluded — PlaybackTime handles it via direct DOM update.
|
|
const {
|
|
currentTrack, currentRadio, isPlaying, volume,
|
|
togglePlay, next, previous, setVolume,
|
|
stop, toggleRepeat, repeatMode, toggleFullscreen,
|
|
lastfmLoved, toggleLastfmLove,
|
|
isQueueVisible, toggleQueue,
|
|
starredOverrides, setStarredOverride,
|
|
userRatingOverrides, setUserRatingOverride,
|
|
} = usePlayerStore(useShallow(s => ({
|
|
currentTrack: s.currentTrack,
|
|
currentRadio: s.currentRadio,
|
|
isPlaying: s.isPlaying,
|
|
volume: s.volume,
|
|
togglePlay: s.togglePlay,
|
|
next: s.next,
|
|
previous: s.previous,
|
|
setVolume: s.setVolume,
|
|
stop: s.stop,
|
|
toggleRepeat: s.toggleRepeat,
|
|
repeatMode: s.repeatMode,
|
|
toggleFullscreen: s.toggleFullscreen,
|
|
lastfmLoved: s.lastfmLoved,
|
|
toggleLastfmLove: s.toggleLastfmLove,
|
|
isQueueVisible: s.isQueueVisible,
|
|
toggleQueue: s.toggleQueue,
|
|
starredOverrides: s.starredOverrides,
|
|
setStarredOverride: s.setStarredOverride,
|
|
userRatingOverrides: s.userRatingOverrides,
|
|
setUserRatingOverride: s.setUserRatingOverride,
|
|
})));
|
|
const { lastfmSessionKey } = useAuthStore();
|
|
const floatingPlayerBar = useThemeStore(s => s.floatingPlayerBar);
|
|
const [floatingStyle, setFloatingStyle] = useState<React.CSSProperties>({});
|
|
|
|
useEffect(() => {
|
|
if (!floatingPlayerBar) return;
|
|
|
|
const updatePosition = () => {
|
|
const sidebar = document.querySelector('.sidebar') as HTMLElement;
|
|
const queue = document.querySelector('.queue-panel') as HTMLElement;
|
|
|
|
const leftOffset = sidebar ? sidebar.getBoundingClientRect().right : 0;
|
|
const rightOffset = queue ? window.innerWidth - queue.getBoundingClientRect().left : 0;
|
|
|
|
setFloatingStyle({
|
|
left: leftOffset + 24,
|
|
right: rightOffset + 24,
|
|
width: 'auto',
|
|
});
|
|
};
|
|
|
|
updatePosition();
|
|
|
|
const observer = new ResizeObserver(updatePosition);
|
|
const sidebar = document.querySelector('.sidebar');
|
|
const queue = document.querySelector('.queue-panel');
|
|
if (sidebar) observer.observe(sidebar);
|
|
if (queue) observer.observe(queue);
|
|
window.addEventListener('resize', updatePosition);
|
|
|
|
return () => {
|
|
observer.disconnect();
|
|
window.removeEventListener('resize', updatePosition);
|
|
};
|
|
}, [floatingPlayerBar]);
|
|
|
|
const { delayModalOpen, setDelayModalOpen, playPauseBind } = usePlaybackDelayPress(togglePlay);
|
|
const transportAnchorRef = useRef<HTMLDivElement>(null);
|
|
const playSlotRef = useRef<HTMLSpanElement>(null);
|
|
const scheduleRemaining = usePlaybackScheduleRemaining();
|
|
|
|
const isRadio = !!currentRadio;
|
|
|
|
// Radio metadata (ICY or AzuraCast) — only active while a radio station is playing.
|
|
const radioMeta = useRadioMetadata(currentRadio ?? null);
|
|
|
|
|
|
const isStarred = currentTrack
|
|
? (currentTrack.id in starredOverrides ? starredOverrides[currentTrack.id] : !!currentTrack.starred)
|
|
: false;
|
|
|
|
const toggleStar = useCallback(async () => {
|
|
if (!currentTrack) return;
|
|
const next = !isStarred;
|
|
setStarredOverride(currentTrack.id, next);
|
|
try {
|
|
if (next) await star(currentTrack.id, 'song');
|
|
else await unstar(currentTrack.id, 'song');
|
|
} catch {
|
|
setStarredOverride(currentTrack.id, !next);
|
|
}
|
|
}, [currentTrack, isStarred, setStarredOverride]);
|
|
|
|
const duration = currentTrack?.duration ?? 0;
|
|
|
|
// Cover art: prefer radio station art, fall back to track art.
|
|
// Note: getCoverArt.view needs ra-{id}, not the raw coverArt filename Navidrome returns.
|
|
const radioCoverSrc = useMemo(
|
|
() => currentRadio?.coverArt ? buildCoverArtUrl(`ra-${currentRadio.id}`, 128) : '',
|
|
[currentRadio?.coverArt, currentRadio?.id]
|
|
);
|
|
const radioCoverKey = currentRadio?.coverArt ? coverArtCacheKey(`ra-${currentRadio.id}`, 128) : '';
|
|
const coverSrc = useMemo(() => currentTrack?.coverArt ? buildCoverArtUrl(currentTrack.coverArt, 128) : '', [currentTrack?.coverArt]);
|
|
const coverKey = currentTrack?.coverArt ? coverArtCacheKey(currentTrack.coverArt, 128) : '';
|
|
|
|
const handleVolume = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
|
|
setVolume(parseFloat(e.target.value));
|
|
}, [setVolume]);
|
|
|
|
const handleVolumeWheel = useCallback((e: React.WheelEvent<HTMLDivElement>) => {
|
|
e.preventDefault();
|
|
const delta = e.deltaY > 0 ? -0.05 : 0.05;
|
|
setVolume(Math.max(0, Math.min(1, volume + delta)));
|
|
}, [volume, setVolume]);
|
|
|
|
const volumeStyle = {
|
|
background: `linear-gradient(to right, var(--volume-accent, var(--accent)) ${volume * 100}%, var(--ctp-surface2) ${volume * 100}%)`,
|
|
};
|
|
|
|
const playerBarContent = (
|
|
<>
|
|
<footer
|
|
className={`player-bar ${floatingPlayerBar ? 'floating' : ''}`}
|
|
style={floatingPlayerBar ? floatingStyle : undefined}
|
|
role="region"
|
|
aria-label={t('player.regionLabel')}
|
|
>
|
|
|
|
{/* Track Info */}
|
|
<div className="player-track-info">
|
|
<div
|
|
className={`player-album-art-wrap ${currentTrack && !isRadio ? 'clickable' : ''}`}
|
|
onClick={() => !isRadio && currentTrack && toggleFullscreen()}
|
|
data-tooltip={!isRadio && currentTrack ? t('player.openFullscreen') : undefined}
|
|
>
|
|
{isRadio ? (
|
|
currentRadio?.coverArt ? (
|
|
<CachedImage
|
|
className="player-album-art"
|
|
src={radioCoverSrc}
|
|
cacheKey={radioCoverKey}
|
|
alt={currentRadio.name}
|
|
/>
|
|
) : (
|
|
<div className="player-album-art-placeholder">
|
|
<Cast size={20} />
|
|
</div>
|
|
)
|
|
) : currentTrack?.coverArt ? (
|
|
<CachedImage
|
|
className="player-album-art"
|
|
src={coverSrc}
|
|
cacheKey={coverKey}
|
|
alt={`${currentTrack.album} Cover`}
|
|
/>
|
|
) : (
|
|
<div className="player-album-art-placeholder">
|
|
<Music size={22} />
|
|
</div>
|
|
)}
|
|
{currentTrack && !isRadio && (
|
|
<div className="player-art-expand-hint" aria-hidden="true">
|
|
<Maximize2 size={16} />
|
|
</div>
|
|
)}
|
|
</div>
|
|
<div className="player-track-meta">
|
|
<MarqueeText
|
|
text={isRadio
|
|
? (radioMeta.currentTitle
|
|
? (radioMeta.currentArtist
|
|
? `${radioMeta.currentArtist} — ${radioMeta.currentTitle}`
|
|
: radioMeta.currentTitle)
|
|
: (currentRadio?.name ?? '—'))
|
|
: (currentTrack?.title ?? t('player.noTitle'))}
|
|
className="player-track-name"
|
|
style={{ cursor: !isRadio && currentTrack?.albumId ? 'pointer' : 'default' }}
|
|
onClick={() => !isRadio && currentTrack?.albumId && navigate(`/album/${currentTrack.albumId}`)}
|
|
/>
|
|
<MarqueeText
|
|
text={isRadio
|
|
? (radioMeta.currentTitle && currentRadio?.name
|
|
? currentRadio.name
|
|
: t('radio.liveStream'))
|
|
: (currentTrack?.artist ?? '—')}
|
|
className="player-track-artist"
|
|
style={{ cursor: !isRadio && currentTrack?.artistId ? 'pointer' : 'default' }}
|
|
onClick={() => !isRadio && currentTrack?.artistId && navigate(`/artist/${currentTrack.artistId}`)}
|
|
/>
|
|
{currentTrack && !isRadio && (
|
|
<StarRating
|
|
value={userRatingOverrides[currentTrack.id] ?? currentTrack.userRating ?? 0}
|
|
onChange={r => { setUserRatingOverride(currentTrack.id, r); setRating(currentTrack.id, r).catch(() => {}); }}
|
|
className="player-track-rating"
|
|
ariaLabel={t('albumDetail.ratingLabel')}
|
|
/>
|
|
)}
|
|
{isRadio && radioMeta.listeners != null && (
|
|
<span className="player-radio-listeners">
|
|
{t('radio.listenerCount', { count: radioMeta.listeners })}
|
|
</span>
|
|
)}
|
|
</div>
|
|
{currentTrack && !isRadio && (
|
|
<button
|
|
className={`player-btn player-btn-sm player-star-btn${isStarred ? ' is-starred' : ''}`}
|
|
onClick={toggleStar}
|
|
aria-label={isStarred ? t('contextMenu.unfavorite') : t('contextMenu.favorite')}
|
|
data-tooltip={isStarred ? t('contextMenu.unfavorite') : t('contextMenu.favorite')}
|
|
style={{ flexShrink: 0 }}
|
|
>
|
|
<Heart size={15} fill={isStarred ? 'currentColor' : 'none'} />
|
|
</button>
|
|
)}
|
|
{currentTrack && !isRadio && lastfmSessionKey && (
|
|
<button
|
|
className="player-btn player-btn-sm player-love-btn"
|
|
onClick={toggleLastfmLove}
|
|
aria-label={lastfmLoved ? t('contextMenu.lfmUnlove') : t('contextMenu.lfmLove')}
|
|
data-tooltip={lastfmLoved ? t('contextMenu.lfmUnlove') : t('contextMenu.lfmLove')}
|
|
style={{ color: lastfmLoved ? '#e31c23' : 'var(--text-muted)', flexShrink: 0 }}
|
|
>
|
|
<LastfmIcon size={15} />
|
|
</button>
|
|
)}
|
|
</div>
|
|
|
|
{/* Transport Controls */}
|
|
<div className="player-buttons" ref={transportAnchorRef}>
|
|
<button className="player-btn player-btn-sm" onClick={stop} aria-label={t('player.stop')} data-tooltip={t('player.stop')}>
|
|
<Square size={14} fill="currentColor" />
|
|
</button>
|
|
<button className="player-btn" onClick={() => previous()} aria-label={t('player.prev')} data-tooltip={t('player.prev')} disabled={isRadio} style={isRadio ? { opacity: 0.3, pointerEvents: 'none' } : undefined}>
|
|
<SkipBack size={19} />
|
|
</button>
|
|
<span className="playback-transport-play-wrap" ref={playSlotRef}>
|
|
<PlaybackScheduleBadge layoutAnchorRef={playSlotRef} />
|
|
<button
|
|
className="player-btn player-btn-primary"
|
|
type="button"
|
|
{...playPauseBind}
|
|
aria-label={isPlaying ? t('player.pause') : t('player.play')}
|
|
data-tooltip={isPlaying ? t('player.pause') : t('player.play')}
|
|
>
|
|
{scheduleRemaining != null ? (
|
|
<span className={`player-btn-schedule-stack player-btn-schedule-stack--${scheduleRemaining.mode}`}>
|
|
{scheduleRemaining.mode === 'pause'
|
|
? <Moon size={10} strokeWidth={2.5} />
|
|
: <Sunrise size={10} strokeWidth={2.5} />}
|
|
<span className="player-btn-schedule-time">{scheduleRemaining.remaining}</span>
|
|
</span>
|
|
) : isPlaying ? <Pause size={22} fill="currentColor" /> : <Play size={22} fill="currentColor" />}
|
|
</button>
|
|
</span>
|
|
<button className="player-btn" onClick={() => next()} aria-label={t('player.next')} data-tooltip={t('player.next')} disabled={isRadio} style={isRadio ? { opacity: 0.3, pointerEvents: 'none' } : undefined}>
|
|
<SkipForward size={19} />
|
|
</button>
|
|
<button
|
|
className="player-btn player-btn-sm"
|
|
onClick={toggleRepeat}
|
|
aria-label={t('player.repeat')}
|
|
data-tooltip={`${t('player.repeat')}: ${repeatMode === 'off' ? t('player.repeatOff') : repeatMode === 'all' ? t('player.repeatAll') : t('player.repeatOne')}`}
|
|
style={{ color: repeatMode !== 'off' ? 'var(--accent)' : undefined }}
|
|
>
|
|
{repeatMode === 'one' ? <Repeat1 size={14} /> : <Repeat size={14} />}
|
|
</button>
|
|
</div>
|
|
|
|
{/* Waveform Seekbar / Radio live bar */}
|
|
<div className="player-waveform-section">
|
|
{isRadio ? (
|
|
<>
|
|
{radioMeta.source === 'azuracast' && radioMeta.elapsed != null && radioMeta.duration != null && radioMeta.duration > 0 ? (
|
|
<>
|
|
<span className="player-time">{formatTime(radioMeta.elapsed)}</span>
|
|
<div className="player-waveform-wrap">
|
|
<div className="radio-progress-bar">
|
|
<div
|
|
className="radio-progress-fill"
|
|
style={{ width: `${Math.min(100, (radioMeta.elapsed / radioMeta.duration) * 100)}%` }}
|
|
/>
|
|
</div>
|
|
</div>
|
|
<span className="player-time">{formatTime(radioMeta.duration)}</span>
|
|
</>
|
|
) : (
|
|
<>
|
|
<PlaybackTime className="player-time" />
|
|
<div className="player-waveform-wrap" style={{ display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
|
|
<span className="radio-live-badge">{t('radio.live')}</span>
|
|
</div>
|
|
<span className="player-time" style={{ opacity: 0 }}>0:00</span>
|
|
</>
|
|
)}
|
|
</>
|
|
) : (
|
|
<>
|
|
<PlaybackTime className="player-time" />
|
|
<div className="player-waveform-wrap">
|
|
<WaveformSeek trackId={currentTrack?.id} />
|
|
</div>
|
|
<span
|
|
className="player-time player-time-toggle"
|
|
onClick={() => {
|
|
const newVal = !localShowRemaining;
|
|
setLocalShowRemaining(newVal);
|
|
useThemeStore.getState().setShowRemainingTime(newVal);
|
|
}}
|
|
data-tooltip={localShowRemaining ? t('player.showDuration') : t('player.showRemainingTime')}
|
|
>
|
|
{localShowRemaining ? <RemainingTime duration={duration} /> : formatTime(duration)}
|
|
<ArrowLeftRight size={10} style={{ marginLeft: 4, opacity: 0.6 }} />
|
|
</span>
|
|
</>
|
|
)}
|
|
</div>
|
|
|
|
{/* EQ Button */}
|
|
<button
|
|
className={`player-btn player-btn-sm player-eq-btn ${eqOpen ? 'active' : ''}`}
|
|
onClick={() => setEqOpen(v => !v)}
|
|
aria-label="Equalizer"
|
|
data-tooltip="Equalizer"
|
|
>
|
|
<SlidersVertical size={15} />
|
|
</button>
|
|
|
|
{/* Mini Player */}
|
|
<button
|
|
className="player-btn player-btn-sm"
|
|
onClick={() => invoke('open_mini_player').catch(() => {})}
|
|
aria-label="Mini Player"
|
|
data-tooltip="Mini Player"
|
|
>
|
|
<PictureInPicture2 size={15} />
|
|
</button>
|
|
|
|
{/* Volume */}
|
|
<div className="player-volume-section">
|
|
<button
|
|
className="player-btn player-btn-sm"
|
|
onClick={() => {
|
|
if (volume === 0) {
|
|
setVolume(premuteVolumeRef.current);
|
|
} else {
|
|
premuteVolumeRef.current = volume;
|
|
setVolume(0);
|
|
}
|
|
}}
|
|
aria-label={t('player.volume')}
|
|
style={{ color: 'var(--text-muted)', flexShrink: 0 }}
|
|
>
|
|
{volume === 0 ? <VolumeX size={16} /> : <Volume2 size={16} />}
|
|
</button>
|
|
<div className="player-volume-slider-wrap" onWheel={handleVolumeWheel}>
|
|
{showVolPct && (
|
|
<span className="player-volume-pct" style={{ left: `${volume * 100}%` }}>
|
|
{Math.round(volume * 100)}%
|
|
</span>
|
|
)}
|
|
<input
|
|
type="range"
|
|
id="player-volume"
|
|
min={0}
|
|
max={1}
|
|
step={0.01}
|
|
value={volume}
|
|
onChange={handleVolume}
|
|
style={volumeStyle}
|
|
aria-label={t('player.volume')}
|
|
className="player-volume-slider"
|
|
onMouseEnter={() => setShowVolPct(true)}
|
|
onMouseLeave={() => setShowVolPct(false)}
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
{/* EQ Popup — rendered via portal to avoid backdrop-filter containing-block issue */}
|
|
{eqOpen && createPortal(
|
|
<>
|
|
<div className="eq-popup-backdrop" onClick={() => setEqOpen(false)} />
|
|
<div className="eq-popup">
|
|
<div className="eq-popup-header">
|
|
<span className="eq-popup-title">Equalizer</span>
|
|
<button className="eq-popup-close" onClick={() => setEqOpen(false)} aria-label="Close">
|
|
<X size={16} />
|
|
</button>
|
|
</div>
|
|
<Equalizer />
|
|
</div>
|
|
</>,
|
|
document.body
|
|
)}
|
|
|
|
</footer>
|
|
<PlaybackDelayModal open={delayModalOpen} onClose={() => setDelayModalOpen(false)} anchorRef={transportAnchorRef} />
|
|
</>
|
|
);
|
|
|
|
if (floatingPlayerBar) {
|
|
return createPortal(playerBarContent, document.body);
|
|
}
|
|
|
|
return playerBarContent;
|
|
}
|