Getting value of dynamic element

I’d like to get the video duration and the current time where the video is

and I’m using these two lines to get those.

duration = driver.find_element(AppiumBy.ID, 'com.twitter.android:id/time').text
ccurrent_time = driver.find_element(AppiumBy.ID, 'com.twitter.android:id/time_current').text

However, they are very slow, and I can’t read the real progress of the video. Is there any alternative?

  1. how slow it is?
  2. try to add waitForIdleTimeout capability with 0 -> more to read https://github.com/appium/appium-uiautomator2-driver#capabilities