diff options
Diffstat (limited to 'lib/context')
| -rw-r--r-- | lib/context/watchPageProvider.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/context/watchPageProvider.js b/lib/context/watchPageProvider.js index a9d707b..c305710 100644 --- a/lib/context/watchPageProvider.js +++ b/lib/context/watchPageProvider.js @@ -9,10 +9,14 @@ export const WatchPageProvider = ({ children }) => { currentTime: 0, isPlaying: false, }); - const [autoplay, setAutoPlay] = useState(false); + const [autoplay, setAutoPlay] = useState(null); + const [autoNext, setAutoNext] = useState(null); const [marked, setMarked] = useState(0); const [userData, setUserData] = useState(null); + const [dataMedia, setDataMedia] = useState(null); + + const [track, setTrack] = useState(null); return ( <WatchPageContext.Provider @@ -29,6 +33,12 @@ export const WatchPageProvider = ({ children }) => { setAutoPlay, marked, setMarked, + track, + setTrack, + dataMedia, + setDataMedia, + autoNext, + setAutoNext, }} > {children} |