Skip to content

tientham/rn-video

Repository files navigation

RnVideo Rn-Video

RnVideo is a react native library for a fast and performance video on Android (currently support only Android).

RnVideo

Motivation

Some of my applications have been sufferring a lot about the performance issue with normal react native video libraries. It motivates me to make my own one for some very specific use-cases.

This library currently supports Android. And it is using the latest androidx.media3.

Please note that, according to this annoucement of Exoplayer Exoplayer Deprecation, exoplayer:2.19.1 will be the last artifact release for ExoPlayer and it will be replaced by AndroidX Media3. Therefore, my library here will survive 😉

Features

  • Video video
  • Gif
  • Blur gif

Installation

npm install @tientham/rn-video

Usage

import { RnVideo } from "@tientham/rn-video";

// ...

<RnVideo
  source="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4"
  isPlay={true}
  isReplay={true}
/>

<GifRnVideo source="gif_url" />

<BlurGifRnVideo source="gif_url" />

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT Copyright (c) 2023 TO Minh Tien ❤️