CN112040312A - Split-screen rendering method, device, equipment and storage medium - Google Patents
Split-screen rendering method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112040312A CN112040312A CN202010721648.3A CN202010721648A CN112040312A CN 112040312 A CN112040312 A CN 112040312A CN 202010721648 A CN202010721648 A CN 202010721648A CN 112040312 A CN112040312 A CN 112040312A
- Authority
- CN
- China
- Prior art keywords
- played
- split
- image rendering
- screen window
- rendering component
- 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
Links
- 238000009877 rendering Methods 0.000 title claims abstract description 184
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000004044 response Effects 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 2
- 230000006378 damage Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 5
- 238000013507 mapping Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/44012—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving rendering scenes according to scene graphs, e.g. MPEG-4 scene graphs
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The embodiment of the invention discloses a split screen rendering method, a split screen rendering device, split screen rendering equipment and a storage medium, wherein the split screen rendering method comprises the following steps: storing the incidence relation between the video file identifier and the split screen window identifier in an image rendering component; acquiring video data to be played, and extracting a video file identifier to be played from the video data to be played; determining a split screen window to be played through an image rendering component according to the video file identifier to be played; and rendering the video data to be played in the split-screen window to be played through the image rendering component. The split-screen window to be played is determined through the video file identifier to be played so as to render the video data to be played, and because the split-screen windows are rendered by the same image rendering component and the client have a binding relationship, the image rendering component can be destroyed under the condition that the client quits, so that a large amount of occupation of operation resources caused by frequent creation and destruction of the image rendering component is avoided.
Description
Technical Field
The embodiment of the invention relates to the technical field of container arrangement, in particular to a container arrangement method, a device, equipment and a storage medium.
Background
An audio/video client program is a software for rendering streaming media video pictures and sounds, and generally, a client needs to render multiple paths of videos at the same time, and a split-screen mode includes multiple types, such as one split screen or four split screens, and when the client requests video sources, a split-screen window playing each path of video sources is bound with an image rendering component, such as an Open Graphics Library (OpenGL) environment object, to implement video rendering.
Because one split screen window is respectively bound with one OpenGL rendering environment object, when the video played by the split screen window is stopped, the life cycle of the OpenGL rendering environment object is bound with the life cycle of the video, and the OpenGL rendering environment object corresponding to the split screen window can be destroyed. In the process of split-screen playing, under the conditions that the polling on-demand and split-screen switching operation interval is short and the operation times are many, the OpenGL rendering environment object is frequently created and destroyed, so that a large amount of computing resources are occupied, even video is blocked, and the process of multi-split-screen video on-demand is influenced.
Disclosure of Invention
The embodiment of the invention provides a split screen rendering method, a split screen rendering device, split screen rendering equipment and a storage medium. So as to realize the rendering of the split-screen window.
In a first aspect, an embodiment of the present invention provides a split-screen rendering method, applied to a client, including: storing the incidence relation between the video file identification and the split-screen window identification in an image rendering component, wherein the image rendering component has a binding relation with the client and is used for rendering a plurality of split-screen windows contained in the client;
acquiring video data to be played, and extracting a video file identifier to be played from the video data to be played;
determining a split screen window to be played through the image rendering component according to the video file identifier to be played;
and rendering the video data to be played in the split-screen window to be played through the image rendering component.
In a second aspect, an embodiment of the present invention provides a split-screen rendering apparatus, including:
the system comprises an incidence relation storage module, an image rendering component and a client, wherein the incidence relation storage module is used for storing the incidence relation between a video file identifier and a split screen window identifier in the image rendering component, the image rendering component and the client have a binding relation, and the image rendering component is used for rendering a plurality of split screen windows contained in the client;
the device comprises a to-be-played video data acquisition module, a to-be-played video file acquisition module and a to-be-played video file identification extraction module, wherein the to-be-played video data acquisition module is used for acquiring to-be-played video data and extracting to-be-played video file identifications from the to-be-played video data;
the to-be-played split-screen window determining module is used for determining the to-be-played split-screen window through the image rendering component according to the to-be-played video file identifier;
and the split-screen window rendering module is used for rendering the video data to be played in the split-screen window to be played through the image rendering component.
In a third aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the above-described methods.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, on which a computer program is stored, which when executed by a processor implements the above method.
According to the technical scheme of the embodiment of the invention, the split-screen window to be played is determined through the video file identifier to be played so as to render the video data to be played, and because the plurality of split-screen windows are rendered by adopting the same image rendering component and the client have a binding relationship, the image rendering component can be destroyed under the condition that the client quits, so that a great deal of occupation of operation resources caused by frequent creation and image rendering component is avoided.
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 embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1(a) is a flowchart of a split-screen rendering method according to an embodiment of the present invention;
fig. 1(b) is a schematic view of an application scene of split-screen rendering according to an embodiment of the present invention;
fig. 2 is a flowchart of a split-screen rendering method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a split-screen rendering apparatus according to a third embodiment of the present invention
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1(a) is a flowchart of a split-screen rendering method provided in a first embodiment of the present invention, where this embodiment is applicable to a case of rendering multiple split-screen windows in a client, and the method may be executed by a split-screen rendering apparatus in the first embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner. As shown in fig. 1(a), the method specifically includes the following operations:
Optionally, before storing the association relationship between the video file identifier and the split-screen window identifier in the image rendering component, the method may further include: in response to detecting the launch instruction, creating an image rendering component; establishing a binding relationship with the image rendering component, wherein the binding relationship comprises: the image rendering component has the same lifecycle as the client.
Specifically, in this embodiment, after receiving a start instruction triggered by a user, a client, in response to detecting the start instruction, creates an image rendering component having a binding relationship with the client, where the created image rendering component can render a plurality of split screen windows included in the client, where the image rendering component may be a global OpenGL environment object, and of course, this embodiment is merely an example, and does not limit a specific type of the image rendering component, as long as the rendering of a screen can be implemented within the protection scope of this application. The image rendering component and the client have the same life cycle, namely the image rendering component is created and generated under the condition that the client is started, and the image rendering component is destroyed and deleted under the condition that the client is quitted.
Before the incidence relation between the video file identification and the split-screen window identification is stored in the image rendering component, the client side can also create a corresponding number of split-screen windows according to a split-screen window selection instruction of a user, wherein the split-screen window selection instruction comprises the number of the split-screen windows needing to be created. Certainly, the client further has a default split screen mode, for example, 4 split screen windows, and when it is determined that a split screen window selection instruction is received but the selection instruction does not include a specific number, the client may adopt the default split screen mode to directly create the 4 split screen windows, and may assign a unique identifier to each split screen window, where the specific type of the identifier may be a window handle, for example, the window handles of the four split screen windows are 1, 2, 3, and 4, respectively. And the client stores the mapping relation between the identifier and the split screen window. Fig. 1(b) is a schematic diagram of an application scene of split-screen rendering according to an embodiment of the present invention, which is illustrated in this embodiment by taking an example that a client creates four split-screen windows, and an image rendering component created by the client and the four split-screen windows in the client have a corresponding relationship, and can be used to simultaneously render a plurality of split-screen windows.
Optionally, storing the association relationship between the video file identifier and the split-screen window identifier in the image rendering component may include: in response to detecting an on-demand instruction for a specified video file, allocating a video file identifier for the specified video file; acquiring an identifier of a split screen window for displaying video data in a video file; and associating the video file identifier with the identifier of the split screen window, and storing the video file identifier and the identifier of the split screen window in an image rendering component in a key value pair mode, wherein the number of the key value pairs stored in the image rendering component is the same as the number of the split screen windows created in the client.
Specifically, in response to detecting an on-demand instruction for a specified video file, a file identifier is assigned to the specified video file, for example, a file identifier a is assigned to a first specified video file. And further, an identifier of a split-screen window used for displaying video data in the video file is also obtained, a specific obtaining mode may be specified by a user through an instruction, preset or randomly allocated by a client, and the specific obtaining mode of the identifier of the split-screen window is not limited in the embodiment of the application. Under the condition that the video file identifier and the identifier of the split-screen window are determined, the video file identifier and the identifier of the split-screen window are associated and stored in the image rendering component in the form of a key value pair, for example, if the video file identifier a and the identifier of the split-screen window are 1, the key value pair (a, 1) is stored in the image rendering component. In this embodiment, a description is given by taking an example that one-time on-demand instruction corresponds to one designated video file, and certainly, one-time on-demand instruction may also correspond to a plurality of designated video files, and in this embodiment, the number of on-demand instructions is not limited, but the number of designated video files is the same as the number of split-screen windows created by the client, so that the number of key value pairs created in the image rendering component is the same as the number of split-screen windows created in the client. For example, when the number of the split screen windows is determined to be 4, the key value pairs stored in the image rendering component are (a, 1), (b, 2), (c, 3), and (d, 4), respectively, where the obtaining manner of other key value pairs is substantially the same as the above-described process, and therefore, no further description is given in this embodiment.
Optionally, the obtaining of the video data to be played and extracting the identifier of the video file to be played from the video data to be played may include: and acquiring video data to be played through the media layer, and analyzing the video data to be played through the media layer to acquire a video file identifier to be played.
It should be noted that, when the video file identifier is allocated to the specified video file in response to detecting the on-demand instruction for the specified video file, since no video data is transmitted into the specified video file at this time, while the on-demand instruction is acquired, and also sends a video data acquisition request to a media layer in the client, and when the media layer acquires the video data acquisition request, the video data to be played can be obtained from the preset path, when one-time ordering instruction corresponds to a plurality of appointed video files, the media layer will acquire a plurality of video data to be played, and parse the video data to be played through the multimedia layer, and extract the identifier of the video file to be played, for example, four video data to be played are acquired, and if the identifier of the video file to be played extracted from one piece of video data to be played is a, determining that the video data to be played is transmitted into the video file with the identifier of a.
And 103, determining the split screen window to be played through the image rendering component according to the video file identifier to be played.
Optionally, determining, by the image rendering component, a split-screen window to be played according to the identifier of the video file to be played may include: forwarding the identifier of the video file to be played to the image rendering component so that the image rendering component matches the stored association relation according to the identifier of the video file to be played; and obtaining the split screen window to be played according to the matching result.
Specifically, the association relationship between the video file identifier and the split-screen window identifier is stored in the image rendering component in the form of a key value pair, for example, four key value pairs stored in the image rendering component are (a, 1), (b, 2), (c, 3) and (d, 4), so that the client forwards the file identifier a to be played extracted from one piece of video data to be played by the media layer to the image rendering component, and the image rendering component matches the stored association relationship according to the file identifier a to be played to obtain the matched key value pair (a, 1), and determines the split-screen window to be played with the identifier 1 corresponding to the file identifier a to be played according to the key value pair. Of course, in this embodiment, only one identifier of the video file to be played is taken as an example for description, and the manner of acquiring the split-screen window to be played for other video files to be played is substantially the same as this, and no further description is given in this embodiment.
And 104, rendering the video data to be played in the split-screen window to be played through the image rendering component.
Optionally, rendering the video data to be played in the split-screen window to be played through the image rendering component may include: sending video data to be played to a split screen window to be played; sending the parameter information of the split-screen window to be played to an image rendering component, so that the image rendering component renders the video data to be played in the split-screen window to be played according to the parameter information; wherein the parameter information comprises a split-screen window coordinate.
Specifically, after the identifier corresponding to the split-screen window to be played is determined, because the client stores the mapping relationship between the split-screen window identifier and the split-screen window in the process of creating the split-screen window, after the identifier of the split-screen window to be played is determined, the client sends the video data to be played, which is acquired through the media layer, to the corresponding split-screen window to be played according to the mapping relationship. And sending the parameter information of the split screen window to be played to the image rendering component aiming at each split screen window client to be played, wherein the parameter information can be the coordinates of the split screen window, so that the image rendering component renders and displays the video data to be played in the corresponding split screen window to be played on the basis of the hardware display card according to the coordinates of the split screen window.
According to the technical scheme of the embodiment of the invention, the split-screen window to be played is determined through the video file identifier to be played so as to render the video data to be played, and as the plurality of split-screen windows are rendered by adopting the same image rendering component and the client have a binding relationship, the image rendering component is destroyed under the condition that the client quits, so that a large amount of occupation of computing resources caused by frequent creation and image rendering components is avoided, and the consumption of system performance is reduced.
Example two
Fig. 2 is a flowchart of a split-screen rendering method according to a second embodiment of the present invention, where this embodiment is based on the foregoing embodiment, in this implementation, after rendering video data to be played in a split-screen window to be played by using an image rendering component, the method further includes: and in response to detecting the quit instruction, deleting the image rendering component and quitting.
Optionally, before storing the association relationship between the video file identifier and the split-screen window identifier in the image rendering component, the method may further include: in response to detecting the launch instruction, creating an image rendering component; establishing a binding relationship with the image rendering component, wherein the binding relationship comprises: the image rendering component has the same lifecycle as the client.
Optionally, storing the association relationship between the video file identifier and the split-screen window identifier in the image rendering component may include: in response to detecting an on-demand instruction for a specified video file, allocating a video file identifier for the specified video file; acquiring an identifier of a split screen window for displaying video data in a video file; and associating the video file identifier with the identifier of the split screen window, and storing the video file identifier and the identifier of the split screen window in an image rendering component in a key value pair mode, wherein the number of the key value pairs stored in the image rendering component is the same as the number of the split screen windows created in the client.
Optionally, the obtaining of the video data to be played and extracting the identifier of the video file to be played from the video data to be played may include: and acquiring video data to be played through the media layer, and analyzing the video data to be played through the media layer to acquire a video file identifier to be played.
And 203, determining the split screen window to be played through the image rendering component according to the video file identifier to be played.
Optionally, determining, by the image rendering component, a split-screen window to be played according to the identifier of the video file to be played may include: forwarding the identifier of the video file to be played to the image rendering component so that the image rendering component matches the stored association relation according to the identifier of the video file to be played; and obtaining the split screen window to be played according to the matching result.
And step 204, rendering the video data to be played in the split-screen window to be played through the image rendering component.
Optionally, rendering the video data to be played in the split-screen window to be played through the image rendering component may include: sending video data to be played to a split screen window to be played; sending the parameter information of the split-screen window to be played to an image rendering component, so that the image rendering component renders the video data to be played in the split-screen window to be played according to the parameter information; wherein the parameter information comprises a split-screen window coordinate.
In step 205, in response to detecting the exit instruction, the image rendering component is deleted and then exited.
Optionally, after rendering the video data to be played in the split-screen window to be played through the image rendering component, the method may further include: deleting the split screen window to be played in response to the detected playing stopping instruction for the video data to be played; and sending a deleting instruction to the image rendering component so that the image rendering component deletes the association relation between the identifier of the video file to be played and the split screen window to be played.
Specifically, in this embodiment, when a play stop instruction for specified video data to be played is received, the specified video data to be played is stopped from being received from the media layer, and the split-screen window to be played, which renders the video data to be played, is deleted, for example, if it is determined that an on-demand stop instruction for the video data to be played including the video file identifier a is received and the video file identifier a has an association relationship with the split-screen window 1, the created split-screen window 1 is deleted. And sending a deleting instruction to the image rendering component to enable the image rendering component to delete the stored key value pair (a, 1), so that the data storage space is saved. But the specified split-screen window is deleted and the key-value pair corresponding to the deleted split-screen window stored in the image rendering component is released in the process of stopping the on-demand playing.
When receiving the quitting instruction, the client needs to quit, and because the binding relationship between the image rendering component and the client is established when the image rendering component is created, namely the image rendering component and the client have the same life cycle, the client deletes the image rendering component and quits. The image rendering component in the embodiment is used for rendering a plurality of split screen windows contained in the client, and is only created and deleted once in the process of realizing one-time starting and exiting of the client instead of being frequently created and deleted along with the video on-demand and video off-demand processes, so that a large amount of occupied computing resources are saved, and the consumption of system performance is reduced.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a split-screen rendering apparatus according to a third embodiment of the present invention, where the apparatus includes: an association relationship storage module 31, a to-be-played video data acquisition module 32, a to-be-played split-screen window determination module 33, and a split-screen window rendering module 34.
The association relationship saving module 31 is configured to save an association relationship between a video file identifier and a split-screen window identifier in an image rendering component, where the image rendering component has a binding relationship with a client and is used to render multiple split-screen windows included in the client.
And a to-be-played video data obtaining module 32, configured to obtain video data to be played, and extract a to-be-played video file identifier from the video data to be played.
And a to-be-played split-screen window determining module 33, configured to determine a to-be-played split-screen window through the image rendering component according to the to-be-played video file identifier.
And a split-screen window rendering module 34, configured to render, by using the image rendering component, the video data to be played in the split-screen window to be played.
The device can execute the split-screen rendering method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the split-screen rendering method provided in any embodiment of the present invention.
Example four
A fourth embodiment of the present invention relates to an apparatus, as shown in fig. 4, which is a diagram illustrating an example of a structure of an apparatus, including at least one processor 401; and a storage device 402 communicatively coupled to the at least one processor 401. The storage device 402 stores instructions executable by the at least one processor 401, and the instructions are executed by the at least one processor 401 to enable the at least one processor 401 to execute the split-screen rendering method.
The processors 401 and the memory device 402 may be connected by a bus or in other manners, and the bus may include any number of interconnected buses and bridges as an example of the bus connection in fig. 4, and the bus links various circuits of one or more of the processors 401 and the memory device 402 together. The bus may also link various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The processor is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory may be used to store data used by the processor in performing operations.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application.
EXAMPLE five
An embodiment five of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the split-screen rendering method provided in all the inventive embodiments of the present application: storing the incidence relation between the video file identification and the split-screen window identification in an image rendering component, wherein the image rendering component has a binding relation with a client and is used for rendering a plurality of split-screen windows contained in the client; acquiring video data to be played, and extracting a video file identifier to be played from the video data to be played; determining a split screen window to be played through an image rendering component according to the video file identifier to be played; and rendering the video data to be played in the split-screen window to be played through the image rendering component.
Any combination of one or more computer-readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (11)
1. A split screen rendering method is applied to a client, and is characterized by comprising the following steps:
storing the incidence relation between the video file identification and the split-screen window identification in an image rendering component, wherein the image rendering component has a binding relation with the client and is used for rendering a plurality of split-screen windows contained in the client;
acquiring video data to be played, and extracting a video file identifier to be played from the video data to be played;
determining a split screen window to be played through the image rendering component according to the video file identifier to be played;
and rendering the video data to be played in the split-screen window to be played through the image rendering component.
2. The method of claim 1, wherein before saving the association between the video file identifier and the split-screen window identifier in the image rendering component, further comprising:
in response to detecting a launch instruction, creating the image rendering component;
establishing a binding relationship with the image rendering component, wherein the binding relationship comprises: the image rendering component has the same lifecycle as the client.
3. The method of claim 1, wherein saving the association between the video file identifier and the split-screen window identifier in the image rendering component comprises:
in response to detecting an on-demand instruction for a specified video file, allocating a video file identifier for the specified video file;
acquiring an identifier of a split screen window for displaying video data in the video file;
and associating the video file identification with the identification of the split screen window, and storing the video file identification and the identification of the split screen window in the image rendering component in a key value pair mode, wherein the number of the key value pairs stored in the image rendering component is the same as the number of the split screen windows created in the client.
4. The method according to claim 1 or 3, wherein the obtaining video data to be played and extracting a video file identifier to be played from the video data to be played comprises:
and acquiring video data to be played through a media layer, and analyzing the video data to be played through the media layer to acquire the video file identifier to be played.
5. The method according to claim 1 or 3, wherein the determining, by the image rendering component, the split screen window to be played according to the video file identifier to be played comprises:
forwarding the identifier of the video file to be played to the image rendering component so that the image rendering component matches the stored association relation according to the identifier of the video file to be played;
and obtaining the split screen window to be played according to the matching result.
6. The method of claim 1, wherein the rendering the video data to be played in the split-screen window to be played through the image rendering component comprises:
sending the video data to be played to the split screen window to be played;
sending the parameter information of the split screen window to be played to the image rendering component, so that the image rendering component renders the video data to be played in the split screen window to be played according to the parameter information; wherein the parameter information comprises split screen window coordinates.
7. The method of claim 1, after rendering the video data to be played in the split-screen window to be played through the image rendering component, further comprising:
deleting the split screen window to be played in response to the detected playing stopping instruction for the video data to be played;
and sending a deleting instruction to the image rendering component so that the image rendering component deletes the association relationship pair of the video file identifier to be played and the split screen window to be played.
8. The method of claim 1, wherein after the rendering the video data to be played in the split-screen window to be played by the image rendering component, further comprising:
and in response to detecting the quitting instruction, deleting the image rendering component and quitting.
9. A split screen rendering apparatus, characterized in that the apparatus comprises:
the system comprises an incidence relation storage module, an image rendering component and a client, wherein the incidence relation storage module is used for storing the incidence relation between a video file identifier and a split screen window identifier in the image rendering component, the image rendering component and the client have a binding relation, and the image rendering component is used for rendering a plurality of split screen windows contained in the client;
the device comprises a to-be-played video data acquisition module, a to-be-played video file acquisition module and a to-be-played video file identification extraction module, wherein the to-be-played video data acquisition module is used for acquiring to-be-played video data and extracting to-be-played video file identifications from the to-be-played video data;
the to-be-played split-screen window determining module is used for determining the to-be-played split-screen window through the image rendering component according to the to-be-played video file identifier;
and the split-screen window rendering module is used for rendering the video data to be played in the split-screen window to be played through the image rendering component.
10. An apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
11. A computer storage medium on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010721648.3A CN112040312A (en) | 2020-07-24 | 2020-07-24 | Split-screen rendering method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010721648.3A CN112040312A (en) | 2020-07-24 | 2020-07-24 | Split-screen rendering method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112040312A true CN112040312A (en) | 2020-12-04 |
Family
ID=73583067
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010721648.3A Pending CN112040312A (en) | 2020-07-24 | 2020-07-24 | Split-screen rendering method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112040312A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112911371A (en) * | 2021-01-29 | 2021-06-04 | Vidaa美国公司 | Double-channel video resource playing method and display equipment |
CN113360708A (en) * | 2021-05-31 | 2021-09-07 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
CN115086696A (en) * | 2022-06-07 | 2022-09-20 | 北京蔚领时代科技有限公司 | Video playing control method and device, electronic equipment and storage medium |
CN115529492A (en) * | 2022-08-22 | 2022-12-27 | 海信视像科技股份有限公司 | Image rendering method and device and electronic equipment |
CN117492681A (en) * | 2023-12-29 | 2024-02-02 | 成都小唱科技有限公司 | Qt-based split screen display method and device, computer equipment and medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130155185A1 (en) * | 2011-07-13 | 2013-06-20 | Hideshi Nishida | Rendering device and rendering method |
CN104317586A (en) * | 2014-10-22 | 2015-01-28 | 福建星网视易信息***有限公司 | Multi-screen rendering processing method, processor, equipment and system |
US20170201740A1 (en) * | 2016-01-11 | 2017-07-13 | Microsoft Technology Licensing, Llc | Distributing video among multiple display zones |
CN108228121A (en) * | 2016-12-15 | 2018-06-29 | 中科创达软件股份有限公司 | A kind of method, device and mobile terminal of browser split screen |
CN111163345A (en) * | 2018-11-07 | 2020-05-15 | 杭州海康威视***技术有限公司 | Image rendering method and device |
-
2020
- 2020-07-24 CN CN202010721648.3A patent/CN112040312A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130155185A1 (en) * | 2011-07-13 | 2013-06-20 | Hideshi Nishida | Rendering device and rendering method |
CN104317586A (en) * | 2014-10-22 | 2015-01-28 | 福建星网视易信息***有限公司 | Multi-screen rendering processing method, processor, equipment and system |
US20170201740A1 (en) * | 2016-01-11 | 2017-07-13 | Microsoft Technology Licensing, Llc | Distributing video among multiple display zones |
CN108228121A (en) * | 2016-12-15 | 2018-06-29 | 中科创达软件股份有限公司 | A kind of method, device and mobile terminal of browser split screen |
CN111163345A (en) * | 2018-11-07 | 2020-05-15 | 杭州海康威视***技术有限公司 | Image rendering method and device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112911371A (en) * | 2021-01-29 | 2021-06-04 | Vidaa美国公司 | Double-channel video resource playing method and display equipment |
CN113360708A (en) * | 2021-05-31 | 2021-09-07 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
CN113360708B (en) * | 2021-05-31 | 2024-05-10 | 北京达佳互联信息技术有限公司 | Video playing method and device, electronic equipment and storage medium |
CN115086696A (en) * | 2022-06-07 | 2022-09-20 | 北京蔚领时代科技有限公司 | Video playing control method and device, electronic equipment and storage medium |
CN115086696B (en) * | 2022-06-07 | 2023-11-10 | 北京蔚领时代科技有限公司 | Video playing control method and device, electronic equipment and storage medium |
CN115529492A (en) * | 2022-08-22 | 2022-12-27 | 海信视像科技股份有限公司 | Image rendering method and device and electronic equipment |
CN117492681A (en) * | 2023-12-29 | 2024-02-02 | 成都小唱科技有限公司 | Qt-based split screen display method and device, computer equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112040312A (en) | Split-screen rendering method, device, equipment and storage medium | |
CN108897691B (en) | Data processing method, device, server and medium based on interface simulation service | |
CN110825456B (en) | Loading time calculation method, loading time calculation device, computer equipment and storage medium | |
CN107341016B (en) | Focus state implementation method and device under split screen mechanism, terminal and storage medium | |
CN109120954B (en) | Video message pushing method and device, computer equipment and storage medium | |
CN111954072B (en) | Multimedia playing method, device, multimedia player and medium | |
CN109241128B (en) | Automatic triggering method and system for overdue event | |
CN110929128A (en) | Data crawling method, device, equipment and medium | |
CN111949509A (en) | Application software response time testing method, device, equipment and storage medium | |
CN107862035B (en) | Network reading method and device for conference record, intelligent tablet and storage medium | |
US8938522B2 (en) | Tiered XML services in a content management system | |
CN114598687A (en) | Method, system and terminal for capturing HTTPS data packet | |
CN112287010B (en) | Map service providing method, device, terminal and storage medium based on android system | |
CN113824987A (en) | Method, medium, device and computing equipment for determining time consumption of first frame of live broadcast room | |
CN110769316B (en) | Method, device, equipment and storage medium for calculating first frame time | |
CN107885807B (en) | File saving method and device, intelligent tablet and storage medium | |
CN107749892B (en) | Network reading method and device for conference record, intelligent tablet and storage medium | |
CN112843691B (en) | Method and device for shooting image, electronic equipment and storage medium | |
CN112861612A (en) | Method and device for shooting image, electronic equipment and storage medium | |
CN110262856B (en) | Application program data acquisition method, device, terminal and storage medium | |
CN108829824B (en) | Resource processing method and device in internet operation activity | |
CN113791858A (en) | Display method, device, equipment and storage medium | |
CN112843736A (en) | Method and device for shooting image, electronic equipment and storage medium | |
CN108228829B (en) | Method and apparatus for generating information | |
CN112423099A (en) | Video loading method and 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201204 |