Using calculated segments timeline duration to compare with period duration to update whether period has reach it the end of stream.