SurfaceTexture.getTimestamp() returning 0 during playback

951 Views Asked by At

Recently I've encountered a strange problem on Android 5.0.2 (API 21). My application is using SurfaceTexture to display video. Playback mechanics are mostly based on google/grafika's CameraCaptureAvtivity, but the video source is decoded .mp4 movie file instead of camera. The application worked just fine until I ran it on Galaxy S6 with Android 5.0.2 (I successfully used devices with 4.4.2 and 4.4.4 before that). The problem is that each time I try to recieve timestamp from SurfaceTexture with getTimestamp(), the method returns 0, though playback is fine. On the other devices I've mentioned before the timestamp was correct.
Can someone tell me if this might be Android bug? Is there any way to work it around?

0

There are 0 best solutions below