Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSDK version 5.8 #218

Closed
PeimanAtaei opened this issue Dec 11, 2023 · 12 comments
Closed

MSDK version 5.8 #218

PeimanAtaei opened this issue Dec 11, 2023 · 12 comments

Comments

@PeimanAtaei
Copy link

Hi,

in one of open issues, you have told that MSDK 5.8.0-a2 has released new screen rendering and live streaming features. It fixes some crashes and provides adaptive screen display and streaming without rendering. You can try this version to see if the same issues still exist.

#191 (comment)

How can we access to this version? and also about the samples to know how to use these new features for streaming video

@dji-dev
Copy link
Contributor

dji-dev commented Dec 12, 2023

Agent comment from yating.liao in Zendesk ticket #96872:

The current version has been updated to 5.8.0-a4. The new version fixes more crash issues and adapts to more devices. You can check the release notes, API documentation, and sample code at the following link for instructions on how to use it: https://github.com/dji-sdk/Mobile-SDK-Android-V5/tree/dev-sdk-alpha

°°°

@LilliaZ3
Copy link

Did the 5.8.0-a4 version of the SDK fix the video error you were experiencing?
Please see
https://stackoverflow.com/questions/77433794/dji-sdk-5-1-7-rtmp-streaming-on-primary-channel-crashes-main-app-android/77588941#77588941 for a stack dump and details.
Thank you.

@dji-lyt
Copy link

dji-lyt commented Dec 25, 2023

Did the 5.8.0-a4 version of the SDK fix the video error you were experiencing? Please see https://stackoverflow.com/questions/77433794/dji-sdk-5-1-7-rtmp-streaming-on-primary-channel-crashes-main-app-android/77588941#77588941 for a stack dump and details. Thank you.

I suggest that you directly use the latest version 5.8.0-a6. Indeed, there have been some fixes for fdsan starting from version 5.8.0-a4. The crash logs you provided indicate that the crash was caused by fdsan.

Mobile SDK does not support Android 14. Please take note of this information.

@LilliaZ3
Copy link

LilliaZ3 commented Jan 3, 2024

Hello.
Does the new release (last week) of 5.8.0 at https://github.com/dji-sdk/Mobile-SDK-Android-V5/releases/tag/V5.8.0 have the alpha 5.8.0**-a6** in it? I am not sure how the release cycle and numbering work.
Thank you for the warning on versions of Android OS. I am using Android 13.
Thank you.

@dji-dev
Copy link
Contributor

dji-dev commented Jan 4, 2024

Agent comment from yating.liao in Zendesk ticket #96872:

Last week's release of version 5.8 includes 5.8.0-a6. You can directly use the official version 5.8.

°°°

@LilliaZ3
Copy link

LilliaZ3 commented Jan 8, 2024

Hello.

The sample in the newly released 5.8.0 version uses the deprecated VideoStreamManager and does not run. Would it be possible to update the
MediaDataCenter.getInstance().getVideoStreamManager().addStreamSourcesListener(sources -> runOnUiThread(() -> updateFPVWidgetSource(sources))); ;
to the new
MediaDataCenter.getInstance().getCameraStreamManager(........)
instead of the deprecated VideoStreamManager?

I am unsure of the parameters and the signature of the listener. Commenting out the video stream manager line did not fix the problem. The API documentation for Camera Stream Manager did not help.

Thank you very much in advance for any help or sample.

@dji-lyt
Copy link

dji-lyt commented Jan 9, 2024

May I confirm your issue with you?
Is your current issue that the FPVWidget is not working? Are you currently using version 5.8 of the UXSDK module? Or have you only updated the MSDK version?

In the CameraStreamManager, a similar method to addStreamSourcesListener is addAvailableCameraUpdatedListener. you can replace it with this method. However, the controls of the UXSDK in version 5.8 should be working fine.

@LilliaZ3
Copy link

LilliaZ3 commented Jan 9, 2024

Thank you for responding. I am using version 5.8 of the UXSDK and have updated my android project to the new version. When I run I do not see the camera images streaming to the app (as before). Apart from the widgets, it is blank.
I suspect these lines:

MediaDataCenter.getInstance().getVideoStreamManager().addStreamSourcesListener(sources -> runOnUiThread(() -> updateFPVWidgetSource(sources))); primaryFpvWidget.setOnFPVStreamSourceListener((devicePosition, lensType) -> { cameraSourceProcessor.onNext(new CameraSource(devicePosition, lensType)); });

have been deprecated and need to be replaced with addAvailableCameraUpdatedListener. I am unsure of the parameters. I imagine you all would want to update your samples with the newer CameraStreamManager as well. I am quoting the code from the sample at https://github.com/dji-sdk/Mobile-SDK-Android-V5/blob/dev-sdk-main/SampleCode-V5/android-sdk-v5-uxsdk/src/main/java/dji/v5/ux/sample/showcase/defaultlayout/DefaultLayoutActivity.java

All help would be greatly appreciated! Thank you.

@dji-lyt
Copy link

dji-lyt commented Jan 10, 2024

Hello @LilliaZ3 ,
We kindly request you to provide us with the model of the aircraft and remote control you are using. If possible, it would be even better if you could take a photo and share it with us.

@LilliaZ3
Copy link

Hello.
Again thank you for your help. Here is a photo:
image
Thank you.

@dji-lyt
Copy link

dji-lyt commented Jan 11, 2024

From the photo, it seems that you are using the mini 3 aircraft. I was able to successfully obtain the video stream by running the example code on the mini 3 with version 5.8. Do you have the same issue when running the example code?

It is true that FPVwidget may need to switch to the new interface, but the previous interface should still work fine. If the old interface is not working, the 5.8 example code should have the same behavior.
df0b9c8f8d35b16a5d43aeb882085aa
bdfc88e264a6aef3f347250734de790
c1389fa0b12cc8c9e39600ec41cbde5

@dji-lyt dji-lyt closed this as completed Mar 5, 2024
@huongta157
Copy link

I run the sample code with alpha branch, but Default Layout screen is always black.

  • Drone version: Air 2S
  • Smartphone: Pixel 4xl
    Screenshot_20240320_095020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants