CN110401707A - Stream data processing method, device, electronic equipment and storage medium - Google Patents
Stream data processing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110401707A CN110401707A CN201910663276.0A CN201910663276A CN110401707A CN 110401707 A CN110401707 A CN 110401707A CN 201910663276 A CN201910663276 A CN 201910663276A CN 110401707 A CN110401707 A CN 110401707A
- Authority
- CN
- China
- Prior art keywords
- data
- control
- media elements
- flow
- media
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
Abstract
The present invention relates to a kind of stream data processing method, device, electronic equipment and storage mediums, which comprises sends the data acquisition request for requesting flow data;It receives and responds the flow data that the data acquisition request returns, the flow data includes at least two media elements, and the medium type of the media elements includes at least two;The information flow comprising at least two different media elements of medium type is generated based on the flow data.The embodiment of the present invention can generate information flow based on the media elements for multiple medium types that server returns, realize that the media elements that multiple medium types are supported in single stream of information, the information flow comprising multiple media types can be with rich media contents and extremely strong increase interactivities.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of stream data processing method, device, electronic equipment and deposit
Storage media.
Background technique
As the informationization of society and information emerge in multitude and surge of the people to information requirements, information flow form
Intricate, fast changing form.
In order to improve the liveness of product, increase the use viscosity of user, client can all access media element
Information flow, such as: the information flow of picture type, the information flow of literal type, the information flow of audio types or video type
Information flow etc..
However, an existing information flow only supports a kind of media elements, and such as: the information flow of picture type only supports picture
The media elements of type, the information flow of single type, media content is relatively simple and interactivity is poor.
Summary of the invention
In order to solve the above-mentioned technical problem or it at least is partially solved above-mentioned technical problem, the present invention provides a kind of streams
Data processing method, device, electronic equipment and storage medium.
In a first aspect, the present invention provides a kind of stream data processing methods, which comprises
Client sends the data acquisition request for requesting flow data;
Server receives the data acquisition request for requesting flow data;
At least two media elements are combined encapsulation by server, obtain the flow data, the matchmaker of the media elements
Body type includes at least two;
Server returns to the flow data to the client for sending the data acquisition request;
Client, which receives, responds the flow data that the data acquisition request returns, and the flow data includes at least two media
Element, the medium type of the media elements include at least two;
Client generates the information flow comprising at least two different media elements of medium type based on the flow data.
Second aspect, the present invention provides a kind of stream data processing methods, are applied to client, which comprises
Send the data acquisition request for requesting flow data;
It receiving and responds the flow data that the data acquisition request returns, the flow data includes at least two media elements,
The medium type of the media elements includes at least two;
The information flow comprising at least two different media elements of medium type is generated based on the flow data.
Optionally, the media elements include: media type identification, sequence identification and element data;
The information flow comprising at least two different media elements of medium type is generated based on the flow data, comprising:
The media type identification and element data are ranked up according to the sequence identification, obtain data list;
List generates information flow based on the data.
Optionally, list generates information flow based on the data, comprising:
By the corresponding media type identification of media elements each in the data list and the element data, encapsulate respectively
At element control;
Information flow is generated based on the corresponding element control of multiple media elements.
Optionally, by the corresponding media type identification of media elements each in the data list and the element data,
It is packaged into element control respectively, comprising:
For each media elements, generated respectively and the media type identification pair according to each media type identification
The control mark answered;
Based on control mark and preset control registration table, the element control corresponding with media elements is created.
Optionally, based on control mark and preset control registration table, the member corresponding with media elements is created
Plain control, comprising:
It inquires in preset control registration table with the presence or absence of control category information corresponding with control mark;
If there is control category information corresponding with control mark in preset control registration table, it is based on the control class
The corresponding blank control of information creating;
Assignment is carried out to the blank control using the element data, obtains element control corresponding with media elements.
Optionally, the list based on the data generates information flow, further includes:
Corresponding control multiplexing identification is distributed for each element control;
Multiplexing queue is added in the control multiplexing identification and the corresponding element control.
Optionally, the method also includes:
If receiving the control request to create for creating element control, the media class in the control request to create is extracted
Type;
Target multiplexing identification is determined in preset multiplexing queue according to the medium type extracted;
Element control corresponding with the target multiplexing identification is searched in the multiplexing queue;
It, will be in the multiplexing if inquiring element control corresponding with the target multiplexing identification in the multiplexing queue
The element control found in queue the element control to be created as the control request to create.
The third aspect, the present invention provides a kind of stream data processing methods, are applied to server, which comprises
Receive the data acquisition request for requesting flow data;
At least two media elements are combined encapsulation, obtain the flow data, the medium type of the media elements
Including at least two;
The flow data is sent to the client for sending the data acquisition request.
Fourth aspect, the present invention provides a kind of flow data processing device, described device includes:
Request sending module, for sending the data acquisition request for requesting flow data;
Flow data receiving module, for receiving the flow data for responding the data acquisition request and returning, the stream packets
At least two media elements are included, the medium type of the media elements includes at least two;
Information flow generation module, for generating at least two media elements different comprising medium type based on the flow data
The information flow of element.
Optionally, the media elements include: media type identification, sequence identification and element data;Information flow generates mould
Block, comprising:
Sorting sub-module, for being ranked up according to the sequence identification to the media type identification and element data,
Obtain data list;
Submodule is generated, generates information flow for list based on the data.
Optionally, submodule is generated, comprising:
Encapsulation unit is used for the corresponding media type identification of media elements each in the data list and the element
Data are packaged into element control respectively;
Generation unit, for generating information flow based on the corresponding element control of multiple media elements.
Optionally, encapsulation unit, comprising:
Subelement is generated, for being directed to each media elements, is generated respectively according to each media type identification and institute
State the corresponding control mark of media type identification;
Subelement is created, for creating corresponding with media elements based on control mark and preset control registration table
The element control.
Optionally, subelement is created, is also used to:
It inquires in preset control registration table with the presence or absence of control category information corresponding with control mark;
If there is control category information corresponding with control mark in preset control registration table, it is based on the control class
The corresponding blank control of information creating;
Assignment is carried out to the blank control using the element data, obtains element control corresponding with media elements.
Optionally, the generation submodule, further includes:
Allocation unit, for distributing corresponding control multiplexing identification for each element control;
Adding unit, for multiplexing queue to be added in the control multiplexing identification and the corresponding element control.
Optionally, described device further include:
Extraction module, if extracting the control creation for receiving the control request to create for creating element control
Medium type in request;
First determining module, for determining that target is multiplexed in preset multiplexing queue according to the medium type extracted
Mark;
Searching module, for searching element control corresponding with the target multiplexing identification in the multiplexing queue;
Second determining module, if for inquiring element corresponding with the target multiplexing identification in the multiplexing queue
Control, using the element control found in the multiplexing queue the element control to be created as the control request to create
Part.
5th aspect, the present invention provides a kind of flow data processing device, described device includes:
Assembled package module, if for receiving the data acquisition request for requesting flow data, by least two media
Element is combined encapsulation, obtains flow data, and the medium type of the media elements includes at least two;
Flow data sending module, for the flow data to be sent to the sender of the data acquisition request.
6th aspect, the present invention provides a kind of electronic equipment, including processor, communication interface, memory and communication are total
Line, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes flow data processing side described in second aspect
Method.
7th aspect, the present invention provides a kind of electronic equipment, including processor, communication interface, memory and communication are total
Line, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes flow data processing side described in the third aspect
Method.
Eighth aspect, the present invention provides a kind of computer readable storage mediums, are stored thereon with computer program, described
The step of first aspect described in any item methods are realized when computer program is executed by processor.
9th aspect, the present invention provides a kind of computer readable storage mediums, are stored thereon with computer program, described
The step of method described in second aspect is realized when computer program is executed by processor.
Above-mentioned technical proposal provided in an embodiment of the present invention has the advantages that compared with prior art
This method provided in an embodiment of the present invention, the embodiment of the present invention are asked by sending flow data acquisition to server first
It asks, then receives the flow data that the server returns, the flow data includes the media elements of multiple medium types, finally may be used
Information flow is generated with the media elements of the multiple medium types returned based on the server.
The embodiment of the present invention can generate information flow based on the media elements for multiple medium types that server returns, and realize
The media elements that multiple medium types are supported in single stream of information, the information flow comprising multiple media types can be in rich-medias
Hold and extremely strong increase is interactive.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of stream data processing method provided by one embodiment of the present invention;
The flow diagram of step S103 in Fig. 1 that Fig. 2 provides for further embodiment of this invention;
A kind of flow diagram of element control is created in Fig. 2 step S202 that Fig. 3 provides for further embodiment of this invention;
Fig. 4 is a kind of flow diagram for stream data processing method that another embodiment of the invention provides;
Fig. 5 is the flow diagram of another stream data processing method provided by one embodiment of the present invention;
Fig. 6 is the flow diagram of another stream data processing method provided by one embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of flow data processing device provided by one embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of flow data processing device provided by one embodiment of the present invention;
Fig. 9 is the structural schematic diagram of a kind of electronic equipment provided by one embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiments of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Since an existing information flow only supports a kind of media elements, such as: the information flow of picture type only supports picture
The media elements of type, the information flow of single type, media content is relatively simple and interactivity is poor.For this purpose, the embodiment of the present invention
A kind of stream data processing method, device, electronic equipment and storage medium are provided, the multiple media classes that can be returned based on server
The media elements of type generate information flow, realize the media elements that multiple medium types are supported in single stream of information, include more matchmakers
The information flow of body type can be with rich media contents and extremely strong increase interactivity.
A kind of stream data processing method provided in an embodiment of the present invention can be applied to client, the client and clothes
It is engaged in device communication connection, server, which can be treated, to be transferred to the flow data of client and configured, and may include at least in flow data
The different media elements of two medium types.As shown in Figure 1, the method may include following steps:
Step S101 sends the data acquisition request for requesting flow data;
It in embodiments of the present invention, may include the phase of media elements in the flow data to be obtained in data acquisition request
Information is closed, such as: information and/or the information of element data of medium type etc..
Server can be searched in default memory space after receiving data acquisition request according to data acquisition request
The data acquisition request media elements to be obtained, and the flow data of the media elements comprising finding is returned into client
End.
Step S102 is received and is responded the flow data that the data acquisition request returns, and the flow data includes at least two
Media elements, the medium type of the media elements include at least two;
In embodiments of the present invention, medium type is illustrative, can for video type, audio types, literal type or
Person's picture type etc.;Media elements can be illustratively video, audio, text or picture etc..
Step S103 generates the information comprising at least two different media elements of medium type based on the flow data
Stream.
In embodiments of the present invention, the media elements based on multiple medium types generate information flow, such as: multiple media classes
The media elements of type are video and ballot, generate information flow based on video and ballot, and one piece of video and ballot can be made to send to
Client can directly vote to video, greatly increase interactive.
After generating information flow, the information flow can be shown by the page.
The embodiment of the present invention passes through the data acquisition request sent first for requesting flow data, then receives described in response
The flow data that data acquisition request returns, the flow data include at least two media elements, the media class of the media elements
Type includes at least two, can finally be generated based on the flow data comprising at least two different media elements of medium type
Information flow.
The embodiment of the present invention can generate the letter comprising at least two different media elements of medium type based on flow data
Breath stream, realizes and supports the media elements of multiple medium types in single stream of information, and the information flow comprising multiple media types can be with
Rich media contents and extremely strong increase interactivity.
For APP provider, the control in client is typically provided to fixation at present, the problem of presence in this way
Be: once APP provider to the application shop of IOS submit client installation kit after, will be unable to again to the control of client into
Row change, if it is desired to the control to client is modified, can only issue the APP of new version, adjustment mode is very inflexible.For
This, is based on previous embodiment, and in another embodiment of the present invention, the media elements include: media type identification, sequence mark
Knowledge and element data;Illustratively, if medium type is video, corresponding media type identification can be 1;Medium type is figure
Piece, media type identification can be 2 etc.;It is successive suitable in information flow that sequence identification can be used for identifying each media elements
Sequence, such as: if the sequence of video is 1, the sequence identification of video is 1, and the sequence of audio is 2, then the sequence identification of audio is
2;Element data can refer to the element content of media elements, such as: the element data of video is video data.
Since media elements are made of media type identification, sequence identification and element data, taken in this way by sequence identification
Business device can be ranked up media elements and distinguish different media elements, so server can control between media elements
Sequencing and media elements between can in flow data media elements quantity.
Based on the above, client is after receiving and responding the flow data that the data acquisition request returns, as shown in Fig. 2, step
It may comprise steps of in rapid S103:
Step S201 is ranked up the media type identification and element data according to the sequence identification, is counted
According to list;
In practical applications, the flow data that server-side returns is to be placed on the element data that there is same media type to identify
Together, that is to say, that put all pictures together, all videos are put together, and client, can be right after receiving flow data
Media elements in flow data identify in sequence to be ranked up, that is to say, that in client, every picture is finally in information flow
In be placed on which, each video be placed on which, be to be determined by sequence identification.
Illustratively, if sequence identification is 1, media type identification corresponding with the sequence identification and element data are come
1st;If sequence identification is 2, media type identification corresponding with the sequence identification and element data come the 2nd;……
And so on, data list can be as shown in table 1 below.
Table 1
Sequence identification | Media type identification | Element data |
1 | 2 (videos) | aaaaaa |
2 | 2 (videos) | bbbbbb |
3 | 3 (pictures) | ccccc |
4 | 1 (audio) | ddd |
…… | …… | …… |
Step S202, list generates information flow based on the data.
In embodiments of the present invention, control management class and control registration table, control pipe can be previously provided in client
For reason class for creating information flow, control manages class can be corresponding for each media type identification registration one in server
View, the flow data dynamic creation information flow returned according to server-side;Control registration table is used to manage the wound of each element control
Build permission.
In this step, it is possible, firstly, to it is first that media elements each in the data list are corresponding by control management class
Media type identification and the element data, be packaged into element control respectively.
Control manages class by according to the sequence of the corresponding sequence identification of media elements each in data list, one by one by media
Type identification and the element data are packaged into element control.
In this step, each media elements can be first directed to, according to each media type identification generate respectively with
The corresponding control mark of the media type identification;For example, by table 1, control manage class first according in data list with it is suitable
Sequence is identified as media type identification " 2 " corresponding to 1 media elements and generates control mark, such as: " II ";It is based on the control again
Mark and preset control registration table create the element control corresponding with media elements.
As shown in figure 3, being created corresponding with media elements described based on control mark and preset control registration table
Element control, may comprise steps of:
Step S301 is inquired in preset control registration table and is believed with the presence or absence of control class corresponding with control mark
Breath;
Step S302 is based on if there is control category information corresponding with control mark in preset control registration table
The corresponding blank control of the control class information creating;
In this step, if inquiring control class letter corresponding with control mark in preset control registration table
Breath then can use reflection mechanism creation blank control.
Step S303 carries out assignment to the blank control using the element data, obtains corresponding with media elements
Element control;
Step S304 will if control category information corresponding with control mark is not present in preset control registration table
The control mark abandons.
For example, control management class inquires the letter of control class corresponding to control mark " II " in control registration table in table 1
Breath recycles element data " aaaaaa " to carry out assignment to blank control, obtains member according to control class information creating blank control
Plain control;
Control management class inquires control category information corresponding to control mark " II " in control registration table, according to control class
Information creating blank control recycles element data " bbbbbb " to carry out assignment to blank control, obtains element control;
Control management class inquires control category information corresponding to control mark " III " in control registration table, according to control class
Information creating blank control recycles element data " ccccc " to carry out assignment to blank control, obtains element control;
Control management class inquires control category information corresponding to control mark " I " in control registration table, according to control class
Information creating blank control recycles element data " ddd " to carry out assignment to blank control, obtains element control ... until will
All data encapsulation finish in data list.
Then, information flow is generated based on the corresponding element control of multiple media elements.
In present invention single stream of information generated, can be controlled by server in flow data the quantity of media elements and
Sequencing between media elements, such as: media elements are " pictures+video+picture " in the flow data that server returns,
When wanting to be modified as " video+picture+picture " " picture+video " or " picture+video ", because being only in media elements
Quantity and media elements between sequencing on modify, client can be after receiving flow data, it is only necessary to be based on
Flow data generates information flow, and the modification of control in client (control is made of multiple media elements) can be realized, do not need
The installation kit version of issue client terminal, realization do not issue new version frequently in the application shop of IOS again in application shop, only
Need to be after server configure flow data, client can be according to the flow data adjust automatically control of server.
In addition, which is by way of being packaged into element control for media elements, so that element control in information flow
Quantity increases considerably, and relevance is lower between each element control, realizes the strong extension and lower coupling of information flow, convenient
Information flow expands new element control.
On the basis of previous embodiment, due to no longer restricted to medium type in information flow, so institute in information flow
Medium type comprising media elements will not have the upper limit, moreover, along with the increase of element component, media included in information flow
The medium type of element will exponentially increase, and be easy to cause information flow page memory to rise suddenly and sharply, and then the page is caused to collapse, be
This list can generate information flow based on the data in another embodiment of the invention, further includes:
Corresponding control multiplexing identification is distributed for each element control;By the control multiplexing identification and corresponding institute
It states element control and multiplexing queue is added.
In embodiments of the present invention, multiplexing identification can be a character string, such as picture control can be set to
" imageMediaControl ", multiplexing queue are located in pre-set class table (tableView), and multiplexing queue is served only for protecting
It deposits and marks screen (not in the element control of on-screen display (osd) area).
By the embodiment, corresponding control multiplexing identification is distributed for each element control, so being to form
The element control of information flow (by taking above-described embodiment as an example, the media elements such as picture, video and audio is sealed as Multiplexing Unit
Element control is dressed up, by these element control combinations at information flow), it can be answered due to there was only same type of element control
With, therefore the embodiment of the present invention can be the thinner of multiplexing granularity cutting, the benefit of thinner cutting multiplexing dynamics is: for
The case where information flow of the information flow of " picture+video " and " video+picture ", due to being single for multiplexing with picture and video now
Member, therefore information flow multiplexing may be implemented in both information flows of the information flow of " picture+video " and " video+picture ", now multiple
The upper limit is to form the quantity of the element control of information flow (this quantity is limited).
On the basis of previous embodiment, the embodiment of the present invention can distribute control multiplexing identification for each element control,
Therefore, in another embodiment of the present invention, when carrying out information flow multiplexing, as shown in figure 4, the method can also include with
Lower step:
Step S401 extracts the control request to create if receiving the control request to create for creating element control
In medium type;
Step S402 determines target multiplexing identification in the multiplexing queue according to the medium type extracted;
Step S403 searches element control corresponding with the target multiplexing identification in the multiplexing queue;
Step S404 will if inquiring element control corresponding with the target multiplexing identification in the multiplexing queue
The element control found in the multiplexing queue the element control to be created as the control request to create.
Through the embodiment of the present invention, the element control that can be distributed based on previous embodiment, realizes the multiplexing of information flow.
In another embodiment of the present invention, a kind of stream data processing method is also provided, is applied to server, such as Fig. 5 institute
Show, which comprises
Step S501 receives the data acquisition request for requesting flow data;
At least two media elements are combined encapsulation by step S502, obtain the flow data, the media elements
Medium type includes at least two;
Step S503 sends the flow data to the client for sending the data acquisition request.
At least two media elements can be combined encapsulation by the embodiment of the present invention, be formed different comprising medium type
The flow data of at least two media elements realizes the media elements that multiple medium types are supported in single stream of information, comprising more
The information flow of medium type can be with rich media contents and extremely strong increase interactivity.
In order to make it easy to understand, the present invention also provides the embodiments that a kind of client and server interact, such as Fig. 6 institute
Show, the stream data processing method may comprise steps of:
Step S601, client send the data acquisition request for requesting flow data;
Step S602, if receiving the data acquisition request for requesting flow data, server is by least two media elements
Element is combined encapsulation, obtains flow data, and the medium type of the media elements includes at least two;
The flow data is sent to the sender of the data acquisition request by step S603, server.
Step S604, client, which receives, responds the flow data that the data acquisition request returns, and the flow data includes extremely
Few two media elements, the medium type of the media elements include at least two;
Step S605, client are generated based on the flow data comprising at least two different media elements of medium type
Information flow.
At least two media elements are combined encapsulation by server by the embodiment of the present invention, and being formed includes medium type
The flow data of at least two different media elements, the media element for multiple medium types that client can be returned based on server
Element generates information flow, realizes the media elements that multiple medium types are supported in single stream of information, the letter comprising multiple media types
Ceasing stream can be with rich media contents and extremely strong increase interactivity.
In another embodiment of the present invention, a kind of flow data processing device is also provided, as shown in fig. 7, described device packet
It includes:
Request sending module 11, for sending the data acquisition request for requesting flow data;
Flow data receiving module 12, for receiving the flow data for responding the data acquisition request and returning, the flow data
Including at least two media elements, the medium type of the media elements includes at least two;
Information flow generation module 13, for generating at least two media different comprising medium type based on the flow data
The information flow of element.
In another embodiment of the present invention, the media elements include: media type identification, sequence identification and first prime number
According to;Information flow generation module, comprising:
Sorting sub-module, for being ranked up according to the sequence identification to the media type identification and element data,
Obtain data list;
Submodule is generated, generates information flow for list based on the data.
In another embodiment of the present invention, submodule is generated, comprising:
Encapsulation unit is used for the corresponding media type identification of media elements each in the data list and the element
Data are packaged into element control respectively;
Generation unit, for generating information flow based on the corresponding element control of multiple media elements.
In another embodiment of the present invention, encapsulation unit, comprising:
Subelement is generated, for being directed to each media elements, is generated respectively according to each media type identification and institute
State the corresponding control mark of media type identification;
Subelement is created, for creating corresponding with media elements based on control mark and preset control registration table
The element control.
In another embodiment of the present invention, subelement is created, is also used to:
It inquires in preset control registration table with the presence or absence of control category information corresponding with control mark;
If there is control category information corresponding with control mark in preset control registration table, it is based on the control class
The corresponding blank control of information creating;
Assignment is carried out to the blank control using the element data, obtains element control corresponding with media elements.
In another embodiment of the present invention, the generation submodule, further includes:
Allocation unit, for distributing corresponding control multiplexing identification for each element control;
Adding unit, for multiplexing queue to be added in the control multiplexing identification and the corresponding element control.
In another embodiment of the present invention, described device further include:
Extraction module, if extracting the control creation for receiving the control request to create for creating element control
Medium type in request;
First determining module, for determining that target is multiplexed in preset multiplexing queue according to the medium type extracted
Mark;
Searching module, for searching element control corresponding with the target multiplexing identification in the multiplexing queue;
Second determining module, if for inquiring element corresponding with the target multiplexing identification in the multiplexing queue
Control, using the element control found in the multiplexing queue the element control to be created as the control request to create
Part.
In another embodiment of the present invention, a kind of flow data processing device is also provided, as shown in figure 8, described device packet
It includes:
Assembled package module 21, if for receiving the data acquisition request for requesting flow data, by least two matchmakers
Element of volume is combined encapsulation, obtains flow data, and the medium type of the media elements includes at least two;
Flow data sending module 22, for the flow data to be sent to the sender of the data acquisition request.
In another embodiment of the present invention, also offer a kind of electronic equipment, including processor, communication interface, memory
And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the embodiment of the method institute for being applied to client
The stream data processing method stated.
In another embodiment of the present invention, also offer a kind of electronic equipment, including processor, communication interface, memory
And communication bus, wherein processor, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes the embodiment of the method institute for being applied to server
The stream data processing method stated.
Electronic equipment provided in an embodiment of the present invention, processor realize hair by executing the program stored on memory
The data acquisition request for requesting flow data is sent, receives and responds the flow data that the data acquisition request returns, the fluxion
According to including at least two media elements, the medium type of the media elements includes at least two, is generated based on the flow data
Information flow comprising at least two different media elements of medium type, can be based on multiple medium types that server returns
Media elements generate information flow, realize the media elements that multiple medium types are supported in single stream of information, include multimedia class
The information flow of type can be with rich media contents and extremely strong increase interactivity.
The communication bus 1140 that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard
(PeripheralComponentInterconnect, abbreviation PCI) bus or expanding the industrial standard structure (ExtendedIndu
StryStandardArchitecture, abbreviation EISA) bus etc..The communication bus 1140 can be divided into address bus, data
Bus, control bus etc..Only to be indicated with a thick line in Fig. 9, it is not intended that an only bus or one kind convenient for indicating
The bus of type.
Communication interface 1120 is for the communication between above-mentioned electronic equipment and other equipment.
Memory 1130 may include random access memory (RandomAccessMemory, abbreviation RAM), also can wrap
It includes nonvolatile memory (non-volatilememory), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor 1110 can be general processor, including central processing unit
(CentralProcessingUnit, abbreviation CPU), network processing unit (NetworkProcessor, abbreviation NP) etc.;It can be with
It is digital signal processor (DigitalSignalProcessing, abbreviation DSP), specific integrated circuit (ApplicationSp
EcificIntegratedCircuit, abbreviation ASIC), field programmable gate array (Field-
ProgrammableGateArray, abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic device
Part, discrete hardware components.
In another embodiment of the present invention, a kind of computer readable storage medium is also provided, computer is stored thereon with
Program realizes the step for being applied to method described in the embodiment of the method for client when the computer program is executed by processor
Suddenly.
In another embodiment of the present invention, a kind of computer readable storage medium is also provided, computer is stored thereon with
Program realizes the step for being applied to method described in the embodiment of the method for server when the computer program is executed by processor
Suddenly.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.Computer program product
Including one or more computer instructions.When loading on computers and executing computer program instructions, all or part of real estate
Raw process or function according to the embodiment of the present invention.Computer can be general purpose computer, special purpose computer, computer network,
Or other programmable devices.Computer instruction may be stored in a computer readable storage medium, or from a computer
Readable storage medium storing program for executing to another computer readable storage medium transmit, for example, computer instruction can from a web-site,
Computer, server or data center by wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as
Infrared, wireless, microwave etc.) mode transmitted to another web-site, computer, server or data center.Computer
Readable storage medium storing program for executing can be any usable medium or include one or more usable medium collection that computer can access
At the data storage devices such as server, data center.Usable medium can be magnetic medium, (for example, floppy disk, hard disk, magnetic
Band), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk SolidStateDisk (SSD)) etc..
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (15)
1. a kind of stream data processing method, which is characterized in that the described method includes:
Client sends the data acquisition request for requesting flow data;
Server receives the data acquisition request for requesting flow data;
At least two media elements are combined encapsulation by server, obtain the flow data, the media class of the media elements
Type includes at least two;
Server returns to the flow data to the client for sending the data acquisition request;
Client, which receives, responds the flow data that the data acquisition request returns, and the flow data includes at least two media elements
Element, the medium type of the media elements include at least two;
Client generates the information flow comprising at least two different media elements of medium type based on the flow data.
2. a kind of stream data processing method, which is characterized in that be applied to client, which comprises
Send the data acquisition request for requesting flow data;
It receives and responds the flow data that the data acquisition request returns, the flow data includes at least two media elements, described
The medium type of media elements includes at least two;
The information flow comprising at least two different media elements of medium type is generated based on the flow data.
3. stream data processing method according to claim 2, which is characterized in that the media elements include: medium type
Mark, sequence identification and element data;
The information flow comprising at least two different media elements of medium type is generated based on the flow data, comprising:
The media type identification and element data are ranked up according to the sequence identification, obtain data list;
List generates information flow based on the data.
4. stream data processing method according to claim 3, which is characterized in that list generates information based on the data
Stream, comprising:
By the corresponding media type identification of media elements each in the data list and the element data, it is packaged into member respectively
Plain control;
Information flow is generated based on the corresponding element control of multiple media elements.
5. stream data processing method according to claim 4, which is characterized in that by media element each in the data list
Plain corresponding media type identification and the element data, are packaged into element control respectively, comprising:
For each media elements, generated respectively according to each media type identification corresponding with the media type identification
Control mark;
Based on control mark and preset control registration table, the element control corresponding with media elements is created.
6. stream data processing method according to claim 5, which is characterized in that based on control mark and preset control
Part registration table creates the element control corresponding with media elements, comprising:
It inquires in preset control registration table with the presence or absence of control category information corresponding with control mark;
If there is control category information corresponding with control mark in preset control registration table, it is based on the control category information
Create corresponding blank control;
Assignment is carried out to the blank control using the element data, obtains element control corresponding with media elements.
7. stream data processing method according to claim 4, which is characterized in that the list based on the data generates letter
Breath stream, further includes:
Corresponding control multiplexing identification is distributed for each element control;
Multiplexing queue is added in the control multiplexing identification and the corresponding element control.
8. stream data processing method according to claim 2, which is characterized in that the method also includes:
If receiving the control request to create for creating element control, the medium type in the control request to create is extracted;
Target multiplexing identification is determined in preset multiplexing queue according to the medium type extracted;
Element control corresponding with the target multiplexing identification is searched in the multiplexing queue;
It, will be in the multiplexing queue if inquiring element control corresponding with the target multiplexing identification in the multiplexing queue
In the element control that the finds element control to be created as the control request to create.
9. a kind of stream data processing method, which is characterized in that be applied to server, which comprises
Receive the data acquisition request for requesting flow data;
At least two media elements are combined encapsulation, obtain the flow data, the medium type of the media elements includes
At least two;
The flow data is sent to the client for sending the data acquisition request.
10. a kind of flow data processing device, which is characterized in that described device includes:
Request sending module, for sending the data acquisition request for requesting flow data;
Flow data receiving module, for receiving the flow data for responding the data acquisition request and returning, the flow data includes extremely
Few two media elements, the medium type of the media elements include at least two;
Information flow generation module, for being generated based on the flow data comprising at least two different media elements of medium type
Information flow.
11. a kind of flow data processing device, which is characterized in that described device includes:
Assembled package module, if for receiving the data acquisition request for requesting flow data, by least two media elements
It is combined encapsulation, obtains flow data, the medium type of the media elements includes at least two;
Flow data sending module, for the flow data to be sent to the sender of the data acquisition request.
12. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, is realized at any flow data of claim 2 to 8
Reason method.
13. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein processing
Device, communication interface, memory complete mutual communication by communication bus;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes stream data processing method as claimed in claim 9.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claim 2 to 8 is realized when being executed by processor.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method as claimed in claim 9 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910663276.0A CN110401707A (en) | 2019-07-22 | 2019-07-22 | Stream data processing method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910663276.0A CN110401707A (en) | 2019-07-22 | 2019-07-22 | Stream data processing method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110401707A true CN110401707A (en) | 2019-11-01 |
Family
ID=68324948
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910663276.0A Pending CN110401707A (en) | 2019-07-22 | 2019-07-22 | Stream data processing method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110401707A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023142588A1 (en) * | 2022-01-30 | 2023-08-03 | 腾讯科技(深圳)有限公司 | Data processing method and apparatus based on blockchain, and device, storage medium and program product |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090022072A1 (en) * | 2006-03-27 | 2009-01-22 | Huawei Technologies Co., Ltd. | Method and apparatus for processing media stream queues based on control |
CN101924742A (en) * | 2009-06-16 | 2010-12-22 | 华为技术有限公司 | Media transmission method and equipment, and media storage method and equipment |
CN102550039A (en) * | 2009-07-27 | 2012-07-04 | 联合视频制品公司 | Methods and systems for associating and providing media content of different types which share attributes |
CN102622368A (en) * | 2011-01-30 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Miniature weblog message processing method and miniature weblog message processing device |
CN102792679A (en) * | 2010-01-05 | 2012-11-21 | 联合视频制品公司 | Systems and methods for providing media guidance application functionality using a wireless communications device |
CN103067386A (en) * | 2012-12-28 | 2013-04-24 | 苏州汉辰数字科技有限公司 | Method for achieving multi-media streaming file quantization management |
US20140310740A1 (en) * | 2010-05-19 | 2014-10-16 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Transport stream provider, dab signal provider, transport stream analyzer, dab receiver, method, computer program, and transport stream signal |
CN105745898A (en) * | 2013-12-10 | 2016-07-06 | 统有限责任两合公司 | Method and telecommunications arrangement for transferring media data having differing media types via a network sensitive to quality of service |
CN105893022A (en) * | 2015-12-28 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Production method and system of combined user interface control, and control method and system of combined user interface control |
CN108881958A (en) * | 2017-11-30 | 2018-11-23 | 北京视联动力国际信息技术有限公司 | A kind of multimedia data stream packaging method and device |
CN109901836A (en) * | 2019-02-27 | 2019-06-18 | 北京奇艺世纪科技有限公司 | Display methods, device and the client device of information flow |
-
2019
- 2019-07-22 CN CN201910663276.0A patent/CN110401707A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090022072A1 (en) * | 2006-03-27 | 2009-01-22 | Huawei Technologies Co., Ltd. | Method and apparatus for processing media stream queues based on control |
CN101924742A (en) * | 2009-06-16 | 2010-12-22 | 华为技术有限公司 | Media transmission method and equipment, and media storage method and equipment |
CN102550039A (en) * | 2009-07-27 | 2012-07-04 | 联合视频制品公司 | Methods and systems for associating and providing media content of different types which share attributes |
CN102792679A (en) * | 2010-01-05 | 2012-11-21 | 联合视频制品公司 | Systems and methods for providing media guidance application functionality using a wireless communications device |
US20140310740A1 (en) * | 2010-05-19 | 2014-10-16 | Fraunhofer-Gesellschaft Zur Foerderung Der Angewandten Forschung E.V. | Transport stream provider, dab signal provider, transport stream analyzer, dab receiver, method, computer program, and transport stream signal |
CN102622368A (en) * | 2011-01-30 | 2012-08-01 | 腾讯科技(深圳)有限公司 | Miniature weblog message processing method and miniature weblog message processing device |
CN103067386A (en) * | 2012-12-28 | 2013-04-24 | 苏州汉辰数字科技有限公司 | Method for achieving multi-media streaming file quantization management |
CN105745898A (en) * | 2013-12-10 | 2016-07-06 | 统有限责任两合公司 | Method and telecommunications arrangement for transferring media data having differing media types via a network sensitive to quality of service |
CN105893022A (en) * | 2015-12-28 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Production method and system of combined user interface control, and control method and system of combined user interface control |
CN108881958A (en) * | 2017-11-30 | 2018-11-23 | 北京视联动力国际信息技术有限公司 | A kind of multimedia data stream packaging method and device |
CN109901836A (en) * | 2019-02-27 | 2019-06-18 | 北京奇艺世纪科技有限公司 | Display methods, device and the client device of information flow |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023142588A1 (en) * | 2022-01-30 | 2023-08-03 | 腾讯科技(深圳)有限公司 | Data processing method and apparatus based on blockchain, and device, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110896355B (en) | Network slice selection method and device | |
CN104539977B (en) | Method for previewing and device is broadcast live | |
US20060117342A1 (en) | Method for acquiring channel information and registering for reception of multicast based IP TV broadcasting in access network | |
CN105786451A (en) | Method, device and system for processing complicated event | |
CN103685547A (en) | Download server dispatching method, download server dispatching system and terminal device | |
CN103781055A (en) | Data downloading method and associated device | |
EP2117171A1 (en) | Audio/Video streaming signal provision method and sharing system | |
CN109547547A (en) | Return source dispatching method, device and its storage medium | |
CN103597808A (en) | Directing messages based on domain names | |
US20160359997A1 (en) | Systems and Methods for Determining a Destination Location in a Network System | |
CN103618779A (en) | Method and system for resource sharing | |
CN103248654A (en) | Negotiation method, device and system for virtual desktop service parameters | |
CN110401707A (en) | Stream data processing method, device, electronic equipment and storage medium | |
CN103973747A (en) | Method and device for acquiring content | |
US7197566B1 (en) | Method and apparatus for selecting server to distribute multimedia data via a network | |
CN105959248B (en) | The method and device of message access control | |
CN107948682A (en) | Collocation method, service server and the terminal device of business domain name | |
KR101101597B1 (en) | Apparatus and method for location management in iptv service overlay network system | |
US10505811B2 (en) | Multi-terminal interaction relation maintenance system and method | |
CN105959292A (en) | Device using authority identification method and system, and management server | |
CN107172129B (en) | Server configuration method and device | |
US9386074B2 (en) | Method and apparatus for providing cloud service, and system having the same | |
US20150067050A1 (en) | Method and system for social networking in a multi-screen environment | |
CN104168337A (en) | Network access acceleration method | |
CN111147186B (en) | Data transmission method and device, computer equipment and storage 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 |