CN112383723B - Video switching method and device and computer equipment - Google Patents

Video switching method and device and computer equipment Download PDF

Info

Publication number
CN112383723B
CN112383723B CN202011259389.3A CN202011259389A CN112383723B CN 112383723 B CN112383723 B CN 112383723B CN 202011259389 A CN202011259389 A CN 202011259389A CN 112383723 B CN112383723 B CN 112383723B
Authority
CN
China
Prior art keywords
player
video
playing
live video
target
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.)
Active
Application number
CN202011259389.3A
Other languages
Chinese (zh)
Other versions
CN112383723A (en
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.)
Yunnan Tengyun Information Industry Co ltd
Original Assignee
Yunnan Tengyun Information Industry 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 Yunnan Tengyun Information Industry Co ltd filed Critical Yunnan Tengyun Information Industry Co ltd
Priority to CN202011259389.3A priority Critical patent/CN112383723B/en
Publication of CN112383723A publication Critical patent/CN112383723A/en
Application granted granted Critical
Publication of CN112383723B publication Critical patent/CN112383723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/268Signal distribution or switching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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
    • 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

Abstract

The application provides a video switching method, a video switching device and computer equipment, and belongs to the technical field of automatic guided broadcasting. The method comprises the following steps: after the first direct-play video is acquired, controlling a first player to load the first direct-play video; switching the playing state of the first player to a first target state, and playing a first direct-play video in the first target state, wherein the first target state is the expected playing state of the first direct-play video; after the second live video is acquired, controlling a second player to load the second live video; and covering the second player on the first player, switching the playing state of the second player to a second target state, and playing the second live video in the second target state, wherein the second target state is the expected playing state of the second live video. The method and the device can improve loading and playing efficiency of live video.

Description

