CN115412682A - Video carousel method and device, computer equipment and storage medium - Google Patents

Video carousel method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115412682A
CN115412682A CN202211057797.XA CN202211057797A CN115412682A CN 115412682 A CN115412682 A CN 115412682A CN 202211057797 A CN202211057797 A CN 202211057797A CN 115412682 A CN115412682 A CN 115412682A
Authority
CN
China
Prior art keywords
video
carousel
video source
played
source data
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
CN202211057797.XA
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.)
Shenzhen Huawang Technology Co ltd
Original Assignee
Shenzhen Huawang Technology 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 Shenzhen Huawang Technology Co ltd filed Critical Shenzhen Huawang Technology Co ltd
Priority to CN202211057797.XA priority Critical patent/CN115412682A/en
Publication of CN115412682A publication Critical patent/CN115412682A/en
Pending legal-status Critical Current

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/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26258Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for generating a list of items to be played back in a given order, e.g. playlist, or scheduling item distribution according to such list

Abstract

The invention discloses a video carousel method, a video carousel device, computer equipment and a storage medium, wherein the method is implemented by the following steps: when the first preset time before the video polling period is reached, sending a new video source data acquisition request to a server; before receiving a key frame of new video source data sent by a server, continuously playing the video source data which is currently played in a current video window; and when the key frame of the new video source data is received, replacing the current video source data played by the current video window with the new video source data. When new and old video source carousel switching is carried out, when the key frame of new video source data does not arrive, the video source data which is currently playing can be continuously played, and the video source data which is currently playing is replaced until the key frame of the new video source data is obtained, so that the carousel switching of the new and old video sources is realized, the problem of black screen caused by the fact that the new video source cannot be timely obtained is avoided, and the user experience is improved.

Description

Video carousel method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of video carousel technologies, and in particular, to a video carousel method and apparatus, a computer device, and a storage medium.
Background
Video carousels are a common function in video conferencing and video surveillance systems. Due to the limitations of the size of the display and the performance of the video preprocessing equipment, the number of windows for playing the video source data is generally limited, so that when the number of the video sources is larger than the total number of windows capable of being used for playing the video sources, all the video source data can be played in a video carousel mode.
However, when a current product with a video carousel function is replaced by a new video source and an old video source in a carousel manner, a video window is blacked for a period of time with a certain probability, so that the user experience is reduced. The main reason for this problem is that in the carousel replacement process, a certain probability exists in the key frames of new video source data, and it takes a long time to obtain the key frames, so that the video window cannot normally play the video before this, and the problem of black screen occurs, and user experience is not utilized.
Disclosure of Invention
Therefore, it is necessary to provide a video carousel method, a video carousel device, a computer device, and a storage medium for solving the problem in the prior art that a video window cannot normally play a video due to failure to timely acquire a key frame of new video source data, and a black screen occurs.
The present application is implemented as such, and in a first aspect, a video carousel method is provided, including:
when a first preset time before a video polling cycle is reached, sending a new video source data acquisition request to a server;
continuing to play the current video source data in the current video window before receiving the key frame of the new video source data sent by the server;
and continuously playing the video source data which is currently played in the current video window before receiving the key frame of the new video source data sent by the server.
In an embodiment, after the current video window continues to play the current video source data, the method further includes:
and when the key frame of the new video source data is not received within a second preset time before the next video polling period, adding the new video source data into the carousel waiting queue of the next video polling period again, and playing in the current video window to continue playing the current video data source.
In one embodiment, the replacing the current video source data played by the current video window with the new video source data includes:
starting video carousel, and counting the total amount of video source data to be carousel in the carousel waiting queue;
determining an initial replacement window and a carousel sequence according to the total amount of the video source data to be carousel and the total amount of windows of the current playable video sources;
extracting preset video sources to be played from the carousel waiting queue in batches;
determining a window of the video source to be replaced and played according to the initial replacement window, the carousel sequence and the number of the video sources to be played;
and replacing the original video source played in the window of the video source to be replaced and played with the video source to be played in sequence according to the initial replacement window and the carousel sequence.
In an embodiment, the total amount of the video source data to be carousel is n, and determining a carousel sequence according to the total amount of the video source data to be carousel includes:
when the total number n is larger than the total number m of the windows of the playable video sources, replacing the windows of the first playable video source;
when the total number n is less than the total number m of the windows of the playable video sources, performing replacement from m-n +1 windows;
and when the total number n is 0, stopping starting the video carousel.
In an embodiment, after sequentially replacing an original video source played in a window of a video source to be replaced and played with the video source to be played according to the start replacement window and the carousel sequence, the replacing includes:
when all the video source data waiting for playing in the carousel waiting queue are subjected to replacement playing, calculating the total replacement playing consumption time t;
when the total consumed time t is longer than the time of the video polling period, starting a new round of video carousel;
and when the total consumed time t is less than the time of the video polling period, waiting for the next carousel period and starting video carousel.
In an embodiment, the extracting, in batches, preset video sources to be played from the carousel waiting queue includes:
and when the data quantity of the current video sources in the carousel waiting team is smaller than the extracted preset video sources to be played, extracting all the video sources to be played in the carousel waiting team.
In an embodiment, when the video source to be played cannot be played normally, the original video source continues to be played in the window of the video source to be replaced and played;
and adding the video source to be played into the carousel waiting queue of the next carousel period again.
In a second aspect, a video carousel apparatus is provided, including:
the new video data acquisition request sending unit is used for sending a new video source data acquisition request to the server within a first preset time before the video polling period is reached;
the playing unit is used for continuously playing the video source data which is currently played in the current video window before the key frame of the new video source data sent by the server is received;
and the replacing unit is used for replacing the current video source data played by the current video window with the new video source data when the key frame of the new video source data is received.
In a third aspect, a computer device is provided, comprising a memory, a processor and computer readable instructions stored in the memory and executable on the processor, the processor implementing the steps of the video carousel method as described above when executing the computer readable instructions.
In a fourth aspect, a readable storage medium is provided, which stores computer readable instructions, which when executed by a processor, implement the steps of the video carousel method as described above
The video carousel method, the video carousel device, the computer equipment and the storage medium are realized by the method, and the method comprises the following steps: when the first preset time before the video polling period is reached, sending a new video source data acquisition request to a server; before receiving the key frame of the new video source data sent by the server, continuously playing the video source data which is currently played in the current video window; and when the key frame of the new video source data is received, replacing the current video source data played by the current video window with the new video source data. In the embodiment of the application, when new and old video source carousel switching is performed, when a key frame of new video source data requested by a server cannot be timely acquired, the video source data which is currently played can be continuously played at a current video window, and the video source data which is currently played at the current video window is replaced until the key frame of the new video source data is acquired, so that the carousel switching of the new and old video sources is realized, furthermore, the problem of black screen caused by the fact that the new video source cannot be timely acquired can be avoided, the video data can be played all the time through a window, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an application environment of a video carousel method according to an embodiment of the present invention;
fig. 2 is a first flowchart illustrating a video carousel method according to an embodiment of the present invention;
fig. 3 is a flow chart illustrating a video carousel method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart illustrating a video carousel method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a video carousel apparatus according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a computing device according to an embodiment of the invention.
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 some, not all, embodiments of the present invention. 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.
The video carousel method provided in this embodiment may be applied to the application environment shown in fig. 1, where a client communicates with a server, and a display communicates with the server. The client includes, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers. The display end can be a display, the display can comprise a plurality of video windows and can be used for presenting a plurality of video pictures in turn in a mixed screen mode, and the server end can be realized by an independent server or a server cluster consisting of a plurality of servers.
In one embodiment, as shown in fig. 2, a video carousel method is provided, which includes the following steps:
in step S110, when a first preset time before the video polling period is reached, a new video source data acquisition request is sent to the server;
in the embodiment of the present application, the first preset time may be a specific time point, for example, 5 seconds before the video polling period, or may be a specific time range, for example, within 5 seconds to 10 seconds before the video polling period.
In this embodiment, the new video source data may include different video source data collected by a plurality of different terminal devices, and may also include video source data collected by one terminal device.
In the embodiment of the application, in a first preset time before a video polling period, a request for acquiring new video source data may be sent to a server, and the server may receive video data acquired by different clients as new video source data. Taking a video conference scene as an example, the server can be connected with a plurality of clients, and collects video data of different participants or conference places in real time and uses the video data as new video source data.
Further, audio data corresponding to each new video source data can be acquired.
In the embodiment of the present application, the acquisition request may further include video data collected by the client that needs to be displayed in this polling period, for example, the acquisition request may include an identifier of the client a, and then the server may transfer the video source data collected by the client a to the display for display.
In step S120, before receiving the key frame of the new video source data sent by the server, continuously playing the video source data currently being played in the current video window;
in the embodiment of the application, due to the influences of network delay, video decoding, key frame response time and the like, a key frame of new video source data cannot be obtained in time, and when new video source data is requested from a server, a current playing window stops playing the currently playing video source data, so that a black screen appears in the current playing window, and therefore, the current video source data continues to be played in the current video window before the key frame of the new video source data sent by the server is received, that is, the video source data being played in the current video window does not need to be stopped. The phenomenon of automatic switching of blocking or black screen during video frame polling is overcome, the polling frame switching is smooth, and the user experience is improved.
In an embodiment of the present application, after the current video window continues to play the video source data currently being played, the method includes:
and when the key frame of the new video source data is not received within a second preset time before the next video polling period, adding the new video source data into the carousel waiting queue of the next video polling period again, and playing in the current video window to continue playing the current video data source.
Specifically, if the key frame of the new video data is not received until a second preset time before the next video polling cycle, the replacement of the new video data may be abandoned, the new video source data sent by the server is added to the carousel waiting queue again, and the video source data currently being played continues to be played in the current video window.
Further, it may be determined that the new video source data may be specifically placed in the carousel waiting queue of the polling period according to the actual acquisition time of the new video source data and the video polling period in which the actual acquisition time is located. Each polling period may correspond to a carousel wait queue.
The second preset time may be a specific time point, for example, the next video polling period reaches the first 5 seconds, or may be a specific time range, for example, within 5 seconds to 10 seconds before the video polling period reaches.
In step S130, when the key frame of the new video source data is received, replacing the current video source data played in the current video window with the new video source data.
In the embodiment of the application, when the key frame of the new video source data is received, the current video source data played by the current video window is replaced by the new video source data, so that the available video data can be ensured during polling picture switching, and the occurrence of blocking or black screen is avoided.
Referring to fig. 2, in the embodiment of the present application, the replacing the current video source data played by the current video window with the new video source data includes:
starting video carousel, and counting the total amount of video source data to be carousel in the carousel waiting queue;
determining an initial replacement window and a carousel sequence according to the total amount of the video source data to be carousel and the total amount of windows of the current playable video sources;
extracting preset video sources to be played from the carousel waiting queue in batches;
determining a window of the video source to be replaced and played according to the initial replacement window, the carousel sequence and the number of the video sources to be played;
and sequentially replacing the original video source played in the window of the video source to be replaced and played with the video source to be played according to the initial replacement window and the carousel sequence.
In this embodiment of the application, the video source data to be carousel in the carousel waiting queue may include the new video source data requested by the server, and specifically, after the new video source data is acquired, the acquired new video source data may be sequentially added to the carousel waiting queue of the current video polling period according to a preset rule, so as to replace the video played in the corresponding window.
The preset rule can be the order of acquiring new video source data, the priority order of playing, and the like.
In the embodiment of the present application, the carousel order may be a carousel direction, for example, permutation is performed sequentially from left to right, or permutation is performed sequentially from right to left, and the like. Each window can be correspondingly encoded, for example, 01, 02, 03, etc., and the permutation can be performed in the order from small to large of the codes, or in the order from large to small of the codes, which can be specifically set according to the actual situation.
In the embodiment of the application, after the video carousel is started, the total number n of video sources to be carousel in the current carousel waiting queue can be counted, then an initial replacement window is determined according to the total number n of the video sources to be carousel and a window m of the current playable video sources, then a preset number of video sources, such as x, can be extracted from the video sources to be carousel in the current carousel waiting queue in batches, then the replacement is sequentially performed on the video sources being played in the window of the current playable video source to be replaced from the initial replacement window according to the carousel sequence, and the influence on system load caused by the simultaneous playing of multi-channel video source data and the analysis of multi-channel new video source data in a cache can be avoided.
Wherein different video sources can be replaced in different windows, and one window can replace only one video source.
In an embodiment of the present application, the total amount of video source data to be carousel is n, and determining a carousel sequence according to the total amount of the video source data to be carousel includes:
when the total number n is larger than the total number m of the windows of the playable video sources, replacing the windows of the first playable video source;
when the total number n is less than the total number m of the windows of the playable video sources, performing replacement from m-n +1 windows;
and when the total number n is 0, stopping starting the video carousel.
In the embodiment of the application, the total number of the video source data to be played in turn is n, and the total number of the windows capable of playing the video sources is m, so that when the total number n is greater than the total number m of the windows capable of playing the video sources, replacement can be performed from the window capable of playing the first video source; when the total number n is less than the total number m of the windows of the playable video sources, performing replacement from m-n +1 windows; when the total number n is 0, video carousel does not need to be performed, and the video carousel can be stopped to be started at the moment
For example, if the current playable video source window includes 01, 05, 08, etc., then the window No. 01 may be the first playable video source window.
In an embodiment of the present application, after sequentially replacing an original video source played in a window of a video source to be replaced and played with the video source to be played according to the initial replacement window and the carousel sequence, the replacing includes:
when all the video source data waiting for being played in the carousel waiting queue are subjected to replacement playing, calculating the total replacement playing consumption time t;
when the total consumed time t is longer than the time of the video polling period, starting a new round of video carousel;
and when the total consumed time t is less than the time of the video polling period, waiting for the next carousel period and starting video carousel.
Specifically, the total consumed time t is the time taken for all the video source data to be played in the carousel waiting queue to be replaced and played, when the time is longer than the time of the period of the current video polling, a new video carousel is started immediately, and if the time is shorter than the time of the period of the current video polling, the remaining video source data to be played without replacement can be placed in the carousel waiting queue of the next polling period, and when the next polling period is waited, the video carousel is started.
Referring to fig. 4, in an embodiment of the present application, the extracting, in batches, preset video sources to be played from the carousel waiting queue includes:
and when the data quantity of the current video sources in the carousel waiting team is smaller than the extracted preset video sources to be played, extracting all the video sources to be played in the carousel waiting team.
Specifically, if the number of the current video source data in the carousel waiting queue is y, and y is less than x, which is the number of the extracted preset video sources to be played, namely y < x, all the video source data y in the carousel waiting queue can be extracted without replacing in batches.
In an embodiment of the present application, the sequentially replacing an original video source played in a window of a video source to be replaced and played with the video source to be played includes:
when the video source to be played cannot be played normally, continuing to play the original video source in the window of the video source to be replaced and played;
and adding the video source to be played into the carousel waiting queue of the next carousel period again.
Specifically, if the extracted video source to be played cannot be played normally, the replacement is not performed, the original video source being played is continuously played in the window of the video source to be played in the replacement mode, and meanwhile, the video source to be played, which cannot be played, can be added to the carousel waiting queue of the next carousel cycle again to wait for the next replacement playing. The video source which cannot be played is prevented from being replaced, so that the user experience is influenced due to the fact that the video source is blocked or the screen is blacked.
The video carousel method comprises the following steps: when the first preset time before the video polling period is reached, sending a new video source data acquisition request to a server; before receiving the key frame of the new video source data sent by the server, continuously playing the video source data which is currently played in the current video window; and when the key frame of the new video source data is received, replacing the current video source data played by the current video window with the new video source data. In the embodiment of the application, when new and old video source carousel switching is performed, when a key frame of new video source data requested by a server cannot be timely acquired, the video source data which is currently played can be continuously played at a current video window, and until the key frame of the new video source data is acquired, the video source data which is currently played at the current video window is replaced, the carousel switching of the new and old video sources is realized, and the problem that a new video source cannot be timely acquired and a black screen occurs is avoided, so that the video data can be played all the time through the window, and the user experience is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a video playing apparatus is provided, and the video playing apparatus corresponds to the video playing methods in the above embodiments one to one. As shown in fig. 5, the video playback apparatus includes a new video data acquisition request transmission unit 10, a playback unit 20, and a replacement unit 30. The functional modules are explained in detail as follows:
a new video data acquisition request sending unit 10, configured to send a new video source data acquisition request to a server within a first preset time before a video polling period is reached;
a playing unit 20, configured to continue to play the video source data currently being played in the current video window before receiving the key frame of the new video source data sent by the server;
and a replacing unit 30, configured to replace the current video source data played in the current video window with the new video source data when the key frame of the new video source data is received.
In one embodiment, the apparatus further comprises: a processing unit to:
and when the key frame of the new video source data is not received within a second preset time before the next video polling cycle, adding the new video source data to the carousel waiting queue of the next video polling cycle again, and playing in the current video window to continue playing the current video data source.
In an embodiment, the permuting unit 30 is further configured to:
starting video carousel, and counting the total amount of video source data to be carousel in the carousel waiting queue;
determining an initial replacement window and a carousel sequence according to the total amount of the video source data to be carousel and the total amount of windows of the current playable video sources;
extracting preset video sources to be played from the carousel waiting queue in batches;
determining a window of the video source to be replaced and played according to the initial replacement window, the carousel sequence and the number of the video sources to be played;
and sequentially replacing the original video source played in the window of the video source to be replaced and played with the video source to be played according to the initial replacement window and the carousel sequence.
In an embodiment, the total amount of video source data to be carousel is n, and the replacement unit 30 is further configured to:
when the total number n is larger than the total number m of the windows of the playable video sources, replacing the windows of the first playable video source;
when the total number n is less than the total number m of the windows of the playable video sources, performing replacement from m-n +1 windows;
and when the total number n is 0, stopping starting the video carousel.
In an embodiment, the permuting unit 30 is further configured to:
when all the video source data waiting for playing in the carousel waiting queue are subjected to replacement playing, calculating the total replacement playing consumption time t;
when the total consumed time t is longer than the time of the video polling period, starting a new round of video carousel;
and when the total consumed time t is less than the time of the video polling period, waiting for the next carousel period and starting video carousel.
In an embodiment, the permuting unit 30 is further configured to:
and when the data quantity of the current video sources in the carousel waiting team is smaller than the extracted preset video sources to be played, extracting all the video sources to be played in the carousel waiting team.
In an embodiment, the permuting unit 30 is further configured to:
when the video source to be played cannot be played normally, continuing to play the original video source in the window of the video source to be replaced and played;
and adding the video source to be played into the carousel waiting queue of the next carousel period again.
In the embodiment of the application, when new and old video source carousel switching is performed, when a key frame of new video source data requested by a server cannot be timely acquired, the video source data which is currently played can be continuously played at a current video window, and the video source data which is currently played at the current video window is replaced until the key frame of the new video source data is acquired, so that the carousel switching of the new and old video sources is realized, furthermore, the problem of black screen caused by the fact that the new video source cannot be timely acquired can be avoided, the video data can be played all the time through a window, and the user experience is improved.
For specific limitations of the video playing apparatus, reference may be made to the above limitations of the video playing method, which is not described herein again. The modules in the video playing apparatus can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as shown in fig. 6. The computer device comprises a processor, a memory and a network interface which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer readable instructions. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer readable instructions, when executed by a processor, implement a video carousel method. The readable storage media provided by the present embodiment include nonvolatile readable storage media and volatile readable storage media.
A computer device comprising a memory, a processor and computer readable instructions stored in the memory and executable on the processor, the processor when executing the computer readable instructions implementing the steps of the video carousel method as described above.
A readable storage medium storing computer readable instructions which, when executed by a processor, implement the steps of the video carousel method as described above.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware related to computer readable instructions, which may be stored in a non-volatile readable storage medium or a volatile readable storage medium, and when executed, the computer readable instructions may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
It should be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units and modules is only used for illustration, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the apparatus may be divided into different functional units or modules to perform all or part of the above described functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein.

Claims (10)

1. A video carousel method, the method comprising:
when the first preset time before the video polling period is reached, sending a new video source data acquisition request to a server;
before receiving the key frame of the new video source data sent by the server, continuously playing the video source data which is currently played in the current video window;
and when the key frame of the new video source data is received, replacing the current video source data played by the current video window with the new video source data.
2. The video carousel method of claim 1, wherein after the current video window continues to play the video source data currently being played, comprising:
and when the key frame of the new video source data is not received within a second preset time before the next video polling period, adding the new video source data into the carousel waiting queue of the next video polling period again, and playing in the current video window to continue playing the current video data source.
3. The video carousel method of claim 2, wherein said replacing the current video source data played by the current video window with the new video source data comprises:
starting video carousel, and counting the total amount of video source data to be carousel in the carousel waiting queue;
determining an initial replacement window and a carousel sequence according to the total amount of the video source data to be carousel and the total amount of windows of the current playable video sources;
extracting preset video sources to be played from the carousel waiting queue in batches;
determining a window of the video source to be replaced and played according to the initial replacement window, the carousel sequence and the number of the video sources to be played;
and sequentially replacing the original video source played in the window of the video source to be replaced and played with the video source to be played according to the initial replacement window and the carousel sequence.
4. The video carousel method according to claim 3, wherein the total amount of video source data to be carousel is n, and the determining the carousel order according to the total amount of video data to be carousel comprises:
when the total number n is larger than the total number m of the windows of the playable video sources, replacing the windows of the first playable video source;
when the total number n is less than the total number m of the windows of the playable video sources, performing replacement from m-n +1 windows;
and when the total number n is 0, stopping starting the video carousel.
5. The video carousel method according to claim 4, wherein the replacing the original video source played in the window of the video source to be replaced and played with the video source to be played according to the start replacement window and the carousel order comprises:
when all the video source data waiting for playing in the carousel waiting queue are subjected to replacement playing, calculating the total replacement playing consumption time t;
when the total consumed time t is longer than the time of the video polling period, starting a new round of video carousel;
and when the total consumed time t is less than the time of the video polling period, waiting for the next carousel period and starting video carousel.
6. The video carousel method according to claim 3, wherein the extracting of the preset video sources to be played from the carousel waiting queue in batches comprises:
and when the data quantity of the current video sources in the carousel waiting team is smaller than the extracted preset video sources to be played, extracting all the video sources to be played in the carousel waiting team.
7. The video carousel method of claim 3, wherein the sequentially replacing the original video source played in the window of the video source to be replaced and played with the video source to be played comprises:
when the video source to be played cannot be played normally, continuing to play the original video source in the window of the video source to be replaced and played;
and adding the video source to be played into the carousel waiting queue of the next carousel period again.
8. A video carousel apparatus, the apparatus comprising:
the new video data acquisition request sending unit is used for sending a new video source data acquisition request to the server within a first preset time before the video polling period is reached;
the playing unit is used for continuing to play the video source data which is currently played in the current video window before receiving the key frame of the new video source data sent by the server;
and the replacement unit is used for replacing the current video source data played by the current video window with the new video source data when the key frame of the new video source data is received.
9. A computer device comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the processor when executing the computer readable instructions implements the steps of the video carousel method of any one of claims 1-7.
10. A readable storage medium storing computer readable instructions, which when executed by a processor implement the steps of the video carousel method according to any one of claims 1 to 7.
CN202211057797.XA 2022-08-31 2022-08-31 Video carousel method and device, computer equipment and storage medium Pending CN115412682A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211057797.XA CN115412682A (en) 2022-08-31 2022-08-31 Video carousel method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211057797.XA CN115412682A (en) 2022-08-31 2022-08-31 Video carousel method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115412682A true CN115412682A (en) 2022-11-29

