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

[Help] State FetchMediaTaskScheduler is UNKNOWN #1293

Open
huongta157 opened this issue Apr 19, 2024 · 1 comment
Open

[Help] State FetchMediaTaskScheduler is UNKNOWN #1293

huongta157 opened this issue Apr 19, 2024 · 1 comment

Comments

@huongta157
Copy link

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
Copy link
Contributor

dji-dev commented Apr 22, 2024

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?

°°°

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

2 participants