Video switching method and device and computer equipment
Technical Field
The application relates to the technical field of automatic guided broadcasting, in particular to a video switching method, a video switching device and computer equipment.
Background
In the live broadcast process, synchronous live broadcast of multiple live scenes is generally involved, for example, a plurality of live videos show different views of a scenic spot or thing. Live videos with different visual angles are switched through guide broadcast control.
At present, a guiding and broadcasting switching mode is adopted, and professional guiding and broadcasting equipment is often added before videos are transmitted to a playing terminal, and the equipment is simultaneously connected with a plurality of live videos, re-codes and decodes the live videos to form a guiding and broadcasting path of playable videos, and the guiding and broadcasting path of playable videos are transmitted to the playing terminal. When the size of the live video picture needs to be changed, the size of the live video currently played is adjusted.
However, a large amount of operation processing procedures are needed for loading a plurality of live videos simultaneously by adopting the same player, changing the size and the position of the live videos simultaneously, and the like, so that more operation capability of the player is consumed when the live videos are loaded and played, longer time is spent for loading and size adjustment of the live videos, and the loading and playing efficiency of the live videos is reduced.
Disclosure of Invention
The purpose of the application is to provide a video switching method, a video switching device and computer equipment, which can improve the loading and playing efficiency of live video.
Embodiments of the present application are implemented as follows:
in one aspect of the embodiments of the present application, a video switching method is provided, where the method is applied to a video playing device, and a plurality of players are provided in the video playing device, where the plurality of players at least includes: the first player and the second player are displayed on an interface of the video playing device, and the first player is covered on the second player, and the method comprises the following steps:
After the first direct-play video is acquired, controlling a first player to load the first direct-play video;
switching the playing state of the first player to a first target state, and playing a first direct-play video in the first target state, wherein the first target state is the expected playing state of the first direct-play video;
after the second live video is acquired, controlling a second player to load the second live video;
and covering the second player on the first player, switching the playing state of the second player to a second target state, and playing the second live video in the second target state, wherein the second target state is the expected playing state of the second live video.
Optionally, after controlling the second player to load the second live video, the method further includes:
and if the second player does not load the second live video, delaying the playing time of the first player and controlling the second player to load the third live video.
Optionally, a third player is further arranged in the video playing device, and the third player is located below the first player and the second player on the interface of the video playing device;
the method further comprises the steps of:
controlling a third player to load a third live video;
If the second player does not load the second live video and the third player loads the third live video, the third player is covered on the first player, the playing state of the third player is switched to a third target state, the third live video is played in the third target state, and the third target state is the expected playing state of the third live video.
Optionally, the first target state includes: a first target location and a first target size;
switching the playing state of the first player to a first target state, and playing the first direct-play video in the first target state, including:
and moving the first player to a first target position of an interface of the video playing device, adjusting the display size of the first player to a first target size, and controlling the first player to play the first direct-play video at the first target position and the first target size.
Optionally, before controlling the first player to load the first video on stream, the method further comprises:
initializing the first player to control the position of the first player to move to a preset first initialization position and control the size of the first player to be adjusted to be the first initialization size.
Optionally, the second target state includes: a second target location and a second target size;
switching the playing state of the second player to a second target state, and playing the second live video in the second target state, including:
and moving the second player to a second target position of the interface of the video playing device, adjusting the display size of the second player to a second target size, and controlling the second player to play a second live video at the second target position and the second target size.
Optionally, before controlling the second player to load the second live video, the method further includes:
initializing the second player to control the position of the second player to move to a preset second initialization position and control the size of the second player to be adjusted to a second initialization size.
Optionally, before controlling the first player to load the first video on stream, the method further comprises:
acquiring a live video play address list, wherein the live video play address list comprises the addresses of a plurality of live videos;
and acquiring the first direct-broadcasting video according to the direct-broadcasting video sequence in the direct-broadcasting video play address list and the addresses of the direct-broadcasting video.
In another aspect of the embodiments of the present application, a video switching apparatus is provided, where the apparatus is applied to a video playing device, and a plurality of players are provided in the video playing device, where the plurality of players at least includes: the first player and the second player are both displayed on an interface of the video playing device, and the first player is covered on the second player, and the device comprises: the loading module and the playing module;
the loading module is used for controlling the first player to load the first direct-play video after the first direct-play video is acquired;
the playing module is used for switching the playing state of the first player to a first target state and playing the first direct-play video in the first target state, wherein the first target state is the expected playing state of the first direct-play video;
the loading module is further used for controlling the second player to load the second live video after the second live video is acquired;
and the playing module is also used for covering the second player on the first player, switching the playing state of the second player to a second target state, and playing the second live video in the second target state, wherein the second target state is the expected playing state of the second live video.
Optionally, the loading module is further configured to delay the playing time of the first player and control the second player to load the third live video if the second live video is not loaded by the second player.
Optionally, a third player is further arranged in the video playing device, and the third player is located below the first player and the second player on the interface of the video playing device; the playing module is also used for controlling the third player to load a third live video; if the second player does not load the second live video and the third player loads the third live video, the third player is covered on the first player, the playing state of the third player is switched to a third target state, the third live video is played in the third target state, and the third target state is the expected playing state of the third live video.
Optionally, the first target state includes: a first target location and a first target size; the playing module is further used for moving the first player to a first target position of an interface of the video playing device, adjusting the display size of the first player to a first target size, and controlling the first player to play the first direct-play video at the first target position and the first target size.
Optionally, the device further includes an initialization module, where the initialization module is configured to initialize the first player to control the position of the first player to move to a preset first initialization position and control the size of the first player to be adjusted to a first initialization size.
Optionally, the second target state includes: a second target location and a second target size; the playing module is further configured to move the second player to a second target position of the interface of the video playing device, adjust a display size of the second player to a second target size, and control the second player to play the second live video at the second target position and the second target size.
Optionally, the initialization module is further configured to initialize the second player to control the position of the second player to move to a preset second initialization position and control the size of the second player to be adjusted to a second initialization size.
Optionally, the apparatus further comprises: an acquisition module; the acquisition module is used for acquiring a live video play address list, wherein the live video play address list comprises the addresses of a plurality of live videos; and acquiring the first direct-broadcasting video according to the direct-broadcasting video sequence in the direct-broadcasting video play address list and the addresses of the direct-broadcasting video.
In another aspect of the embodiments of the present application, there is provided a computer device comprising: the video switching method comprises the steps of a memory and a processor, wherein the memory stores a computer program capable of running on the processor, and the processor realizes the video switching method when executing the computer program.
In another aspect of the embodiments of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the video switching method described above.
The beneficial effects of the embodiment of the application include:
according to the video switching method, the video switching device and the computer equipment, after the first direct-broadcasting video is acquired, the first player can be controlled to load the first direct-broadcasting video, then the playing state of the first player is switched to the first target state, the first direct-broadcasting video is played in the first target state, after the second direct-broadcasting video is acquired, the second player is controlled to load the second direct-broadcasting video, the second player is covered on the first player, the playing state of the second player is switched to the second target state, and the second direct-broadcasting video is played in the second target state, wherein the loading time required by each player can be reduced through the switching between the first player and the second player, and the display adjustment of the direct-broadcasting video is realized through the adjustment of the states of the players, operation processing is not needed for the size position of the direct-broadcasting video, the loading playing time consumed by the players is further reduced, and the loading playing efficiency of the direct-broadcasting video is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered limiting the scope, and that other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a video switching method provided in an embodiment of the present application;
fig. 2 is a flowchart of a video switching method according to an embodiment of the present application;
fig. 3 is a second flowchart of a video switching method according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating adjustment and display of a first target state in a video switching method according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating second target state adjustment in the video switching method according to the embodiment of the present application;
fig. 6 is a flowchart of a video switching method according to an embodiment of the present application;
fig. 7 is a schematic view of another scenario of the video switching method provided in the embodiment of the present application;
fig. 8 is a schematic structural diagram of a video switching apparatus according to an embodiment of the present disclosure;
Fig. 9 is a second schematic structural diagram of the video switching apparatus according to the embodiment of the present application;
fig. 10 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, which are generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, as provided in the accompanying drawings, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
In the description of the present application, it should be noted that the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
The following explains a specific application scenario of the video switching method provided in the embodiment of the present application through a specific embodiment.
Fig. 1 is an application scenario schematic diagram of a video switching method provided in an embodiment of the present application, referring to fig. 1, the method is applied to a video playing device, in which a plurality of players are provided, where the plurality of players at least includes: the first player 110 and the second player 120, the first player 110 and the second player 120 are displayed on an interface of the video playing device, and the first player 110 is overlaid on the second player 120.
Alternatively, the video playing device may be, for example, a computer, a television, a mobile device, or the like, and the display interface of the video playing device is used to display the playing content in the first player 110 or the second player 120, and these playing contents may be live videos.
Alternatively, the video playing device may be communicatively connected to other image capturing devices, which may be, but are not limited to, a video camera, a mobile phone with an image capturing function, a tablet computer, and the like. The camera device may be used to shoot a video of a certain object or a certain landscape in real time, and send the shot live video to the video playing device, where the video playing device may also be provided with a video pre-repository, where the live video may be stored in the video pre-repository, or directly play the live video transmitted by the camera device to the player without storing, where the live video is not limited herein. The live video in the video pre-repository may be distributed to the first player 110 or the second player 120 according to the needs of the user or a pre-configured manner in the video playback device.
Alternatively, the first player 110 and the second player 120 may be any type of playing software having functions of position, size adjustment, and the like.
Optionally, the first player 110 and the second player 120 may move, zoom, cover, etc. in the display interface, and the user may adjust the coverage relationship between the first player 110 and the second player 120 according to the actual requirement, for example, it may be preset that the first player 110 covers over the second player 120, that is, the first player 110 blocks the second player 120, and the user can only see the content played in the first player 110 through the display interface.
Specifically, the application scene may be a television station or a guide scene of any live broadcast platform, and the video playing device is a device for playing a guide picture, and the display interface of the video playing device may be a window on the user terminal.
The following explains a specific implementation procedure of the video switching method provided in the embodiment of the present application through a specific embodiment.
Fig. 2 is a flowchart of a video switching method according to an embodiment of the present application, referring to fig. 2, the method includes:
s210: and after the first direct-play video is acquired, controlling the first player to load the first direct-play video.
Optionally, the first direct-play video may be a video that needs to be preferentially played in the foregoing video pre-repository, where the direct-play video may be a direct-play stream, for example: the live stream transmitted by the camera device can also be a live file, which is not limited herein.
Optionally, after the video playing device obtains the first direct-play video, the first direct-play video may be loaded by the first player, where the loading may be a process of enabling the first player to smoothly play the first direct-play video, and specifically may be establishing a connection relationship read in real time or opening and playing a corresponding file, etc.
Optionally, the first player may be controlled to load the first direct-play video in a first loading time, where the first loading time may be a time interval preset by a user, and a length of the time interval of the first loading time may be specifically set according to a loading speed of the first player, which is not limited herein.
S220: and switching the playing state of the first player to a first target state, and playing the first direct-play video in the first target state.
The first target state is a play state expected by the first direct-play video.
Alternatively, the expected playing state of the first video to be played may be a video state to be displayed in the first video to be played, such as a specific display position, a size of the display position, and so on. The expected play status may also be different for different live videos. The expected playing state may be selected by a worker in real time, or may be automatically determined according to a certain preset rule, which is not limited herein.
Optionally, after the first direct-play video is loaded or in response to a play start instruction input by a user, the play state of the first player may be switched to the first target state, and the first direct-play video may be played in the first target state.
Alternatively, the first direct-play video may be played while the first player is switched to the first target state, or the first direct-play video may be played after the first player is switched to the first target state.
Alternatively, the playing state of the first player may be switched to the first target state within the first switching time, and the first direct-play video may be played in the first target state, where the time interval of the first switching time may be after the time interval of the first loading time, for example, a time interval preset by the user, and the length of the time interval of the first switching time may be determined according to the speed at which the first player is switched to the first target state, which is not limited herein.
S230: and after the second live video is acquired, controlling the second player to load the second live video.
Optionally, the second live video may be a live video that needs to be played after the first live video is played in the foregoing video pre-repository. The first player and the second player can load live video at the same time, and can also load live video at different times, for example: the second player may be controlled to load the second live video while the first player is playing the first live video.
Optionally, the second player may be controlled to load the second live video in a second loading time, where the second loading time may be a time interval preset by a user, and a time interval length of the second loading time may be specifically set according to a loading speed of the second player, which is not limited herein; the time interval of the second loading time may be before the time interval of the first switching time, or may be after the time interval of the first switching time, where loading may be completed before S240 is executed.
S240: and covering the second player on the first player, switching the playing state of the second player to a second target state, and playing the second live video in the second target state.
The second target state is a play state expected by the second live video.
Optionally, after the first player finishes playing the first direct-play video or responds to the instruction of player switching, the second player at the lower layer may be moved to the upper layer of the first player and cover the first player, and then the playing state of the second player may be switched to a second target state, where the second target state may be the same as or different from the first target state, and this is not a limitation.
Alternatively, the second live video may be played while the second player is switched to the second target state, or the second live video may be played after the second player is switched to the second target state.
Optionally, the playing state of the second player may be switched to the second target state within the second switching time, and the second live video may be played in the second target state, where a time interval of the second switching time may be after a time interval of the second loading time, for example, a time interval preset by a user, and a time interval length of the second switching time may be determined according to a speed of the second player switching to the second target state, which is not limited herein.
Alternatively, the above process only includes two live videos as an example, if three or more live videos are included, the first player and the second player may load and switch the playing respectively in turn, for example: the first player loads a first direct broadcast video, the second player loads a second direct broadcast video, the first player loads a third direct broadcast video, the second player loads a fourth direct broadcast video and the like until all the direct broadcast videos are completely played or a stopping instruction input by a user is responded.
According to the video switching method, after the first direct broadcast video is acquired, the first player is controlled to load the first direct broadcast video, then the playing state of the first player is switched to the first target state, the first direct broadcast video is played in the first target state, after the second direct broadcast video is acquired, the second player is controlled to load the second direct broadcast video, the second player is covered on the first player, the playing state of the second player is switched to the second target state, and the second direct broadcast video is played in the second target state, wherein the loading time required by each player can be reduced through the switching between the first player and the second player, and in addition, the display adjustment of the direct broadcast video is realized through the adjustment of the states of the players, operation processing is not needed for the size and the position of the direct broadcast video, the loading playing time consumed by the players is further reduced, and the loading playing efficiency of the direct broadcast video is improved.
Optionally, after controlling the second player to load the second live video, the method further includes:
and if the second player does not load the second live video, delaying the playing time of the first player and controlling the second player to load the third live video.
Optionally, when the first player finishes playing or responds to an instruction of switching the players, the second player does not load the second live video, and then it can be determined that the live stream or the live file of the second live video is damaged in the transmission process, the playing time of the first player can be delayed, and the second player is controlled to load a third live video, where the third live video can be a live video that needs to be played after the second live video finishes playing in the video pre-repository.
Optionally, the method of delaying the first player may be to repeatedly play the first direct-play video, or select a certain segment in the first direct-play video to repeatedly play, or freeze to a certain frame in the first direct-play video to display, which may meet the time of delaying the first player to play, which is not limited herein.
Optionally, after loading the third live video, the second player at the lower layer may be moved to the upper layer of the first player and cover the first player, and then the playing state of the second player may be switched to a third target state, where the third target state may be the same as or different from the first target state, and is not limited herein, and then the third live video is played in the third target state.
Another implementation procedure of the video switching method provided in the embodiment of the present application is explained below by a specific embodiment.
Fig. 3 is a schematic flow chart of a video switching method provided in the embodiment of the present application, referring to fig. 3, a third player is further provided in the video playing device, where the third player is located below the first player and the second player on an interface of the video playing device; the method further comprises the steps of:
s310: and controlling the third player to load the third live video.
Alternatively, the second player may be controlled to load the third live video while the second player is loading the second live video.
Alternatively, the third player may be the same as the first player and the second player, and is any type of playing software, and has functions of position adjustment, size adjustment, and the like.
Alternatively, the third player may be disposed under the first player and the second player, or may be disposed between the first player and the second player, where the third player is not disposed on the uppermost layer.
Optionally, the third player may be controlled to load the third live video in a third loading time, where the third loading time may be a time interval preset by a user, and a time interval length of the third loading time may be specifically set according to a loading speed of the third player, which is not limited herein; the third load time may be the same as the second load time.
S320: if the second player does not load the second live video and the third player loads the third live video, the third player is covered on the first player, the playing state of the third player is switched to a third target state, and the third live video is played in the third target state.
The third target state is a play state expected by the third live video.
Optionally, before the step of the foregoing step S240, when the first player finishes playing or responds to an instruction for switching the players, if the second player does not load the second live video and the third player loads the third live video, the third player may be moved to an upper layer of the first player and covers the first player, and then the playing state of the third player may be switched to a third target state, where the third target state may be the same as or different from the first target state, and is not limited herein.
Alternatively, the third live video may be played while the third player is switched to the third target state, or the third live video may be played after the third player is switched to the third target state.
The following explains a specific procedure of the first target state adjustment provided in the embodiment of the present application by a specific embodiment.
Fig. 4 is a schematic diagram illustrating adjustment and display of a first target state in a video switching method according to an embodiment of the present application, and referring to fig. 4, the first target state includes: a first target location and a first target size; switching the playing state of the first player to a first target state, and playing the first direct-play video in the first target state, including:
and moving the first player to a first target position of an interface of the video playing device, adjusting the display size of the first player to a first target size, and controlling the first player to play the first direct-play video at the first target position and the first target size.
Optionally, the first player 110 shown on the left in fig. 4 is in a first initial position, where the size is the first initial size; the first player 110 shown on the right is in a first target position where the size is the first target size. Wherein the first initial position and the first initial size are the position and the size of the first player 110 before switching to the target state.
Optionally, the first target position may be a position to which the first player needs to be moved, specifically may be a certain position in a display screen of the video playing device, taking a computer as an example, may be a certain position in a computer display, and the specific position may be manually preset; the first target size may be a size to which the first player needs to be adjusted, specifically, may be a size of a length-width value of the first player, and it should be noted that, in order to prevent deformation of a first playing video played in the first player, an aspect ratio of the first player may be fixed, for example, the length may be adjusted while the width may be synchronously adjusted according to a corresponding proportion.
Optionally, after the first direct-play video is loaded or in response to a play start instruction input by a user, the first player may be moved to a first target position of an interface of the video playing device, and a display size of the first player may be adjusted to the first target size, where the adjustment of the size and the position may be performed simultaneously or separately, and the invention is not limited herein. After the size and the position are adjusted, the first player can be controlled to play the first direct-play video at the first target position and the first target size.
Optionally, before controlling the first player to load the first video on stream, the method further comprises:
initializing the first player to control the position of the first player to move to a preset first initialization position and control the size of the first player to be adjusted to be the first initialization size.
Optionally, the first initialization size is the first initial size, and correspondingly, the first initialization position is the first initial position.
Optionally, before controlling the first player to load the first direct-play video, the first player may be at any position in the screen, and may perform an initializing process on the first player, so that the position of the first player is moved to a preset first initializing position and the size of the first player is controlled to be adjusted to a first initializing size.
The following explains a specific procedure of the second target state adjustment provided in the embodiment of the present application by a specific embodiment.
Fig. 5 is a schematic diagram illustrating adjustment and display of a second target state in a video switching method according to an embodiment of the present application, and referring to fig. 5, the second target state includes: a second target location and a second target size; switching the playing state of the second player to a second target state, and playing the second live video in the second target state, including:
And moving the second player to a second target position of the interface of the video playing device, adjusting the display size of the second player to a second target size, and controlling the second player to play a second live video at the second target position and the second target size.
Optionally, the second player 120 shown to the left in fig. 5 is in a second initial position, where the size is the second initial size; the second player 120 shown on the right is in a second target position where the size is the second target size. Wherein the second initial position and the second initial size are the position and the size of the second player 120 before switching to the target state.
Optionally, the second target position may be a position to which the second player needs to be moved, specifically may be a certain position in a display screen of the video playing device, taking a computer as an example, may be a certain position in a computer display, and the specific position may be manually preset; the second target size may be a size to which the second player needs to be adjusted, specifically, may be a size of a length-width value of the second player, and it should be noted that, in order to prevent the second play video played in the second player from being deformed, an aspect ratio of the second player may be fixed, for example, the length may be adjusted while the width may be synchronously adjusted according to a corresponding proportion.
Optionally, after the first direct play is finished or in response to a switching instruction input by a user, the second player may be moved to a second target position of the interface of the video playing device, and the display size of the second player may be adjusted to the second target size, where the adjustment of the size and the position may be performed simultaneously or separately, and the present invention is not limited thereto. And after the size and the position are adjusted, controlling the second player to play the second live video at the second target position and the second target size.
Optionally, before controlling the second player to load the second live video, the method further includes:
initializing the second player to control the position of the second player to move to a preset second initialization position and control the size of the second player to be adjusted to a second initialization size.
Optionally, the second initialization size is the aforementioned second initial size, and correspondingly, the second initialization position is the aforementioned second initial position.
Optionally, before the second player is controlled to load the second live video, the second player may be at any position in the screen, and the second player may be initialized, so that the position of the second player is moved to a preset second initialization position and the size of the second player is controlled to be adjusted to a second initialization size, where it is noted that the second initialization position and the second initialization size may be preset positions and sizes, and are not limited herein.
A further implementation of the video switching method provided in the embodiments of the present application is explained below by means of specific embodiments.
Fig. 6 is a flowchart of a video switching method provided in the embodiment of the present application, referring to fig. 6, before controlling a first player to load a first direct-play video, the method further includes:
s610: and acquiring a live video play address list.
The live video play address list comprises addresses of a plurality of live videos.
Alternatively, the addresses of the plurality of live videos may correspond to live videos in the video pre-repository, or may also correspond to image capturing apparatuses that establish a communication relationship with the video playback apparatus, respectively.
S620: and acquiring the first direct-broadcasting video according to the direct-broadcasting video sequence in the direct-broadcasting video play address list and the addresses of the direct-broadcasting video.
Optionally, after the live video play address list is obtained, the first live video may be determined according to the live video sequence and the address of the live video in the live video play address list, so as to obtain the first live video from other image capturing devices or video pre-repositories.
Optionally, the second live video, the third live video, and the like in the foregoing process may be acquired by similar methods, which are not described herein.
Fig. 7 is a schematic view of another scenario of the video switching method provided in the embodiment of the present application, please refer to fig. 7, wherein the scenario includes: a user view 710, a first player 110, a second player 120, a projection 711 of the user view on the first player, and a projection 712 of the user view on the second player.
The user window 710 is an interface of the video playing device, and the user can see the content in the first player 110 or other players through the user window 710. The first player 110 and the second player 120 may have a size larger than the size of the user window 710.
In fig. 7, the part (a) is a state of the first player 110 at the time of the upper layer, and the first player 110 may be switched to the first target state, that is, the size and dimension are adjusted to the position of the part (b) in fig. 7.
When it is desired to cover the second player 120 over the first player 110, the first player 110 and the second player 120 can be adjusted to the position of part (c) in fig. 7.
The second player 120 may switch to a second target state, i.e., resize and resize to the position of part (d) of fig. 7.
The following describes devices, storage media and the like corresponding to the video switching method provided by the present application, and specific implementation processes and technical effects of the devices, storage media and the like are referred to above, and are not described in detail below.
Fig. 8 is a schematic structural diagram of a video switching apparatus according to an embodiment of the present application, referring to fig. 8, the apparatus includes: a loading module 100 and a playing module 200; the loading module 100 is configured to control the first player to load the first direct-play video after the first direct-play video is acquired; the playing module 200 is configured to switch a playing state of the first player to a first target state, and play a first direct-play video in the first target state, where the first target state is an expected playing state of the first direct-play video; the loading module 100 is further configured to control the second player to load the second live video after the second live video is acquired; the playing module 200 is further configured to cover the second player on the first player, switch a playing state of the second player to a second target state, and play the second live video in the second target state, where the second target state is an expected playing state of the second live video.
Optionally, the loading module 100 is further configured to delay the playing time of the first player and control the second player to load the third live video if the second player does not load the second live video.
Optionally, a third player is further arranged in the video playing device, and the third player is located below the first player and the second player on the interface of the video playing device; the playing module 200 is further configured to control the third player to load a third live video; if the second player does not load the second live video and the third player loads the third live video, the third player is covered on the first player, the playing state of the third player is switched to a third target state, the third live video is played in the third target state, and the third target state is the expected playing state of the third live video.
Optionally, the first target state includes: a first target location and a first target size; the playing module 200 is further configured to move the first player to a first target position of an interface of the video playing device, adjust a display size of the first player to a first target size, and control the first player to play the first direct-play video at the first target position and the first target size.
Fig. 9 is a schematic structural diagram of a second video switching apparatus provided in the embodiment of the present application, referring to fig. 9, the apparatus further includes an initialization module 300, where the initialization module 300 is configured to initialize a first player, so as to control the position of the first player to move to a preset first initialization position and control the size of the first player to be adjusted to a first initialization size.
Optionally, the second target state includes: a second target location and a second target size; the playing module 200 is further configured to move the second player to a second target position of the interface of the video playing device, adjust a display size of the second player to a second target size, and control the second player to play the second live video at the second target position and the second target size.
Optionally, the initialization module 300 is further configured to initialize the second player to control the position of the second player to move to a preset second initialization position and control the size of the second player to be adjusted to a second initialization size.
Optionally, the apparatus further comprises: an acquisition module 400; the obtaining module 400 is configured to obtain a live video play address list, where the live video play address list includes addresses of a plurality of live videos; and acquiring the first direct-broadcasting video according to the direct-broadcasting video sequence in the direct-broadcasting video play address list and the addresses of the direct-broadcasting video.
The foregoing apparatus is used for executing the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
The above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (digital singnal processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 10 is a schematic structural diagram of a computer device provided in an embodiment of the present application, referring to fig. 10, the computer device includes: memory 500, processor 600, memory 500 stores a computer program executable on processor 600, and when processor 600 executes the computer program, the steps of the video switching method described above are realized.
Alternatively, the computer device may be a video playing device in the foregoing process.
In another aspect of the embodiments of the present application, there is further provided a storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the video switching method described above.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (english: processor) to perform part of the steps of the methods of the embodiments of the invention. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The foregoing is merely a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes or substitutions are covered by the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (9)

1. A video switching method, wherein the method is applied to a video playing device, and a plurality of players are arranged in the video playing device, and the plurality of players at least comprise: a first player and a second player, wherein the first player and the second player are both displayed on an interface of the video playing device, the first player is covered on the second player, a third player is further arranged in the video playing device, and the third player is located below the first player and the second player on the interface of the video playing device, and the method comprises:
After a first direct-play video is acquired, controlling the first player to load the first direct-play video;
switching the playing state of the first player to a first target state, and playing the first direct-play video in the first target state, wherein the first target state is the expected playing state of the first direct-play video;
after a second live video is acquired, controlling the second player to load the second live video, wherein the second live video is a live video which needs to be played after the first live video is played in a video pre-library;
the second player is covered on the first player, the playing state of the second player is switched to a second target state, the second live video is played in the second target state, and the second target state is the expected playing state of the second live video;
the method further comprises the steps of:
controlling the third player to load a third live video;
if the second live video is not loaded by the second player and the third live video is loaded by the third player, the third player is covered on the first player, the playing state of the third player is switched to a third target state, and the third live video is played while the third player is switched to the third target state, wherein the third target state is the expected playing state of the third live video, and the third live video is the live video which needs to be played after the second live video is played in the video pre-repository.
2. The method of claim 1, wherein after the controlling the second player to load the second live video, the method further comprises:
and if the second player does not load the second live video, delaying the playing time of the first player and controlling the second player to load the third live video.
3. The method of any of claims 1-2, wherein the first target state comprises: a first target location and a first target size;
the switching the playing state of the first player to a first target state, and playing the first direct-play video in the first target state includes:
and moving the first player to the first target position of the interface of the video playing device, adjusting the display size of the first player to the first target size, and controlling the first player to play the first direct-play video at the first target position and the first target size.
4. The method of claim 3, wherein the controlling the first player before loading the first direct-play video further comprises:
Initializing the first player to control the position of the first player to move to a preset first initialization position and control the size of the first player to be adjusted to be a first initialization size.
5. The method of any of claims 1-2, wherein the second target state comprises: a second target location and a second target size;
the switching the playing state of the second player to a second target state, and playing the second live video in the second target state includes:
and moving the second player to the second target position of the interface of the video playing device, adjusting the display size of the second player to the second target size, and controlling the second player to play the second live video at the second target position and the second target size.
6. The method of claim 5, wherein prior to said controlling the second player to load a second live video, the method further comprises:
initializing the second player to control the position of the second player to move to a preset second initialization position and control the size of the second player to be adjusted to a second initialization size.
7. The method of claim 1, wherein the controlling the first player before loading the first direct-play video, the method further comprises:
acquiring a live video play address list, wherein the live video play address list comprises the addresses of a plurality of live videos;
and acquiring the first direct-broadcasting video according to the direct-broadcasting video sequence in the direct-broadcasting video play address list and the addresses of the direct-broadcasting video.
8. A video switching apparatus, wherein the apparatus is applied to a video playing device, and a plurality of players are disposed in the video playing device, and the plurality of players at least include: a first player and a second player, both of which are displayed at an interface of the video playback device, and the first player is overlaid on the second player, the apparatus comprising: the video playing device comprises a loading module and a playing module, wherein a third player is further arranged in the video playing device, and the third player is positioned below the first player and the second player on an interface of the video playing device;
the loading module is used for controlling the first player to load the first direct-play video after the first direct-play video is acquired;
The playing module is used for switching the playing state of the first player to a first target state, and playing the first direct-play video in the first target state, wherein the first target state is the expected playing state of the first direct-play video;
the loading module is further configured to control the second player to load a second live video after the second live video is acquired, where the second live video is a live video that needs to be played after the first live video is played in the video pre-repository;
the playing module is further configured to cover the second player on the first player, switch a playing state of the second player to a second target state, and play the second live video in the second target state, where the second target state is an expected playing state of the second live video;
the loading module is further used for controlling the third player to load a third live video;
the playing module is further configured to cover the third player on the first player, switch a playing state of the third player to a third target state, and play the third live video while the third player is switched to the third target state, where the third target state is an expected playing state of the third live video when the second live video is not loaded and the third live video is loaded.
9. A computer device, comprising: memory, a processor, in which a computer program is stored which is executable on the processor, when executing the computer program, realizing the steps of the method of any of the preceding claims 1 to 7.
CN202011259389.3A 2020-11-12 2020-11-12 Video switching method and device and computer equipment Active CN112383723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011259389.3A CN112383723B (en) 2020-11-12 2020-11-12 Video switching method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011259389.3A CN112383723B (en) 2020-11-12 2020-11-12 Video switching method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN112383723A CN112383723A (en) 2021-02-19
CN112383723B true CN112383723B (en) 2023-05-26

Family

ID=74583050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011259389.3A Active CN112383723B (en) 2020-11-12 2020-11-12 Video switching method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112383723B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040215A (en) * 2021-10-22 2022-02-11 云南腾云信息产业有限公司 Live stream switching method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244048A (en) * 2014-10-15 2014-12-24 飞狐信息技术(天津)有限公司 Video playing method and video client
CN105744372A (en) * 2014-12-11 2016-07-06 深圳都好看互动电视有限公司 Video-on-demand broadcast method and system, server, and on-demand client
WO2018177219A1 (en) * 2017-03-27 2018-10-04 腾讯科技(深圳)有限公司 Method and device for controlling playing of pre-video media file

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009046354A1 (en) * 2007-10-03 2009-04-09 Eatlime, Inc. Methods and apparatus for simultaneous uploading and streaming of media
CN103475932B (en) * 2013-09-05 2017-07-25 深圳Tcl新技术有限公司 Seamless online player method and device, the network television system of Internet video
CN103702215A (en) * 2013-12-12 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and device for selecting video player
CN103745733B (en) * 2013-12-23 2017-03-15 乐视网信息技术(北京)股份有限公司 A kind of video playing control method and video player
CN105049904B (en) * 2015-07-27 2019-05-31 青岛海信移动通信技术股份有限公司 A kind of playing method and device of multimedia file
JP6857251B2 (en) * 2016-10-25 2021-04-14 イーサー・メディア・インコーポレーテッド Video content switching and synchronization system, and how to switch between multiple video formats
CN107678827A (en) * 2017-10-19 2018-02-09 广东欧珀移动通信有限公司 Display methods, device, terminal and the storage medium of video player
CN108055250A (en) * 2017-12-01 2018-05-18 暴风集团股份有限公司 Video play device, method and terminal
CN109640182A (en) * 2018-12-20 2019-04-16 深圳创维数字技术有限公司 Video broadcasting method, device and computer readable storage medium
CN111918129B (en) * 2020-08-10 2022-04-01 四川长虹电器股份有限公司 Method, system and terminal for playing videos in seamless connection mode

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244048A (en) * 2014-10-15 2014-12-24 飞狐信息技术(天津)有限公司 Video playing method and video client
CN105744372A (en) * 2014-12-11 2016-07-06 深圳都好看互动电视有限公司 Video-on-demand broadcast method and system, server, and on-demand client
WO2018177219A1 (en) * 2017-03-27 2018-10-04 腾讯科技(深圳)有限公司 Method and device for controlling playing of pre-video media file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"视频下载及网页信息提取系统设计与实现";郑旭;全文数据库;全文 *

Also Published As

Publication number Publication date
CN112383723A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
CN111277779B (en) Video processing method and related device
JP6388673B2 (en) Mobile terminal and imaging method thereof
CN107040794A (en) Video broadcasting method, server, virtual reality device and panoramic virtual reality play system
CN107734244B (en) Panorama movie playback method and playing device
CN113115110B (en) Video synthesis method and device, storage medium and electronic equipment
WO2016126044A1 (en) Service method for providing game play video by additionally applying advertisement content thereto
CN111405339B (en) Split screen display method, electronic equipment and storage medium
CN110800310A (en) Subtitle processing method and director system for sports game video
CN107454438B (en) Panoramic video production method
CN105939480A (en) Live broadcast method and device of terminal video
CN111279687A (en) Video subtitle processing method and director system
US20140184646A1 (en) Image processor and fisheye image display method thereof
CN107333144A (en) Multichannel picture display process and device based on football race broadcast relay system
CN112383723B (en) Video switching method and device and computer equipment
CN112637672A (en) Screen projection method, screen projection receiving terminal and screen projection sending terminal
CN107454457B (en) Method and device for switching live broadcast resolution of screen recording
CN110784674B (en) Video processing method, device, terminal and storage medium
CN109547699A (en) A kind of method and device taken pictures
EP2923485B1 (en) Automated filming process for sport events
CN112616078A (en) Screen projection processing method and device, electronic equipment and storage medium
CN114257831B (en) Access management system and method for multipath virtual video source
JP2021068989A (en) Information processing system, information processing method, and program
CN113440851B (en) Virtual picture rendering method and device, storage medium and electronic device
CN111371998B (en) Camera starting control method and related device
CN115119006B (en) Live broadcast interaction method, live broadcast interaction device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant