CN113568554A - Progress bar sliding block control method and device, electronic equipment and readable storage medium - Google Patents

Progress bar sliding block control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113568554A
CN113568554A CN202110853473.6A CN202110853473A CN113568554A CN 113568554 A CN113568554 A CN 113568554A CN 202110853473 A CN202110853473 A CN 202110853473A CN 113568554 A CN113568554 A CN 113568554A
Authority
CN
China
Prior art keywords
progress bar
control event
detection area
detection
slider
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110853473.6A
Other languages
Chinese (zh)
Inventor
文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110853473.6A priority Critical patent/CN113568554A/en
Publication of CN113568554A publication Critical patent/CN113568554A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • G06F3/04855Interaction with scrollbars

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a progress bar sliding block control method and device, electronic equipment and a readable storage medium, and relates to the technical field of multimedia, in particular to the technical field of multimedia playing control. The specific implementation scheme is as follows: after the progress bar slider control event is detected in the first detection area, the progress bar slider control detection area is expanded, and the progress bar slider control event is synchronously detected in a second detection area outside the first detection area, so that the range of the detection area is expanded, and even if a touch point of a user exceeds the first detection area to the second detection area, the touch point can be effectively detected, and continuous and effective touch is formed; in addition, the expansion processing of the detection area is performed only after the control event is detected in the first detection area (that is, the control event detection is performed in the second detection area synchronously), so that the situation that the detection is performed directly in one expanded detection area to detect the non-control event in the expanded detection area and the data processing amount is increased can be avoided.

Description

Progress bar sliding block control method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the multimedia technology field, and in particular, to the multimedia playing control technology field.
Background
In the prior art, the detection area of the control progress bar is a narrow area, and an effective touch can be formed only when the touch point of a finger of a user is in the narrow area range, so that the continuous effective touch is difficult to form, the operation accuracy of the control progress bar is low, and the user experience is poor. As shown in fig. 1, the video playing control bar is located below the video player, a detection area (i.e., a progress bar display area) for controlling the progress bar is a relatively narrow area, a touch point of a finger of a user can only form an effective touch in the progress bar display area, and user experience for controlling video playing is poor.
Disclosure of Invention
The disclosure provides a progress bar sliding block control method and device, electronic equipment and a readable storage medium.
According to a first aspect of the present disclosure, there is provided a progress bar slider control method including:
in response to detecting a first control event of the progress bar slider in the first detection region, simultaneously detecting a second control event of the progress bar slider in a second detection region outside the first detection region;
and controlling the display position of the slider on the progress bar based on the first control event and the second control event.
According to a second aspect of the present disclosure, there is provided a progress bar slider control device including:
the detection module is used for responding to a first control event of the progress bar slider detected by the first detection area and simultaneously detecting a second control event of the progress bar slider in a second detection area outside the first detection area;
and the first control module is used for controlling the display position of the sliding block on the progress bar based on the first control event and the second control event.
According to a third aspect of the present disclosure, there is provided an electronic apparatus comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the above method.
According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the above-described method.
The technical scheme provided by the disclosure has the following beneficial effects:
according to the scheme provided by the embodiment of the disclosure, the detection area for controlling the progress bar display is a narrow area, so that a user is difficult to continuously form effective touch in the narrow area, and the user experience is poor. The present disclosure simultaneously detects a second control event of the progress bar slider in a second detection region outside the first detection region by detecting the first control event of the progress bar slider in response to the first detection region; and controlling the display position of the slider on the progress bar based on the first control event and the second control event. The method comprises the steps that after a progress bar slider control event is detected in a first detection area, the progress bar slider control detection area is expanded, and the progress bar slider control event is synchronously detected in a second detection area outside the first detection area, so that the range of the detection area is expanded, even if a touch point of a user exceeds the first detection area to the second detection area, the touch point can be effectively detected, and continuous and effective touch is formed; in addition, the expansion processing of the detection area is performed only after the control event is detected in the first detection area (that is, the control event detection is performed in the second detection area synchronously), so that the situation that the detection is performed directly in one expanded detection area to detect the non-control event in the expanded detection area and the data processing amount is increased can be avoided.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a prior art example diagram of a progress bar slider control;
FIG. 2 is a schematic flow diagram of a progress bar slider control method provided in accordance with the present disclosure;
FIG. 3 is an exemplary diagram of a progress bar slider control method provided in accordance with the present disclosure;
FIG. 4 is a flow chart of another progress bar slider control method provided according to the present disclosure
FIG. 5 is a schematic structural diagram of a progress bar slider control apparatus provided by the present disclosure;
FIG. 6 is a schematic view of another structure of the progressive bar slider control apparatus provided by the present disclosure;
FIG. 7 is a block diagram of an electronic device used to implement an embodiment of the disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Example one
Fig. 1 illustrates a search progress bar slider control method provided by an embodiment of the present disclosure, and as shown in fig. 1, the method includes:
step S201, responding to a first control event of the progress bar sliding block detected in a first detection area, and simultaneously detecting a second control event of the progress bar sliding block in a second detection area outside the first detection area;
step S202, based on the first control event and the second control event, the display position of the sliding block on the progress bar is controlled.
The progress bar is used for displaying the speed, the completion degree, the size of the residual unfinished task amount, the processing time possibly required and the like of the processing task in a picture form in real time when the terminal equipment such as a computer or a mobile phone and the like processes the task, and is generally displayed in a rectangular bar shape. As shown in fig. 1, for example, in a video player 1, a multimedia playing control progress bar is generally a narrow area, and in the prior art, a user needs to form an effective touch point 6 in a narrow area (i.e., a progress bar display area 3) where the multimedia progress bar is located by a finger 5 to control a display position of a progress bar slider (i.e., a progress indicator 4) in the progress bar.
Specifically, when a first control event of the progress bar slider is detected in a first detection area, a detection area of the control event of the progress bar slider is expanded to be expanded to synchronously detect a progress bar slider control event in a second detection area, and then the display of the progress bar slider (i.e., a corresponding progress indicator in fig. 1 and 3) is cooperatively controlled based on the control event detected in the first detection area and the control event in the second detection area, that is, the progress bar slider is adjusted from a current position to a position cooperatively determined based on the first control event and the second control event to be displayed, wherein the progress bar slider may be a square block or a circular block, or may be another mode capable of implementing the progress indication function of the present application.
Specifically, the first detection area and the second detection area can be implemented by using ancestor grandchild nodes with a hierarchical inclusion relationship, because ancestor grandchild nodes with a hierarchical inclusion relationship are used, a bubbling mechanism that can only be implemented by using an inclusion relationship is also used, specifically: the unprocessed events on the descendant nodes can be automatically bubble to the grandparent element, captured and processed by the grandparent element, so that the fact that the events which are not processed by the first detection area can be processed by the second detection area can be realized.
According to the scheme provided by the embodiment of the disclosure, the detection area for controlling the progress bar display is a narrow area, so that a user is difficult to continuously form effective touch in the narrow area, and the user experience is poor. The present disclosure simultaneously detects a second control event of the progress bar slider in a second detection region outside the first detection region by detecting the first control event of the progress bar slider in response to the first detection region; and controlling the display position of the slider on the progress bar based on the first control event and the second control event. The method comprises the steps that after a progress bar slider control event is detected in a first detection area, the progress bar slider control detection area is expanded, and the progress bar slider control event is synchronously detected in a second detection area outside the first detection area, so that the range of the detection area is expanded, even if a touch point of a user exceeds the first detection area to the second detection area, the touch point can be effectively detected, and continuous and effective touch is formed; in addition, the expansion processing of the detection area is performed only after the control event is detected in the first detection area (that is, the control event detection is performed in the second detection area synchronously), so that the situation that the detection is performed directly in one expanded detection area to detect the non-control event in the expanded detection area and the data processing amount is increased can be avoided.
The embodiment of the present application provides a possible implementation manner, where the second detection region may be a region adjacent to the first detection region, or may be a region that is not adjacent to the first detection region.
When the second detection area is an area adjacent to the first detection area, the adjacent area can be an area above and/or below the area where the progress bar is located, so that the user can effectively detect the progress bar after sliding up or down to the area in a certain range from the first detection area. Therefore, the problem that an effective progress bar control event cannot be formed after the operation of a user exceeds the first detection area in the prior art is solved.
Illustratively, as shown in fig. 3, when the user's touch operation (i.e., the finger touch point 6) exceeds the first detection area (i.e., the progress bar display area 3), the capturable touch area in fig. 3, i.e., the second detection area, according to the prior art, the control event beyond the first detection area cannot be detected, and only the control event occurring in the narrow area of the progress bar display area can be detected. Based on the embodiment of the application, the detection can be carried out; in addition, since the control event is detected in the enlarged second detection area (i.e., the touch area 2 can be captured) after the control event is detected in the first detection area, the problem of false detection can be avoided, that is, if the control event is not detected in the first detection area, even if a corresponding operation such as touch or click is detected in the second detection area, the control event is not regarded as an effective progress bar control event.
The present disclosure provides a possible implementation manner, as shown in fig. 4, where, in response to a first control event of a progress bar slider being detected in a first detection region, a second control event of the progress bar slider is simultaneously detected in a second detection region outside the first detection region, including:
step S401, determining the type of a first control event, wherein the type comprises touch sliding operation of a touch screen and clicking operation of the touch screen;
step S402, based on the type of the first control event, determining whether the progress bar slider control event is detected in a second detection area outside the first detection area.
Specifically, the first control event may be a touch screen touch sliding operation or a touch screen clicking operation, and whether to perform detection region expansion processing may be determined based on a type of the control event occurring in the first detection region, and control event detection may be performed in a second detection region outside the first detection region, so as to avoid blind expansion of the detection region, and avoid detection also performed when the operation in the second detection region is a non-control operation, which increases an unnecessary data processing amount.
The embodiment of the present disclosure provides a possible implementation manner, where determining whether to perform detection of a progress bar slider control event in a second detection area outside a first detection area based on a type of a first control event includes:
and if the first control event is touch sliding operation of the touch screen, detecting the progress bar slider control event in a second detection area outside the first detection area.
Specifically, if the first control event is a touch screen touch sliding operation, the sliding operation of the user is likely to exceed the first detection area, so that under the condition, the detection area is expanded, even if the sliding operation of the user exceeds the first monitoring area, the sliding operation of the user can be detected, so that the user can form continuous effective touch, the problem that the continuous effective control event cannot be formed by the continuous sliding operation of the user due to the fact that the detection is only performed in the first detection area and the sliding operation of the user is continuous due to the fact that the detection range is exceeded is avoided, and the user experience is improved.
The embodiment of the present disclosure provides a possible implementation manner, where determining whether to perform detection of a progress bar slider control event in a second detection area outside a first detection area based on a type of a first control event includes:
and if the first control event is touch screen clicking operation, detecting the progress bar slider control event in a second detection area which is not outside the first detection area, and controlling the display position of a slider on the progress bar based on the first control event.
Specifically, if the first control event is a touch screen click operation, there is no problem that the operation of the user exceeds the first detection region, and in this case, the detection region is not expanded, so that the detection region can be prevented from being expanded blindly, and the detection can be prevented from being performed even when the operation of the second detection region is a non-control operation, thereby increasing the amount of unnecessary data processing.
The embodiment of the present disclosure provides a possible implementation manner, wherein the method further includes:
and when the first detection area detects a first control event of the progress bar slider, displaying a progress bar in the first detection area.
Specifically, when the multimedia is normally played, the progress bar is not displayed, so that the viewing experience of a user is prevented from being influenced, and only when a first control event of the progress bar slider is detected in the first detection area, the progress bar is displayed in the first detection area.
The embodiment of the present disclosure provides a possible implementation manner, where based on a first control event and a second control event, controlling a display position of a slider on a progress bar includes:
determining a touch point position change of the touch screen sliding operation based on the first control event and the second control event;
and controlling the display of the progress bar slider in real time based on the position change of the touch point operated by the touch screen.
Specifically, the position change of the touch point of the sliding operation of the touch screen can be determined by monitoring a first control event and a second control event through preset touch screen control, and the display of the progress bar slider is controlled in real time based on the position change of the touch point of the touch screen operation. Specifically, the display of the progress bar slider may be controlled based on the vertical and horizontal distances between the touch start position point and the current position point, or the linear distance between the start position point and the current position point. Thereby the demonstration problem of progress bar slider has been solved.
The disclosed embodiment provides a possible implementation manner, wherein the method further comprises at least one of the following steps:
skipping the target video to a video position corresponding to the slide block position of the current progress bar for playing;
adjusting the volume to the volume corresponding to the position of the slide block of the current progress bar;
the picture is reduced or enlarged to the size of the picture corresponding to the slide block position of the current progress bar;
jumping the electronic book to a page position corresponding to the position of the slide block of the current progress bar;
and jumping the lyrics to the page position corresponding to the slide block position of the current progress bar.
The application scenario of the embodiment of the application can be based on the control method of the progress bar slider, and accordingly playing of a video, adjustment of volume, zooming of pictures, browsing of an electronic book, skipping of lyrics and the like are controlled.
Example two
The disclosed embodiment provides a progress bar slider control device, as shown in fig. 5, the device includes:
the detection module 501 is configured to respond to a first control event of the progress bar slider detected in the first detection area, and detect a second control event of the progress bar slider in a second detection area outside the first detection area;
the first control module 502 is configured to control a display position of a slider on the progress bar based on the first control event and the second control event.
For the embodiment of the application, the detection area for controlling the progress bar display is a narrow area compared with the prior art, so that a user is difficult to continuously form effective touch in the narrow area, and the user experience is poor. The present disclosure simultaneously detects a second control event of the progress bar slider in a second detection region outside the first detection region by detecting the first control event of the progress bar slider in response to the first detection region; and controlling the display of the sliders on the progress bar based on the first control event and the second control event. The method comprises the steps that after a progress bar slider control event is detected in a first detection area, the progress bar slider control detection area is expanded, and the progress bar slider control event is synchronously detected in a second detection area outside the first detection area, so that the range of the detection area is expanded, even if a touch point of a user exceeds the first detection area to the second detection area, the touch point can be effectively detected, and continuous and effective touch is formed; in addition, the expansion processing of the detection area is performed only after the control event is detected in the first detection area (that is, the control event detection is performed in the second detection area synchronously), so that the situation that the detection is performed directly in one expanded detection area to detect the non-control event in the expanded detection area and the data processing amount is increased can be avoided.
The embodiment of the present application provides a possible implementation manner, wherein the second detection region is a region adjacent to the first detection region.
Another possible implementation manner is provided in the embodiment of the present application, and as shown in fig. 6, the apparatus includes:
the detection module 601 is configured to respond to a first control event of the progress bar slider detected in the first detection area, and detect a second control event of the progress bar slider simultaneously in a second detection area outside the first detection area;
the first control module 602 is configured to control a display position of a slider on the progress bar based on the first control event and the second control event.
Wherein, the detecting module 601 includes:
a first determining unit 6011, configured to determine a type of the first control event, where the type includes a touch screen touch sliding operation and a touch screen clicking operation;
a second determining unit 6012, configured to determine whether to perform detection of the progress bar slider control event in a second detection region outside the first detection region based on the type of the first control event.
The embodiment of the present application provides a possible implementation manner, where based on the type of the first control event, the second determining unit 6012 is specifically configured to detect the progress bar slider control event in a second detection area outside the first detection area if the first control event is a touch sliding operation of the touch screen.
The embodiment of the present application provides a possible implementation manner, where the second determining unit 6012 is specifically configured to, if the first control event is a touch screen click operation, detect a progress bar slider control event in a second detection area that is not outside the first detection area, and control a display position of a slider on the progress bar based on the first control event.
The embodiment of the present application provides a possible implementation manner, wherein the apparatus further includes:
the display module 603 is configured to display a progress bar in the first detection area when the first detection area detects a first control event of the progress bar slider.
The embodiment of the present application provides a possible implementation manner, and the first control module 602 includes:
a third determining unit 6021 configured to determine a touch point position change of the touch screen sliding operation based on the first control event and the second control event;
and the control unit 6022 is configured to control display of the progress bar slider in real time based on a change in a position of a touch point operated by the touch screen.
The embodiment of the present application provides a possible implementation manner, wherein the apparatus further includes a second control module 604;
a second control module 604 for at least one of: skipping the target video to a video position corresponding to the slide block position of the current progress bar for playing; adjusting the volume to the volume corresponding to the position of the slide block of the current progress bar; the picture is reduced or enlarged to the size of the picture corresponding to the slide block position of the current progress bar; jumping the electronic book to a page position corresponding to the position of the slide block of the current progress bar; and jumping the lyrics to the page position corresponding to the slide block position of the current progress bar.
For the embodiment of the present application, the beneficial effects achieved by the embodiment of the present application are the same as those of the embodiment of the method described above, and are not described herein again.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
The electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method as provided by the embodiments of the present disclosure.
The electronic equipment is a narrow area compared with a detection area for controlling the progress bar display in the prior art, and a user is difficult to continuously form effective touch in the narrow area, so that the user experience is poor. The present disclosure simultaneously detects a second control event of the progress bar slider in a second detection region outside the first detection region by detecting the first control event of the progress bar slider in response to the first detection region; and controlling the display position of the slider on the progress bar based on the first control event and the second control event. The method comprises the steps that after a progress bar slider control event is detected in a first detection area, the progress bar slider control detection area is expanded, and the progress bar slider control event is synchronously detected in a second detection area outside the first detection area, so that the range of the detection area is expanded, even if a touch point of a user exceeds the first detection area to the second detection area, the touch point can be effectively detected, and continuous and effective touch is formed; in addition, the expansion processing of the detection area is performed only after the control event is detected in the first detection area (that is, the control event detection is performed in the second detection area synchronously), so that the situation that the detection is performed directly in one expanded detection area to detect the non-control event in the expanded detection area and the data processing amount is increased can be avoided.
The readable storage medium is a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform a method as provided by an embodiment of the present disclosure.
The readable storage medium is a narrow area compared with the detection area of the prior art control progress bar display, and the user has difficulty in continuously forming effective touch in the narrow area, so that the user experience is poor. The present disclosure simultaneously detects a second control event of the progress bar slider in a second detection region outside the first detection region by detecting the first control event of the progress bar slider in response to the first detection region; and controlling the display position of the slider on the progress bar based on the first control event and the second control event. The method comprises the steps that after a progress bar slider control event is detected in a first detection area, the progress bar slider control detection area is expanded, and the progress bar slider control event is synchronously detected in a second detection area outside the first detection area, so that the range of the detection area is expanded, even if a touch point of a user exceeds the first detection area to the second detection area, the touch point can be effectively detected, and continuous and effective touch is formed; in addition, the expansion processing of the detection area is performed only after the control event is detected in the first detection area (that is, the control event detection is performed in the second detection area synchronously), so that the situation that the detection is performed directly in one expanded detection area to detect the non-control event in the expanded detection area and the data processing amount is increased can be avoided.
The computer program product comprising a computer program which, when executed by a processor, implements a method as shown in the first aspect of the disclosure.
Compared with the prior art, the detection area of the computer program product for controlling the progress bar display is a narrow area, so that the user is difficult to continuously form effective touch in the narrow area, and the user experience is poor. The present disclosure simultaneously detects a second control event of the progress bar slider in a second detection region outside the first detection region by detecting the first control event of the progress bar slider in response to the first detection region; and controlling the display position of the slider on the progress bar based on the first control event and the second control event. The method comprises the steps that after a progress bar slider control event is detected in a first detection area, the progress bar slider control detection area is expanded, and the progress bar slider control event is synchronously detected in a second detection area outside the first detection area, so that the range of the detection area is expanded, even if a touch point of a user exceeds the first detection area to the second detection area, the touch point can be effectively detected, and continuous and effective touch is formed; in addition, the expansion processing of the detection area is performed only after the control event is detected in the first detection area (that is, the control event detection is performed in the second detection area synchronously), so that the situation that the detection is performed directly in one expanded detection area to detect the non-control event in the expanded detection area and the data processing amount is increased can be avoided.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM)702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 701 executes the respective methods and processes described above, such as the method progress bar slider control method. For example, in some embodiments, the method progress bar slider control method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the method progress bar slider control method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured by any other suitable means (e.g., by means of firmware) to perform the method progress bar slider control method.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (19)

1. A progress bar slider control method comprises the following steps:
in response to detecting a first control event of the progress bar slider in the first detection region, simultaneously detecting a second control event of the progress bar slider in a second detection region outside the first detection region;
and controlling the display position of a sliding block on the progress bar based on the first control event and the second control event.
2. The method of claim 1, wherein the second detection region is a region contiguous with the first detection region.
3. The method of claim 1, wherein the simultaneously detecting a second control event of the progress bar slider in a second detection region outside the first detection region in response to the first detection region detecting the first control event of the progress bar slider comprises:
determining the type of the first control event, wherein the type comprises touch screen touch sliding operation and touch screen clicking operation;
and determining whether the detection of the progress bar sliding block control event is carried out in a second detection area outside the first detection area or not based on the type of the first control event.
4. The method of claim 3, wherein the determining whether to perform the detection of the progress bar slider control event in a second detection region outside the first detection region based on the type of the first control event comprises:
and if the first control event is touch sliding operation of the touch screen, detecting the progress bar slider control event in a second detection area outside the first detection area.
5. The method of claim 3, wherein the determining whether to perform the detection of the progress bar slider control event in a second detection region outside the first detection region based on the type of the first control event comprises:
and if the first control event is touch screen clicking operation, detecting the progress bar slider control event in a second detection area which is not outside the first detection area, and controlling the display position of a slider on the progress bar based on the first control event.
6. The method of claim 1, wherein the method further comprises:
and when the first detection area detects a first control event of the progress bar slider, displaying a progress bar in the first detection area.
7. The method of claim 4, wherein the controlling the display position of a slider on a progress bar based on the first control event and the second control event comprises:
determining a touch point position change of the touch screen sliding operation based on the first control event and the second control event;
and controlling the display of the progress bar slider in real time based on the position change of the touch point operated by the touch screen.
8. The method according to any one of claims 1-7, wherein the method further comprises at least one of:
skipping the target video to a video position corresponding to the slide block position of the current progress bar for playing;
adjusting the volume to the volume corresponding to the position of the slide block of the current progress bar;
the picture is reduced or enlarged to the size of the picture corresponding to the slide block position of the current progress bar;
jumping the electronic book to a page position corresponding to the position of the slide block of the current progress bar;
and jumping the lyrics to the page position corresponding to the slide block position of the current progress bar.
9. A progress bar slider control apparatus comprising:
the detection module is used for responding to a first control event of the progress bar slider detected by the first detection area and simultaneously detecting a second control event of the progress bar slider in a second detection area outside the first detection area;
and the first control module is used for controlling the display position of the sliding block on the progress bar based on the first control event and the second control event.
10. The apparatus of claim 9, wherein the second detection region is a region contiguous with the first detection region.
11. The apparatus of claim 9, wherein the detection module comprises:
the first determining unit is used for determining the type of the first control event, wherein the type comprises touch screen touch sliding operation and touch screen clicking operation;
and the second determination unit is used for determining whether the progress bar slider control event is detected in a second detection area outside the first detection area or not based on the type of the first control event.
12. The apparatus according to claim 11, wherein, based on the type of the first control event, the second determining unit is specifically configured to perform detection of a progress bar slider control event in a second detection area outside the first detection area if the first control event is a touch screen touch slide operation.
13. The apparatus according to claim 11, wherein the second determining unit is specifically configured to, if the first control event is a touch screen click operation, perform detection of a progress bar slider control event in a second detection area that is not outside the first detection area, and control a display position of a slider on the progress bar based on the first control event.
14. The apparatus of claim 9, wherein the apparatus further comprises:
and the display module is used for displaying a progress bar in the first detection area when the first detection area detects a first control event of the progress bar slider.
15. The apparatus of claim 12, wherein the first control module comprises:
a third determining unit, configured to determine a touch point position change of a touch screen sliding operation based on the first control event and the second control event;
and the control unit is used for controlling the display of the progress bar slider in real time based on the position change of the touch point operated by the touch screen.
16. The apparatus of any of claims 9-15, wherein the apparatus further comprises a second control module;
the second control module is configured to at least one of: skipping the target video to a video position corresponding to the slide block position of the current progress bar for playing; adjusting the volume to the volume corresponding to the position of the slide block of the current progress bar; the picture is reduced or enlarged to the size of the picture corresponding to the slide block position of the current progress bar; jumping the electronic book to a page position corresponding to the position of the slide block of the current progress bar; and jumping the lyrics to the page position corresponding to the slide block position of the current progress bar.
17. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
18. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-8.
19. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-8.
CN202110853473.6A 2021-07-27 2021-07-27 Progress bar sliding block control method and device, electronic equipment and readable storage medium Pending CN113568554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110853473.6A CN113568554A (en) 2021-07-27 2021-07-27 Progress bar sliding block control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110853473.6A CN113568554A (en) 2021-07-27 2021-07-27 Progress bar sliding block control method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113568554A true CN113568554A (en) 2021-10-29

Family

ID=78168154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110853473.6A Pending CN113568554A (en) 2021-07-27 2021-07-27 Progress bar sliding block control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113568554A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646655A (en) * 2013-12-30 2014-03-19 优视科技有限公司 Method and device for multimedia playing
CN104199611A (en) * 2014-08-29 2014-12-10 广东欧珀移动通信有限公司 Method and device for adjusting playing progress through mobile terminal
CN104575549A (en) * 2013-10-18 2015-04-29 上海斐讯数据通信技术有限公司 Method and device for positioning playing image

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104575549A (en) * 2013-10-18 2015-04-29 上海斐讯数据通信技术有限公司 Method and device for positioning playing image
CN103646655A (en) * 2013-12-30 2014-03-19 优视科技有限公司 Method and device for multimedia playing
CN104199611A (en) * 2014-08-29 2014-12-10 广东欧珀移动通信有限公司 Method and device for adjusting playing progress through mobile terminal

Similar Documents

Publication Publication Date Title
US9411499B2 (en) Jump to top/jump to bottom scroll widgets
CN110362225B (en) Touch screen sampling frequency control method and device, medium and electronic equipment
CN113359995B (en) Man-machine interaction method, device, equipment and storage medium
US9697184B2 (en) Adjusting layout size of hyperlink
CN112182813B (en) Power distribution network line path generation method, device, equipment and storage medium
CN112866809A (en) Video processing method and device, electronic equipment and readable storage medium
CN114115681A (en) Page generation method and device, electronic equipment and medium
CN108604142B (en) Touch screen device operation method and touch screen device
CN113268182A (en) Application icon management method and electronic equipment
CN113568554A (en) Progress bar sliding block control method and device, electronic equipment and readable storage medium
CN113873323A (en) Video playing method and device, electronic equipment and medium
CN113515210A (en) Display method, display device, electronic equipment and storage medium
CN111263084B (en) Video-based gesture jitter detection method, device, terminal and medium
CN110568989A (en) service processing method, service processing device, terminal and medium
CN111259694B (en) Gesture moving direction identification method, device, terminal and medium based on video
CN113407888B (en) Browser size adjusting method and device, storage medium and computer equipment
CN112650401B (en) Information carousel method, device, electronic equipment and storage medium
CN114546199B (en) Image processing method, device, electronic equipment and storage medium
CN113961132B (en) Interactive processing method and device, electronic equipment and storage medium
CN117908713A (en) Page pull-down refreshing method and device applied to mobile terminal and electronic equipment
CN117850635A (en) Processing method and device and electronic equipment
CN105320458A (en) Method and device for executing user operations on touch terminal
CN114546314A (en) Window display method and device, electronic equipment and storage medium
CN114329205A (en) Method and device for pushing information
CN116126245A (en) Data dynamic storage method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination