CN115514999A - Method, device, equipment and storage medium for switching multiple video templates - Google Patents

Method, device, equipment and storage medium for switching multiple video templates Download PDF

Info

Publication number
CN115514999A
CN115514999A CN202211126994.2A CN202211126994A CN115514999A CN 115514999 A CN115514999 A CN 115514999A CN 202211126994 A CN202211126994 A CN 202211126994A CN 115514999 A CN115514999 A CN 115514999A
Authority
CN
China
Prior art keywords
template
video
interface
attribute
template interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211126994.2A
Other languages
Chinese (zh)
Inventor
程显玮
黄豪
熊平利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202211126994.2A priority Critical patent/CN115514999A/en
Publication of CN115514999A publication Critical patent/CN115514999A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4314Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/482End-user interface for program selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for switching multiple video templates, wherein the method comprises the steps of displaying a first template interface, wherein the first template interface comprises a video bearer, and the video bearer is used for bearing video streams provided by each terminal accessed with a multi-user video; obtaining a template switching instruction for switching from a first template interface to a second template interface; determining the attribute of a video carrier in a second template interface according to the template configuration information; comparing the attribute of the video bearer in the first template interface with the attribute of the video bearer in the second template interface to obtain an attribute difference; and adjusting the video carrier by using the carrier transition animation determined according to the attribute difference, and then displaying a second template interface. According to the scheme, when the interface is switched, each video bearer in the interface is independently adjusted by using the corresponding transition animation, so that the interface switching process is smoother, and the blocking effect during interface switching is relieved.

Description

