I want to Loop the video frame [20,40] by using VideoPlayer.frame = 40;
But it do not take effect immediately in Android.
The Video Contains I frame with[0,20,40,59].
There is the frame log: it takes 120ms chang frame 40 to 20
Did it not call MediaCodec.queueInputBuffer immediately?
11-25 15:22:44.192 8867 8900 I Unity : Update VideoFrame = 30
11-25 15:22:44.209 8867 8900 I Unity : Update VideoFrame = 31
11-25 15:22:44.225 8867 8900 I Unity : Update VideoFrame = 31
11-25 15:22:44.243 8867 8900 I Unity : Update VideoFrame = 32
11-25 15:22:44.259 8867 8900 I Unity : Update VideoFrame = 32
11-25 15:22:44.278 8867 8900 I Unity : Update VideoFrame = 33
11-25 15:22:44.292 8867 8900 I Unity : Update VideoFrame = 33
11-25 15:22:44.311 8867 8900 I Unity : Update VideoFrame = 34
11-25 15:22:44.325 8867 8900 I Unity : Update VideoFrame = 34
11-25 15:22:44.344 8867 8900 I Unity : Update VideoFrame = 35
11-25 15:22:44.358 8867 8900 I Unity : Update VideoFrame = 35
11-25 15:22:44.377 8867 8900 I Unity : Update VideoFrame = 36
11-25 15:22:44.393 8867 8900 I Unity : Update VideoFrame = 36
11-25 15:22:44.411 8867 8900 I Unity : Update VideoFrame = 37
11-25 15:22:44.425 8867 8900 I Unity : Update VideoFrame = 37
11-25 15:22:44.445 8867 8900 I Unity : Update VideoFrame = 38
11-25 15:22:44.458 8867 8900 I Unity : Update VideoFrame = 38
11-25 15:22:44.476 8867 8900 I Unity : Update VideoFrame = 39
11-25 15:22:44.492 8867 8900 I Unity : Update VideoFrame = 39
11-25 15:22:44.509 8867 8900 I Unity : Update VideoFrame = 40
11-25 15:22:44.509 8867 8900 I Unity : Seek to 20
11-25 15:22:44.524 8867 8900 I Unity : Update VideoFrame = 40
11-25 15:22:44.542 8867 8900 I Unity : Update VideoFrame = 40
11-25 15:22:44.557 8867 8900 I Unity : Update VideoFrame = 40
11-25 15:22:44.574 8867 8900 I Unity : Update VideoFrame = 40
11-25 15:22:44.591 8867 8900 I Unity : Update VideoFrame = 40
11-25 15:22:44.608 8867 8900 I Unity : Update VideoFrame = 40
11-25 15:22:44.626 8867 8900 I Unity : Update VideoFrame = 20
11-25 15:22:44.643 8867 8900 I Unity : Update VideoFrame = 21
11-25 15:22:44.658 8867 8900 I Unity : Update VideoFrame = 21
11-25 15:22:44.677 8867 8900 I Unity : Update VideoFrame = 22
11-25 15:22:44.691 8867 8900 I Unity : Update VideoFrame = 22
11-25 15:22:44.709 8867 8900 I Unity : Update VideoFrame = 23
11-25 15:22:44.724 8867 8900 I Unity : Update VideoFrame = 23
11-25 15:22:44.743 8867 8900 I Unity : Update VideoFrame = 24
11-25 15:22:44.757 8867 8900 I Unity : Update VideoFrame = 24
11-25 15:22:44.777 8867 8900 I Unity : Update VideoFrame = 25
11-25 15:22:44.790 8867 8900 I Unity : Update VideoFrame = 25
11-25 15:22:44.810 8867 8900 I Unity : Update VideoFrame = 26
11-25 15:22:44.824 8867 8900 I Unity : Update VideoFrame = 26
11-25 15:22:44.842 8867 8900 I Unity : Update VideoFrame = 27
11-25 15:22:44.857 8867 8900 I Unity : Update VideoFrame = 27
11-25 15:22:44.875 8867 8900 I Unity : Update VideoFrame = 28
11-25 15:22:44.891 8867 8900 I Unity : Update VideoFrame = 28
11-25 15:22:44.909 8867 8900 I Unity : Update VideoFrame = 29
11-25 15:22:44.923 8867 8900 I Unity : Update VideoFrame = 29
11-25 15:22:44.943 8867 8900 I Unity : Update VideoFrame = 30
This is the video file.
Bubble.mp4.zip (219.0 KB)