Method, apparatus, electronic device and storage medium for display controlling
View Patent ↗Embodiments of the disclosure provide a method, apparatus, electronic device, and storage medium for display controlling. The method comprises: displaying a target media content and a first control corresponding to the target media content on a media content display page, wherein the first control is configured to indicate a display progress of the target media content; adjusting, in response to a sliding operation acting within the media content display page, at least one of a position of at least one element in the first control or a display size of an object to be adjusted, the object to be adjusted including at least one of: at least one element of the first control, or a target image of the target media content that is currently displayed within the media content display page, wherein the first control includes at least one element.
1 . A method for display controlling, comprising:
displaying a media content and a first control corresponding to the media content on a media content display page, wherein the first control is configured to indicate a display progress of the media content;
moving, in response to a first sliding operation for the first control, at least one element along a first direction, wherein a sliding direction of the first sliding operation indicates a display progress direction of the media content, and the first direction is opposite to the display progress direction, and the at least one element includes at least one thumbnail corresponding to the media content; and
scaling, in response to a second sliding operation in a single direction for the first control, an object, the object including an image of the media content that is currently displayed within the media content display page, wherein the first control includes the at least one element;
wherein the moving the at least one element along the first direction includes:
determining a moving speed of the at least one element according to a sliding speed of the first sliding operation; and
moving the at least one element along the first direction, which is opposite to the sliding direction of the first sliding operation, at the moving speed.
2 . The method of claim 1 , further comprising:
displaying a picture of the media content that corresponds to an element in the media content display page, wherein the element is an element displayed at a current position to which the first sliding operation slides.
3 . The method of claim 1 , wherein the moving the at least one element along the first direction includes:
moving, in response to not all of the at least one element being displayed within the media content display page, the at least one element along the first direction.
4 . The method of claim 1 , wherein the moving speed of the at least one element is different from the sliding speed of the first sliding operation.
5 . The method of claim 4 , wherein the moving speed of the at least one element is positively correlated with the sliding speed of the first sliding operation.
6 . The method of claim 1 , wherein the adjusting at least one of a position of at least one element in the first control and a display size of the object includes:
moving, in response to the first sliding operation sliding to a boundary position of an associated area corresponding to the first control, a first element or a last element of the first control into the media content display page for display.
7 . The method of claim 1 , wherein the scaling, in response to the second sliding operation for the first control, the object includes at least one of:
enlarging, in response to the second sliding operation along a second direction, the object;
reducing, in response to the second sliding operation along a third direction, the object.
8 . The method of claim 1 , wherein the scaling, in response to the second sliding operation for the first control, the object includes at least one of:
in a process for controlling the media content to perform display progress adjustment, enlarging, in response to the second sliding operation for switching to a second direction at an element of the first control, the object corresponding to the element;
reducing, in response to the second sliding operation in the second direction being switched to the second sliding operation in a third direction, the object corresponding to the element.
9 . The method of claim 1 , after scaling the object, the method further comprising:
in response to a destination of the second sliding operation being located in an associated area corresponding to the first control, detecting in real time and responding to a triggering operation for the first control, wherein the triggering operation starts from the destination, and the triggering operation includes an operation for controlling the media content to perform display progress adjustment.
10 . The method of claim 9 , wherein a continuous sliding is maintained while switching between the second sliding operation and the operation for controlling the media content to perform the display progress adjustment.
11 . The method according to claim 1 , wherein the scaling the object includes:
scaling, with a position as a center, the image of the media content that is currently displayed within the media content display page, wherein the position is a preset position of a picture where the image is located or a display position of the image.
12 . The method of claim 11 , before scaling the object, the method further comprising:
performing image recognition on the picture, and determining a total number of a candidate image contained in the picture, wherein the candidate image include an image of an object; and performing at least one of:
taking, in response to determining that the total number is zero, the preset position in the picture as the position;
taking, in response to determining that the total number is one, a display position of the candidate image in the picture as the position;
taking, in response to determining that the total number is greater than or equal to two, a display position of an image among the candidate image in the picture as the position.
13 . The method of claim 1 , further comprising:
displaying, in response to the second sliding operation sliding to any one of the element, a picture of the media content that corresponds to the any one of the element in the media content display page.
14 . The method of claim 1 , further comprising:
stopping, in response to an end of a trigger of the first sliding operation or the second sliding operation, displaying the first control; or
stopping, in response to a duration from an end of a last trigger of the first sliding operation or the second sliding operation reaching a preset duration, displaying the first control.
15 . The method of claim 1 , wherein the displaying the media content and the first control corresponding to the media content on the media content display page includes:
displaying the media content and a second control corresponding to the media content in the media content display page;
switching, in response to a triggering operation for the second control, the second control to the first control.
16 . An electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to cause the at least one processor to perform:
displaying a media content and a first control corresponding to the media content on a media content display page, wherein the first control is configured to indicate a display progress of the media content;
moving, in response to a first sliding operation for the first control, at least one element along a first direction, wherein a sliding direction of the first sliding operation indicates a display progress direction of the media content, and the first direction is opposite to the display progress direction, and the at least one element includes at least one thumbnail corresponding to the media content; and
scaling, in response to a second sliding operation in a single direction for the first control, an object, the object including an image of the media content that is currently displayed within the media content display page, wherein the first control includes the at least one element;
wherein the moving the at least one element along the first direction includes:
determining a moving speed of the at least one element according to a sliding speed of the first sliding operation; and
moving the at least one element along the first direction, which is opposite to the sliding direction of the first sliding operation, at the moving speed.
17 . A non-transitory computer-readable storage medium storing a computer instruction, and the computer instruction, when executed by a processor, causes the processor to perform:
displaying a media content and a first control corresponding to the media content on a media content display page, wherein the first control is configured to indicate a display progress of the media content;
moving, in response to a first sliding operation for the first control, at least one element along a first direction, wherein a sliding direction of the first sliding operation indicates a display progress direction of the media content, and the first direction is opposite to the display progress direction, and the at least one element includes at least one thumbnail corresponding to the media content; and
scaling, in response to a second sliding operation in a single direction for the first control, an object, the object including an image of the media content that is currently displayed within the media content display page, wherein the first control includes the at least one element;
wherein the moving the at least one element along the first direction includes:
determining a moving speed of the at least one element according to a sliding speed of the first sliding operation; and
moving the at least one element along the first direction, which is opposite to the sliding direction of the first sliding operation, at the moving speed.