chore: cleanup

This commit is contained in:
Adrian Castro
2024-03-06 20:21:25 +01:00
parent 9a4d99827f
commit c9222b0760
3 changed files with 3 additions and 3 deletions

View File

@@ -142,7 +142,7 @@ export const ScraperProcess = ({ data }: ScraperProcessProps) => {
if (streamResult.stream.type === "hls") {
const tracks = await extractTracksFromHLS(
streamResult.stream.playlist, // multiple audio tracks: https://playertest.longtailvideo.com/adaptive/elephants_dream_v4/index.m3u8
streamResult.stream.playlist, // multiple audio tracks: 'https://playertest.longtailvideo.com/adaptive/elephants_dream_v4/index.m3u8',
{
...streamResult.stream.preferredHeaders,
...streamResult.stream.headers,

View File

@@ -166,7 +166,7 @@ export const VideoPlayer = () => {
}
setVideoSrc({
uri: url, // multiple audio tracks: https://playertest.longtailvideo.com/adaptive/elephants_dream_v4/index.m3u8
uri: url, // multiple audio tracks: 'https://playertest.longtailvideo.com/adaptive/elephants_dream_v4/index.m3u8',
headers: {
...stream.preferredHeaders,
...stream.headers,

View File

@@ -30,7 +30,7 @@ export const useAudioTrack = () => {
}
}
if (videoRef?.getStatusAsync && audioObject) {
if (videoRef && audioObject) {
const videoStatus = await videoRef.getStatusAsync();
if (selectedAudioTrack && videoStatus.isLoaded) {