Method, device, equipment and storage medium for switching multiple video templates
By using template configuration information and carrier transition animation in multiplayer video technology, the problem of lag during interface switching is solved, and a smoother interface switching experience is achieved.
Patent Information
- Application Number
- CN202211126994.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2042-09-16
AI Technical Summary
The existing multiplayer video technology is prone to stuttering when switching interfaces, affecting the user experience.
By displaying the first template interface, a template switching instruction is obtained, the template configuration information corresponding to the second template interface is found, the attribute differences of the video carrier are determined, and the video carrier is adjusted using the carrier transition animation to realize interface switching.
During interface switching, the video carrier is adjusted separately through the transition animation of the video carrier, the lag phenomenon is reduced, the fluency of interface switching is improved, and the user experience is improved.
Smart Images

Figure CN115514999B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of multi-person video technology, and in particular to a method, device, equipment and storage medium for switching multiple video templates. Background Art
[0002] Multi-person video is a technology commonly used in video conferencing, live broadcasting and other application scenarios. Each terminal connected to the multi-person video will display a video bearer (equivalent to a video window) during the multi-person video. The video bearer simultaneously displays the real-time video streams provided by each terminal connected to the multi-person video. These video streams can be video streams obtained by terminal screen recording or video streams shot by the terminal's camera.
[0003] During use, the terminal often needs to switch the displayed interface according to user operations, such as switching from a horizontal screen interface to a vertical screen interface. In the prior art, if the terminal needs to switch interfaces during a multi-person video, the entire interface including the video carrier is usually switched, such as directly replacing the interface before the switch with the interface after the switch. This switching method will produce obvious lag effects, and the user experience is poor. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides a method, device, equipment and storage medium for switching multiple video templates to alleviate the jamming effect when the interface is switched.
[0005] The first aspect of the present application provides a method for switching multiple video templates, comprising:
[0006] Displaying a first template interface; wherein the first template interface includes a video bearer, the video bearer is used to bear the video stream provided by each terminal accessing the multi-person video;
[0007] Obtaining a template switching instruction; wherein the template switching instruction is used to switch from the first template interface to the second template interface;
[0008] Searching for template configuration information corresponding to the second template interface according to the template switching instruction;
[0009] Determining the attributes of the video carrier in the second template interface according to the template configuration information; wherein the attributes include position, size, and whether it is draggable;
[0010] Comparing the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain attribute differences;
[0011] adjusting the video bearer using a bearer transition animation determined according to the attribute difference;
[0012] The second template interface is displayed.
[0013] Optionally, before displaying the first template interface, the method further includes:
[0014] According to the template configuration information of the first template interface, the attributes of the video carrier in the first template interface are determined.
[0015] Optionally, after determining the attribute of the video bearer in the first template interface according to the template configuration information of the first template interface, the method further includes:
[0016] The video bearer is bound to a video player for playing the video stream.
[0017] Optionally, obtaining the template switching instruction includes:
[0018] When it is detected that the orientation of the display screen is switched from portrait to landscape, a template switching instruction is obtained;
[0019] or,
[0020] When it is detected that the orientation of the display screen is switched from landscape to portrait, a template switching instruction is obtained.
[0021] A second aspect of the present application provides a device for switching multiple video templates, including:
[0022] A display unit, used to display a first template interface; wherein the first template interface includes a video carrier, and the video carrier is used to carry the video stream provided by each terminal accessing the multi-person video;
[0023] An obtaining unit, used for obtaining a template switching instruction; wherein the template switching instruction is used for switching from the first template interface to the second template interface;
[0024] A searching unit, configured to search for template configuration information corresponding to the second template interface according to the template switching instruction;
[0025] A determination unit, configured to determine the properties of the video carrier in the second template interface according to the template configuration information; wherein the properties include position, size, and whether it is draggable;
[0026] A comparing unit, used for comparing the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain attribute differences;
[0027] An adjustment unit is used to adjust the video carrier using a carrier transition animation determined according to the attribute difference; wherein the adjusted video carrier constitutes the second template interface.
[0028] Optionally, the determining unit is further configured to:
[0029] According to the template configuration information of the first template interface, the attributes of the video carrier in the first template interface are determined.
[0030] Optionally, the device further comprises a binding unit, which is used to bind the video carrier and a video player for playing the video stream.
[0031] Optionally, when the obtaining unit obtains the template switching instruction, it is specifically used to:
[0032] When it is detected that the orientation of the display screen is switched from portrait to landscape, a template switching instruction is obtained;
[0033] or,
[0034] When it is detected that the orientation of the display screen is switched from landscape to portrait, a template switching instruction is obtained.
[0035] A third aspect of the present application provides an electronic device, including a memory and a processor;
[0036] Wherein, the memory is used to store computer programs;
[0037] The processor is used to execute the computer program, and when the computer program is executed, it is specifically used to implement the method for switching multiple video templates provided in any one of the first aspects of the present application.
[0038] The fourth aspect of the present application provides a computer storage medium for storing a computer program. When the computer program is executed, it is specifically used to implement the method for switching multiple video templates provided in any one of the first aspects of the present application.
[0039] The present application provides a method, device, equipment and storage medium for switching multiple video templates, the method comprising: displaying a first template interface; wherein the first template interface comprises a video carrier, the video carrier is used to carry the video stream provided by each terminal accessing the multi-person video; obtaining a template switching instruction; wherein the template switching instruction is used to switch from the first template interface to the second template interface; searching for the template configuration information corresponding to the second template interface according to the template switching instruction; determining the attributes of the video carrier in the second template interface according to the template configuration information; wherein the attributes include position, size and whether it can be dragged; comparing the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain the attribute difference; adjusting the video carrier using the carrier transition animation determined according to the attribute difference; and then displaying the second template interface. When switching interfaces, this solution uses the corresponding transition animation to adjust each video carrier in the interface separately, so that the interface switching process is smoother and the jamming effect when the interface is switched is alleviated. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0041] Figure 1 A schematic diagram of a template interface provided in an embodiment of the present application;
[0042] Figure 2 A schematic diagram of another template interface provided in an embodiment of the present application;
[0043] Figure 3 A schematic diagram of another template interface provided in an embodiment of the present application;
[0044] Figure 4 A schematic diagram of another template interface provided in an embodiment of the present application;
[0045] Figure 5 A flowchart of a method for switching multiple video templates provided in an embodiment of the present application;
[0046] Figure 6 A flow chart of a method for determining attributes of a video carrier provided in an embodiment of the present application;
[0047] Figure 7 A schematic diagram of the structure of a device for switching multiple video templates provided in an embodiment of the present application;
[0048] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0050] In the embodiment of the present application, the template interface is used to refer to the video carrier and a video player displayed by the terminal during a multi-person video.
[0051] The video carrier (RecyclerView) is used to play the video stream provided by each terminal connected to the multi-person video, and the video player is used to play the video stream different from the video carrier.
[0052] For example, multiple hosts in a live broadcast are connected to each other, which is a typical multi-person video scenario. When the audience is watching a multi-person live broadcast, the audience's terminal can display a specific template interface, and each video carrier on the interface is used to play the real-time video stream of a host participating in the connection. At the same time, the audience can also watch the non-real-time video stream played in the video player, such as online TV series.
[0053] Depending on the user's settings and the orientation of the terminal's display screen, the terminal can display different forms of template interfaces. Figures 1 to 4 , which is a schematic diagram of four template interfaces provided in an embodiment of the present application.
[0054] exist Figure 1 In the template interface, the video carrier is displayed at the top of the template interface. Multiple real-time video streams provided by the terminal in the video carrier are displayed in rows. Each row includes up to three real-time video streams. When the number of real-time video streams displayed in a row is less than three, the real-time video streams in the row are displayed in a center-aligned manner. Below the video carrier, non-real-time video streams are played in the form of a floating window.
[0055] exist Figure 2 In the template interface, non-real-time video streams are displayed separately at the top of the template interface, and the video carrier is displayed below the non-real-time video streams. Each row displays up to three real-time video streams. When the number of real-time video streams displayed in a row is less than three, the real-time video streams in that row are displayed in a left-aligned manner.
[0056] exist Figure 3 In the template interface, the non-real-time video stream is displayed separately at the top of the template interface, and the video carrier is displayed below the non-real-time video stream in the form of a horizontal sliding list. Users can browse each real-time video stream carried in the video carrier by dragging the video carrier at the same time.
[0057] Figures 1 to 3 The interfaces shown are all template interfaces displayed when the terminal is a mobile phone and the orientation of the display screen is vertical.
[0058] exist Figure 4 In the template interface, non-real-time video streams are displayed on the left side of the template interface, and a video carrier in the form of a vertical sliding list is displayed on the right side of the template interface. Users can choose to view each real-time video stream in the video carrier by sliding vertically in the video carrier.
[0059] Figure 4 The interface shown is a template interface displayed when the terminal is a mobile phone and the display screen is in landscape orientation.
[0060] Understandably, Figures 1 to 4The template interface shown is only an optional example provided by this application. In actual application scenarios, the terminal can display Figures 1 to 4 Part or all of the interface shown, or display different from Figures 1 to 4 Other template interfaces.
[0061] The terminal described in this embodiment can be an electronic device such as a smart phone, a tablet computer, or a computer.
[0062] See also Figure 5 , is a flowchart of a method for switching multiple video templates provided in an embodiment of the present application, and the method may include the following steps.
[0063] S501, displaying a first template interface.
[0064] The first template interface includes a video bearer, and the video bearer is used to bear the video stream provided by each terminal accessing the multi-person video.
[0065] Generally, in a multi-person video scenario, the video stream provided by each terminal is a real-time video stream.
[0066] Multiple template interfaces available to the terminal in a multi-person video scenario, and template configuration information corresponding to each template interface, can be pre-downloaded and stored in the terminal's memory when the terminal installs a corresponding computer program.
[0067] The first template interface may be any one of a plurality of template interfaces pre-configured by the terminal. That is, step S501 may be executed when the user enables the multi-person video function of the terminal, and at this time, the terminal may select one of a plurality of preset template interfaces as the first template interface.
[0068] Alternatively, the terminal may also determine the template interface displayed when the multi-person video was ended last time as the first template interface. Figure 1 If the interface shown in the figure is displayed, then when S501 is executed this time, Figure 1 The interface shown is determined to be the first template interface.
[0069] It should be noted that the orientation of the display screen corresponding to the first template interface is consistent with the orientation of the terminal display screen when executing S501. For example, when executing S501, the orientation of the terminal display screen is vertical, then the first template interface displayed in S501 is the interface displayed in vertical orientation.
[0070] Optionally, before displaying the first template interface, the method further includes:
[0071] According to the template configuration information of the first template interface, the attribute of the video carrier in the first template interface is determined.
[0072] As mentioned above, the first template interface includes a video player and a video carrier, so before executing S501, the following can be executed: Figure 6 The method for determining the properties of the video carrier shown determines the properties of the video carrier in the first template interface based on the template configuration information corresponding to the first template interface.
[0073] like Figure 6 As shown, according to the template configuration information of the first template interface, determining the attributes of the video carrier in the first template interface may specifically include the following steps:
[0074] S601, reading drag information.
[0075] In step S601, the drag information may be read from the template configuration information corresponding to the first template interface.
[0076] In the embodiment of the present application, each preset template interface corresponds to a template configuration information (TemplateInfo), which may specifically include drag information (DragInfo), width ratio (SpanSize), aspect ratio (Proportion), and location information (ItemLocation).
[0077] The drag information is used to indicate whether the video carrier in the template interface is draggable.
[0078] For example, Figure 1 and Figure 2 The template interface shown in the figure shows that the drag information of the video carrier is not draggable. Figure 3 and Figure 4 In the template interface shown, the user needs to slide in the video carrier to view different real-time video streams, so the drag information is draggable.
[0079] S602: Determine whether the video carrier is draggable or not according to the drag information.
[0080] In step S602, if the dragging information in the template configuration information is draggable, the attribute of the video carrier of the first template interface is determined to be draggable; if the dragging information in the template configuration information is non-draggable, the attribute of the video carrier of the first template interface is determined to be non-draggable.
[0081] S603, reading the width ratio, and calculating the width of the video carrier according to the width ratio.
[0082] The width ratio is used to indicate the ratio of the width of the video bearer to the width of the terminal display screen. Thus, in S603, the width ratio can be read from the template configuration information, and then the width of the video bearer is calculated based on the width ratio and the width of the terminal display screen.
[0083] Exemplarily, the width ratio may be 0.95, the width of the terminal display screen may be 100 mm, and the width of the video carrier is equal to 100 mm multiplied by 0.95, ie, 95 mm.
[0084] S604, reading the aspect ratio, and calculating the height of the video carrier according to the aspect ratio and the width of the video carrier.
[0085] The aspect ratio is the ratio of the height to the width of the video carrier. In S604, the height of the video carrier can be calculated based on the width and aspect ratio of the video carrier calculated previously.
[0086] Continuing with the above example, assuming that the aspect ratio is 1:1, the height of the video carrier can be calculated to be 95 mm.
[0087] S605, reading the position information, and determining the position of the video carrier according to the position information.
[0088] The position information is used to indicate the position of the video carrier in the first template interface. Specifically, the position information may indicate the coordinates of the center of the video carrier in the first template interface.
[0089] After the width and height of the video carrier are determined, the position of the video carrier in the first template interface can be uniquely determined in combination with the coordinates of the center of the video carrier.
[0090] The advantage of determining the properties of the video carrier based on the template configuration information is that when the layout of a certain template interface needs to be adjusted, the values of the various information in the template configuration information can be directly adjusted, such as changing the width ratio, aspect ratio, etc. in the template configuration information. Therefore, this embodiment can easily and accurately adjust the various properties of the video carrier to meet the personalized needs of users.
[0091] In some optional embodiments, after determining the attribute of the video bearer in the first template interface according to the template configuration information of the first template interface, the method further includes:
[0092] Bind the video host to the video player.
[0093] After the binding is completed, the existing video information in the video carrier can be saved to the video player.
[0094] The beneficial effect of this embodiment is that by binding the video carrier and the video player, the video information in the video carrier can be directly stored in the video player, avoiding the creation of a memory space specifically for storing video information for the video carrier, thereby reducing memory waste.
[0095] S502: Obtain a template switching instruction.
[0096] The template switching instruction is used to switch from the first template interface to the second template interface.
[0097] In this embodiment, the template switching instruction can be obtained in multiple ways.
[0098] For example, obtaining a template switching instruction may include:
[0099] When it is detected that the orientation of the display screen is switched from portrait to landscape, a template switching instruction is obtained.
[0100] For example, when switching from a vertical screen to a horizontal screen, the terminal can obtain Figure 1 The interface shown switches to Figure 4 The template switching instructions of the interface shown in this example Figure 1 The interface shown is the first template interface. Figure 4 The interface shown is the second template interface.
[0101] Or it may include obtaining a template switching instruction when detecting that the orientation of the display screen is switched from a horizontal screen to a vertical screen.
[0102] In some other optional embodiments, the terminal may also obtain a template switching instruction in response to an operation of switching a template interface performed by a user. Figure 1 When the interface is displayed, the user can perform the operation of switching the template interface, which can specify Figure 1 The interface switches to Figure 2 The terminal can obtain Figure 1 The first template interface shown switches to Figure 2 The template switching instructions of the second template interface are shown.
[0103] S503: Search for template configuration information corresponding to the second template interface according to the template switching instruction.
[0104] Optionally, if the template configuration information corresponding to the second template configuration interface is not found in step S503, an error prompt may be output, the error prompt being used to indicate that the second template interface does not exist, or that the second template interface is unavailable, etc., and then this embodiment ends.
[0105] If the template configuration information corresponding to the second template interface is found, step S504 is executed.
[0106] S504: Determine the attributes of the video carrier in the second template interface according to the template configuration information.
[0107] Among them, the attributes include position, size, and whether it is draggable.
[0108] For the specific execution process of step S504, please refer to step S501. Figure 6 The process of determining the properties of the video carrier according to the template configuration information is shown and will not be described in detail.
[0109] S505, comparing the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain attribute differences.
[0110] The attribute difference may specifically include size difference and position difference. That is, through step S505, it is possible to determine how much larger or smaller the size of the video carrier in the first template interface is than the size of the video carrier in the second template interface, and to determine the deviation between the position of the video carrier in the first template interface and the position of the video carrier in the second template interface.
[0111] S506, adjusting the video carrier using the carrier transition animation determined according to the attribute difference, and displaying the second template interface.
[0112] The carrier transition animation can include scaling animation and displacement animation.
[0113] The zoom animation can be determined according to the size difference determined in step S505. Specifically, the zoom rate can be calculated according to the size difference and the preset zoom animation duration, and then the zoom animation is generated according to the zoom rate, and the zoom rate is used to indicate how much the size is zoomed per unit time (for example, every 0.1 second).
[0114] The displacement animation can be determined according to the position difference determined in step S505. Specifically, the displacement rate can be calculated according to the position difference and the preset displacement animation duration, and then the displacement animation is generated according to the displacement rate, and the displacement rate is used to indicate how much distance is moved per unit time (for example, per 0.1 second).
[0115] In step S506, the carrier transition animation is played first, and after the carrier transition animation is played, the second template interface is displayed.
[0116] The present application provides a method for switching multiple video templates, the method comprising: displaying a first template interface; wherein the first template interface comprises a video carrier, the video carrier is used to carry the video stream provided by each terminal accessing the multi-person video; obtaining a template switching instruction; wherein the template switching instruction is used to switch from the first template interface to the second template interface; searching for the template configuration information corresponding to the second template interface according to the template switching instruction; determining the attributes of the video carrier in the second template interface according to the template configuration information; wherein the attributes include position, size, and whether it can be dragged; comparing the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain the attribute difference; adjusting the video carrier using the carrier transition animation determined according to the attribute difference; and then displaying the second template interface. When switching interfaces, this solution uses the corresponding transition animation to adjust each video carrier in the interface separately, so that the interface switching process is smoother and the jamming effect when the interface is switched is alleviated.
[0117] According to the method for switching multiple video templates provided in this embodiment, the embodiment of the present application also provides a device for switching multiple video templates, see Figure 7 , the device may include the following units.
[0118] The display unit 701 is used to display the first template interface.
[0119] The first template interface includes a video bearer, and the video bearer is used to bear the video stream provided by each terminal accessing the multi-person video.
[0120] The obtaining unit 702 is used to obtain a template switching instruction.
[0121] The template switching instruction is used to switch from the first template interface to the second template interface.
[0122] The searching unit 703 is used to search for the template configuration information corresponding to the second template interface according to the template switching instruction.
[0123] The determining unit 704 is used to determine the attributes of the video carrier in the second template interface according to the template configuration information.
[0124] Among them, the attributes include position, size, and whether it is draggable.
[0125] The comparing unit 705 is used to compare the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain attribute differences.
[0126] The adjusting unit 706 is used to adjust the video bearer using the bearer transition animation determined according to the attribute difference.
[0127] The display unit 701 is used to display the second template interface.
[0128] Optionally, the determining unit 704 is further configured to:
[0129] According to the template configuration information of the first template interface, the attribute of the video carrier in the first template interface is determined.
[0130] Optionally, the device further includes a binding unit 707, which is used to bind the video carrier and the video player.
[0131] Optionally, when the obtaining unit 702 obtains the template switching instruction, it is specifically used to:
[0132] When it is detected that the orientation of the display screen is switched from portrait to landscape, a template switching instruction is obtained;
[0133] or,
[0134] When it is detected that the orientation of the display screen is switched from landscape to portrait, a template switching instruction is obtained.
[0135] The present application provides a device for switching multiple video templates, the device comprising: a display unit 701 displays a first template interface; wherein the first template interface includes a video carrier, the video carrier is used to carry the video stream provided by each terminal accessing the multi-person video; an obtaining unit 702 obtains a template switching instruction; wherein the template switching instruction is used to switch from the first template interface to the second template interface; a search unit 703 searches for template configuration information corresponding to the second template interface according to the template switching instruction; a determination unit 704 determines the attributes of the video carrier in the second template interface according to the template configuration information; wherein the attributes include position, size and whether it can be dragged; a comparison unit 705 compares the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain the attribute difference; an adjustment unit 706 adjusts the video carrier using the carrier transition animation determined according to the attribute difference; and a display unit 701 displays the second template interface. In this solution, when switching interfaces, each video carrier in the interface is adjusted separately using the corresponding transition animation, so that the interface switching process is smoother and the jamming effect when the interface is switched is alleviated.
[0136] The present application also provides an electronic device. Figure 8 , including a memory 801 and a processor 802.
[0137] The memory 801 is used to store computer programs.
[0138] The processor 802 is used to execute a computer program. When the computer program is executed, it is specifically used to implement the method for switching multiple video templates provided in any embodiment of the present application.
[0139] An embodiment of the present application also provides a computer storage medium for storing a computer program. When the computer program is executed, it is specifically used to implement the method for switching multiple video templates provided in any embodiment of the present application.
[0140] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0141] It should be noted that the concepts such as "first" and "second" mentioned in the present invention 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.
[0142] The present application can be implemented or used by professionals and technicians. Various modifications to these embodiments will be apparent to professionals and technicians in the field, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for switching multiple video templates, characterized in that: include: Displaying a first template interface; wherein the first template interface includes a video bearer, the video bearer is used to bear the video stream provided by each terminal accessing the multi-person video; Obtaining a template switching instruction; wherein the template switching instruction is used to switch from the first template interface to the second template interface; Searching for template configuration information corresponding to the second template interface according to the template switching instruction; Determining the attributes of the video carrier in the second template interface according to the template configuration information; wherein the attributes include position, size, and whether it is draggable; Comparing the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain attribute differences; the attribute differences include size differences and position differences; The video carrier is adjusted using a carrier transition animation determined according to the attribute difference; the carrier transition animation includes a scaling animation and a displacement animation; The second template interface is displayed.
2. The method according to claim 1, characterized in that Before displaying the first template interface, the method further includes: According to the template configuration information of the first template interface, the attributes of the video carrier in the first template interface are determined.
3. The method according to claim 2, characterized in that After determining the attribute of the video bearer in the first template interface according to the template configuration information of the first template interface, the method further includes: The video bearer is bound to a video player for playing the video stream.
4. The method according to claim 1, characterized in that: The obtaining of the template switching instruction comprises: When it is detected that the orientation of the display screen is switched from portrait to landscape, a template switching instruction is obtained; or, When it is detected that the orientation of the display screen is switched from landscape to portrait, a template switching instruction is obtained.
5. A device for switching multiple video templates, characterized in that: include: A display unit, used to display a first template interface; wherein the first template interface includes a video carrier, and the video carrier is used to carry the video stream provided by each terminal accessing the multi-person video; An obtaining unit, used for obtaining a template switching instruction; wherein the template switching instruction is used for switching from the first template interface to the second template interface; A searching unit, configured to search for template configuration information corresponding to the second template interface according to the template switching instruction; A determination unit, configured to determine the properties of the video carrier in the second template interface according to the template configuration information; wherein the properties include position, size, and whether it is draggable; A comparison unit, used for comparing the attributes of the video carrier in the first template interface with the attributes of the video carrier in the second template interface to obtain attribute differences; the attribute differences include size differences and position differences; An adjustment unit, used for adjusting the video carrier using a carrier transition animation determined according to the attribute difference; wherein the adjusted video carrier constitutes the second template interface; and the carrier transition animation includes a scaling animation and a displacement animation; The display unit is used to display the second template interface.
6. The device according to claim 5, characterized in that The determining unit is further configured to: According to the template configuration information of the first template interface, the attributes of the video carrier in the first template interface are determined.
7. The device according to claim 6, characterized in that The device also includes a binding unit, which is used to bind the video carrier and a video player for playing the video stream.
8. The device according to claim 5, characterized in that When the obtaining unit obtains the template switching instruction, it is specifically used to: When it is detected that the orientation of the display screen is switched from portrait to landscape, a template switching instruction is obtained; or, When it is detected that the orientation of the display screen is switched from landscape to portrait, a template switching instruction is obtained.
9. A computer storage medium, characterized in that Used to store a computer program, which, when executed, is specifically used to implement the method for switching multiple video templates as described in any one of claims 1 to 4.
10. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to execute the computer program, specifically to implement the method for switching multiple video templates as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Video playing switching method and device, electronic equipment and storage medium
CN111757164A