rtsp on react native (vlc player)

 import React from 'react';

import { View } from 'react-native';

import VLCPlayer from 'react-native-vlc-player';


const CameraScreen = () => {

  const ipCameraUrl = 'rtsp://YOUR_IP_CAMERA_URL';


  return (

    <View style={{ flex: 1 }}>

      <VLCPlayer

        ref={(ref) => (this.vlcPlayer = ref)}

        style={{ flex: 1 }}

        source={{

          uri: ipCameraUrl,

          autoplay: true,

          initOptions: ['--rtsp-tcp'],

        }}

      />

    </View>

  );

};


export default CameraScreen;


Comments

Popular posts from this blog

WR3D wwe 2k19 MOD apk direct download link for Android

Download wwe2k17 wr3d

How to make resizeable window in pygame and make content adjustable according to window size