Search

CN-116339596-B - Video switching method and device, electronic equipment and storage medium

CN116339596BCN 116339596 BCN116339596 BCN 116339596BCN-116339596-B

Abstract

The embodiment of the disclosure discloses a video switching method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of obtaining a touch operation event of a video information display interface, judging whether the initial position of the touch operation event is at a preset characteristic position, determining whether the touch operation event is a one-time sliding operation event or not based on a sliding operation identification strategy matched with the preset characteristic position when the initial position of the touch operation event is at the preset characteristic position, and triggering a video switching instruction according to a sliding parameter of the touch operation event when the touch operation event is determined to be the sliding operation event to finish video switching. According to the technical scheme disclosed by the embodiment of the disclosure, the problems of low accuracy and high misoperation rate of identifying user operation on the video information display interface in the prior art are solved, the occurrence probability of misoperation events caused by nonstandard sliding operation gestures can be reduced, the accuracy of identifying user operation intention is improved, and the user experience is improved.

Inventors

  • LI ZHAOXUAN

Assignees

  • 北京字节跳动网络技术有限公司

Dates

Publication Date
20260505
Application Date
20211224

Claims (9)

  1. 1. A video switching method, comprising: Acquiring a touch operation event of a video information display interface, and judging whether the initial position of the touch operation event is at a preset characteristic position or not; When the initial position of the touch operation event is at a preset characteristic position, determining whether the touch operation event is a one-time sliding operation event or not based on a sliding operation identification strategy matched with the preset characteristic position; When the touch operation event is determined to be a sliding operation event, triggering a video switching instruction according to the sliding parameter of the touch operation event to finish video switching; When the preset feature position is the position where the preset interactive function button is located, determining whether the touch operation event is a sliding operation event based on a sliding operation identification policy matched with the preset feature position includes: Determining an included angle between the moving track and the vertical direction of the video information display interface according to the coordinate position of the moving track of the touch operation event; And when the included angle is smaller than a preset included angle threshold, determining that the touch operation event is a sliding operation event, wherein the preset included angle threshold is larger than a default sliding angle threshold in a scene of using a preset view page turning tool kit.
  2. 2. The method of claim 1, wherein the predetermined feature locations further comprise locations of video information descriptive content on the video information presentation interface.
  3. 3. The method according to claim 1 or 2, wherein when the preset feature position is a position where video information description is located, the determining whether the touch operation event is a sliding operation event based on a sliding operation identification policy matched with the preset feature position further includes: judging whether the termination position of the touch operation event is positioned at the position of the video information descriptive content or not; When the ending position of the touch operation event is positioned at the position of the video information descriptive content, determining whether the hash code value of the starting position and the hash code value of the ending position are the same; And when the included angle is smaller than the preset included angle threshold, the hash code value of the starting position and the hash code value of the ending position are different, and the duration of the touch operation event is smaller than a preset time threshold, determining that the touch operation event is a sliding operation event.
  4. 4. The method according to claim 1, wherein the method further comprises: when the included angle is larger than the preset included angle threshold, transmitting the touch operation event to a view layer to which a preset interactive function button belongs; determining whether the touch operation event is a one-time button click event according to the movement range of the touch operation event; If yes, triggering the target interactive function button, and executing button clicking operation.
  5. 5. A method according to claim 3, characterized in that the method further comprises: When the included angle is larger than the preset included angle threshold, or when the hash code value of the starting position is the same as the hash code value of the ending position, or the duration of the touch operation event is larger than a preset time threshold, transmitting the touch operation event to a view layer to which the video information descriptive content belongs; And determining the touch operation event as a video information description content clicking event, and taking the video information description content at the termination position as a clicking object of the video information description content clicking event.
  6. 6. The method of claim 1, wherein triggering a video switch command based on the sliding parameter of the sliding operation event, completing a video switch, comprises: And in the execution process of the sliding operation event, triggering a video switching instruction to complete video switching when the moving distance of the video information display interface is larger than a first moving distance reference value or when the moving distance of the video information display interface is larger than a second moving distance reference value and the moving speed is larger than a preset speed reference value.
  7. 7. A video switching apparatus, comprising: the operation position confirmation module is used for acquiring a touch operation event of the video information display interface and judging whether the initial position of the touch operation event is at a preset characteristic position or not; The sliding event determining module is used for determining whether the touch operation event is a one-time sliding operation event or not based on a sliding operation identification strategy matched with the preset characteristic position when the initial position of the touch operation event is at the preset characteristic position, wherein the preset characteristic position comprises the position of a preset interactive function button on the video information display interface; the video switching module is used for triggering a video switching instruction according to the sliding parameter of the touch operation event to finish video switching when the touch operation event is determined to be a sliding operation event; The sliding event determining module is specifically configured to determine, when the preset feature position is the position where the preset interactive function button is located, an included angle between the movement track and the vertical direction of the video information display interface according to the coordinate position of the movement track of the touch operation event, and when the included angle is smaller than a preset included angle threshold, determine that the touch operation event is a sliding operation event, where the preset included angle threshold is greater than a default sliding angle threshold in a scene of using a preset view page turning tool kit.
  8. 8. An electronic device, the electronic device comprising: One or more processors; storage means for storing one or more programs, The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the video switching method of any of claims 1-6.
  9. 9. A storage medium containing computer executable instructions for performing the video switching method of any of claims 1-6 when executed by a computer processor.

Description

Video switching method and device, electronic equipment and storage medium Technical Field The embodiment of the disclosure relates to the technical field of intelligent terminals, in particular to a video switching method, a video switching device, electronic equipment and a storage medium. Background In the short video domain, browsing content is provided to users in a continuously updated information stream. In the browsing interface of the video information stream, a number of operable elements are typically provided, such as a praise button, a comment button, a video description content, etc. However, when the user switches the video by sliding up and down on the mobile phone screen, a false touch event will often occur, and the false touch is caused by covering the operable elements on the video, so that the short video browsing experience is affected. Disclosure of Invention The embodiment of the disclosure provides a video switching method, a video switching device, electronic equipment and a storage medium, which can reduce occurrence probability of misoperation events caused by nonstandard sliding operation gestures, improve accuracy of user operation intention recognition and improve user experience. In a first aspect, an embodiment of the present disclosure provides a video switching method, including: Acquiring a touch operation event of a video information display interface, and judging whether the initial position of the touch operation event is at a preset characteristic position or not; When the initial position of the touch operation event is at a preset characteristic position, determining whether the touch operation event is a one-time sliding operation event or not based on a sliding operation identification strategy matched with the preset characteristic position; When the touch operation event is determined to be a sliding operation event, triggering a video switching instruction according to the sliding parameter of the touch operation event, and completing video switching. In a second aspect, an embodiment of the present disclosure further provides a video switching apparatus, including: the operation position confirmation module is used for acquiring a touch operation event of the video information display interface and judging whether the initial position of the touch operation event is at a preset characteristic position or not; the sliding event determining module is used for determining whether the touch operation event is a one-time sliding operation event or not based on a sliding operation identification strategy matched with a preset characteristic position when the initial position of the touch operation event is at the preset characteristic position; And the video switching module is used for triggering a video switching instruction according to the sliding parameter of the touch operation event to finish video switching when the touch operation event is determined to be the sliding operation event. In a third aspect, embodiments of the present disclosure further provide an electronic device, including: One or more processors; storage means for storing one or more programs, The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the video switching method as described in any of the embodiments of the present disclosure. In a fourth aspect, the disclosed embodiments also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing the video switching method according to any of the disclosed embodiments. According to the technical scheme, when a touch operation event of a video information display interface is acquired, whether the initial position of the touch operation event is at a preset characteristic position easy to cause false touch operation is judged, when the initial position of the touch operation event is at the preset characteristic position, a corresponding sliding operation identification strategy is matched with the touch operation event to determine whether the touch operation event is a sliding operation event, and finally, when the fact that the touch operation event is the sliding operation event is determined based on the corresponding sliding operation identification strategy, a video switching instruction is triggered according to the sliding parameter of the touch operation event to finish video switching. According to the technical scheme disclosed by the embodiment of the disclosure, the problems of low accuracy and high misoperation rate of identifying user operation on the video information display interface in the prior art are solved, the occurrence probability of misoperation events caused by nonstandard sliding operation gestures is reduced, the accuracy of identifying user operation intention is improved, and the user experience is improved. Drawings The above and other features, advantages, and aspects of em