Method, device, equipment and storage medium for switching multiple video templates
Technical Field
The invention relates to the technical field of multi-person videos, in particular to a method, a device, equipment and a storage medium for switching multiple video templates.
Background
The multi-person video is a commonly used technology in application scenes such as video conferences and live broadcast with wheat. Each terminal accessing the multi-person video displays a video bearer (equivalent to a video window) during the multi-person video, and simultaneously displays real-time video streams provided by each terminal accessing the multi-person video through the video bearer, wherein the video streams can be video streams obtained by terminal screen recording or video streams shot by a camera of the terminal.
The terminal often needs to switch the displayed interface according to user operation during use, such as switching from a horizontal screen interface to a vertical screen interface. In the prior art, if a terminal needs to switch an interface during a multi-user video, the whole interface including a video bearer is usually switched, for example, the interface before switching is directly replaced by the interface after switching, and this switching manner may generate an obvious pause effect, and the user experience is poor.
Disclosure of Invention
In view of the above drawbacks of the prior art, the present invention provides a method, an apparatus, a device and a storage medium for switching multiple video templates, so as to alleviate the clicking effect during interface switching.
A first aspect of the present application provides a method for switching multiple video templates, including:
displaying a first template interface; the first template interface comprises a video bearer, and the video bearer is used for bearing video streams provided by each terminal accessed to the multi-person video;
obtaining a template switching instruction; the template switching instruction is used for switching from the first template interface to the second template interface;
searching template configuration information corresponding to the second template interface according to the template switching instruction;
determining the attribute of a video carrier in the second template interface according to the template configuration information; wherein the attributes include a position, a size, and whether draggable or not;
comparing the attribute of the video bearer in the first template interface with the attribute of the video bearer in the second template interface to obtain an attribute difference;
adjusting the video carrier by using carrier transition animation determined according to the attribute difference;
and displaying the second template interface.
Optionally, before the displaying the first template interface, the method further includes:
and determining the attribute of the video carrier in the first template interface according to the template configuration information of the first template interface.
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:
and binding the video bearer with a video player for playing video streams.
Optionally, the obtaining of the template switching instruction includes:
when the direction of the display screen is detected to be switched from a vertical screen to a horizontal screen, a template switching instruction is obtained;
or,
and when the direction of the display screen is detected to be switched from the horizontal screen to the vertical screen, a template switching instruction is obtained.
A second aspect of the present application provides an apparatus for switching multiple video templates, comprising:
the display unit is used for displaying the first template interface; the first template interface comprises a video bearer, and the video bearer is used for bearing video streams provided by each terminal accessed to the multi-person video;
an obtaining unit configured to obtain a template switching instruction; the template switching instruction is used for switching from the first template interface to the second template interface;
the searching unit is used for searching the template configuration information corresponding to the second template interface according to the template switching instruction;
a determining unit, configured to determine, according to the template configuration information, an attribute of a video bearer in the second template interface; wherein the attributes include a position, a size, and whether draggable or not;
the comparison unit is used for comparing the attribute of the video carrier in the first template interface with the attribute of the video carrier in the second template interface to obtain an attribute difference;
the adjusting unit is used for adjusting the video carrier by utilizing the carrier transition animation determined according to the attribute difference; wherein the adjusted video bearer constitutes the second template interface.
Optionally, the determining unit is further configured to:
and determining the attribute of the video carrier in the first template interface according to the template configuration information of the first template interface.
Optionally, the apparatus further includes a binding unit, configured to bind the video bearer and a video player for playing a video stream.
Optionally, when the obtaining unit obtains the template switching instruction, the obtaining unit is specifically configured to:
when the direction of the display screen is detected to be switched from a vertical screen to a horizontal screen, a template switching instruction is obtained;
or,
and when the direction of the display screen is detected to be switched from the horizontal screen to the vertical screen, a template switching instruction is obtained.
A third aspect of the present application provides an electronic device comprising a memory and a processor;
wherein the memory is for storing a computer program;
the processor is configured to execute the computer program, and when the computer program is executed, the computer program is specifically configured to implement the method for switching multiple video templates provided in any one of the first aspects of the present application.
A fourth aspect of the present application provides a computer storage medium for storing a computer program, which when executed, is particularly adapted to implement the method for switching between multiple video templates provided in any one of the first aspects of the present application.
The application provides a method, a device, equipment and a storage medium for switching multiple video templates, wherein the method comprises the steps of displaying a first template interface; the first template interface comprises a video bearer, and the video bearer is used for bearing a video stream provided by each terminal accessed with the multi-person video; obtaining a template switching instruction; the template switching instruction is used for switching from a first template interface to a second template interface; searching template configuration information corresponding to a second template interface according to the template switching instruction; determining the attribute of a video carrier in a second template interface according to the template configuration information; wherein the attributes include position, size and whether draggable or not; comparing the attribute of the video bearer in the first template interface with the attribute of the video bearer in the second template interface to obtain an attribute difference; adjusting the video carrier by utilizing the carrier transition animation determined according to the attribute difference; a second template interface is then displayed. According to the scheme, when the interface is switched, each video bearer in the interface is independently adjusted by using the corresponding transition animation, so that the interface switching process is smoother, and the blocking effect during interface switching is relieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a schematic diagram of a template interface provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of another template interface provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of yet another exemplary template interface provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of yet another template interface provided by an embodiment of the present application;
fig. 5 is a flowchart of a method for switching between multiple video templates according to an embodiment of the present application;
FIG. 6 is a flowchart of a method for determining attributes of a video carrier according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an apparatus for switching multiple video templates according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the application, the template interface is used for indicating that during the multi-person video, the terminal display comprises a video bearer and a video player.
The video bearer (recycleview) is used for playing a video stream provided by each terminal accessing the multi-person video, and the video player is used for playing a video stream different from the video bearer.
Illustratively, in the network live broadcast, a plurality of anchor microphones are connected, which is a typical multi-person video scene. When watching a multi-player live broadcast, a viewer terminal may display a specific template interface, where each video bearer on the interface is used to play a real-time video stream of a main broadcast participating in a live broadcast, and meanwhile, the viewer may also watch a non-real-time video stream played in a video player, such as an online-played tv series.
According to different settings of a user and the direction of a display screen of the terminal, the terminal can display template interfaces in different forms. Please refer to fig. 1 to 4, which are schematic diagrams of four template interfaces provided in an embodiment of the present application.
In fig. 1, a video bearer is displayed on top of a template interface, a plurality of real-time video streams provided by terminals in the video bearer are displayed in rows, each row includes at most three real-time video streams, and when the number of real-time video streams displayed in a row is less than three, the real-time video streams of the row are displayed in a centered alignment manner. Below the video carrier, the non-real-time video stream is played in the form of a floating window.
In fig. 2, the non-real-time video streams are displayed separately on the top of the template interface, the video bearer is displayed below the non-real-time video streams, each line displays at most three real-time video streams, and when the number of real-time video streams displayed in a line is less than three, the real-time video streams in the line are displayed in a left-aligned manner.
In fig. 3, the non-real-time video streams are displayed separately on the top of the template interface, and the video bearer is displayed in the form of a horizontal sliding list below the non-real-time video streams, so that the user can browse each real-time video stream borne in the video bearer by dragging the video bearer at the same time.
The interfaces shown in fig. 1 to 3 are all template interfaces displayed when the terminal is a mobile phone and the display screen is in a vertical direction.
In fig. 4, the non-real-time video streams are displayed on the left side of the template interface, and a vertical slide-list type video bearer is displayed on the right side of the template interface, so that the user can select to view each real-time video stream in the video bearer by vertically sliding in the video bearer.
The interface shown in fig. 4 is a template interface displayed when the terminal is a mobile phone and the direction of the display screen is a landscape screen.
It can be understood that the template interfaces shown in fig. 1 to 4 are only optional examples provided in the present application, and in an actual application scenario, the terminal may display some or all of the interfaces shown in fig. 1 to 4 or other template interfaces different from those shown in fig. 1 to 4 according to an operation of a user.
The terminal described in this embodiment may be an electronic device such as a smart phone, a tablet computer, and a computer.
Referring to fig. 5, a flowchart of a method for switching between multiple video templates according to an embodiment of the present application is shown.
S501, displaying a first template interface.
The first template interface comprises a video bearer, and the video bearer is used for bearing video streams provided by each terminal accessing the multi-person video.
Generally, in a multi-person video scene, the video stream provided by each terminal is a real-time video stream.
The terminal can download and store a plurality of available template interfaces in a multi-person video scene and the template configuration information corresponding to each template interface in the memory of the terminal in advance when the terminal is provided with a corresponding computer program.
The first template interface may be any one of a plurality of template interfaces configured in advance by the terminal. That is, step S501 may be performed when the user enables the multi-user 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.
Or, the terminal may also determine the template interface displayed when the multi-person video is ended last time as the first template interface. For example, the interface displayed by the terminal when the multi-person video is ended last time is the interface shown in fig. 1, and then the interface shown in fig. 1 is determined as the first template interface when S501 is executed this time.
It should be noted that the direction of the display screen corresponding to the first template interface is the same as the direction of the display screen of the terminal when S501 is executed. For example, when S501 is executed, the direction of the display screen of the terminal is a vertical screen, and then the first template interface displayed in S501 is the interface displayed when the screen is vertical.
Optionally, before displaying the first template interface, the method further includes:
and determining the attribute of the video bearer in the first template interface according to the template configuration information of the first template interface.
As described above, the first template interface includes a video player and a video bearer, and therefore before S501 is executed, the method for determining the attribute of the video bearer as shown in fig. 6 may be executed, so as to determine the attribute of the video bearer in the first template interface according to the template configuration information corresponding to the first template interface.
As shown in fig. 6, determining the attribute of the video bearer in the first template interface according to the template configuration information of the first template interface may specifically include the following steps:
s601, reading the dragging information.
In step S601, the dragging information may be read from the template configuration information corresponding to the first template interface.
In the embodiment of the application, each preset template interface corresponds to template configuration information (template info), which may specifically include drag information (DragInfo), width ratio (SpanSize), width-to-height ratio (contribution), and location information (ItemLocation).
Wherein the drag information is used to indicate whether the video carrier is draggable in the template interface.
For example, for the template interfaces shown in fig. 1 and fig. 2, the drag information of the video bearer is non-draggable, and for the template interfaces shown in fig. 3 and fig. 4, the user needs to slide in the video bearer to view different real-time video streams, so that the drag information is draggable.
And S602, determining that the video carrier can be dragged or can not be dragged according to the dragging information.
In step S602, if the drag information in the template configuration information is draggable, the attribute of the video bearer in the first template interface is determined as draggable, and if the drag information in the template configuration information is not draggable, the attribute of the video bearer in the first template interface is determined as not draggable.
S603, reading the width proportion, and calculating the width of the video carrier according to the width proportion.
A width ratio for indicating a ratio of a width of the video carrier to a width of a display screen of the terminal. Thus, in S603, the width ratio can be read from the template configuration information, and then the width of the video bearer can be calculated according to the width ratio and the width of the display screen of the terminal.
Illustratively, the width ratio may be 0.95, the width of the terminal display may be 100 mm, and the width of the video carrier is equal to 100 mm multiplied by 0.95, i.e. 95 mm.
S604, the width-height ratio is read, and the height of the video carrier is calculated according to the width-height ratio and the width of the video carrier.
The aspect ratio is a ratio of the height and the width of the video carrier, and in S604, the height of the video carrier can be calculated according to the width and the aspect ratio of the video carrier calculated in the foregoing.
Continuing with the foregoing example, assume that the aspect ratio is 1:1, the height of the video carrier can be calculated to be 95 mm.
And S605, reading the position information, and determining the position of the video bearer according to the position information.
Position information indicating a position of the video carrier in the first template interface. In particular, the position information may indicate coordinates of a center of the video carrier in the first template interface.
After the width and height of the video carrier have been 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.
The advantage of determining the attribute of the video bearer according to the template configuration information is that when the layout of a certain template interface needs to be adjusted, the values of various items of information in the template configuration information can be directly adjusted, for example, the width ratio, the width-height ratio, and the like in the template configuration information are changed.
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:
the video bearer and the video player are bound.
After the binding is completed, the existing video information in the video bearer can be stored in the video player.
The method and the device have the advantages that the video bearer and the video player are bound, so that the video information in the video bearer can be directly stored in the video player, the memory space specially used for storing the video information is prevented from being created for the video bearer, and the memory waste is reduced.
And S502, obtaining a template switching instruction.
And the template switching instruction is used for switching from the first template interface to the second template interface.
The template switching instruction in this embodiment may be obtained in various ways.
For example, obtaining the template switching instruction may include:
and when the direction of the display screen is detected to be switched from the vertical screen to the horizontal screen, a template switching instruction is obtained.
For example, when the vertical screen is switched to the horizontal screen, the terminal may obtain a template switching instruction for switching from the interface shown in fig. 1 to the interface shown in fig. 4, where the interface shown in fig. 1 is a first template interface, and the interface shown in fig. 4 is a second template interface in this example.
Or the method can comprise the step of obtaining a template switching instruction when the direction of the display screen is detected to be switched from the horizontal screen to the vertical screen.
In other alternative embodiments, the terminal may also obtain the template switching instruction in response to an operation performed by the user to switch the template interface. For example, while the interface shown in fig. 1 is displayed, the user may perform an operation of switching the template interface, which may specify switching from the interface of fig. 1 to the interface of fig. 2, whereby the terminal may obtain a template switching instruction to switch from the first template interface shown in fig. 1 to the second template interface shown in fig. 2.
And S503, searching template configuration information corresponding to the second template interface according to the template switching instruction.
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, where the error prompt is used to indicate that the second template interface does not exist, or indicate that the second template interface is unavailable, and the present embodiment is ended.
If the template configuration information corresponding to the second template interface is found, step S504 is executed.
S504, determining the attribute of the video bearer in the second template interface according to the template configuration information.
Wherein the attributes include location, size, and whether draggable or not.
The specific implementation process of step S504 may refer to the process of determining the attribute of the video bearer according to the template configuration information shown in fig. 6 in step S501, which is not described again.
And S505, comparing the attribute of the video bearer in the first template interface with the attribute of the video bearer in the second template interface to obtain attribute difference.
The attribute difference may specifically include a size difference and a position difference. That is, through step S505, it may be determined how much the size of the video bearer in the first template interface is larger or smaller than the size of the video bearer in the second template interface, and a deviation between the position of the video bearer in the first template interface and the position of the video bearer in the second template interface.
S506, the video carrier is adjusted by the carrier transition animation determined according to the attribute difference, and a second template interface is displayed.
The carrier transition animation can comprise a scaling animation and a displacement animation.
The scaling animation may be determined according to the size difference determined in step S505. Specifically, the scaling rate may be calculated according to the size difference and a preset duration of the scaling animation, and then the scaling animation may be generated according to the scaling rate, where the scaling rate is used to indicate how much the size is scaled per unit time (e.g., per 0.1 second).
The displacement animation may be determined according to the position difference determined in step S505. Specifically, the displacement rate may be calculated according to the position difference and a preset displacement animation duration, and then the displacement animation may be generated according to the displacement rate, where the displacement rate is used to indicate how much distance each unit time (e.g., every 0.1 second) moves.
In step S506, the carrier transition animation is played first, and after the carrier transition animation is played, the second template interface is displayed.
The application provides a method for switching multiple video templates, which comprises the steps of displaying a first template interface; the first template interface comprises a video bearer, and the video bearer is used for bearing video streams provided by each terminal accessed to the multi-person video; obtaining a template switching instruction; the template switching instruction is used for switching from a first template interface to a second template interface; searching template configuration information corresponding to a second template interface according to the template switching instruction; determining the attribute of a video carrier in a second template interface according to the template configuration information; wherein the attributes include position, size and whether draggable or not; comparing the attribute of the video bearer in the first template interface with the attribute of the video bearer in the second template interface to obtain an attribute difference; adjusting the video carrier by utilizing the carrier transition animation determined according to the attribute difference; the second template interface is then displayed. When the interface is switched, each video bearer in the interface is independently adjusted by using the corresponding transition animation, so that the interface switching process is smoother, and the pause effect during interface switching is relieved.
According to the method for switching multiple video templates provided in this embodiment, an embodiment of the present application further provides a device for switching multiple video templates, please refer to fig. 7, and the device may include the following units.
A display unit 701, configured to display the first template interface.
The first template interface comprises a video bearer, and the video bearer is used for bearing video streams provided by each terminal accessing the multi-person video.
An obtaining unit 702 is configured to obtain a template switching instruction.
The template switching instruction is used for switching from the first template interface to the second template interface.
The searching unit 703 is configured to search for template configuration information corresponding to the second template interface according to the template switching instruction.
A determining unit 704, configured to determine an attribute of a video bearer in the second template interface according to the template configuration information.
Wherein the attributes include position, size, and whether draggable.
The comparing unit 705 is configured to compare the attribute of the video bearer in the first template interface with the attribute of the video bearer in the second template interface to obtain an attribute difference.
An adjusting unit 706, configured to adjust the video bearer using the bearer transition animation determined according to the attribute difference.
And a display unit 701, configured to display the second template interface.
Optionally, the determining unit 704 is further configured to:
and determining the attribute of the video bearer in the first template interface according to the template configuration information of the first template interface.
Optionally, the apparatus further comprises a binding unit 707 for binding the video carrier and the video player.
Optionally, when the obtaining unit 702 obtains the template switching instruction, the obtaining unit is specifically configured to:
when the direction of the display screen is detected to be switched from a vertical screen to a horizontal screen, a template switching instruction is obtained;
or,
and when the direction of the display screen is detected to be switched from the horizontal screen to the vertical screen, a template switching instruction is obtained.
The application provides a device for switching multiple video templates, which comprises a display unit 701 for displaying a first template interface; the first template interface comprises a video bearer, and the video bearer is used for bearing video streams provided by each terminal accessed to the multi-person video; the obtaining unit 702 obtains a template switching instruction; the template switching instruction is used for switching from a first template interface to a second template interface; the searching unit 703 searches for template configuration information corresponding to the second template interface according to the template switching instruction; the determining unit 704 determines the attribute of the video bearer in the second template interface according to the template configuration information; wherein the attributes include position, size and whether draggable or not; the comparison unit 705 compares the attribute of the video bearer in the first template interface with the attribute of the video bearer in the second template interface to obtain an attribute difference; the adjusting unit 706 adjusts the video bearer using the bearer transition animation determined according to the attribute difference; the display unit 701 displays the second template interface. When the interface is switched, each video bearer in the interface is independently adjusted by using the corresponding transition animation, so that the interface switching process is smoother, and the pause effect during interface switching is relieved.
An electronic device is also provided in the embodiments of the present application, please refer to fig. 8, which includes a memory 801 and a processor 802.
The memory 801 is used for storing computer programs.
The processor 802 is configured to execute a computer program, and when the computer program is executed, the computer program is specifically configured to implement the method for switching between multiple video templates provided in any embodiment of the present application.
The embodiments of the present application further provide a computer storage medium, which is used to store a computer program, and when the computer program is executed, the computer program is specifically used to implement the method for switching multiple video templates provided in any embodiment of the present application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for switching between multiple video templates, comprising:
displaying a first template interface; the first template interface comprises a video bearer, and the video bearer is used for bearing video streams provided by each terminal accessed to the multi-person video;
obtaining a template switching instruction; the template switching instruction is used for switching from the first template interface to the second template interface;
searching template configuration information corresponding to the second template interface according to the template switching instruction;
determining the attribute of a video carrier in the second template interface according to the template configuration information; wherein the attributes include a position, a size, and whether draggable or not;
comparing the attribute of the video bearer in the first template interface with the attribute of the video bearer in the second template interface to obtain an attribute difference;
adjusting the video carrier by using carrier transition animation determined according to the attribute difference;
and displaying the second template interface.
2. The method of claim 1, wherein prior to displaying the first template interface, further comprising:
and determining the attribute of the video carrier in the first template interface according to the template configuration information of the first template interface.
3. The method according to claim 2, wherein after determining the attributes of the video bearer in the first template interface according to the template configuration information of the first template interface, further comprising:
and binding the video bearer with a video player for playing video streams.
4. The method of claim 1, wherein obtaining the template switching instruction comprises:
when the direction of the display screen is detected to be switched from a vertical screen to a horizontal screen, a template switching instruction is obtained;
or,
and when the direction of the display screen is detected to be switched from the horizontal screen to the vertical screen, a template switching instruction is obtained.
5. An apparatus for switching between multiple video templates, comprising:
the display unit is used for displaying the first template interface; the first template interface comprises a video bearer, and the video bearer is used for bearing a video stream provided by each terminal accessed with a multi-person video;
an obtaining unit, configured to obtain a template switching instruction; the template switching instruction is used for switching from the first template interface to the second template interface;
the searching unit is used for searching the template configuration information corresponding to the second template interface according to the template switching instruction;
a determining unit, configured to determine, according to the template configuration information, an attribute of a video bearer in the second template interface; wherein the attributes include a position, a size, and whether draggable or not;
the comparison unit is used for comparing the attribute of the video carrier in the first template interface with the attribute of the video carrier in the second template interface to obtain an attribute difference;
the adjusting unit is used for adjusting the video carrier by utilizing the carrier transition animation determined according to the attribute difference; wherein the adjusted video bearer constitutes the second template interface;
and the display unit is used for displaying the second template interface.
6. The apparatus of claim 5, wherein the determining unit is further configured to:
and determining the attribute of the video carrier in the first template interface according to the template configuration information of the first template interface.
7. The apparatus according to claim 6, further comprising a binding unit for binding the video bearer and a video player for playing a video stream.
8. The apparatus according to claim 5, wherein the obtaining unit, when obtaining the template switching instruction, is specifically configured to:
when the direction of the display screen is detected to be switched from a vertical screen to a horizontal screen, a template switching instruction is obtained;
or,
and when the direction of the display screen is detected to be switched from the horizontal screen to the vertical screen, a template switching instruction is obtained.
9. A computer storage medium storing a computer program which, when executed, is particularly adapted to implement the multi-video template switching of any one of claims 1 to 4.
10. An electronic device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program, in particular to implement the multi-video template switching according to any of claims 1 to 4.
CN202211126994.2A 2022-09-16 2022-09-16 Method, device, equipment and storage medium for switching multiple video templates Pending CN115514999A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211126994.2A CN115514999A (en) 2022-09-16 2022-09-16 Method, device, equipment and storage medium for switching multiple video templates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211126994.2A CN115514999A (en) 2022-09-16 2022-09-16 Method, device, equipment and storage medium for switching multiple video templates

Publications (1)

Publication Number Publication Date
CN115514999A true CN115514999A (en) 2022-12-23

Family

ID=84503209

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211126994.2A Pending CN115514999A (en) 2022-09-16 2022-09-16 Method, device, equipment and storage medium for switching multiple video templates

Country Status (1)

Country Link
CN (1) CN115514999A (en)

Similar Documents

Publication Publication Date Title
CN107341018B (en) Method and device for continuously displaying view after page switching
JP6754968B2 (en) A computer-readable storage medium that stores a video playback method, video playback device, and video playback program.
CN108712665B (en) Live broadcast list generation method and device, server and storage medium
CN111866539B (en) Live broadcast interface switching method and device, terminal and storage medium
US20170024110A1 (en) Video editing on mobile platform
CN109257611A (en) A kind of video broadcasting method, device, terminal device and server
CN107770627A (en) The method of image display device and operation image display device
CN105472437A (en) Video playing method and apparatus thereof
US8643672B2 (en) Instant message analytics of historical conversations in relation to present communication
CN112437317B (en) Live broadcast picture switching method, device and system
US20150301693A1 (en) Methods, systems, and media for presenting related content
US11838604B2 (en) Generating crowdsourced trailers based on forward or rewind commands
US20170188109A1 (en) Method and electronic device for switching video
CN110072145A (en) Information broadcasting method, device and terminal device for terminal device
CN113342248A (en) Live broadcast display method and device, storage medium and electronic equipment
US20240205507A1 (en) Network livestreaming method and apparatus, storage medium, and electronic device
US20170161871A1 (en) Method and electronic device for previewing picture on intelligent terminal
KR101880803B1 (en) Video playback program, device, and method
CN111835972A (en) Shooting method and device and electronic equipment
CN115514999A (en) Method, device, equipment and storage medium for switching multiple video templates
JP6289898B2 (en) Content distribution system
KR20230120668A (en) Video call method and device
CN110166814A (en) Video picture displaying method and relevant device
KR102614561B1 (en) Method for providing multi view service and apparatus for same
CN108513153B (en) Television extremely-custom content management system based on mobile phone

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination