I'm trying to scrub a seekbar of a 3rd party app with Accessibility Services. This is what I'm using to scrub.
val arguments = Bundle()
arguments.putFloat(AccessibilityNodeInfo.ACTION_ARGUMENT_PROGRESS_VALUE, 50.0.toFloat())
seekBarNode?.performAction(AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_PROGRESS.id, arguments)
Since I'm scrubbing a video, the SeekBar position changes but the content does not change.
Does anyone know what the issue is here? Or are there any alternatives to scrub a 3rd party SeekBar with accessibility services?
Also, I've read about GestureDescription
to perform swipes. But I don't know how to use that to perform SeekBar scrub.