fix wrong capture result if playback is paused
videocapture: capture current displayed frame. code clean up. api change

old implemention was the next frame will be captured.
examples: add video capture example