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

By identifying the start position and type of touch events on video interfaces, the method and device reduce accidental touches, improving the accuracy of user interactions and enhancing the short video browsing experience.

JP7801038B2Active Publication Date: 2026-01-16DOUYIN VISION CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the field of short videos, accidental touch events frequently occur when users slide their screens, leading to erroneous operations on interactive elements, which degrade the browsing experience.

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 a slide operation by matching it with a predetermined feature position and slide operation policy, triggering a video switch only when the operation meets specific criteria.

Benefits of technology

Reduces the likelihood of erroneous operations, improves the accuracy of identifying user intentions, and enhances the user experience by accurately distinguishing between slide and click events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007801038000001
    Figure 0007801038000001
  • Figure 0007801038000002
    Figure 0007801038000002
  • Figure 0007801038000003
    Figure 0007801038000003
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 user browsing. The browsing interface for video information streams typically includes many operable elements, such as the "Like" button, comment buttons, and video description content. However, when users slide their mobile phone screens up and down to switch between videos, accidental touch events frequently occur, where users accidentally click on operable elements on the video. This mistouch event impacts the short video browsing experience. 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 erroneous operation events caused by non-standard sliding gestures, improve the accuracy of identifying user operation intentions, 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 the video information display interface, and determining whether the start position of the touch operation event is at a predetermined characteristic 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 triggering 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, thereby completing the 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 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;

[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] 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 explanation of the drawings]

[0019] [Figure 1] 1 is a flow chart of a video switching method provided by one embodiment of the present disclosure. [Figure 2] FIG. 1 is a schematic diagram of an animated information interface slide gesture provided by one embodiment of the present disclosure. [Figure 3] 10 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] 2 is a schematic diagram of the movement of a video information display interface provided by one embodiment of the present disclosure; [Figure 5] FIG. 10 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. 10 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] 1 is a structural schematic diagram of a video switching device provided by an embodiment of the present disclosure; [Figure 9]1 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure; DETAILED DESCRIPTION OF THE INVENTION

[0020] It should be noted that steps described in 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 steps shown, and the scope of the present disclosure is not limited in this respect.

[0021] As used herein, the term "comprises" 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.

