Video switching method, device, electronic device, and storage medium

By identifying the start position of touch operations on a video interface and applying a slide operation policy, the method and device address false touch events, improving user experience by accurately distinguishing between slide and click gestures in video streaming applications.

JP2025500055AActive Publication Date: 2025-01-07DOUYIN VISION CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2024538024
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-12-24
Filing Date
2022-12-13
Publication Date
2025-01-07
Estimated Expiration
2042-12-13

AI Technical Summary

Technical Problem

The issue of false touch events occurring during video switching due to non-standard slide gestures on mobile devices, leading to inaccurate user operation identification and a degraded browsing experience in video streaming applications.

Method used

A method and device that identify the start position of a touch operation on a video information display interface and determine if it is at a predetermined characteristic position, using a slide operation identification policy to differentiate between slide and click events, thereby reducing erroneous operations and improving user experience.

Benefits of technology

The solution effectively reduces the occurrence of erroneous operations by accurately identifying slide gestures, enhancing the accuracy of user intent recognition and improving the overall user experience in video switching scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2025500055000001_ABST
    Figure 2025500055000001_ABST
Patent Text Reader

Abstract

An embodiment of the present disclosure discloses a video switching method, device, electronic device, and storage medium, the method including the steps of: acquiring a touch operation event of a video information display interface, and determining whether a starting position of the touch operation event is at a predetermined feature position; if the starting position of the touch operation event is at the predetermined feature position, determining whether the touch operation event is a slide operation event based on a slide operation identification policy matching the predetermined feature position; and if it is determined that the touch operation event is a slide operation event, triggering a video switching command according to a slide parameter of the touch operation event to complete the video switching.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese patent application No. 202111597471.1 filed with the China Patent Office on December 24, 2021, the entire contents of which are incorporated herein by reference.

[0002] The present disclosure relates to the technical field of smart terminals, for example, to a video switching method, device, electronic device, and storage medium. [Background technology]

[0003] In the field of short videos, a continuously updated information stream is provided as the content required for users' browsing. The browsing interface of a video information stream usually has many operable elements, such as the "Like" button, the comment button, and the video description content. However, when users slide their mobile phone screens up and down to switch between videos, mis-touch events frequently occur in which users accidentally click on operable elements on the video, resulting in mis-touches and affecting the browsing experience of short videos. Summary of the Invention

[0004] The embodiments of the present disclosure provide a video switching method, device, electronic device, and storage medium, which can reduce the probability of occurrence of erroneous operation events due to non-standard sliding gestures, improve the accuracy of identifying a user's operation intention, and improve the user experience.

[0005] According to a first aspect, an embodiment of the present disclosure provides a video switching method, the method including:

[0006] receiving a touch operation event of a video information display interface, and determining whether a start position of the touch operation event is at a predetermined feature position;

[0007] determining whether the touch operation event is a slide operation event based on a slide operation identification policy that matches the predetermined feature position based on a determination result that the start position of the touch operation event is at a predetermined feature position;

[0008] and based on a determination result that the touch operation event is a slide operation event, triggering a video switching command according to a slide parameter of the touch operation event to complete video switching.

[0009] According to a first aspect, an embodiment of the present disclosure further provides a video switching device, the device comprising:

[0010] an operation position confirmation module configured to obtain a touch operation event of the video information display interface and determine whether a start position of the touch operation event is at a predetermined feature position;

[0011] a slide event determination module configured to determine whether the touch operation event is a slide operation event based on a determination result that the start position of the touch operation event is at a predetermined feature position and based on a slide operation identification policy that matches the predetermined feature position;

[0012] and an video switching module configured, based on a determination result that the touch operation event is a slide operation event, to trigger a video switching command according to a slide parameter of the touch operation event to complete the video switching.

[0013] According to a fourth aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0014] one or more processors;

[0015] and a storage device configured to store one or more programs;

[0016] When the one or more programs are executed by the one or more processors, the one or more processors implement the video switching method described in any one of the embodiments of the present disclosure.

[0017] According to a fourth aspect, an embodiment of the present disclosure further provides a storage medium including computer-executable instructions, which, when executed by a computer processor, are used to perform the video switching method described in any one of the embodiments of the present disclosure.

[0018] Throughout the drawings, the same or similar symbols refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale. [Brief description of the drawings]

[0019] [Figure 1] 1 is a flow diagram of a video switching method provided by an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a schematic diagram of an animated information interface slide gesture provided by one embodiment of the present disclosure. [Diagram 3] 1 is a schematic diagram of a touch operation start position provided by an embodiment of the present disclosure when the touch operation start position is at a predetermined feature position; [Figure 4] FIG. 2 is a schematic diagram of the movement of a video information display interface provided by one embodiment of the present disclosure. [Diagram 5] FIG. 2 is a schematic diagram of a button click event reaction policy provided by one embodiment of the present disclosure. [Figure 6] 4 is a flow chart of a video switching method provided by another embodiment of the present disclosure. [Figure 7] FIG. 13 is a schematic diagram of a touch operation start position provided by another embodiment of the present disclosure when the touch operation start position is at a predetermined feature position. [Figure 8] FIG. 2 is a structural schematic diagram of a video switching device provided by an embodiment of the present disclosure; [Figure 9]FIG. 2 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0020] It should be noted that steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel, and method embodiments may include additional steps and / or omit performing steps illustrated, and the scope of the present disclosure is not limited in this respect.

[0021] As used herein, the term "including" and variations thereof are open-ended, i.e., "including, but not limited to." The term "based on" means "based at least in part on." The term "in one embodiment" refers to "at least one embodiment," the term "another embodiment" refers to "at least one other embodiment," and the term "some embodiments" refers to "at least some embodiments." Relevant definitions of other terms are provided below in the description.

[0022] It should be noted that the concepts of "first", "second", etc. referred to in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of functions performed by these devices, modules or units.

[0023] As a precaution, those of skill in the art will understand that the modifications "a" and "multiple" referred to in this disclosure are intended to be illustrative and not limiting, and should be understood as "one or more" unless the context clearly indicates otherwise.

[0024] 1 is a flow chart of a video switching method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is suitable for video stream data switching scenarios, especially for video stream switching situations in short video playback platforms. The method can be performed by a video switching device, which can be implemented in the form of software and / or hardware, and can be configured in an electronic device such as a mobile terminal or a server device.

[0025] As shown in FIG. 1 , the method provided by this embodiment includes:

[0026] S110, receiving a touch operation event of a video information display interface, and determining whether the start position of the touch operation event is at a predetermined feature position.

[0027] The video information display interface can be any application client interface used for video playback. In the video information display interface, not only the video playback but also the switching of video information is completed by a slide operation. Particularly in the technical field of short videos, the video information display interface is also called a Feed stream browsing interface, and users can interact with the video information by clicking on the page, such as interaction buttons such as "Like", share, comment, favorite and icon, or information such as video description text. The video description text includes information such as the video introduction text and hashtags related to the video content.

[0028] Generally, a user can switch video information by sliding up and down, and sliding up switches to the video next to the current video, and sliding down switches to the video before the current video. The sliding direction and the sequence rule of video switching can have an inverse correspondence relationship or other correspondence relationship. For illustration, in this embodiment, the correspondence relationship is represented by sliding up switches to the video next to the current video, and sliding down switches to the video before the current video. The sliding gesture for video switching is shown in FIG. 2, which shows a specific example of a video information interface.

[0029] For example, in FIG. 2, the vertical arrow of the video information display interface represents a vertical slide, but the user's slide operation does not need to be completely vertical. As long as it is within a certain corresponding angle, the user's slide operation can be identified and an action command for the slide operation can be executed. Generally, when the view pager is used as a view page turning toolkit, the default angle corresponding to the slide operation during video switching is 45°, that is, sliding up from 0° to 45° can trigger the switching of the feed stream. In FIG. 2, the included angle between the dotted arrow and the solid arrow is the included angle between the slide operation at different angles and the vertical direction of the video information display interface.

[0030] In addition to displaying specific video content, the video information display interface further includes information such as the icon of the video content creator, interactive buttons such as "like", share, comment, favorite, and icons, or video description text. When a user directly or indirectly touches the video information display interface using other tools, a touch operation event of the video information display interface can be obtained. In the process of touching and sliding on the video information display, the user often touches information such as interactive buttons or video description text. In this case, the client needs to identify whether the user's actual operation intention is to switch video information by sliding or to click a button to perform the corresponding operation. In this case, there is a high possibility of erroneous touch operation.

[0031] For example, in this embodiment, when acquiring a touch operation event, considering the possibility of erroneous touching, firstly, it is determined whether the start position of the touch operation event is at a predetermined feature position, that is, the position of a predetermined interactive function button in the video information display interface and the position of the video information explanatory content. Each predetermined interactive function button is a view in a higher layer of the feed stream view, and all the video information explanatory content is on one view.

[0032] For example, when a touch event is acquired, a coordinate position of a touch point on a display interface of a client can be determined. The predetermined feature position is position information recorded when image information is initialized. The coordinate position information of the start position of the touch event is matched with the position information of the predetermined feature position, and it can be determined whether the start position of the touch operation event is the predetermined feature position based on the matching result.

[0033] S120, when the starting position of the touch operation event is at a predetermined feature position, it is determined whether the touch operation event is a slide operation event according to a slide operation identification policy matching the predetermined feature position.

[0034] If the start position of a touch event is at a feature position, it is necessary to consider whether the transmission of the touch event is processed by the feed stream view layer or by the view layer where the button or animated text description content is located. In this case, separate processing and analysis is required according to the type of a specific predetermined feature position, but the possibility of erroneous touches during slide operations can be reduced by expanding the corresponding angle of slide operations and / or taking other measures.

