- Complete the SDK registration to enable SDK functions;
- For M300 and M350, you need to first use the assignSourceToPrimaryChannel interface to allocate the video source channel;
- Obtain the VideoFeeder object through VideoFeeder.getInstance;
- Use getPrimaryVideoFeed/getSecondaryVideoFeed to retrieve the corresponding video feed for each channel;
- Set up video stream data monitoring by using videofeed.addVideoDataListener. The callback will continuously push video frame data;
- Create an instance of DJICodecManager and bind it to the view;
- Use CodecManager.switchSource to set the corresponding channel. You can also set the channel when creating an instance of DJICodecManager;
- Pass the frame data pushed by the VideoDataListener of the corresponding channel as a parameter to sendDataToDecoder to display the corresponding view;
- Set CodecManager.enabledYuvData to true to enable YUV output;
- Set up YUV data monitoring through setYuvDataCallback, which will continuously push YUV data. For more details, you can refer to this article: How to get Yuv data video stream?
How to obtain the video stream data of the camera and display the camera image?
Followclose
Comments
0 comments
Please sign in to leave a comment.