4

I'm using react-native-video for steaming hls url. It works fine with box react-native run-android but after building a bundleRelease the live streaming video is not playing

1 Answers1

-8

simple answer is yes ! this package will help you ! first install it using

sudo npm -g i react-hls-player

in your project import the package using

import React from 'react';
import ReactDOM from 'react-dom';
import ReactHlsPlayer from 'react-hls-player';

then render it

ReactDOM.render(
  <ReactHlsPlayer
    src="https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8"
    hlsConfig={{
      maxLoadingDelay: 4,
      minAutoBitrate: 0,
      lowLatencyMode: true,
    }}
  />,
  document.getElementById('app')
);

dirt simple !

Elhadede
  • 9
  • 4