[0035] For example, it is described that the predetermined feature position where the start position of the touch operation event is located is the position of a predetermined interactive function button. In FIG. 3, the user performs a gesture touch operation on the video information display interface to generate a corresponding slide trajectory, but the start position of the slide trajectory falls within the range of the similar "Like" button. First, the vertical included angle between the movement trajectory and the video information display interface can be determined based on the coordinate position of the movement trajectory of the touch operation event. For example, a straight line can be determined based on the position coordinates of the first several touch points in the movement trajectory, and the vertical included angle between the straight line and the video information display interface is determined, or the tangent of the movement trajectory of the touch operation and the vertical included angle between the video information display interface. If it is determined that the obtained included angle is smaller than a predetermined included angle threshold, it is determined that the touch operation event is not a button click trigger event but a slide operation event. The predetermined included angle threshold is larger than the default slide angle threshold in a scenario using a predetermined view page turning toolkit, and may be a numerical value such as 50° or 60°. Assuming that 60° is used as the predetermined included angle threshold, the video slide operation can be triggered when the angle between the movement trajectory of the touch operation event and the vertical direction of the video information display interface is within 60°, that is, as the angle is enlarged, the touch operation event is more likely to be intercepted by the feed stream view layer, and the possibility of accidentally touching the button is reduced.

[0036] S130, if it is determined that the touch operation event is a slide operation event, trigger an animation switching command according to a slide parameter of the touch operation event to complete animation switching.

[0037] When it is determined that the touch operation event is a slide operation event, that is, when the feed stream view layer successfully intercepts the slide operation event, it can determine whether the slide operation event can trigger switching of the video stream. For example, it can be determined based on the moving distance and moving speed of the video information display interface caused by the slide gesture. For example, in the process of executing the slide operation event, if the moving distance of the video information display interface is greater than a first moving distance reference value (for example, 40% of the vertical distance of the terminal screen), or if the moving distance of the video information display interface is greater than a second moving distance reference value and the moving speed is greater than a predetermined speed reference value, a video switching command is triggered to complete the video switching. The moving distance reference value and the predetermined speed reference value can be set statistically based on experience values. As shown in FIG. 4, the currently displayed video stream interface moves up due to the operation of the slide gesture, and the next video stream interface (pattern fill interface) also moves up, and if the distance and / or speed of the upward movement meet a predetermined condition, a video switching operation can be performed.

[0038] For example, if the vertical included angle between the moving trajectory of the touch operation event and the video information display interface is greater than a predetermined included angle threshold, the feed stream view layer does not meet the condition for intercepting the slide operation event, and transmits the touch operation event to the view layer to which the predetermined interactive function button belongs, and then determines whether the touch operation event is a button click event based on the moving range of the touch operation event, and triggers the target interactive function button to perform the button click operation in response to determining that the touch operation event is a button click event. In the button touch schematic diagram shown in FIG. 5, the rectangular interface in A is a button (BUTTON), and the circle therein represents the starting position of the user's touch operation on the video information display interface. B shows the moving trajectory of the touch operation, which is held within the button, and the button click event can still be triggered when the finger is released. If the moving trajectory in C exceeds the range of the button (rectangle), the button click event will not be triggered even if the finger is released.

[0039] In the technical solution of the embodiment of the present disclosure, when a touch operation event of a video information display interface is obtained, it can determine whether the start position of the touch operation event is at a predetermined feature position where erroneous touch operation is likely to occur, and if the start position of the touch operation event is at the predetermined feature position, it matches the slide operation identification policy corresponding to the touch operation event to determine whether the touch operation event is a slide operation event, and finally, if it is determined that the touch operation event is a slide operation event based on the corresponding slide operation identification policy, it triggers an video switching command based on the slide parameter of the touch operation event to complete the video switching. The technical solution disclosed by the embodiment of the present disclosure avoids the situation in the related art where the identification accuracy of user operations in a video information display interface is low and the rate of erroneous operations is high, reduces the probability of occurrence of erroneous operation events caused by non-standard slide gestures, improves the identification accuracy of user operation intentions, and improves user experience.

[0040] The embodiments of the present disclosure can be combined with multiple exemplary solutions in the video switching method provided by the above embodiments. The video switching method provided by the present embodiment describes a video switching process when the start position of a touch operation event is at a feature position corresponding to a clickable description text.

[0041] 6 is a flow chart of a video switching method provided by another embodiment of the present disclosure. As shown in FIG. 6, the method provided by this embodiment includes:

[0042] S210, receiving a touch operation event of a video information display interface, and determining whether the start position of the touch operation event is at a predetermined feature position.

[0043] S220, if the start position of the touch operation event is at a predetermined feature position, and the predetermined feature position is the position of the video information description content, determine a vertical included angle between the movement trajectory and the video information display interface based on the coordinate position of the movement trajectory of the touch operation event, determine whether the included angle is smaller than a predetermined included angle threshold, and further determine whether the end position of the touch operation event is at the position of the video information description content.