[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 the functions performed by these devices, modules or units.

[0023] It should be noted that those skilled in the art will understand that the modifications "one" and "multiple" referred to in this disclosure are intended to be exemplary and not limiting, and should be understood as "one or more" unless the context clearly dictates otherwise.

[0024] 1 is a flowchart 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 the 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. The video information display interface not only plays videos, but also allows users to switch between video information through a slide operation. Particularly in the technical field of short videos, the video information display interface is also called a feed stream browsing interface. Users can interact with video information by clicking on interaction buttons such as "like," "share," "comment," "favorite," and icons on the page, or by clicking on information such as video description text. The video description text includes information such as a video introduction and hashtags related to the video content.

[0028] Generally, TheThe video information can be switched by sliding up and down, where 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 video switching order rule can have an inverse correspondence relationship or other correspondence relationship. For illustrative purposes, in this embodiment, the correspondence 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 Figure 2, which shows a specific example of a video information interface.

[0029] For example, in Figure 2, the vertical arrow on the video information display interface represents a vertical slide. However, the user's slide does not need to be perfectly vertical. As long as it is within a predetermined corresponding angle, the user's slide can be identified and an action command can be executed for the slide. Generally, when using the view pager 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 a feed stream switch. In Figure 2, the angle between the dotted arrow and the solid arrow represents the vertical angle between the slide operation at different angles and the video information display interface.

[0030] In addition to displaying specific video content, the video information display interface also includes information such as the video content creator's icon, 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 an erroneous touch operation.

[0031] For example, in this embodiment, when acquiring a touch operation event, taking into consideration the possibility of an erroneous touch, first determine whether the start position of the touch operation event is at a predetermined feature position, i.e., the position of a predetermined interactive function button and the position of the video information description content in the video information display interface. Each predetermined interactive function button is a view at a higher layer than the feed stream view, and all the video information description content is on one view.

[0032] For example, when a touch event is captured, the coordinate location of the touch point on the client's display interface can be determined. movie This is position information recorded when the information is initialized. The coordinate position information of the start position of the touch event is matched with the position information of the predetermined characteristic position, and it is possible to determine whether the start position of the touch operation event is the predetermined characteristic position based on the matching result.

[0033] S120, if the starting position of the touch operation event is at a predetermined feature position, determine whether the touch operation event is a slide operation event according to a slide operation identification policy that matches 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 depending on the type of specific predetermined feature position, but the possibility of accidental touches during slide operations can be reduced by expanding the corresponding angle of slide operations and / or taking other measures.

[0035] For example, the predetermined feature position where the starting position of the touch operation event is located is the position of a predetermined interactive function button. In FIG. 3, a user performs a touch gesture on the video information display interface to generate a corresponding slide path, but the starting position of the slide path falls within the range of a similar "Like" button. First, the vertical included angle between the movement path of the touch operation event and the video information display interface can be determined based on the coordinate position of the movement path of the touch operation event. For example, a line can be determined based on the position coordinates of the first few touch points on the movement path, and the vertical included angle between the line and the video information display interface can be determined. Alternatively, the vertical included angle between the tangent line of the touch operation movement path and the video information display interface can be determined. If the obtained included angle is determined to be smaller than a predetermined included angle threshold, the touch operation event is determined to be a slide operation event rather than a button click trigger event. The predetermined included angle threshold is greater than the default slide angle threshold in a scenario using a predetermined view page turning toolkit, and can be a 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 increases, 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 the animation switching.

[0037] When the touch operation event is determined to be a slide operation event, i.e., when the feed stream view layer successfully intercepts the slide operation event, it can determine whether the slide operation event can trigger video stream switching. For example, this determination can be made based on the movement distance and movement speed of the video information display interface caused by the slide gesture. For example, during the execution of the slide operation event, if the movement distance of the video information display interface is greater than a first movement distance reference value (e.g., 40% of the vertical distance of the terminal screen), or if the movement distance of the video information display interface is greater than a second movement distance reference value and the movement speed is greater than a predetermined speed reference value, a video switching command is triggered to complete the video switching. The movement distance reference value and the predetermined speed reference value can be statistically set based on empirical values. As shown in FIG. 4, a slide gesture operation causes the currently displayed video stream interface to move up, and the next video stream interface (pattern fill interface) also moves up. 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 angle between the movement trajectory of the touch operation event and the video information display interface is greater than a predetermined 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. Then, based on the movement range of the touch operation event, it determines whether the touch operation event is a button click event. In response to determining that the touch operation event is a button click event, it triggers the target interactive function button to perform a button click operation. In the button touch schematic diagram shown in Figure 5, the rectangular interface in A is a button (BUTTON), and the circle within it represents the starting position of the user's touch operation on the video information display interface. B shows the movement trajectory of the touch operation. The movement trajectory is retained within the button, and a button click event can still be triggered when the finger is released. If the movement trajectory in C exceeds the range of the button (rectangle), a button click event will not be triggered even when the finger is released.

[0039] In the technical solution of the embodiments of the present disclosure, when a touch operation event of a video information display interface is acquired, it can determine whether the starting position of the touch operation event is at a predetermined characteristic position where erroneous touch operations are likely to occur, and if the starting position of the touch operation event is at the predetermined characteristic position, it can match 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 can trigger an animation switching command based on the slide parameters of the touch operation event to complete the animation switching. The technical solution disclosed in the embodiments of the present disclosure avoids the situation in related art where the identification accuracy of user operations on video information display interfaces is low and the rate of erroneous operations is high, reduces the probability of erroneous operation events caused by non-standard slide gestures, improves the identification accuracy of user operation intentions, and improves the 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 embodiments 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 the 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 characteristic position and the predetermined characteristic position is the position of the video information description content, determine the 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 Figure 7, the character (represented by X) with the number sign (#) as the start symbol is the video information description content, also called a hash tag, which is a clickable element in the video description. The multiple hash tags in Figure 7 are in the same view layer. Clicking on each hash tag will jump to the detail page associated with the various hash tags. However, because all the hash tags are in one view, the event will not be canceled even if the slider moves from one hash tag to another. Therefore, if the start position of the touch operation event is at the characteristic 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 hash tag click event according to the corresponding policy.

[0045] For example, if the start position of a touch operation event is located at the position where the video information description content is located, the vertical angle between the movement trajectory and the video information display interface is determined based on the coordinate position of the movement trajectory of the touch operation event. It is also necessary to determine whether the included angle is smaller than a predetermined included angle threshold, and 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 movement trajectory of this touch operation event and the corresponding angle meet the requirements for expansion, and whether movement occurs. If the vertical angle between the movement 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, step S250 is directly executed. If the vertical angle between the movement trajectory and the video information display interface is greater than the corresponding angle threshold, the process is directly terminated, and the touch operation event can be treated as a hash tag click event. If the vertical angle between the movement 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 explanation 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, determine 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, it is determined whether the start and end positions of the movement trajectory of the touch operation event are at 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. If they are the same, a click event of the hash tag is triggered and the processing flow is continued; if not, step S240 can be executed.

[0048] S240: 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, 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 a finger or other operating tool when a user operates a video information interface. Furthermore, the criteria for determining the time difference must also take into account accidental touches due to sliding, and both the sliding distance and the sliding time are often relatively short. The predetermined time threshold may be set, for example, to 500 milliseconds. If the duration is greater than 500 milliseconds, the click event is processed.

[0050] S250, 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.

[0051] In the technical solution of the embodiments of the present disclosure, when a touch operation event of a video information display interface is acquired, it is determined whether the start position of the touch operation event is at a predetermined characteristic position where an erroneous touch operation is likely to occur; if the start position of the touch operation event is at a predetermined characteristic position where a video information description content is located, a corresponding slide operation identification policy is adopted, and whether the touch operation event is a slide operation event is determined based on the slide trajectory of the touch operation event and the vertical angle between the interface, the end position of the touch operation, the duration of the touch operation, etc.; finally, if it is determined that the touch operation event is a slide operation event based on the corresponding slide operation identification policy, an animation switching command is triggered based on the slide parameters of the touch operation event to complete the animation switching. The technical solution disclosed in the embodiments of the present disclosure avoids the situation in related art where the recognition accuracy of user operations in video information display interfaces is low and the rate of erroneous operations is high, reduces the probability of erroneous operations caused by non-standard slide gestures, improves the recognition accuracy of user operation intentions, 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 for video stream switching situations in short video playback platforms.

[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 acquire 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 the determination result that the starting position of the touch operation event is at the predetermined feature position and based on the 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 to complete the video switching if the touch operation event is a slide operation event.

[0055] In the technical solution of the embodiments of the present disclosure, when a touch operation event of a video information display interface is acquired, it is determined whether the starting position of the touch operation event is at a predetermined characteristic position where erroneous touch operations are likely to occur, and if the starting position of the touch operation event is at the predetermined characteristic position, it matches 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 triggers an animation switching command based on the slide parameters of the touch operation event to complete the animation switching. The technical solution disclosed in the embodiments of the present disclosure avoids the situation in the related art where the identification accuracy of user operations on video information display interfaces is low and the rate of erroneous operations is high, reduces the probability of erroneous operation events caused by non-standard slide gestures, improves the identification accuracy of user operation intentions, and improves the user experience.

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

[0057] For example, if the predetermined feature position is the position 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 and the video information display interface according to a coordinate position of the moving trajectory of the touch operation event;

[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 the position of the video information description content, determine whether the hash code value of the start position is the same as the 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 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, transmitting the touch operation event 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 manipulation.

[0068] For example, the non-animation 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 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 for 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, trigger an video switching command 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 embodiment of the present disclosure, and has corresponding function 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 they can implement the corresponding functions; furthermore, 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] 9, which illustrates a structural schematic diagram applicable to an electronic device (e.g., a terminal device or server in FIG. 9) 400 for implementing an embodiment of the present disclosure. Terminal devices according to the embodiment of the present disclosure may include, but are 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), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. The electronic device illustrated in FIG. 9 is merely an example and does not limit the functionality and scope of use of the embodiment of the present disclosure.

[0076] 9, 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 read-only memory (ROM) 402 or programs loaded from a storage device 406 into random access memory (RAM) 403. RAM 403 stores various programs and data necessary for the operation of electronic device 400. Processing unit 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to bus 404.

[0077] Typically, devices such as input devices 406 including a touchscreen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc., output devices 407 including a liquid crystal display (LCD), speaker, vibrator, etc., storage devices 408 including magnetic tape, hard disk, 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 shows the electronic device 400 with a variety of devices, it should be understood that not all of the devices shown need be implemented or available. Instead, more or fewer devices may be implemented or provided.

[0078] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the methods illustrated in the flowcharts. In such embodiments, 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-described functions defined in the video switching method according to embodiments 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 achieves 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 that is capable of transmitting, propagating, or carrying a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied in a 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, the client and server 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 of the electronic device.

[0084] The computer-readable medium carries one or more programs, which, 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 characteristic position;

[0086] Based on the determination result that the start position of the touch operation event is at a predetermined characteristic position, determining whether the touch operation event is a slide operation event based on a slide operation identification policy that matches the predetermined characteristic 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 a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, etc., as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may execute entirely on the user's computer, partially on the user's computer as a standalone software package, partially on the user's computer and partially on 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 via any type of network, such as a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (e.g., 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 portion of code, which includes one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions shown in the blocks may be executed in a different order than that 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 functionality involved. Furthermore, each block of the block diagrams and / or block diagrams, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or by a combination of specialized 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 limit the units or modules themselves in some cases. 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 the 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 comprising:

[0094] receiving a touch operation event of the video information display interface, and determining whether the start position of the touch operation event is at a predetermined characteristic 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, wherein 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 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, in which, when the predetermined feature position is a position of 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 the end position of the touch operation event is the position of the 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 comprising:

[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 movement 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 comprising:

[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 video information description content belongs;

[0111] The method further includes 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 for the video information description content click event.

[0112] According to one or more embodiments of the present disclosure, [Example 7] provides an animation switching method, wherein the step of triggering an animation switching command to complete animation 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 including:

[0115] an operation position confirmation module configured to 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;

[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 animation switching module configured, when determining that the touch operation event is a slide operation event, to trigger an animation switching instruction according to a slide parameter of the touch operation event to complete animation switching.

[0118] According to one or more embodiments of the present disclosure, [Example 9] provides a video switching device, wherein 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.

[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 the 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 and the video information display interface according to a coordinate position of the moving trajectory of the touch operation event;

[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 the position of the video information description content, determine whether the hash code value of the start position is the same as the 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, transmitting the touch operation event 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 manipulation.

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

[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 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 for 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, trigger an video switching command 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. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although certain specific implementation details are included in the above description, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.

Claims

1. A video switching method, comprising: A step of obtaining 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 characteristic position, where the predetermined characteristic position is position information recorded when the video information is initialized, and the predetermined characteristic position includes a position of a predetermined interactive function button and a position of a video information description content in the video information display interface, and the video switching refers to switching from a first video to a second video; 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; 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. 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 that matches 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; 2. The method of claim 1, further comprising: determining that the touch manipulation event is a slide manipulation event in response to determining that the included angle is less than a predetermined included angle threshold, the predetermined included angle threshold being greater than a default slide angle threshold for a scenario using a predetermined viewpage turning toolkit.

3. In response to determining that the predetermined feature position is a position of 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 that matches the predetermined feature position includes: determining whether an end position of the touch operation event is a position of 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 based on a determination result that the end position of the touch operation event is at the position of the video information description content; 3. The method of claim 2, 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 start position being different from the hash code value of the end position; and the duration of the touch manipulation event being less than a predetermined time threshold.

4. 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 2 , further comprising: triggering a target interactivity button to perform a button click operation based on determining that the touch manipulation event is a button click event.

5. 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 the same as 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 video information description content belongs; The method of claim 3 , 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 for the video information description content click event.

6. The step of triggering an animation switching command according to a slide parameter of the touch operation event to complete the animation switching includes:

2. The method of claim 1, wherein the process of executing the slide operation event includes: 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.

7. A video switching device, an operation position confirmation module configured to acquire a touch operation event of a video information display interface and determine whether the start position of the touch operation event is at a predetermined characteristic position, the predetermined characteristic position being position information recorded when the video information is initialized, the predetermined characteristic position including the position of a predetermined interactive function button and the position of a video information description content in the video information display interface, and the video switching refers to switching from a first video to a second video; 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; 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.

8. An electronic device, one or more processors; 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 6.

9. 10. A storage medium containing computer-executable instructions, the computer-executable instructions being used to perform the video switching method of any one of claims 1 to 6 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