chore: add comment with multi audio stream

This commit is contained in:
Adrian Castro
2024-03-06 20:12:30 +01:00
parent fcec9bcdd3
commit 9a4d99827f
2 changed files with 2 additions and 2 deletions

View File

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

View File

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