[0044] In FIG. 7, the character (represented by X) with the number sign (#) as the start symbol is also called hash tag in the video information description content, which is a clickable element in the video description. The multiple hash tags in FIG. 7 are in the same view layer. Clicking on each hash tag will jump to the detailed page associated with various hash tags, but since all the hash tags are in one view, the event will not be canceled even if the slide device moves from one hash tag to another. Therefore, when the start position of the touch operation event is at the feature position where the video information description content is located, it is necessary to analyze whether the acquired touch operation event is a slide operation event or a click event of a hash tag according to the corresponding policy.

[0045] For example, if the start position of the touch operation event is located at the position where the video information description content is located, it is necessary to determine the vertical included angle between the moving trajectory and the video information display interface according to the coordinate position of the moving trajectory of the touch operation event, and not only determine whether the included angle is smaller than a certain included angle threshold, but also determine whether the end position of the touch operation event is within the area of ​​the video information description content. That is, it is determined whether the moving trajectory of this touch operation event meets the requirements under the condition that the corresponding angle is enlarged, and whether a movement occurs. If the vertical included angle between the moving trajectory and the video information display interface is smaller than the corresponding angle threshold and the end position of the touch operation event is outside the area of ​​the video information description content, directly execute step S250. If the vertical angle between the moving trajectory and the video information display interface is larger than the corresponding angle threshold, the process is directly terminated, and the touch operation event can be processed as a click event of a hash tag. If the vertical angle between the moving trajectory and the video information display interface is smaller than the corresponding angle threshold and the end position of the touch operation event is at the position where the video information description content is located, execute step S230.

[0046] S230, if the end position of the touch operation event is at the position of the video information description content, determining whether the hash code value of the start position is the same as the hash code value of the end position.

[0047] In this step, whether the start position and end position of the movement trajectory of the touch operation event are in different hash tag positions. For example, if a hash tag is touched, the hash code of the hash tag is identified and obtained, and it is determined whether the hash codes are the same hash tag. If they are the same, a click event of the hash tag is triggered to receive the processing flow; if not, step S240 can be executed.

[0048] S240, if the included angle is smaller than the predetermined included angle threshold, and the hash code value of the start position is different from the hash code value of the end position, and the duration of the touch operation event is smaller than a predetermined time threshold, determine that the touch operation event is a slide operation event.

[0049] For example, the duration refers to the time difference between pressing down and lifting up with a finger or other operating tool when a user operates a video information interface. In addition, the judgment condition of the time difference needs to take into account erroneous touches due to sliding, and both the sliding distance and the sliding time are often relatively short. The predetermined time threshold can be set as, for example, 500 milliseconds. If the duration is greater than 500 milliseconds, the click event is processed.

[0050] S250, if determining that the touch operation event is a slide operation event, trigger an animation switching command according to a slide parameter of the touch operation event to complete animation switching.

[0051] In the technical solution of the embodiment of the present disclosure, when acquiring a touch operation event of a video information display interface, it is determined whether the start position of the touch operation event is at a predetermined characteristic position where erroneous touch operation is likely to occur, and if the start position of the touch operation event is at a predetermined characteristic position where video information description content is located, a corresponding slide operation identification policy is adopted, and it is determined whether the touch operation event is a slide operation event based on the slide trajectory of the touch operation event and the vertical angle of the interface, the end position of the touch operation, the duration of the touch operation, etc., and finally, if it is determined that the touch operation event is a slide operation event based on the corresponding slide operation identification policy, a video switching command is triggered based on the slide parameters of the touch operation event to complete the video switching. The technical solution disclosed by the embodiment of the present disclosure avoids the situation in the related art that the identification accuracy of user operations in a video information display interface is low and the rate of erroneous operations is high, reduces the probability of occurrence of erroneous operation events caused by non-standard slide gestures, improves the identification accuracy of the user's operation intention, and improves the user experience.

[0052] 8 is a structural schematic diagram of a video switching device provided by an embodiment of the present disclosure. The video switching device provided by this embodiment is suitable for video stream data switching scenarios, especially suitable for video stream switching situations in short video playback platform.

[0053] As shown in FIG. 8, the video switching device includes an operation position confirmation module 310, a slide event determination module 320 and a video switching module 330.

[0054] The operation position confirmation module 310 is configured to obtain a touch operation event of the video information display interface, and determine whether a starting position of the touch operation event is at a predetermined feature position; the slide event determination module 320 is configured to determine whether the touch operation event is a slide operation event based on a determination result that the starting position of the touch operation event is at a predetermined feature position, based on a slide operation identification policy matching the predetermined feature position; and the video switching module 330 is configured to trigger a video switching command according to a slide parameter of the touch operation event if the touch operation event is a slide operation event, to complete the video switching.

[0055] In the technical solution of the embodiment of the present disclosure, when a touch operation event of a video information display interface is obtained, it is determined whether the start position of the touch operation event is at a predetermined feature position where erroneous touch operation is likely to occur, and if the start position of the touch operation event is at the predetermined feature position, it is matched with a slide operation identification policy corresponding to the touch operation event to determine whether the touch operation event is a slide operation event, and finally, if it is determined that the touch operation event is a slide operation event based on the corresponding slide operation identification policy, it is triggered an video switching command based on the slide parameter of the touch operation event to complete the video switching. The technical solution disclosed by the embodiment of the present disclosure avoids the situation in the related art where the identification accuracy of user operations in a video information display interface is low and the rate of erroneous operations is high, reduces the probability of occurrence of erroneous operation events caused by non-standard slide gestures, improves the identification accuracy of user operation intentions, and improves user experience.

[0056] For example, the predetermined feature positions include positions of predetermined interactive function buttons and positions of video information description contents in the video information display interface.

[0057] For example, if the predetermined feature location is the location of a predetermined interactive function button, the slide event determination module 320 is configured as follows.

[0058] Determine a vertical angle between the moving trajectory of the touch operation event and the video information display interface according to a coordinate position of the moving trajectory;

[0059] If the included angle is smaller than a predetermined included angle threshold, it is determined that the touch operation event is a slide operation event, and the predetermined included angle threshold is larger than a default slide angle threshold in a scenario using a predetermined view page turning toolkit.

[0060] For example, if the predetermined feature position is the position of the video information description content, the slide event determination module 320 is configured as follows.

[0061] Determine whether the end position of the touch operation event is the position of the video information description content;

[0062] If the end position of the touch operation event is at a position of a video information description content, determining whether a hash code value of the start position is equal to a hash code value of the end position;

[0063] If the included angle is smaller than the predetermined included angle threshold, the hash code value of the start position is different from the hash code value of the end position, and the duration of the touch operation event is smaller than a predetermined time threshold, it is determined that the touch operation event is a slide operation event.

[0064] For example, the above video switching device includes a non-video switching event processing module, which is configured as follows.

[0065] If the included angle is greater than the predetermined included angle threshold, the touch operation event is transmitted to a view layer to which a predetermined interactive function button belongs;

[0066] determining whether the touch operation event is a button click event based on a movement range of the touch operation event;

[0067] In response to determining that the touch manipulation event is a button click event, triggering a target interactivity button to perform a button click operation.

[0068] For example, the non-video switching event processing module may be further configured as follows.

[0069] If the included angle is greater than the predetermined included angle threshold, or the hash code value of the start position is equal to the hash code value of the end position, or the duration of the touch operation event is greater than a predetermined time threshold, transmitting the touch operation event to a view layer to which a video information description content belongs;

[0070] The touch operation event is determined to be a video information description content click event, and the video information description content at the end position is used as a click target of the video information description content click event.

[0071] For example, the video switching module 330 is configured as follows.

[0072] During the execution process of the slide operation event, if the moving distance of the video information display interface is greater than a first moving distance reference value, or if the moving distance of the video information display interface is greater than a second moving distance reference value and the moving speed is greater than a predetermined speed reference value, an video switching command is triggered to complete the video switching.

[0073] The video switching device provided by the embodiments of the present disclosure can implement the video switching method provided by any of the embodiments of the present disclosure, and has corresponding functional modules and beneficial effects.

[0074] It should be noted that the multiple units and modules included in the above device are only divided according to functional logic, and are not limited to the above division as long as the corresponding functions can be implemented, and the specific names of the multiple functional units are only for the convenience of distinguishing them from each other, and are not used to limit the protection scope of the embodiments of the present invention.

[0075] In the following, referring to FIG. 9, it shows a structural schematic diagram applied to an electronic device (for example, a terminal device or server in FIG. 9) 400 for implementing an embodiment of the present disclosure. The terminal device according to the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (for example, in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG. 9 is merely an example and does not limit the function and scope of use of the embodiment of the present disclosure.

[0076] 9, the electronic device 400 may include a processing unit (e.g., a central processing unit, a graphics processor, etc.) 401, which can perform various appropriate operations and processes based on programs stored in a read-only memory (ROM) 402 or programs loaded from a storage device 406 into a random access memory (RAM) 403. The RAM 403 stores various programs and data necessary for the operation of the electronic device 400. The processing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0077] Typically, devices such as input devices 406 including touch screens, touch pads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc., output devices 407 including liquid crystal displays (LCDs), speakers, vibrators, etc., storage devices 408 including magnetic tapes, hard disks, etc., and communication devices 409 may be connected to the I / O interface 405. The communication devices 409 may enable the electronic device 400 to communicate and exchange data with other devices, wirelessly or via wires. While FIG. 9 illustrates the electronic device 400 with various devices, it should be understood that implementation or availability of all devices shown is not required. Instead, more or fewer devices may be implemented or provided.

[0078] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flow charts may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, the computer program including a program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or installed from the storage device 406, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above functions defined in the video switching method according to the embodiment of the present disclosure are performed.

[0079] The electronic device provided by the embodiments of the present disclosure and the video switching method provided by the above embodiments belong to the same disclosed concept, and for the technical content not described in detail in this embodiment, reference can be made to the above embodiments, and this embodiment also has the same effects as the above embodiments.

[0080] An embodiment of the present disclosure provides a computer storage medium, on which a computer program is stored, which, when executed by a processor, implements the video switching method provided by the above embodiment.

[0081] It should be noted that the computer readable medium of the present disclosure may be a computer readable signal medium, a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer readable storage media include, but are not limited to, an electrical connection with one or more leads, a portable computer floppy disk, a hard disk, a random access memory (RAM), a read only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory (FLASH), 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 above. In the present disclosure, a computer readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium may include a data signal propagated at baseband or as part of a carrier wave carrying computer-readable program code. Such a propagated data signal may take many forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium, which may transmit, propagate, or carry a program for use by or in connection with an instruction execution system, apparatus, or device. The program code embodied in the computer-readable medium may be transmitted using any suitable medium, including, but not limited to, wire, fiber optic cable, RF (radio frequency), etc., or any suitable combination thereof.

[0082] In some embodiments, clients and servers may communicate using any now known or later developed network protocol, such as HyperText Transfer Protocol (HTTP), and may communicate digital data in any form or medium (e.g., communications network) interconnection. Examples of communications networks include local area networks ("LANs"), wide area networks ("WANs"), international networks (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any now known or later developed networks.

[0083] The computer-readable medium may be included in the electronic device, or may exist independently and not integrated into the electronic device.

[0084] The computer-readable medium carries one or more programs that, when executed on the electronic device, cause the electronic device to perform the following:

[0085] Acquire a touch operation event of the video information display interface, and determine whether the start position of the touch operation event is at a predetermined feature position;

[0086] Based on a determination result that the start position of the touch operation event is at a predetermined feature position, determining whether the touch operation event is a slide operation event based on a slide operation identification policy that matches the predetermined feature position;

[0087] If it is determined that the touch operation event is a slide operation event, trigger an animation switching command according to a slide parameter of the touch operation event to complete the animation switching.

[0088] Computer program code for carrying out the operations of the present disclosure may be written in one or more programming languages, or combinations thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and the like, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may run entirely on the user's computer, partially on the user's computer as a standalone software package, partially on the user's computer and a remote computer, or entirely on a remote computer or server. In situations involving remote computers, the remote computer may be connected to the user's computer through any kind of network, such as a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (e.g., connected via the Internet using an Internet Service Provider).

[0089] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or part of code, which includes one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions shown in the blocks may be executed in a different order than the order shown in the drawings. For example, two blocks shown one after the other may actually be executed substantially in parallel or may be executed in the reverse order depending on the functions involved. Also, each block of the block diagrams and / or block diagrams, as well as combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that executes the specified functions or operations, or by a combination of special hardware and computer instructions.

[0090] The units included in the embodiments of the present disclosure may be implemented in software or hardware. The names of the units and modules may not be limited to the units or modules themselves, and for example, a data generation module may be described as a "video data generation module."

[0091] The functions described herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, examples of types of hardware logic components that may be used include Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Parts (ASSPs), Systems on Chips (SOCs), Complex Programmable Logic Devices (CPLDs), etc.

[0092] In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain or store a program used by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine signal medium or a machine-readable storage medium. A machine-readable medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More specific examples of a machine-readable storage medium may include one or more wire-based electrical connections, 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 above.

[0093] According to one or more embodiments of the present disclosure, [Example 1] provides a video switching method, the method including:

[0094] receiving a touch operation event of a video information display interface, and determining whether a start position of the touch operation event is at a predetermined feature position;

[0095] determining whether the touch operation event is a slide operation event based on a slide operation identification policy that matches the predetermined feature position based on a determination result that the start position of the touch operation event is at a predetermined feature position;

[0096] If it is determined that the touch operation event is a slide operation event, triggering an animation switching command according to a slide parameter of the touch operation event to complete the animation switching.

[0097] According to one or more embodiments of the present disclosure, [Example 2] provides a video switching method, in which the predetermined feature position includes the position of a predetermined interactive function button and the position of video information description content in the video information display interface.

[0098] According to one or more embodiments of the present disclosure, [Example 3] provides a video switching method, in which, when the predetermined feature position is a position of a predetermined interactive function button, the step of determining whether the touch operation event is a slide operation event based on a slide operation identification policy matching the predetermined feature position includes:

[0099] determining a vertical angle between the moving trajectory of the touch operation event and the video information display interface according to a coordinate position of the moving trajectory;

[0100] The method includes a step of determining that the touch operation event is a slide operation event if the included angle is smaller than a predetermined included angle threshold, the predetermined included angle threshold being larger than a default slide angle threshold in a scenario using a predetermined view page turning toolkit.

[0101] According to one or more embodiments of the present disclosure, [Example 4] provides a video switching method, and when the predetermined feature position is a position of a video information description content, the step of determining whether the touch operation event is a slide operation event based on a slide operation identification policy matching the predetermined feature position includes:

[0102] determining whether an end position of the touch operation event is a position of a video information description content;

[0103] If the end position of the touch operation event is at the position of the video information description content, determining whether the hash code value of the start position is the same as the hash code value of the end position;

[0104] The method further includes determining that the touch operation event is a slide operation event if the included angle is smaller than the predetermined included angle threshold, the hash code value of the start position is different from the hash code value of the end position, and the duration of the touch operation event is smaller than a predetermined time threshold.

[0105] According to one or more embodiments of the present disclosure, [Example 5] provides a video switching method, the method including:

[0106] If the included angle is greater than the predetermined included angle threshold, transmitting the touch operation event to a view layer to which a predetermined interactive function button belongs;

[0107] determining whether the touch operation event is a button click event based on a moving range of the touch operation event;

[0108] and in response to determining that the touch manipulation event is a button click event, triggering a target interactivity button to perform a button click manipulation.

[0109] According to one or more embodiments of the present disclosure, [Example 6] provides a video switching method, the method including:

[0110] If the included angle is greater than the predetermined included angle threshold, or the hash code value of the start position is equal to the hash code value of the end position, or the duration of the touch operation event is greater than a predetermined time threshold, transmitting the touch operation event to a view layer to which a video information description content belongs;

[0111] The method further includes a step of determining that the touch operation event is a video information description content click event, and using the video information description content at the end position as a click target of the video information description content click event.

[0112] According to one or more embodiments of the present disclosure, [Example 7] provides an video switching method, wherein the step of triggering a video switching command and completing the video switching according to a slide parameter of the slide operation event includes:

[0113] The process of executing the slide operation event includes triggering an animation switching command to complete animation switching when the moving distance of the animation information display interface is greater than a first moving distance reference value, or when the moving distance of the animation information display interface is greater than a second moving distance reference value and the moving speed is greater than a predetermined speed reference value.

[0114] . According to one or more embodiments of the present disclosure, [Example 8] provides a video switching device, the device comprising:

[0115] an operation position confirmation module configured to obtain a touch operation event of the video information display interface and determine whether a start position of the touch operation event is at a predetermined feature position;

[0116] a slide event determination module configured to determine whether the touch operation event is a slide operation event based on a determination result that the start position of the touch operation event is at a predetermined feature position and based on a slide operation identification policy that matches the predetermined feature position;

[0117] and an video switching module configured to trigger a video switching instruction according to a slide parameter of the touch operation event when the touch operation event is determined to be a slide operation event, to complete the video switching.

[0118] According to one or more embodiments of the present disclosure, [Example 9] provides a video switching device, in which the predetermined feature position includes a position of a predetermined interactive function button and a position of video information description content in the video information display interface.

[0119] According to one or more embodiments of the present disclosure, [Example 10] provides a video switching device, and when the predetermined feature position is a position of a predetermined interactive function button, the slide event determination module is configured as follows:

[0120] Determine a vertical angle between the moving trajectory of the touch operation event and the video information display interface according to a coordinate position of the moving trajectory;

[0121] If the included angle is smaller than a predetermined included angle threshold, it is determined that the touch operation event is a slide operation event, and the predetermined included angle threshold is larger than a default slide angle threshold in a scenario using a predetermined view page turning toolkit.

[0122] According to one or more embodiments of the present disclosure, [Example 11] provides a video switching device, and when the predetermined feature position is a position of video information description content, the slide event determination module is configured as follows:

[0123] Determine whether the end position of the touch operation event is the position of the video information description content;

[0124] If the end position of the touch operation event is at a position of a video information description content, determining whether a hash code value of the start position is equal to a hash code value of the end position;

[0125] If the included angle is smaller than the predetermined included angle threshold, the hash code value of the start position is different from the hash code value of the end position, and the duration of the touch operation event is smaller than a predetermined time threshold, it is determined that the touch operation event is a slide operation event.

[0126] According to one or more embodiments of the present disclosure, [Example 12] provides a video switching device, the device comprising:

[0127] It further includes a non-animation switching event processing module, which may be configured as follows.

[0128] If the included angle is greater than the predetermined included angle threshold, the touch operation event is transmitted to a view layer to which a predetermined interactive function button belongs;

[0129] determining whether the touch operation event is a button click event based on a movement range of the touch operation event;

[0130] In response to determining that the touch manipulation event is a button click event, triggering a target interactivity button to perform a button click operation.

[0131] According to one or more embodiments of the present disclosure, [Example 13] provides a video switching device, the device comprising:

[0132] It further includes a non-animation switching event processing module, which may be configured as follows.

[0133] If the included angle is greater than the predetermined included angle threshold, or the hash code value of the start position is equal to the hash code value of the end position, or the duration of the touch operation event is greater than a predetermined time threshold, transmitting the touch operation event to a view layer to which a video information description content belongs;

[0134] The touch operation event is determined to be a video information description content click event, and the video information description content at the end position is used as a click target of the video information description content click event.

[0135] According to one or more embodiments of the present disclosure, [Example 14] provides a video switching device, wherein the video switching module is configured as follows:

[0136] During the execution process of the slide operation event, if the moving distance of the video information display interface is greater than a first moving distance reference value, or if the moving distance of the video information display interface is greater than a second moving distance reference value and the moving speed is greater than a predetermined speed reference value, an video switching command is triggered to complete the video switching.

[0137] It should be noted that although various operations are shown in a particular order, this should not be understood as requiring that the operations be performed in the particular order or sequential order shown. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although certain implementation details are included in the above description, these should not be construed as limiting the scope of the disclosure. Certain features that are described in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment may also be implemented in multiple embodiments separately or in any suitable subcombination.

Claims

1. A video switching method, comprising: receiving a touch operation event of a video information display interface, and determining whether a start position of the touch operation event is at a predetermined feature position; Based on a determination result that a start position of the touch operation event is at a predetermined feature position, determining whether the touch operation event is a slide operation event based on a slide operation identification policy that matches the predetermined feature position; and based on a determination result that the touch operation event is a slide operation event, triggering a video switching command according to a slide parameter of the touch operation event to complete the video switching.

2. The method of claim 1 , wherein the predetermined feature locations include locations of predetermined interactive function buttons and locations of video information description content in the video information display interface.

3. In response to determining that the predetermined feature location is a location of a predetermined interactive function button, determining whether the touch manipulation event is a slide manipulation event based on a slide manipulation identification policy matching the predetermined feature location, determining a vertical angle between the moving trajectory of the touch operation event and the video information display interface according to a coordinate position of the moving trajectory; 3. The method of claim 1 or 2, further comprising: determining that the touch manipulation event is a slide manipulation event in response to determining that the included angle is smaller than a predetermined included angle threshold, the predetermined included angle threshold being greater than a default slide angle threshold in a scenario using a predetermined view page turning toolkit.

4. In response to determining that the predetermined feature position is a position of a video information description content, the step of determining whether the touch operation event is a slide operation event based on a slide operation identification policy matching the predetermined feature position includes: determining whether an end position of the touch operation event is a position of a video information description content; According to a determination result that the end position of the touch operation event is at the position of the video information description content, determining whether the hash code value of the start position is the same as the hash code value of the end position; 4. The method of claim 3, further comprising: determining that the included angle is less than the predetermined included angle threshold; and determining that the touch manipulation event is a slide manipulation event in response to the hash code value of the starting position being different from the hash code value of the ending position and the duration of the touch manipulation event being less than a predetermined time threshold.

5. in response to determining that the included angle is greater than the predetermined included angle threshold, transmitting the touch manipulation event to a view layer to which a predetermined interaction button belongs; determining whether the touch operation event is a button click event based on a movement range of the touch operation event; The method of claim 3 , further comprising: triggering a target interactivity button to perform a button click operation based on a result of determining that the touch manipulation event is a button click event.

6. In response to determining that one of the following conditions is satisfied: the included angle is greater than the predetermined included angle threshold, the hash code value of the start position is equal to the hash code value of the end position, and the duration of the touch operation event is greater than a predetermined time threshold, transmitting the touch operation event to a view layer to which a video information description content belongs; The method according to claim 4 , further comprising: determining that the touch operation event is a video information description content click event; and using the video information description content at the end position as a click target of the video information description content click event.

7. For example, the step of triggering an image switching command based on a slide parameter of the slide operation event to complete the image switching includes:

2. The method of claim 1, wherein the process of executing the slide operation event includes the step of triggering an animation switching command to complete animation switching in response to determining that the movement distance of the animation information display interface is greater than a first movement distance reference value, or in response to determining that the movement distance of the animation information display interface is greater than a second movement distance reference value and the movement speed is greater than a predetermined speed reference value.

8. A video switching device, comprising: an operation position confirmation module configured to obtain a touch operation event of the video information display interface and determine whether a start position of the touch operation event is at a predetermined feature position; A slide event determination module configured to determine whether the touch operation event is a slide operation event based on a determination result that the start position of the touch operation event is at a predetermined feature position and based on a slide operation identification policy that matches the predetermined feature position; and a video switching module configured to trigger a video switching command according to a slide parameter of the touch operation event based on a determination result that the touch operation event is a slide operation event, to complete the video switching.

9. An electronic device, one or more processors; and a storage device configured to store one or more programs; An electronic device, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the video switching method according to any one of claims 1 to 7.

10. A storage medium comprising computer-executable instructions, the computer-executable instructions being used to perform the video switching method according to any one of claims 1 to 7 when executed by a computer processor.

Citation Information

Patent Citations

  • Picture preview sliding processing method and system, electronic equipment and storage medium

    CN112379814A

  • Image display device and program

    JP2015032277A

  • Display control device and method

    JP2018107618A

  • Touch gesture control of video playback

    US20170238043A1

  • Video playback method and apparatus, electronic device, and computer readable medium

    WO2021160142A1