0

using

import { Video } from "expo-av";

to embed a video player I generate HLS url with digest that works fine with VLC player (for testing)

when implementing it in I log the following error on iOS when video.status changes:

Object {
 "error": "The AVPlayerItem instance has failed with the error code -1008 and domain \"NSURLErrorDomain\".",
 "isLoaded": false,
}

and the following for Android:

Object {
  "error": "h.f.c.d.q0.f0: None of the available extractors (e, g, i, e, g, e, d0, c, d, w, b, b) could read the stream.",
  "isLoaded": false,
}

Trying to generate mp4 from the same server generates the following error for iOS:

Object {
  "error": "The server is not correctly configured. - The AVPlayerItem instance has failed with the error code -11850 and domain \"AVFoundationErrorDomain\".",
  "isLoaded": false,
}

I specified the type of the video pulled as I saw some suggestions do so.

<Video
  ref={video}
  style={styles.video}
  source={{
    uri: cameraURL,
  }}
  useNativeControls
  resizeMode="contain"
  shouldPlay
  type="hls"
  onPlaybackStatusUpdate={(status) => setStatus(() => status)}
/>

0 Answers0