dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
980 stars 579 forks source link

For the first time, if M2ED is connected, the drone's video feed view cannot be seen. onYuvDataReceived() not called. #1028

Open mayurpatil307 opened 2 years ago

mayurpatil307 commented 2 years ago

Hi, DJI SDK Version: 4.15.1 Drone Used: M2ED

Steps to replicate:

  1. Power On your M2ED, 
  2. Open DJI Pilot. Go to Cockpit.

The drone FPV feed cannot be seen in the cockpit. The screen remains dark blank. Only when you restart the drone, you can see the live video feed.I tried this with my app in which I have integerated DJI SDK. 

Observations: DJICodecManager.YuvDataCallback onYuvDataReceived() is not called when this is replicated. Please let us know if this is a bug at SDK or Firmware and when it can be resolved.

Regards, Mayur Patil

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #54105:

尊敬的开发者,感谢您联系DJI 大疆创新 由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI. Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

VineetTambe commented 2 years ago

Hey, I face a similar issue with my M2ED. It happens at random. Is there a fix or a way to detect that the drone camera is not giving a valid video feed via code???

DJI-William commented 2 years ago

If the DJICodecManager.YuvDataCallback has callback, the FPV widget will show black scrren because all the video data flows out from the callback instad rendering on screen. I think it may be your code problem in the displaying section. Please try the same below and see if you have the same problem. Link: https://github.com/dji-sdk/Mobile-SDK-Android/blob/master/Sample%20Code/app/src/main/java/com/dji/sdk/sample/demo/camera/VideoFeederView.java