IP Library › Granted Patent US 11,863,835
Granted Patent B2
US 11,863,835 · App. 17/887,077 · Granted Jan 2, 2024

Interaction method and apparatus, and electronic device

Inventors: Anni Wu (Beijing, CN); Xiaolin Li (Beijing, CN); Hongyu Yang (Beijing, CN); Yupeng Chen (Beijing, CN); Yingjie Sun (Beijing, CN); Panyi Yang (Beijing, CN)
Assignee: DOUYIN VISION CO., LTD.
H04N21/4854H04N21/25825H04N21/47217
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,863,835
App. No.
17/887,077
Granted
Jan 2, 2024
Kind
B2
Abstract

An interaction method, an interaction apparatus, and an electronic device are provided. The method includes: determining, in response to detecting a predefined size transformation operation, target transformation information of a target video based on whether a current size of the target video is a preset anchor point size, where the target video is a video played in a video play area; and transforming the target video based on the target transformation information, and playing the transformed target video.

Claims (51)

1. An interaction method, comprising:

determining, in response to detecting a size transformation operation, target transformation information of a target video based on whether a current size of the target video is a preset anchor point size, wherein the target video is a video played in a video play area, wherein the preset anchor point size corresponds to an operation type and preset transformation information, and wherein the determining, in response to detecting a size transformation operation, target transformation information of a target video based on whether a current size of the target video is a preset anchor point size further comprises:

in response to determining that the current size of the target video is the preset anchor point size and determining that a type of the size transformation operation is the operation type corresponding to the preset anchor point size, identifying the preset transformation information corresponding to the preset anchor point size as the target transformation information, and

in response to determining that the current size of the target video is not the preset anchor point size or determining that the type of the size transformation operation is not the operation type corresponding to the preset anchor point size, entering a free-scaling mode in which the target transformation information is determined based on transformation information indicated by the size transformation operation and the current size of the target video; and

transforming the target video based on the target transformation information, and playing the transformed target video.

2. The method according to claim 1 , wherein

the size transformation operation comprises an enlarging operation, the preset anchor point size comprises an original image size, and preset transformation information corresponding to the original image size indicates a full-screen image size, an operation type corresponding to the original image size is the enlarging operation; and the determining, in response to determining that the current size is the preset anchor point size and in response to the operation type of the size transformation operation corresponding to the preset anchor point size, the preset transformation information corresponding to the preset anchor point size as the target transformation information comprises: determining, in response to determining that the current size is the original image size and in response to detecting the enlarging operation, the preset transformation information indicating the full-screen image size as the target transformation information; and/or

the size transformation operation comprises a narrowing operation, the preset anchor point size comprises a full-screen image size, and preset transformation information corresponding to the full-screen image size indicates an original image size, an operation type corresponding to the full-screen image size is the narrowing operation; and the determining, in response to determining that the current size is the preset anchor point size and in response to the operation type of the size transformation operation corresponding to the preset anchor point size, the preset transformation information corresponding to the preset anchor point size as the target transformation information comprises: determining, in response to determining that the current size is the full-screen image size and in response to detecting the narrowing operation, the preset transformation information indicating the original image size as the target transformation information.

3. The method according to claim 1 ,

wherein the type of the size transformation operation is determined based on a ratio of a real-time size of the target video when the size transformation operation is released to the current size of the target video.

4. The method according to claim 3 , wherein before the size transformation operation is released, a size of the target video is transformed in real time based on the transformation information indicated by the size transformation operation.

5. The method according to claim 1 , further comprising:

displaying, in response to determining that a size of the transformed target video is not an original image size, a restore control, wherein the restore control is used for transforming the target video to the original image size.

6. The method according to claim 1 , further comprising:

moving, in response to detecting a predefined moving operation and in response to determining that the current size of the target video is greater than a size of the video play area, the target video in the video play area.

7. The method according to claim 1 , further comprising:

detecting, in response to the end of the size transformation operation and/or a moving operation, whether the target video is moved out of the video play area; and

correcting, in response to determining that the target video is moved out of the video play area, a video picture in the video play area.

8. The method according to claim 1 , further comprising:

packaging a first layer into a second layer, wherein a layer corresponding to a player is the first layer, and a target video in the second layer has the same play progress as a target video in the first layer, the target video in the second layer is used for transformation based on the size transformation operation and/or a moving operation.

9. The method according to claim 8 , wherein the target video in the second layer is transformed by:

determining a transformation coefficient based on operation position information of the size transformation operation and/or the moving operation, wherein the transformation coefficient comprises at least one of size transformation information and a moving coefficient; and

transforming the target video in the second layer based on the transformation coefficient.

10. The method according to claim 9 , further comprising:

acquiring a target video picture that matches the video play area from the target video in the second layer; and

playing the target video picture that matches the video play area in the video play area.

11. The method according to claim 1 , wherein the determining target transformation information of a target video based on whether a current size of the target video is a preset anchor point size comprises:

