dji-sdk / Mobile-UXSDK-Android

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of Android applications using the DJI Mobile SDK.
Other
152 stars 110 forks source link

No Video in FPVWidget #138

Closed idcc-cursor closed 2 years ago

idcc-cursor commented 2 years ago

Hello I try Mobile-UXSDK-Android TAG v4.16 , Setup: A3 + Lightbridge2 with Z30 Camera and CrystalSky I am not able to get a Video in FPVWidget. With DJI Pilot I am able to see the FPV Video from Z30 with SDK there is no Video

dji-dev commented 2 years ago

Agent comment from DJI SDK in Zendesk ticket #60654:

尊敬的开发者,感谢您联系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

°°°

DJI-William commented 2 years ago

A3 + LB2 with Z30 requires some initialise settings to make the video works.

  1. You need to set the bandwidth allocation through LightBridgeLink class, setBandwidthAllocationForLBVideoInputPort depends on your settings. Link:https://developer.dji.com/api-reference/android-api/Components/LBAirLink/DJILBAirLink.html

  2. Please try the Github link below and see if you can see the video stream view. Try https://github.com/dji-sdk/Mobile-SDK-Android first and then https://github.com/dji-sdk/Mobile-UXSDK-Android.

idcc-cursor commented 2 years ago

Sorry for late answers. Another problems raised --- how to use zoom with FPVWidgets, Z30 and Mobile SDK. Also reset camera position.

On 23.02.22 12:16, DJI-William wrote:

A3 + LB2 with Z30 requires some initialise settings to make the video works.

1.

You need to set the bandwidth allocation through LightBridgeLink
class, setBandwidthAllocationForLBVideoInputPort depends on your
settings.
Link:https://developer.dji.com/api-reference/android-api/Components/LBAirLink/DJILBAirLink.html

2.

Please try the Github link below and see if you can see the video
stream view.
Try https://github.com/dji-sdk/Mobile-SDK-Android first and then
https://github.com/dji-sdk/Mobile-UXSDK-Android.

— Reply to this email directly, view it on GitHub https://github.com/dji-sdk/Mobile-UXSDK-Android/issues/138#issuecomment-1048677733, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMTG72AIV7UAFVLHTL2LI7LU4S62DANCNFSM5PDSJTCA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

DJI-William commented 2 years ago

I don't think FPVWidget implements zoom features for Z30, this is a very old camera, you have to implement this feature by yourself. setOpticalZoomFocalLength: https://developer.dji.com/api-reference/android-api/Components/Camera/DJICamera.html#djicamera_camerasettings_setopticalzoomfocallength_inline

reset: https://developer.dji.com/api-reference/android-api/Components/Gimbal/DJIGimbal.html#djigimbal_resetgimbalwithaxisandresetdirection_inline

idcc-cursor commented 2 years ago

Hello DJI-William 1) I have succesfully implemented Zoom in and Zoom out on C1 and C2 buttons 2) Gimbal reset does not work. I implemented the methode call on right dial push (callback works fine) but I get DJIError: "Not supported(255)"

My implementation: private void resetGimbal() { if(myGimbal != null) { myGimbal.reset(Axis.YAW, ResetDirection.UP_OR_DOWN, new CommonCallbacks.CompletionCallback() { @Override public void onResult(DJIError djiError) { Log.i("gimbalError", djiError.toString()); } }); } }

DJI-William commented 2 years ago

What is your Z30 firmware, it must be later than v01.01.03.00. Also, if you select Axis.YAW, according to the documentation, you can only set ResetDirection.CENTER. You can check the doc.