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.
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.
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.
DJIWidget is owned and maintained by DJI SDK.
You can get support from DJI with the following methods:
- Post questions in Stackoverflow using dji-sdk tag
- [email protected]
DJIWidget is available under the MIT license. See the LICENSE file for more info.