Skip to content

The DJIWidget is a delightful DJI library includes VideoPreviewer for video decoding.

License

Notifications You must be signed in to change notification settings

PandaraWen/DJIWidget

 
 

Repository files navigation

DJIWidget

What Is This?

The DJIWidget is a delightful DJI library includes VideoPreviewer for video decoding. You can integrate the contents of DJIWidget into your DJI iOS Mobile SDK project to implement the video decoding feature. DJIWidget also provides other features like No SD Card shoot photo and recode video.

For more details of the usage, please check the DJI Mobile SDK iOS Github Repo.

Installation

DJIWidget is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'DJIWidget', '~> 1.0'

Note:

1. Remember to remove the use_frameworks! in the pod file in case the project cannot find the DJIWidget's header files.

2. In order to use the Objective-C header files of the DJIWidget in the swift project, create a new header file in the project and add the following code to add the DJIWidget's header files:

#import <DJIWidget/DJIVideoPreviewer.h>

3. Go to Project -> TARGETS -> Build Settings -> Search “bri” -> Double click "Objective-C Bridging Header" -> Drag the "Header.h" file to the pop-up window to set the path.

FFmpeg Customization

We have forked the original FFmpeg and added customized features to provide more video frame information including the frame's width and height, frame rate number, etc. These features will help to implement video hardware decoding.

The DJIWidget is dynamically linked with unmodified libraries of FFmpeg licensed under the LGPLv2.1. The source code of these FFmpeg libraries, the compilation instructions, and the LGPL v2.1 license are provided in Github.

Credits

DJIWidget is owned and maintained by DJI SDK.

Support

You can get support from DJI with the following methods:

License

DJIWidget is available under the MIT license. See the LICENSE file for more info.

About

The DJIWidget is a delightful DJI library includes VideoPreviewer for video decoding.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • C 51.4%
  • Objective-C 46.7%
  • C++ 1.7%
  • Other 0.2%