Code Monkey home page Code Monkey logo

react-native-dji-mobile-sdk's Introduction

react-native-dji-mobile-sdk [WIP]

Implementation of the dji mobile sdk for react native

Installation

npm install react-native-dji-mobile-sdk

Android

Specify your DJI API Key

How to generate your api key

Add your API key to your manifest file: android/app/src/main/AndroidManifest.xml:

<application>
   <!-- You will only need to add this meta-data tag, but make sure it's a child of application -->
   <meta-data
     android:name="com.dji.sdk.API_KEY"
     android:value="Your DJI API Key Here"/>
</application>

Usage

You can check the /example folder for a use of the package.

API refs

TODO

Components

Render the video of the drone:

<DJIVideoView
  style={{
    flex: 1,
    aspectRatio: 16 / 9,
    maxHeight: '100%',
    maxWidth: '100%',
  }}
/>

Known issues

Video view is not working well on x86 phones dji issue

Mobile SDK 4.7 and later versions are incompatible with x86 devices: Since v4.7, Mobile SDK has included FFMpeg lib to provide the transcoded video feed, but FFMpeg x86 so files will lead to the runtime crash when the target API of APP is larger than 23(included).

Contributing

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

License

MIT


Made with create-react-native-library

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.