Family

ID=84163331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211057797.XA Pending CN115412682A (en) 2022-08-31 2022-08-31 Video carousel method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115412682A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115942056A (en) * 2023-03-07 2023-04-07 共道网络科技有限公司 Video carousel method, device and equipment in remote court trial and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115942056A (en) * 2023-03-07 2023-04-07 共道网络科技有限公司 Video carousel method, device and equipment in remote court trial and readable storage medium

Similar Documents

Publication Publication Date Title
CN111163130B (en) Network service system and data transmission method thereof
CN112272327B (en) Data processing method, device, storage medium and equipment
CN107734352B (en) Information determination method, device and storage medium
CN110888858A (en) Database operation method and device, storage medium and electronic device
CN115412682A (en) Video carousel method and device, computer equipment and storage medium
CN111726641A (en) Live video playing processing method and device and server
CN113965751A (en) Screen content coding method, device, equipment and storage medium
CN112218034A (en) Video processing method, system, terminal and storage medium
CN111131757A (en) Video conference display method, device and storage medium
US20240098316A1 (en) Video encoding method and apparatus, real-time communication method and apparatus, device, and storage medium
CN107948682B (en) Configuration method of service domain name, service server and terminal equipment
CN112653736A (en) Parallel source returning method and device and electronic equipment
CN112838980A (en) Message processing method, system, device, electronic equipment and storage medium
CN108829824B (en) Resource processing method and device in internet operation activity
CN111147796B (en) Monitoring data display method, device and storage medium in video conference
CN111131777A (en) Viewing method and device for video network monitoring
CN111541942B (en) Wheat connecting method, device, equipment and storage medium
CN115119020B (en) Live broadcasting room interaction control method, device, electronic equipment, medium and program product
CN112948408B (en) Data processing method and device
CN115297259B (en) Camera management method, terminal and storage medium
CN111586340B (en) Image data loading and providing method and device
CN113824978B (en) Speaking method, device, equipment and storage medium of live broadcasting room
CN111935545B (en) Method, device and equipment for transcoding video data and storage medium
CN115586878A (en) Data processing method and device based on screen sharing
CN117459782A (en) Live broadcast room switching method and device, live broadcast system, electronic equipment and medium

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