主权项 |
1. A method comprising:
determining, by a processor device, one or more scene boundaries of scenes of a video before completing loading content of the video, wherein each of the one of more scene boundaries is associated with a video frame of at least one of a scene-start or a scene-end of the video; identifying, by the processor device, the one or more scene-boundaries in a user interface, the user interface presenting a seekbar with a scrubber representing a currently-played location in the video, the currently-played location to be changed by moving the scrubber using a pointing indicator, the user interface further presenting, with the seekbar, one or more boundary markers visually representing the one or more scene boundaries; receiving, by the processor device, a request to move the pointing-indicator in the user interface; calculating, in response to the request to move the pointing-indicator, a distance between the pointing-indicator and a particular boundary marker visually representing a scene-boundary of the one or more scene boundaries, the pointing-indicator being positioned separately from the scrubber and the one or more boundary markers; determining whether the distance between the pointing-indicator and the particular boundary marker visually representing the scene-boundary is less than a threshold radius associated with the scene-boundary, wherein the threshold radius is calculated without user input based on dimensions associated with a presentation of the video, and wherein the calculated threshold radius is less than a threshold distance determined based on distances between the scenes of the video; and responsive to the pointing-indicator passing within the threshold radius such that the distance is less than the threshold radius, snapping, by the processor device, the pointing-indicator to the particular boundary marker visually representing the scene-boundary in the user interface. |