determining the target transformation information based on an operation type of the size transformation operation and the preset anchor point size.

12. The method according to claim 11 , wherein the determining the target transformation information based on an operation type of the size transformation operation and the preset anchor point size comprises:

using a first target transformation information in response to the operation type and the preset anchor point size satisfying a first preset relationship, wherein the first target transformation information indicates that the size of the target video is switched between different preset anchor point sizes; and

using second target transformation information in response to the operation type and the preset anchor point size satisfying a second preset relationship, wherein the second target transformation information corresponds to a free-scaling mode.

13. The method according to claim 12 , wherein

the first preset relationship indicates that the operation type, the current size of the target video and the preset anchor point size satisfy a preset first correspondence or do not satisfy a preset second correspondence; and/or

the second preset relationship indicates that the operation type, the current size of the target video and the preset anchor point size do not satisfy the preset first correspondence or satisfy the preset second correspondence.

14. The method according to claim 12 , wherein

the first preset relationship comprises a case that the current size of the target video is an original image size, the operation type is an enlarging operation, and the target transformation information comprises transforming the target video to a full-screen image size; and/or, a case that the current size of the target video is the full-screen image size, the operation type is a narrowing operation, and the target transformation information comprises transforming the target video to the original image size; and/or

the second preset relationship comprises a case that the current size of the target video is the original image size, the operation type is the narrowing operation, and the target transformation information comprises freely scaling the target video based on operation information; and/or, a case that the current size of the target video is the full-screen image size, the operation type is the enlarging operation, and the target transformation information comprises freely scaling the target video based on the operation information.

15. A video transformation method, comprising:

packaging a first layer into a second layer, wherein a target video in the second layer has the same play progress as a target video in the first layer, and a layer corresponding to a player is the first layer; and

transforming the target video in the second layer based on target transformation information determined in response to detecting a size transformation operation, wherein determining the target transformation information comprises determining the target transformation information based on whether a current size of the target video is a preset anchor point size, wherein the preset anchor point size corresponds to an operation type and preset transformation information, and wherein the determining the target transformation information based on whether a current size of the target video is a preset anchor point size further comprises:

in response to determining that the current size of the target video is the preset anchor point size and determining that a type of the size transformation operation is the operation type corresponding to the preset anchor point size, identifying the preset transformation information corresponding to the preset anchor point size as the target transformation information, and

in response to determining that the current size of the target video is not the preset anchor point size or determining that the type of the size transformation operation is not the operation type corresponding to the preset anchor point size, entering a free-scaling mode in which the target transformation information is determined based on transformation information indicated by the size transformation operation and the current size of the target video.

16. The method according to claim 15 , wherein the layer corresponding to the player is the first layer to isolate video play from video transformation.

17. An electronic device comprising:

one or more processors;

a storage apparatus storing one or more programs, the one or more programs, when executed by the one or more processors, causing the one or more processors to:

determine, in response to detecting a size transformation operation, target transformation information of a target video based on whether a current size of the target video is a preset anchor point size, wherein the target video is a video played in a video play area, wherein the preset anchor point size corresponds to an operation type and preset transformation information, and wherein determining, in response to detecting a size transformation operation, target transformation information of a target video based on whether a current size of the target video is a preset anchor point size further comprises:

in response to determining that the current size of the target video is the preset anchor point size and determining that a type of the size transformation operation is the operation type corresponding to the preset anchor point size, identifying the preset transformation information corresponding to the preset anchor point size as the target transformation information, and

in response to determining that the current size of the target video is not the preset anchor point size or determining that the type of the size transformation operation is not the operation type corresponding to the preset anchor point size, entering a free-scaling mode in which the target transformation information is determined based on transformation information indicated by the size transformation operation and the current size of the target video; and

transform the target video based on the target transformation information, and playing the transformed target video.

18. A non-transitory computer-readable medium storing a computer program, the computer program, when executed by a processor, causing the processor to perform the method according to claim 1 .

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 16, 2023
From: WU, ANNI; LI, XIAOLIN; YANG, HONGYU; CHEN, YUPENG; SUN, YINGJIE; YANG, PANYI
To: DOUYIN VISION CO., LTD.
Reel/Frame 065591/0955 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 16, 2023
From: YANG, HONGYU
To: HANGZHOU OCEAN ENGINE NETWORK TECHNOLOGY CO., LTD.
Reel/Frame 065592/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 16, 2023
From: HANGZHOU OCEAN ENGINE NETWORK TECHNOLOGY CO., LTD.
To: DOUYIN VISION CO., LTD.
Reel/Frame 065592/0022 →
Priority Claims (1)
CN 202010764798.2 · Jul 31, 2020 · national
Continuity (2)
Continuation PCTCN2021109648 · Jul 30, 2021
Related Publication 20230171472A1 · Jun 1, 2023
Cited By (1)
US 12,316,922