mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 09:35:42 +00:00
Update TrailerContext.tsx
This commit is contained in:
parent
2019230dfd
commit
639d53263d
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ interface TrailerContextValue {
|
|||
const TrailerContext = createContext<TrailerContextValue | undefined>(undefined);
|
||||
|
||||
export const TrailerProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
|
||||
const [isTrailerPlaying, setIsTrailerPlaying] = useState(true);
|
||||
const [isTrailerPlaying, setIsTrailerPlaying] = useState(false);
|
||||
|
||||
const pauseTrailer = useCallback(() => {
|
||||
setIsTrailerPlaying(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue