Skip to content

Discord fork of React Native video player with alpha channel (alpha-packing) support.

License

Notifications You must be signed in to change notification settings

athombv/react-native-transparent-video

 
 

Repository files navigation

react-native-transparent-video

React Native video player with alpha channel (alpha-packing) support. It works on iOS and Android.

Example of a mp4 video with alpha-packing:

alpha-packing-video-demo.mp4

Recommendations

To achieve best compatibility across different Android devices and versions, please check the video encoding recommendations from the Android documentation portal.

Installation

npm install @status-im/react-native-transparent-video

or

yarn add @status-im/react-native-transparent-video

Usage

import TransparentVideo from '@status-im/react-native-transparent-video';

const video = require('../assets/video.mp4');

function App() {
  return (
    <View>
      <TransparentVideo source={video} style={styles.transparentVideo} />
    </View>
  );
}

const styles = StyleSheet.create({
  transparentVideo: {
    position: 'absolute',
    top: 0,
    left: 0,
    right: 0,
    bottom: 0,
  },
});

Contributing

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

Recognition

Special thanks to:

License

MIT

About

Discord fork of React Native video player with alpha channel (alpha-packing) support.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 77.7%
  • Swift 12.4%
  • Objective-C 3.3%
  • TypeScript 2.7%
  • Ruby 1.7%
  • JavaScript 1.3%
  • Other 0.9%