dji-sdk / Mobile-SDK-Android

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

[Help] State FetchMediaTaskScheduler is UNKNOWN #1293

Closed huongta157 closed 6 months ago

huongta157 commented 7 months ago
val task = FetchMediaTask(mediaFile, FetchMediaTaskContent.PREVIEW) { media, content, _ ->
            lifecycleScope.launch(Dispatchers.Main) {
                Glide.with(requireContext())
                    .load(media?.preview)
                    .into(binding.photoView)
                scheduler?.removeTask(media, content)
            }
        }
        Log.i(TAG, "handleDisplayPhotoView state: ${scheduler?.state}")
        scheduler?.moveTaskToEnd(task)

I used this code to get preview of photo, but scheduler state is UNKNOWN and not return result. Please help me!

dji-dev commented 7 months ago

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

Could you provide me with a method to reproduce the scheduler state as UNKNOWN? Also, what is the model of the drone you are using?

Do you encounter the same issue when using the MSDK sample code?

°°°