mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
chore: cleanup
This commit is contained in:
@@ -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, // 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.preferredHeaders,
|
||||||
...streamResult.stream.headers,
|
...streamResult.stream.headers,
|
||||||
|
@@ -166,7 +166,7 @@ export const VideoPlayer = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
setVideoSrc({
|
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: {
|
headers: {
|
||||||
...stream.preferredHeaders,
|
...stream.preferredHeaders,
|
||||||
...stream.headers,
|
...stream.headers,
|
||||||
|
@@ -30,7 +30,7 @@ export const useAudioTrack = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (videoRef?.getStatusAsync && audioObject) {
|
if (videoRef && audioObject) {
|
||||||
const videoStatus = await videoRef.getStatusAsync();
|
const videoStatus = await videoRef.getStatusAsync();
|
||||||
|
|
||||||
if (selectedAudioTrack && videoStatus.isLoaded) {
|
if (selectedAudioTrack && videoStatus.isLoaded) {
|
||||||
|
Reference in New Issue
Block a user