implement logic to get video pts.