Method, apparatus, storage medium, and electronic device for playing a bitstream
Through splicing and priority adjustment, the target code stream is generated and displayed during display channel switching, solving the problem of screen flickering and improving the user experience.
Patent Information
- Application Number
- CN202210887402.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-26
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-07-26
AI Technical Summary
When switching the display channel, there is a problem in the prior art that screen flickers and leads to poor user experience.
By splicing the first code stream collected by each current channel associated with the target device, a second code stream is generated, and when the number of screen segmentation of the target device changes, the target code stream is determined from the second code stream, adjust the display priority of the target channel to be higher than other channels, and control the target display channel to play the target code stream to cover the display of other channels.
It realizes no perceptual screen switching when switching the display channel, improving the user experience.
Smart Images

Figure CN115278115B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of communications, and in particular, to a method, device, storage medium, and electronic device for playing a bitstream. Background Art
[0002] In the related art, the main process of the XVR / NVR split process is to first unbind the original split data process, and then establish a new binding relationship according to the new display split number. During the entire split process, it can be seen on the display that the picture switches from one display split picture to another, and the experience is poor; for example, when switching from 32 splits to 25 splits, because there are many unbinding and binding operations of the data stream, it can be seen on the display that the picture of 32 splits disappears line by line, and when it is 25 splits, it is displayed line by line. The display solutions in the related art all bind the IPC and the corresponding channels one by one. When the number of display channels is switched, first unbind the original channels and the IPC, and then according to the new number of channels, bind the IPC and the channels one by one. As a result, during the process of switching the display channels, the display channels will go black one by one, and then the corresponding pictures will be displayed one by one. Especially for NVR / XVR products with a large number of channels, when switching the display channels, it can be seen more clearly that the display channels go black one by one, and the experience is poor.
[0003] It can be seen from this that there is a problem in the related art that the picture flickers when switching the display channels, resulting in a poor user experience.
[0004] In view of the above problems existing in the related art, no effective solution has been proposed yet. Summary of the Invention
[0005] Embodiments of the present invention provide a method, device, storage medium, and electronic device for playing a bitstream, so as to at least solve the problem in the related art that the picture flickers when switching the display channels, resulting in a poor user experience.
[0006] According to an embodiment of the present invention, a method for playing a bitstream is provided, including: splicing first bitstreams collected by each current channel associated with a target device to obtain a second bitstream; determining a target bitstream from the second bitstream when the number of picture splits of the target device changes from the current number to the target number; determining a target channel from the current channels, and adjusting the display priority of the target display channel corresponding to the target channel to be higher than the display priorities of the other display channels corresponding to the other channels included in the current channels; and controlling the target display channel to play the target bitstream.
[0007] According to another embodiment of the present invention, there is provided a playback device for a bitstream, including: a splicing module configured to splice the first bitstreams collected by each current channel associated with a target device to obtain a second bitstream; a determination module configured to determine a target bitstream from the second bitstream when the number of screen partitions of the target device changes from the current number to a target number; an adjustment module configured to determine a target channel from the current channels and adjust the display priority of the target display channel corresponding to the target channel to be higher than the display priorities of the other display channels corresponding to the other channels included in the current channels; and a playback module configured to control the target display channel to play the target bitstream.
[0008] According to still another embodiment of the present invention, there is also provided a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0009] According to still another embodiment of the present invention, there is also provided an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0010] Through the present invention, the first bitstreams collected by each current channel associated with a target device are spliced to obtain a second bitstream. When the number of screen partitions of the target device changes from the current number to a target number, a target bitstream is determined from the second bitstream, a target channel is determined from the current channels, and the display priority of the target display channel corresponding to the target channel is adjusted to be higher than the display priorities of the other display channels corresponding to the other channels included in the current channels, and the target display channel is controlled to include the target bitstream. Since all the first bitstreams collected by the current channels can be spliced into a second bitstream, when the number of screen partitions changes, the target display channel is controlled to display the target bitstream included in the spliced second bitstream, and the display priority of the target display channel is higher than that of the other display channels. Therefore, when switching the display channel, only the target bitstream is displayed, and the process of switching the display channel is not displayed. Therefore, the problem of poor user experience caused by screen flickering when switching the display channel in the related art can be solved, and the effect of improving the user experience can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a hardware structural block diagram of a mobile terminal of a bitstream playback method according to an embodiment of the present invention;
[0012] Figure 2 is a flowchart of a bitstream playback method according to an embodiment of the present invention;
[0013] Figure 3It is a flowchart of a method for playing a bitstream according to a specific embodiment of the present invention;
[0014] Figure 4 It is a structural block diagram of a bitstream playing device according to an embodiment of the present invention. Specific embodiments
[0015] In the following, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in conjunction with the embodiments.
[0016] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence.
[0017] The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 It is a hardware structural block diagram of a mobile terminal for a method of playing a bitstream according to an embodiment of the present invention. As Figure 1 shown, the mobile terminal may include one or more ( Figure 1 only one is shown in Figure 1 the processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above-mentioned mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown in Figure 1 is only illustrative and does not limit the structure of the above-mentioned mobile terminal. For example, the mobile terminal may further include more or fewer components than
[0018] shown in
[0019] Figure 1 shown, or have a different configuration from
[0018] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to the method of playing a bitstream in the embodiments of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above-mentioned method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0019] The transmission device 106 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wireless network provided by a communication provider of a mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0020] In this embodiment, a method for playing a bitstream is provided. Figure 2 It is a flowchart of the method for playing a bitstream according to an embodiment of the present invention, as Figure 2 shown, and the process includes the following steps:
[0021] Step S202: splice the first bitstreams collected by each current channel associated with the target device to obtain a second bitstream;
[0022] Step S204: when the number of screen partitions of the target device changes from the current number to the target number, determine a target bitstream from the second bitstream;
[0023] Step S206: determine a target channel from the current channels, and adjust the display priority of the target display channel corresponding to the target channel to be higher than the display priorities of the other display channels corresponding to the other channels included in the current channels;
[0024] Step S208: control the target display channel to play the target bitstream.
[0025] In the above embodiment, the target device may be a display device, such as a monitor. The target device may be associated with multiple image acquisition devices, such as an XVR (coaxial hard disk video recorder), an NVR (network video camera), or other camera devices, such as surveillance devices. Each image acquisition device corresponds to a channel, and the bitstreams collected through each channel can be displayed on the target device. If the target device is associated with 16 channels, the screen of the target device can be divided into 16 blocks, and each block is used to display the bitstream collected through one channel, realizing the display of the pictures collected through 16 channels on the target device.
[0026] In the above embodiment, since the larger the gap between the current number and the target number during the process of dividing the number of screen partitions from the current number to the target number, the longer the time required to divide the screen, therefore, the target bitstream can be determined from the second bitstream according to the gap between the current number and the target number of the number of screen partitions of the target device. Among them, the duration of the target bitstream is related to the gap between the current number and the target number.
[0027] In the above embodiments, the second bitstream is the spliced bitstream, that is, the second bitstream is formed by splicing the first bitstreams collected through all current channels into one bitstream. When the second bitstream is displayed on a certain target channel among the current channels, the bitstreams collected by all channels are displayed. Therefore, the display priority of the target display channel can be adjusted to the highest level, or higher than that of other display channels, so as to display the second bitstream on top of other display channels and cover the bitstreams displayed by other display channels, making the user unaware of the picture switching. Among them, the target channel can be any one of the current channels, that is, the target channel can be randomly determined.
[0028] In the above embodiments, the data of the channels can be first fused according to the current segmentation number (i.e., the current quantity) of the target device. For example, if the current is splitNumx segmentation, then the data of splitNumx channels are fused into 1 channel through the Picture-in-Picture (PIP) technology. When the target device performs a segmentation operation, the pre-buffered PIP data is superimposed on the original splitNumx-segmented channels through the channel priority, so as to cover the previewed splitNumx-segmented data. The currently displayed splitNumx-segmented picture is actually a real-time PIP picture of 1 channel. After the segmentation operation process is completed, the priority of the PIP channel is reduced at this time, and the new splitNumy is displayed; thus, the user cannot see the segmentation process, achieving a "real-time and fast" segmentation process.
[0029] Among them, the execution subject of the above steps can be a background processor, etc., but is not limited thereto.
[0030] Through the present invention, the first bitstreams collected by each current channel associated with the target device are spliced to obtain a second bitstream. In the case where the number of picture segmentations of the target device changes from the current quantity to the target quantity, a target bitstream is determined from the second bitstream, a target channel is determined from the current channels, and the display priority of the target display channel corresponding to the target channel is adjusted to be higher than the display priorities of the other display channels corresponding to the other channels included in the current channels, and the target display channel is controlled to include the target bitstream. Since the first bitstreams collected by all current channels can be spliced into a second bitstream, when the number of picture segmentations changes, the target display channel is controlled to display the target bitstream included in the spliced second bitstream, and the display priority of the target display channel is higher than that of other display channels. Therefore, when switching the display channel, only the target bitstream is displayed, and the process of switching the display channel is not displayed. Therefore, the problem of poor user experience caused by picture flickering when switching the display channel in the related art can be solved, achieving the effect of improving the user experience.
[0031] In an exemplary embodiment, determining the target bitstream from the second bitstream includes: determining the caching duration of the target bitstream based on the target quantity and the current quantity; determining the latest bitstream that is the most recently spliced from the second bitstream, where the duration of the latest bitstream is the caching duration; and determining the latest bitstream as the target bitstream. In this embodiment, all the first bitstreams collected through the current channel can be spliced in real time, and the spliced second bitstream can be cached in real time. The duration of the second bitstream can be a bitstream with a preset duration, and the cached second bitstream can be updated and replaced in real time. When the number of picture cuts changes, the caching duration of the target bitstream to be obtained from the second bitstream can be determined according to the gap between the current quantity and the target quantity, and the latest bitstream that is the most recently spliced in the second bitstream can be determined as the target bitstream. For example, if the duration of the cached second bitstream is 3 s and the caching duration of the target bitstream is determined to be 2 s, then the last 2 s of the bitstream in the second bitstream are determined as the target bitstream.
[0032] In an exemplary embodiment, determining the caching duration of the target bitstream based on the target quantity and the current quantity includes: determining the target difference between the target quantity and the current quantity; determining the corresponding relationship between the difference and the duration; and determining the caching duration corresponding to the target difference based on the corresponding relationship. In this embodiment, the corresponding relationship between the change amount of the number of picture cuts and the switching duration, that is, the corresponding relationship between the difference and the switching duration, can be determined in advance. After the target difference is determined, the caching duration can be determined according to the corresponding relationship.
[0033] In an exemplary embodiment, after controlling the target display channel corresponding to the target channel to play the target bitstream included in the second bitstream, the method further includes: when the picture segmentation of the target device is completed, adjusting the display priority of the target display channel to be lower than or equal to the display priority of the other display channels, so as to display the bitstream collected through the other channels on the other display channels; and controlling the target display channel to play the bitstream collected through the target channel. In this embodiment, after the target display channel plays the target bitstream, it can be determined whether the picture segmentation of the target device is completed. When the picture segmentation is completed, the display priority of the target display channel can be adjusted to be lower than or equal to the display priority of the other display channels. In this way, the pictures actually displayed on the other display channels can be displayed, and at the same time, controlling the target display channel to play the bitstream collected through the target channel realizes that all display channels display the bitstreams collected through the channels corresponding to the display channels.
[0034] In an exemplary embodiment, splicing the first bitstreams collected by each current channel associated with the target device to obtain a second bitstream includes: determining the size information of the display channels corresponding to each of the current channels; determining the distribution information of the display channels corresponding to each of the current channels in the target device; determining the splicing size information based on the size information and the distribution information; and splicing the first bitstreams according to the splicing size information to obtain the second bitstream. In this embodiment, when performing bitstream splicing, the size information of the display channels corresponding to each current channel and the distribution information of the display channels in the target device can be determined, the splicing size information can be determined according to the size information and the distribution information, and the first bitstreams can be spliced according to the splicing size information to obtain the second bitstream. That is, when performing bitstream splicing, the size of the spliced second bitstream can be equal to the size of the picture composed of all the first bitstreams, so that when the target display channel displays the target bitstream, the picture can be the same as the pictures when each display channel separately displays the bitstreams collected through their respective channels.
[0035] In an exemplary embodiment, determining the splicing size information based on the size information and the distribution information includes: determining the number of rows and columns of the display channels according to the distribution information; determining the first product of the width included in the size information and the number of columns as the splicing width included in the splicing size information; and determining the second product of the length included in the size information and the number of rows as the length included in the splicing size information. In this embodiment, the number of rows and columns of the display channels can be determined according to the distribution information of the display channels, the length and width included in the size information can be determined, the product of the number of rows and the length can be determined as the length in the splicing size information, and the product of the width and the number of columns can be determined as the width in the splicing size information. It should be noted that the size information of each display channel is the same.
[0036] In the above embodiment, when the size information of each display channel is different, the length and width of each row of display channels and the length and width of each column of display channels can be determined, and the interface size information of the bitstream displayed in the target device can be determined according to the length and width of each row of display channels and the length and width of each column of display channels, and the interface size information can be determined as the splicing size information.
[0037] In an exemplary embodiment, after controlling the target display channel to play the target bitstream included in the second bitstream, the method further includes: when the picture segmentation of the target device is completed, determining the target quantity as the current quantity of the picture segmentation quantity of the target device. In this embodiment, when the picture segmentation is completed, the current quantity of the picture segmentation quantity of the target device can be updated to the target quantity. Then bitstream splicing is performed, and the number of channels spliced this time is the target quantity.
[0038] The method for playing a bitstream will be described below in conjunction with specific embodiments:
[0039] Figure 3 It is a flowchart of the method for playing a bitstream according to a specific embodiment of the present invention. As Figure 3 shown, the process includes:
[0040] Step S302, obtain the number of splits splitnumx of the current device (corresponding to the above-mentioned current quantity).
[0041] Step S304, (1) Synthesize and splice the channels of splitnumx into 1 real-time bitstream (corresponding to the above-mentioned second bitstream) according to the number of channels obtained previously, which is the picture-in-picture (i.e., PIP. PIP means: Synthesize multiple real-time pictures into 1 real-time picture through synthesis technology, and the actual effect seen in the synthesized picture is the same as that of multiple pictures). The picture seen in the picture-in-picture is the same as the picture seen in the current split, but the implementation principles are different; (2) Only cache the pictures of the synthesized channels for about 3 seconds or less each time. If the display split number is switched from single split to 32 splits, then more data needs to be cached because the switching time between different splits is different; this is for saving memory;
[0042] Step S306, determine whether a split switching operation has occurred on the current device. If no split switching operation has occurred, execute step S308. If a split switching has occurred, enter step S310.
[0043] Step S308, discard the bitstream of the previous period of the PIP and only retain the latest segment of the PIP bitstream.
[0044] Step S310, send the PIP bitstream to the new channel (corresponding to the above-mentioned target channel), and set the display priority of the channel to be higher than the priorities of the current other display channels, and it is necessary to set the display picture size of the PIP channel to be equal to the sum of the display picture sizes of the other channels; thus, the PIP picture covers the pictures of all current channels; the whole process has no obvious change.
[0045] Step S312, determine whether the current split switching process is completed; if not completed, execute step S310, and the PIP picture continues to cover the pictures of the original channels; if the split switching is completed, proceed to step S314.
[0046] Step S314, reduce the display priority of the PIP channel so that it is less than the display priorities of all channels of the current new split, thereby displaying the pictures of all channels in the new split.
[0047] Step S316: Unbind the PIP synthesis channel and destroy the resources to destroy the PIP images of the previous channels and synthesize new PIP images for the new channels; then re-enter Step S302.
[0048] In the foregoing embodiments, smooth switching is achieved when the split number for XVR / NVR switching display is realized through picture-in-picture; during the XVR / NVR splitting process, the continuity of the picture can be achieved, smooth switching of channels can be realized, and users cannot perceive the splitting process, thus improving the user experience.
[0049] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc) and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present invention.
[0050] In this embodiment, a bitstream playback device is further provided. This device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0051] Figure 4 is a structural block diagram of a bitstream playback device according to an embodiment of the present invention. As Figure 4 shown, the device includes:
[0052] A splicing module 42, configured to splice the first bitstreams collected by each current channel associated with the target device to obtain a second bitstream;
[0053] A determination module 44, configured to determine a target bitstream from the second bitstream when the number of picture splits of the target device changes from the current number to the target number;
[0054] An adjustment module 46, configured to determine a target channel from the current channels and adjust the display priority of the target display channel corresponding to the target channel to be higher than the display priorities of the other display channels corresponding to the other channels included in the current channels;
[0055] A playback module 48, configured to control the target display channel to play the target bitstream.
[0056] In an exemplary embodiment, the determining module 44 may determine the target bitstream from the second bitstream in the following manner: determine the caching duration of the target bitstream based on the target quantity and the current quantity; determine the latest bitstream that is newly spliced from the second bitstream, where the duration of the latest bitstream is the caching duration; and determine the latest bitstream as the target bitstream.
[0057] In an exemplary embodiment, the determining module 44 may determine the caching duration of the target bitstream based on the target quantity and the current quantity in the following manner: determine the target difference between the target quantity and the current quantity; determine the corresponding relationship between the difference and the duration; and determine the caching duration corresponding to the target difference based on the corresponding relationship.
[0058] In an exemplary embodiment, after controlling the target display channel corresponding to the target channel to play the target bitstream included in the second bitstream, when the screen segmentation of the target device is completed, the device may adjust the display priority of the target display channel to be lower than or equal to the display priority of the other display channels, so as to display the bitstream collected through the other channels on the other display channels; and control the target display channel to play the bitstream collected through the target channel.
[0059] In an exemplary embodiment, the splicing module 42 may splice the first bitstreams collected by each current channel associated with the target device to obtain a second bitstream in the following manner: determine the size information of the display channel corresponding to each current channel; determine the distribution information of the display channels corresponding to each current channel in the target device; determine the splicing size information based on the size information and the distribution information; and splice the first bitstreams according to the splicing size information to obtain the second bitstream.
[0060] In an exemplary embodiment, the splicing module 42 may determine the splicing size information based on the size information and the distribution information in the following manner: determine the number of rows and columns of the display channels according to the distribution information; determine the first product of the width included in the size information and the number of columns as the splicing width included in the splicing size information; and determine the second product of the length included in the size information and the number of rows as the length included in the splicing size information.
[0061] In an exemplary embodiment, after controlling the target display channel to play the target bitstream included in the second bitstream, when the screen segmentation of the target device is completed, the device may also determine the target quantity as the current quantity of the screen segmentation quantity of the target device.
[0062] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited thereto: all the above-mentioned modules are located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination form.
[0063] An embodiment of the present invention also provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0064] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks or optical discs that can store computer programs.
[0065] An embodiment of the present invention also provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0066] In an exemplary embodiment, the above-mentioned electronic device may further include a transmission device and an input / output device. Wherein, the transmission device is connected to the above-mentioned processor, and the input / output device is connected to the above-mentioned processor.
[0067] For the specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details will not be repeated here.
[0068] Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a different order than here, or they can be separately made into individual integrated circuit modules, or multiple modules or steps among them can be made into a single integrated circuit module to implement. In this way, the present invention is not limited to any specific combination of hardware and software.
[0069] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for playing a bitstream, characterized in that, Including: Concatenating the first bitstreams collected by each current channel associated with the target device to obtain a second bitstream; When the number of screen partitions of the target device changes from the current number to the target number, determining a target bitstream from the second bitstream; Determining a target channel from the current channels, and adjusting the display priority of the target display channel corresponding to the target channel to be higher than the display priorities of the other display channels corresponding to the other channels included in the current channels; Controlling the target display channel to play the target bitstream; Determining a target bitstream from the second bitstream includes: determining the cache duration of the target bitstream based on the target number and the current number; determining the latest concatenated bitstream from the second bitstream, where the duration of the latest bitstream is the cache duration; and determining the latest bitstream as the target bitstream.
2. The method according to claim 1, characterized in that Determining the cache duration of the target bitstream based on the target number and the current number includes: Determining the target difference between the target number and the current number; Determining the correspondence between the difference and the duration; Determining the cache duration corresponding to the target difference based on the correspondence.
3. The method according to claim 1, wherein After controlling the target display channel corresponding to the target channel to play the target bitstream included in the second bitstream, the method further includes: When the screen partitioning of the target device is completed, adjusting the display priority of the target display channel to be lower than or equal to the display priorities of the other display channels, so as to display the bitstreams collected by the other channels on the other display channels; Controlling the target display channel to play the bitstream collected by the target channel.
4. The method according to claim 1, wherein Concatenating the first bitstreams collected by each current channel associated with the target device to obtain a second bitstream includes: Determining the size information of the display channels corresponding to each current channel; Determining the distribution information of the display channels corresponding to each current channel in the target device; Determining the concatenation size information based on the size information and the distribution information; Concatenating the first bitstreams according to the concatenation size information to obtain the second bitstream.
5. The method according to claim 4, wherein Determining the concatenation size information based on the size information and the distribution information includes: Determining the number of rows and columns of the display channels according to the distribution information; Determining the first product of the width included in the size information and the number of columns as the concatenation width included in the concatenation size information; Determining the second product of the length included in the size information and the number of rows as the length included in the concatenation size information.
6. The method according to claim 1, wherein After controlling the target display channel to play the target bitstream included in the second bitstream, the method further includes: When the screen partitioning of the target device is completed, determining the target number as the current number of the screen partitioning number of the target device.
7. A playback device for a bitstream, characterized in that, Including: A concatenation module, configured to concatenate the first bitstreams collected by each current channel associated with the target device to obtain a second bitstream; A determination module, configured to determine a target bitstream from the second bitstream when the number of screen partitions of the target device changes from the current number to the target number; An adjustment module, configured to determine a target channel from the current channels, and adjust the display priority of the target display channel corresponding to the target channel to be higher than the display priorities of the other display channels corresponding to the other channels included in the current channels; A playback module, configured to control the target display channel to play the target bitstream; The determination module determines the target bitstream from the second bitstream in the following manner: determining the caching duration of the target bitstream based on the target quantity and the current quantity; determining the latest bitstream that is newly spliced from the second bitstream, wherein the duration of the latest bitstream is the caching duration; and determining the latest bitstream as the target bitstream.
8. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the method described in any one of claims 1 to 6 when running.
9. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method described in any one of claims 1 to 6.
Citation Information
Patent Citations
Split screen switching method, device and equipment and storage medium
CN112672079A
Seamless switching method, distributed splicing system, storage medium and computer equipment
CN114302172A