Progress bar slider control method, device, electronic device and readable storage medium
By detecting a control event in the first detection area of the progress bar slider, expanding the detection area and performing event detection in its outer area, the problem of poor user experience caused by too narrow a detection area in the existing technology is solved, and a higher level of performance is achieved. operational accuracy and lower data processing.
Patent Information
- Application Number
- CN202110853473.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-07-27
AI Technical Summary
In the existing technology, the detection area of the progress bar is too narrow, making it difficult for the user to form a continuous and effective touch in this area, thereby reducing the operation accuracy and user experience.
After detecting the control event of the progress bar slider in the first detection area, the detection area is expanded, and the control event of the progress bar slider is simultaneously detected in the second detection area outside the area, so that even if the user's touch point exceeds the first The detection area can also be effectively detected, thus increasing the feasibility of continuous touch.
It effectively expands the scope of the detection area, improves the user's operational accuracy and experience, avoids misdetection of non-control events in the expanded detection area, and reduces the amount of data processing.
Smart Images

Figure CN113568554B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of multimedia technology, and in particular to the field of multimedia playback control technology. Background Art
[0002] In the prior art, the detection area of the control progress bar is a relatively narrow area. The user can only form an effective touch if the touch point of the finger is within this very narrow area, so it is difficult to form a continuous effective touch, and thus the operation accuracy of the control progress bar is low, and the user experience is poor. Figure 1 The video playback control bar shown is located below the video player. The detection area of the control progress bar (i.e., the progress bar display area) is a relatively narrow area. The touch point of the user's finger can only form an effective touch in the progress bar display area, and the user experience of controlling video playback is poor. Summary of the invention
[0003] The present disclosure provides a progress bar slider control method, device, electronic device and readable storage medium.
[0004] According to a first aspect of the present disclosure, a progress bar slider control method is provided, comprising:
[0005] In response to the first detection area detecting a first control event of the progress bar slider, a second detection area outside the first detection area simultaneously detects a second control event of the progress bar slider;
[0006] Based on the first control event and the second control event, a display position of a slider on the progress bar is controlled.
[0007] According to a second aspect of the present disclosure, a progress bar slider control device is provided, comprising:
[0008] A detection module, configured to simultaneously detect a second control event of the progress bar slider in a second detection area outside the first detection area in response to the first control event of the progress bar slider being detected in the first detection area;
[0009] The first control module is used to control the display position of the slider on the progress bar based on the first control event and the second control event.
[0010] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising:
[0011] at least one processor; and
[0012] A memory in communication with the at least one processor; wherein,
[0013] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method.
[0014] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the above method.
[0015] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the above method when executed by a processor.
[0016] The beneficial effects of the technical solution provided by the present disclosure are:
[0017] The solution provided by the embodiment of the present disclosure is compared with the prior art that the detection area for controlling the display of the progress bar is a narrow area, and it is difficult for the user to continuously form an effective touch in the narrow area, resulting in a poor user experience. The present disclosure detects the first control event of the progress bar slider in response to the first detection area detecting the first control event of the progress bar slider, and simultaneously detects the second control event of the progress bar slider in the second detection area outside the first detection area; based on the first control event and the second control event, the display position of the slider on the progress bar is controlled. That is, 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 also detected in the second detection area outside the first detection area, thereby expanding the range of the detection area, even if the user's touch point exceeds the first detection area to the second detection area, it can be effectively detected, thereby forming a continuous and effective touch; in addition, only after the control event is detected in the first detection area, the detection area is expanded (that is, the control event detection is synchronously performed in the second detection area), so that it can avoid directly detecting non-control events in the expanded detection area in an expanded detection area, resulting in an increase in data processing volume.
[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0020] Figure 1 It is an example diagram of the progress bar slider control in the prior art;
[0021] Figure 2 It is a schematic diagram of the process flow of the progress bar slider control method provided by the present disclosure;
[0022] Figure 3 is an example diagram of a progress bar slider control method provided by the present disclosure;
[0023] Figure 4 This is another flowchart of a progress bar slider control method provided by the present disclosure.
[0024] Figure 5 A schematic diagram of the structure of a progress bar slider control device provided by the present disclosure;
[0025] Figure 6 Another structural schematic diagram of the progress bar slider control device provided by the present disclosure;
[0026] Figure 7 is a block diagram of an electronic device for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0028] Embodiment 1
[0029] Figure 1 A search progress bar slider control method provided by an embodiment of the present disclosure is shown. Figure 1 As shown, the method includes:
[0030] Step S201, in response to a first detection area detecting a first control event of the progress bar slider, a second detection area outside the first detection area simultaneously detects a second control event of the progress bar slider;
[0031] Step S202: Control the display position of the slider on the progress bar based on the first control event and the second control event.
[0032] The progress bar is a real-time, graphic display of the processing speed, degree of completion, remaining unfinished tasks, and possible processing time of a task when a terminal device such as a computer or mobile phone is processing a task. It is usually displayed in the form of a rectangular bar. Figure 1 As shown, as in a video player 1, the multimedia playback control progress bar is usually a very narrow area. The prior art requires the user to form an effective touch point 6 in the progress bar display area with a finger 5 in the very narrow area where the multimedia progress bar is located (i.e., the progress bar display area 3) in order to control the display position of the progress bar slider (i.e., the progress indicator 4) in the progress bar.
[0033] Specifically, when a first control event of the progress bar slider is detected in the first detection area, the detection area of the control event of the progress bar slider is expanded to synchronously detect the control event of the progress bar slider in the second detection area, and then the progress bar slider is collaboratively controlled based on the control event detected in the first detection area and the control event in the second detection area (i.e. Figure 1 and Figure 3 The display of the corresponding progress indicator) is to adjust the progress bar slider from the current position to the position determined based on the first control event and the second control event for display, wherein the progress bar slider can be a square block or a circular block, or other methods that can realize the progress indication function of the present application.
[0034] Specifically, the first detection area and the second detection area can be implemented by using the grandparent and grandchild nodes with a hierarchical containment relationship. Because they are grandparent and grandchild nodes with a hierarchical containment relationship, a bubbling mechanism that can only be implemented by a containment relationship is also utilized. Specifically, unprocessed events on the descendant nodes can be automatically bubbled to the grandparent element, captured and processed by the grandparent element, so that events that are not processed by the first detection area can be processed by the second detection area.
[0035] The solution provided by the embodiment of the present disclosure is compared with the prior art that the detection area for controlling the display of the progress bar is a narrow area, and it is difficult for the user to continuously form an effective touch in the narrow area, resulting in a poor user experience. The present disclosure detects the first control event of the progress bar slider in response to the first detection area detecting the first control event of the progress bar slider, and simultaneously detects the second control event of the progress bar slider in the second detection area outside the first detection area; based on the first control event and the second control event, the display position of the slider on the progress bar is controlled. That is, 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 also detected in the second detection area outside the first detection area, thereby expanding the range of the detection area, even if the user's touch point exceeds the first detection area to the second detection area, it can be effectively detected, thereby forming a continuous and effective touch; in addition, only after the control event is detected in the first detection area, the detection area is expanded (that is, the control event detection is synchronously performed in the second detection area), so that it can avoid directly detecting non-control events in the expanded detection area in an expanded detection area, resulting in an increase in data processing volume.
[0036] The embodiment of the present application provides a possible implementation method, wherein the second detection area may be an area adjacent to the first detection area or an area not adjacent to the first detection area.
[0037] When the second detection area is an area adjacent to the first detection area, the adjacent area may be an area above and / or below the area where the progress bar is located, so that when the user slides up or down from the first detection area to an area within a certain range, it can also be effectively detected. This solves the problem in the prior art that when the user's operation exceeds the first detection area, an effective progress bar control event cannot be formed.
[0038] For example, Figure 3 As shown, Figure 3 In the captureable touch area, i.e., the second detection area, when the user's touch operation (i.e., finger touch point 6) exceeds the first detection area (i.e., the progress bar display area 3), according to the prior art, it is impossible to detect control events beyond the first detection area, and only control events occurring in the narrower area of the progress bar display area can be detected. However, based on the embodiment of the present application, it can be detected; in addition, since the detection is performed in the expanded second detection area (i.e., the captureable touch area 2) only after the control event is detected in the first detection area, the problem of false detection can be avoided, i.e., if the first detection area does not detect the control event, even if the corresponding touch or click operation is detected in the second detection area, it will not be regarded as a valid progress bar control event.
[0039] The present disclosure provides a possible implementation method, such as Figure 4 As shown, in response to the first detection area detecting a first control event of the progress bar slider, the second detection area outside the first detection area simultaneously detects a second control event of the progress bar slider, including:
[0040] Step S401, determining the type of the first control event, which includes a touch screen sliding operation and a touch screen clicking operation;
[0041] Step S402: Based on the type of the first control event, determine whether to detect the progress bar slider control event in a second detection area outside the first detection area.
[0042] Specifically, the first control event can be a touch screen sliding operation or a touch screen clicking operation. Based on the type of control event occurring in the first detection area, it can be determined whether to expand the detection area, and control event detection can be performed in a second detection area outside the first detection area, thereby avoiding blindly expanding the detection area and avoiding detection when the operation in the second detection area is a non-control operation, thereby increasing unnecessary data processing.
[0043] The present disclosure provides a possible implementation method, wherein, based on the type of the first control event, determining whether to detect a progress bar slider control event in a second detection area outside the first detection area includes:
[0044] If the first control event is a touch-screen sliding operation, a progress bar slider control event is detected in a second detection area outside the first detection area.
[0045] Specifically, if the first control event is a touch sliding operation on the touch screen, the user's sliding operation is likely to exceed the first detection area. Under this condition, the detection area is expanded, and even if the user's sliding operation exceeds the first monitoring area, it can be detected, so that the user can form a continuous and effective touch. There will be no problem that the user's sliding operation is still continuing due to detection only in the first detection area, but due to exceeding the detection range, the user's continuous sliding operation cannot form a continuous and effective control event, thereby improving the user experience.
[0046] The present disclosure provides a possible implementation method, wherein, based on the type of the first control event, determining whether to detect a progress bar slider control event in a second detection area outside the first detection area includes:
[0047] If the first control event is a touch screen click operation, the progress bar slider control event is not detected in a second detection area outside the first detection area, and the display position of the slider on the progress bar is controlled based on the first control event.
[0048] Specifically, if the first control event is a touch screen click operation, there is no problem of the user's operation exceeding the first detection area. In this case, the detection area will not be expanded, thereby avoiding blindly expanding the detection area and avoiding detection when the operation in the second detection area is a non-control operation, thereby increasing unnecessary data processing.
[0049] The present disclosure provides a possible implementation method, wherein the method further includes:
[0050] When the first detection area detects a first control event of the progress bar slider, a progress bar is displayed in the first detection area.
[0051] Specifically, when the multimedia is playing normally, the progress bar is not displayed to avoid affecting the user's viewing experience. Only when the first detection area detects the first control event of the progress bar slider, a progress bar is displayed in the first detection area.
[0052] The present disclosure provides a possible implementation method, wherein, based on the first control event and the second control event, controlling the display position of the slider on the progress bar includes:
[0053] Determine a touch point position change of a touch screen sliding operation based on the first control event and the second control event;
[0054] Based on the change of the touch point position of the touch screen operation, the display of the progress bar slider is controlled in real time.
[0055] Specifically, the touch point position change of the touch screen sliding operation can be determined by monitoring the first control event and the second control event through the predetermined touch screen control, and the display of the progress bar slider can be controlled in real time based on the touch point position change of the touch screen operation. Specifically, the display of the progress bar slider can be controlled based on the vertical and horizontal distance 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. Thus, the display problem of the progress bar slider is solved.
[0056] The present disclosure provides a possible implementation method, wherein the method further includes at least one of the following:
[0057] Jump the target video to the video position corresponding to the current progress bar slider position for playback;
[0058] Adjust the volume to the volume level corresponding to the current progress bar slider position;
[0059] Reduce or enlarge the image to the image size corresponding to the current progress bar slider position;
[0060] Jump the e-book to the page position corresponding to the current progress bar slider position;
[0061] Jump the lyrics to the page position corresponding to the current progress bar slider position.
[0062] As an application scenario of an embodiment of the present application, it can be based on the control method of the above-mentioned progress bar slider, and correspondingly control the playback of videos, adjustment of volume, zooming of pictures, browsing of e-books, jumping of lyrics, etc. The control method based on the above-mentioned progress bar slider can improve the user experience of users in related application scenarios and avoid the problem that detection can only be performed in a very narrow area and continuous and effective control events cannot be formed for the user's continuous touch operations.
[0063] Embodiment 2
[0064] The present disclosure provides a progress bar slider control device, such as Figure 5 As shown, the device comprises:
[0065] A detection module 501 is configured to detect a first control event of the progress bar slider in a first detection area, and simultaneously detect a second control event of the progress bar slider in a second detection area outside the first detection area;
[0066] The first control module 502 is used to control the display position of the slider on the progress bar based on the first control event and the second control event.
[0067] For the embodiment of the present application, compared with the prior art that the detection area for controlling the display of the progress bar is a narrow area, it is difficult for the user to continuously form an effective touch in the narrow area, and the user experience is poor. The present disclosure detects the first control event of the progress bar slider in response to the first detection area detecting the first control event of the progress bar slider, and simultaneously detects the second control event of the progress bar slider in the second detection area outside the first detection area; based on the first control event and the second control event, the display of the slider on the progress bar is controlled. That is, 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 also detected in the second detection area outside the first detection area, thereby expanding the range of the detection area, even if the user's touch point exceeds the first detection area to the second detection area, it can be effectively detected, and then a continuous and effective touch is formed; in addition, only after the control event is detected in the first detection area, the detection area is expanded (that is, the control event detection is synchronously performed in the second detection area), so that it can avoid directly detecting non-control events in the expanded detection area in an expanded detection area, resulting in an increase in data processing.
[0068] The embodiment of the present application provides a possible implementation method, wherein the second detection area is an area adjacent to the first detection area.
[0069] The present application embodiment provides another possible implementation method, such as Figure 6 As shown, the device comprises:
[0070] A detection module 601 is configured to detect a first control event of the progress bar slider in a first detection area, and simultaneously detect a second control event of the progress bar slider in a second detection area outside the first detection area;
[0071] The first control module 602 is used to control the display position of the slider on the progress bar based on the first control event and the second control event.
[0072] Wherein, the detection module 601 includes:
[0073] A first determining unit 6011 is used to determine the type of the first control event, where the type includes a touch screen sliding operation and a touch screen clicking operation;
[0074] The second determining unit 6012 is used to determine whether to detect the progress bar slider control event in a second detection area outside the first detection area based on the type of the first control event.
[0075] An embodiment of the present application provides a possible implementation method, wherein, based on the type of the first control event, the second determination unit 6012 is specifically used to detect 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 sliding operation.
[0076] An embodiment of the present application provides a possible implementation method, wherein the second determination unit 6012 is specifically used to detect the progress bar slider control event in a second detection area not outside the first detection area if the first control event is a touch screen click operation, and control the display position of the slider on the progress bar based on the first control event.
[0077] The present application embodiment provides a possible implementation method, wherein the device further includes:
[0078] 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.
[0079] This embodiment of the present application provides a possible implementation method, in which the first control module 602 includes:
[0080] A third determining unit 6021 is used to determine a touch point position change of a touch screen sliding operation based on the first control event and the second control event;
[0081] The control unit 6022 is used to control the display of the progress bar slider in real time based on the change of the touch point position of the touch screen operation.
[0082] The embodiment of the present application provides a possible implementation method, wherein the device further includes a second control module 604;
[0083] The second control module 604 is used for at least one of the following: jumping the target video to the video position corresponding to the current progress bar slider position for playback; adjusting the volume to the volume level corresponding to the current progress bar slider position; reducing or enlarging the image to the image size corresponding to the current progress bar slider position; jumping the e-book to the page position corresponding to the current progress bar slider position; jumping the lyrics to the page position corresponding to the current progress bar slider position.
[0084] For the embodiments of the present application, the beneficial effects achieved are the same as those of the above-mentioned method embodiments and will not be repeated here.
[0085] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0086] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0087] The electronic device includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method provided in the embodiment of the present disclosure.
[0088] Compared with the prior art, the detection area of the electronic device for controlling the display of the progress bar is a narrow area, and it is difficult for the user to continuously form an effective touch in the narrow area, resulting in a poor user experience. The present disclosure detects the first control event of the progress bar slider in response to the first detection area, and simultaneously detects the second control event of the progress bar slider in the second detection area outside the first detection area; based on the first control event and the second control event, the display position of the slider on the progress bar is controlled. That is, 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 also detected in the second detection area outside the first detection area, thereby expanding the range of the detection area, even if the user's touch point exceeds the first detection area to the second detection area, it can be effectively detected, thereby forming a continuous and effective touch; in addition, only after the control event is detected in the first detection area, the detection area is expanded (that is, the control event detection is synchronously performed in the second detection area), so that it can avoid directly detecting in an expanded detection area and detecting non-control events in the expanded detection area, resulting in an increase in data processing volume.
[0089] The readable storage medium is a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute the method provided by the embodiment of the present disclosure.
[0090] Compared with the detection area of the prior art control progress bar display, the readable storage medium is a narrow area, and it is difficult for the user to continuously form an effective touch in the narrow area, which leads to a poor user experience. The present disclosure detects the first control event of the progress bar slider in response to the first detection area, and simultaneously detects the second control event of the progress bar slider in the second detection area outside the first detection area; based on the first control event and the second control event, the display position of the slider on the progress bar is controlled. That is, 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 also detected in the second detection area outside the first detection area, thereby expanding the range of the detection area, even if the user's touch point exceeds the first detection area to the second detection area, it can be effectively detected, thereby forming a continuous and effective touch; in addition, only after the control event is detected in the first detection area, the detection area is expanded (that is, the control event detection is synchronously performed in the second detection area), so that it can avoid directly detecting non-control events in the expanded detection area in an expanded detection area, resulting in an increase in data processing.
[0091] The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the method as shown in the first aspect of the present disclosure.
[0092] Compared with the prior art, the detection area of the computer program product for controlling the display of the progress bar is a narrow area, and it is difficult for the user to continuously form an effective touch in the narrow area, resulting in a poor user experience. The present disclosure detects the first control event of the progress bar slider in response to the first detection area detecting the first control event of the progress bar slider, and simultaneously detects the second control event of the progress bar slider in the second detection area outside the first detection area; based on the first control event and the second control event, the display position of the slider on the progress bar is controlled. That is, 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 also detected in the second detection area outside the first detection area, thereby expanding the range of the detection area, even if the user's touch point exceeds the first detection area to the second detection area, it can be effectively detected, thereby forming a continuous and effective touch; in addition, only after the control event is detected in the first detection area, the detection area is expanded (that is, the control event detection is synchronously performed in the second detection area), so that it can avoid directly detecting non-control events in the expanded detection area in an expanded detection area, resulting in an increase in data processing volume.
[0093] Figure 7A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can 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 merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0094] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate 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 via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0095] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0096] The computing unit 701 may be a variety of general and / or special 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 dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various 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, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into 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 to execute the method progress bar slider control method in any other appropriate manner (e.g., by means of firmware).
[0097] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0098] The program code for implementing the method 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, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0099] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0100] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 can be received in any form (including acoustic input, voice input, or tactile input).
[0101] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0102] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0103] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0104] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A progress bar slider control method, comprising: In response to the first detection area detecting the first control event of the progress bar slider, the detection area for the control event of the progress bar slider is expanded to the second detection area, and the second detection area outside the first detection area simultaneously detects the second control event of the progress bar slider; Based on the first control event and the second control event, collaboratively controlling a display position of a slider on the progress bar; The second detection area is an area adjacent to the first detection area, and there is no gap between the first detection area and the second detection area and they are connected; The method of collaboratively controlling the display position of the slider on the progress bar based on the first control event and the second control event includes: Determine a touch point position change of a touch screen sliding operation based on the first control event and the second control event; Based on the change of the position of the touch point operated by the touch screen, the display of the progress bar slider is controlled in real time; The step of controlling the display of the progress bar slider in real time based on the change in the position of the touch point operated on the touch screen includes: The display of the progress bar slider is controlled based on the vertical and / or horizontal distance between the touch start point and the current point, or the display of the progress bar slider is controlled based on the linear distance between the touch start point and the current point.
2. The method according to claim 1, wherein: In response to the first detection area detecting a first control event of the progress bar slider, the second detection area outside the first detection area simultaneously detecting a second control event of the progress bar slider comprises: Determine the type of the first control event, where the type includes a touch screen sliding operation and a touch screen clicking operation; Based on the type of the first control event, it is determined whether to detect the progress bar slider control event in a second detection area outside the first detection area.
3. The method according to claim 2, wherein: The determining, based on the type of the first control event, whether to detect the progress bar slider control event in a second detection area outside the first detection area includes: If the first control event is a touch-screen sliding operation, a progress bar slider control event is detected in a second detection area outside the first detection area.
4. The method according to claim 2, wherein: The determining, based on the type of the first control event, whether to detect the progress bar slider control event in a second detection area outside the first detection area includes: If the first control event is a touch screen click operation, the progress bar slider control event is not detected in the second detection area outside the first detection area, and the display position of the slider on the progress bar is controlled based on the first control event.
5. The method according to claim 1, wherein: The method further includes: When the first detection area detects a first control event of the progress bar slider, a progress bar is displayed in the first detection area.
6. The method according to any one of claims 1 to 5, wherein: The method further comprises at least one of the following: Jump the target video to the video position corresponding to the current progress bar slider position for playback; Adjust the volume to the volume level corresponding to the current progress bar slider position; Reduce or enlarge the image to the image size corresponding to the current progress bar slider position; Jump the e-book to the page position corresponding to the current progress bar slider position; Jump the lyrics to the page position corresponding to the current progress bar slider position.
7. A progress bar slider control device, comprising: A detection module, configured to, in response to a first detection area detecting a first control event of the progress bar slider, expand a detection area for the control event of the progress bar slider to a second detection area, and simultaneously detect a second control event of the progress bar slider in the second detection area outside the first detection area; A first control module, configured to collaboratively control a display position of a slider on a progress bar based on the first control event and the second control event; The second detection area is an area adjacent to the first detection area, and there is no gap between the first detection area and the second detection area and they are connected; The first control module comprises: a third determining unit, configured to determine a change in a touch point position of a touch screen sliding operation based on the first control event and the second control event; A control unit, configured to control the display of the progress bar slider in real time based on the change in the position of the touch point operated by the touch screen; Among them, the control unit is specifically used to: control the display of the progress bar slider based on the vertical and / or horizontal distance between the touch start position point and the current position point, or control the display of the progress bar slider based on the straight-line distance between the start position point and the current position point.
8. The device according to claim 7, wherein: The detection module comprises: A first determining unit, configured to determine a type of the first control event, wherein the type includes a touch screen sliding operation and a touch screen clicking operation; A second determination unit is configured to determine, based on the type of the first control event, whether to detect a progress bar slider control event in a second detection area outside the first detection area.
9. The device according to claim 8, wherein: The second determination unit based on the type of the first control event is specifically configured to detect 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 sliding operation.
10. The device according to claim 8, wherein: The second determination unit is specifically used to detect the progress bar slider control event in the second detection area outside the first detection area if the first control event is a touch screen click operation, and control the display position of the slider on the progress bar based on the first control event.
11. The device according to claim 7, wherein: The device also includes: The display module 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.
12. The device according to any one of claims 7 to 11, wherein: The device also includes a second control module; The second control module is used for at least one of the following: jumping the target video to the video position corresponding to the current progress bar slider position for playback; adjusting the volume to the volume level corresponding to the current progress bar slider position; reducing or enlarging the image to the image size corresponding to the current progress bar slider position; jumping the e-book to the page position corresponding to the current progress bar slider position; jumping the lyrics to the page position corresponding to the current progress bar slider position.
13. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and device for multimedia playing
CN103646655A
