CN103517084A - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN103517084A
CN103517084A CN201210211267.6A CN201210211267A CN103517084A CN 103517084 A CN103517084 A CN 103517084A CN 201210211267 A CN201210211267 A CN 201210211267A CN 103517084 A CN103517084 A CN 103517084A
Authority
CN
China
Prior art keywords
packet
media stream
stream type
header
packet header
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.)
Granted
Application number
CN201210211267.6A
Other languages
Chinese (zh)
Other versions
CN103517084B (en
Inventor
高山途
高锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201210211267.6A priority Critical patent/CN103517084B/en
Publication of CN103517084A publication Critical patent/CN103517084A/en
Application granted granted Critical
Publication of CN103517084B publication Critical patent/CN103517084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses a data processing method and a set of electronic equipment. The data processing method comprises the following steps: acquiring a first data packet; based on the first data packet, determining program information and/or media flow style contained in the a data flow; displaying the program information and/or the media flow style; acquiring first program information and/or a first media flow style; downloading packet header of a second data packet and acquiring packet header information; when the packet header information satisfies the first program information and/or the first media flow style, downloading the packet body which corresponds with the packet header; and when the packet header information does not satisfy the first program information and/or the first media flow style, inhibiting to download the packet body which corresponds with the packet header. Compared with all data packets contained in downloaded data flow in the prior art, only the data packets which correspond with the media content selected by a user are downloaded according to the technical solution, thereby reducing data downloading amount, reducing bandwidth wastage in downloading the media content and reducing broadcast delay.

Description

A kind of data processing method and electronic equipment
Technical field
The present invention relates to technical field of electronic equipment, particularly relate to a kind of data processing method and electronic equipment.
Background technology
Along with science and technology development at full speed, various electronic products constantly enrich and have facilitated popular life.Such as: people can utilize the electronic equipments such as mobile phone, notebook to watch online at any time or listen to the streaming medium contents such as own interested video, audio frequency or satellite television programming on the net.
In streaming media playing field, the transport vehicle of streaming medium content can be the data flow such as MPEG2-TS stream.Wherein, each this class data flow can comprise different programs and/or Media Stream, for example: a MPEG2-TS stream can comprise the TV programme of the voice flow of different language, the video flowing of different resolution or different satellite channels.But, in prior art, all programs that each this class data flow comprises and Media Stream all need to be transmitted, and only play user-selected program and/or Media Stream after receiving terminal receives, and the unselected program of user and/or Media Stream will be directly abandoned, this has wasted undoubtedly a large amount of bandwidth and has carried out the unwanted media content of download user, meanwhile, has also increased the delay of playing.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present invention provides a kind of data processing method and electronic equipment, the bandwidth waste of being brought when reducing media content download, and playout-delay, and technical scheme is as follows:
, being applicable to an electronic equipment, described electronic equipment can receive a data flow, and described data flow is comprised of a plurality of packets, and each packet in described a plurality of packets comprises packet header and inclusion, and described method comprises:
Obtain the first packet;
Based on described the first packet, determine the programme information and/or the Media Stream type that in described data flow, comprise;
Show described programme information and/or described Media Stream type;
Obtain the first programme information and/or the first Media Stream type, described the first programme information and/or described the first Media Stream type are determined for selecting by user from described programme information and/or described Media Stream type;
Download the packet header of the second packet, obtain header packet information;
When described header packet information meets described the first programme information and/or described the first Media Stream type, download the corresponding inclusion in described packet header;
When described header packet information does not meet described the first programme information and/or described the first Media Stream type, do not download the corresponding inclusion in described packet header.
Wherein, obtain the first packet, be specially:
Download the packet header of a packet in described data flow;
When downloaded packet header is not the packet header of the first packet, give up described packet header, and continue to download the packet header of next packet, wherein, the packet header of described the first packet carries the first package identification information;
When downloaded packet header is the packet header of the first packet, download the corresponding inclusion in packet header of described the first packet, with this, download to described the first packet.
Wherein, described method also comprises: the inclusion of the second downloaded packet is integrated and processed and play.
Wherein, described method also comprises: when receiving user and reselect the instruction of described programme information and/or described Media Stream type, show described programme information and/or described Media Stream type, obtain the first programme information and/or the first Media Stream type that user reselects from described programme information and/or described Media Stream type.
Wherein, described Media Stream type comprises:
The video flowing of Chinese speech stream, English voice flow, at least one resolution;
Described programme information comprises:
The TV programme of at least one satellite channel.
Wherein, the needed band of the second packet that meets described the first programme information and/or described the first Media Stream type is wider than the needed bandwidth of the second packet of described the first programme information of discontented foot and/or described the first Media Stream type.
Accordingly, the embodiment of the present invention also provides a kind of electronic equipment, and described electronic equipment can receive a data flow, and described data flow is comprised of a plurality of packets, and each packet in described a plurality of packets comprises packet header and inclusion; Described electronic equipment comprises:
The first packet obtains module, for obtaining the first packet;
Optional type determination module, for based on described the first packet, determines the programme information and/or the Media Stream type that in described data flow, comprise;
Display module, for showing described programme information and/or described Media Stream type;
Selected type to obtain module, for obtaining the first programme information and/or the first Media Stream type, described the first programme information and/or described the first Media Stream type are determined for selecting by user from described programme information and/or described Media Stream type;
The second packet download module, for downloading the packet header of the second packet, obtains header packet information;
Processing module, when meeting described the first programme information and/or described the first Media Stream type when described header packet information, downloads the corresponding inclusion in described packet header; When described header packet information does not meet described the first programme information and/or described the first Media Stream type, do not download the corresponding inclusion in described packet header.
Wherein, described the first packet obtains module, specifically for:
Download the packet header of a packet in described data flow;
When downloaded packet header is not the packet header of the first packet, give up described packet header, and continue to download the packet header of next packet, wherein, the packet header of described the first packet carries the first package identification information;
When downloaded packet header is the packet header of the first packet, download the corresponding inclusion in packet header of described the first packet, with this, download to described the first packet.
Wherein, described electronic equipment also comprises:
Integrate playing module, for the inclusion of the second downloaded packet is integrated and processed and play.
Wherein, described electronic equipment also comprises:
Reset indication processing module, reselects the instruction of described programme information and/or described Media Stream type for receiving user, and when receiving described instruction, triggers display module.
In the technical scheme that the embodiment of the present invention provides, one data flow is comprised of a plurality of packets, and each packet comprises packet header and inclusion, according to the first packet, carry the feature that this data flow comprises all programme informations and/or Media Stream type, first obtain the first packet, to determine programme information and/or the Media Stream type being comprised in this data flow, and then indicating user is selected the first required programme information and/or the first Media Stream type; In downloading the process of the second packet, first download the packet header of the second packet, when judging this packet header and meet the first programme information that user selects and/or the first Media Stream type, continue to download inclusion corresponding to this packet header, otherwise, give up inclusion corresponding to this packet header, continue to download next second packet.Visible, compare with all packets that in prior art, downloading data stream comprises, this programme is packet corresponding to the selected media content of download user only, to reduce data download, reached the bandwidth waste of bringing while reducing media content download, and the object that reduces playout-delay.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The first flow chart of a kind of data processing method that Fig. 1 provides for the embodiment of the present invention;
The second flow chart of a kind of data processing method that Fig. 2 provides for the embodiment of the present invention;
The third flow chart of a kind of data processing method that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of electronic equipment that Fig. 4 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The bandwidth waste of bringing while reducing media content download in order to realize, and reduce playout-delay, the embodiment of the present invention provides a kind of data processing method and electronic equipment.
First a kind of data processing method embodiment of the present invention being provided is below introduced.
It should be noted that, the data processing method that the embodiment of the present invention provides is applicable to an electronic equipment, this electronic equipment can receive a data flow, this data flow is comprised of a plurality of packets, in the plurality of packet, each packet comprises packet header and inclusion, and a plurality of packet comprises the first packet and the second packet; Wherein, the packet header of the first packet carries the first package identification information, and inclusion carries all programme informations and/or the Media Stream type that this data flow comprises; The packet header of the second packet shows programme information and/or the Media Stream type that this second packet is entrained, and inclusion carries respective program content and/or media stream content.In actual applications, this electronic equipment can be for receiving the equipment such as mobile phone, notebook, panel computer of this class data flow; Meanwhile, this data flow can flow for MPEG2-TS, is certainly not limited to MPEG2-TS stream, as long as data flow composition form meets above-mentioned.
Be understandable that, " second " of " first " of " the first packet " and " the second packet " is only the differentiation on type of data packet, and it is the transmission sequence of packet in representative of data flow not; Meanwhile, in data stream transmitting process, the first packet is sent out according to specific period.
As shown in Figure 1, a kind of data processing method, can comprise:
S101, electronic equipment obtains the first packet;
When user need to utilize an electronic equipment watch or listen to media content, server end is by a data flow of this media content of transmission bearer, due to this data stream packets containing multiple program and/Media Stream, and user may need multiple program and/the corresponding a part of media content of Media Stream, therefore, first this electronic equipment needs to obtain the first packet of this data flow, to carry out the process of the needed programme information of follow-up definite user and/or Media Stream type.
Wherein, described acquisition the first packet, is specifically as follows:
Download the packet header of a packet in described data flow;
When downloaded packet header is not the packet header of the first packet, give up this packet header, and continue to download the packet header of next packet, wherein, the packet header of this first packet carries the first package identification information;
When downloaded packet header is the packet header of the first packet, download the corresponding inclusion in packet header of this first packet, with this, download to described the first packet.
Be understandable that, this first packet was transmitted according to the specific cycle, therefore, in the situation that first packet that this electronic equipment obtains is not the first packet, can in data flow subsequent transmission process, get this first packet, carry out follow-up treatment step.
S102, based on described the first packet, determines the programme information and/or the Media Stream type that in described data flow, comprise;
Wherein, described Media Stream type comprises:
The video flowing of Chinese speech stream, English voice flow, at least one resolution;
Described programme information comprises:
The TV programme of at least one satellite channel.
For example: for a film, carry the Media Stream type comprising in the data flow of this film and can be: the video flowing of at least one resolution, English voice flow, Chinese speech stream etc.; And for a TV programme, carry the programme information that the data flow of this TV programme comprises and can be: the TV programme of at least one satellite channel.
Be understandable that, a data stream packets represents that containing programme information and/or Media Stream type this data flow can only comprise programme information, or, only comprise Media Stream type, or, not only comprise programme information but also comprise Media Stream type.
S103, shows described programme information and/or described Media Stream type;
After determining the programme information and/or Media Stream type that described data flow comprises, can described programme information and/or described Media Stream type be showed to user by the display unit of this electronic equipment, with indicating user, according to current network state or the interest of self, select required programme information and/or Media Stream type.For example: when network environment is better, this user can select the video flowing that resolution is higher, but not the lower video flowing of resolution; And user preferences is experienced when English, can select English voice flow, this is all rational.
S104, obtains the first programme information and/or the first Media Stream type;
Wherein, described the first programme information and/or described the first Media Stream type are determined for selecting by user from described programme information and/or this Media Stream type.Be understandable that, what described " the first programme information " and " the first Media Stream type " was represented is user-selected programme information and/or Media Stream type, does not have ordering meaning; And each first programme information can comprise at least one program, and the first Media Stream type can comprise at least one Media Stream type.
S105, the packet header of downloading the second packet, obtains header packet information;
After determining the first user-selected programme information and/or the first Media Stream type, this electronic equipment needs to download the packet header of the second packet, and then determines the entrained information in this packet header.
S106, whether the header packet information that judgement obtains meets described the first programme information and/or described the first Media Stream type, if so, execution step S107; Otherwise, execution step S108;
It should be noted that, because packet header of the second packet comprises programme information and/or the Media Stream type under the entrained media content of corresponding inclusion, therefore, can whether meet described the first programme information and/or the first Media Stream type by the judgement header packet information that obtains, determine whether this packet header entrained media content of corresponding inclusion is that user is required.When obtained header packet information meets described the first programme information and/or described the first Media Stream type, show that the corresponding inclusion in this packet header carries user-selected media content, now, perform step S107, download inclusion corresponding to this packet header; And work as obtained header packet information while not meeting described the first programme information and/or described the first Media Stream type, and show that the corresponding inclusion in this packet header does not carry this user-selected media content, now, perform step S108, do not download the corresponding inclusion in this packet header.
Be understandable that, relatively do not meet the second packet of first segment order information and/or the first Media Stream type, meet the second packet of the first programme information and/or the first Media Stream type, not only need to download packet header, and need to download inclusion, therefore the needed band of the second packet that, meets described the first programme information and/or described the first Media Stream type is wider than the needed bandwidth of the second packet of described the first programme information of discontented foot and/or described the first Media Stream type.
S107, downloads the corresponding inclusion in described packet header;
S108, does not download the corresponding inclusion in described packet header;
S109, determines whether last second packet, if so, finishes to download, otherwise, carry out S105.
Determining the inclusion of whether downloading current the second packet, and after processing accordingly, needing to judge whether current the second packet is last second packet, and according to different judged results, carry out different operations.When this current second packet is last second packet, show that the required media content of user downloaded completely, now, finish whole downloading process; And current the second packet is not last second packet, show that required media content may not download completely, now, need to continue download next second packet.
In the technical scheme that the embodiment of the present invention provides, one data flow is comprised of a plurality of packets, and each packet comprises packet header and inclusion, according to the first packet, carry the feature that this data flow comprises all programme informations and/or Media Stream type, first obtain the first packet, to determine programme information and/or the Media Stream type being comprised in this data flow, and then indicating user is selected the first required programme information and/or the first Media Stream type; In downloading the process of the second packet, first download the packet header of the second packet, when judging this packet header and meet the first programme information that user selects and/or the first Media Stream type, continue to download inclusion corresponding to this packet header, otherwise, give up inclusion corresponding to this packet header, continue to download next second packet.Visible, compare with all packets that in prior art, downloading data stream comprises, this programme is packet corresponding to the selected media content of download user only, to reduce data download, reached the bandwidth waste of bringing while reducing media content download, and the object that reduces playout-delay.
Further, after downloading to the second required packet, the inclusion of the second downloaded packet can be integrated and processed and play.Certainly, according to different application demands, the process of integrate playing can realize in the process of the download of the second packet, also can after downloading complete the second required packet, realize, and this is all rational.
Further, for in data stream transmitting process, according to the variation of the change of network environment or user preferences, can change determined the first programme information and/or the first Media Stream type, reach the object of the required media content of flexible download user, the embodiment of the present invention also provides a kind of data processing method.
It should be noted that, it should be noted that, the data processing method that the embodiment of the present invention provides is applicable to an electronic equipment, this electronic equipment can receive a data flow, this data flow is comprised of a plurality of packets, in the plurality of packet, each packet comprises packet header and inclusion, and a plurality of packet comprises the first packet and the second packet; Wherein, the packet header of the first packet carries the first package identification information, and inclusion carries all programme informations and/or the Media Stream type that this data flow comprises; The packet header of the second packet shows programme information and/or the Media Stream type that this second packet is entrained, and inclusion carries respective program content and/or media stream content.In actual applications, this electronic equipment can be for receiving the equipment such as mobile phone, notebook, panel computer of this class data flow; Meanwhile, this data flow can flow for MPEG2-TS, is certainly not limited to MPEG2-TS stream, as long as data flow composition form meets above-mentioned.
Be understandable that, " second " of " first " of " the first packet " and " the second packet " is only the differentiation on type of data packet, and it is the transmission sequence of packet in representative of data flow not; Meanwhile, in data stream transmitting process, the first packet is sent out according to specific period.
As shown in Figure 2, a kind of data processing method, can comprise:
S201, electronic equipment obtains the first packet;
Wherein, described acquisition the first packet, is specifically as follows:
Download the packet header of a packet in described data flow;
When downloaded packet header is not the packet header of the first packet, give up described packet header, and continue to download the packet header of next packet, wherein, the packet header of described the first packet carries the first package identification information;
When downloaded packet header is the packet header of the first packet, download the corresponding inclusion in packet header of described the first packet, with this, download to described the first packet.
S202, based on described the first packet, determines the programme information and/or the Media Stream type that in described data flow, comprise;
S203, shows described programme information and/or described Media Stream type;
Wherein, described Media Stream type comprises:
The video flowing of Chinese speech stream, English voice flow, at least one resolution;
Described programme information comprises:
The TV programme of at least one satellite channel.
S204, obtains the first programme information and/or the first Media Stream type;
Wherein, described the first programme information and/or described the first Media Stream type are determined for selecting by user from described programme information and/or described Media Stream type.
In the present embodiment, step S201-step S204 is similar to the step S101-step S104 of above-described embodiment, does not repeat them here.
S205, judges whether to receive the instruction that user reselects described programme information and/or described Media Stream type, if so, and execution step S203; Otherwise, execution step S206;
After current network environment or user's hobby changes, user can send by man-machine interface the instruction that reselects described programme information and/or described Media Stream type to this electronic equipment, and this electronic equipment is after receiving this instruction, need again to user, to show determined all programme informations and/or described Media Stream type, with indicating user, reselect.
It should be noted that, in actual applications, this electronic equipment needs real-time monitoring whether to receive the instruction that user reselects described programme information and/or Media Stream type, and after receiving instruction, again show all programme informations and/or Media Stream type, therefore, step S205 is after step S204, before step S206, be only as a kind of example, should not form the restriction to the embodiment of the present invention.
S206, the packet header of downloading the second packet, obtains header packet information;
S207, whether the header packet information that judgement obtains meets described the first programme information and/or described the first Media Stream type, if so, execution step S208; Otherwise, execution step S209;
S208, downloads the corresponding inclusion in described packet header;
S209, does not download the corresponding inclusion in described packet header;
S210, determines whether last second packet, if so, finishes to download, otherwise, carry out S206.
In the present embodiment, step S206-step S210 is similar to the step S105-S109 of above-described embodiment, does not repeat them here.
In the present embodiment, in the process of downloading data bag, when receiving user, reselect after the instruction of described programme information and/or described Media Stream type, again show all programme informations and/or Media Stream type, with indicating user, reselect the first required programme information and/or the first Media Stream type, and then carry out the download of follow-up the second packet according to the first programme information redefining and/or the first Media Stream type, with this, realized according to the variation of the change of network environment or user preferences, change determined the first programme information and/or the first Media Stream type, and then reach the object of the required media content of flexible download user.
Take by MPEG2-TS flow transmission one film is below example, and a kind of data processing method provided by the present invention is introduced.
Wherein, this MPEG2-TS stream is comprised of a plurality of packets, and each packet comprises packet header and inclusion, and a plurality of packet comprises the first packet and the second packet; Wherein, the packet header of the first packet carries the first package identification information, and inclusion carries four kinds of Media Stream types that this data flow comprises: Chinese speech stream, English voice flow, high definition video steaming, ordinary video stream; The packet header of the second packet shows the Media Stream type that the inclusion of this second packet is entrained, and inclusion carries respective media stream.
As described in Figure 3, a kind of data processing method, can comprise:
S301, obtains the first packet;
When user need to utilize an electronic equipment to watch film, server end is by a MPEG2-TS of this film of transmission bearer, because this MPEG2-TS stream comprises media stream, and user may need the corresponding a part of media content of multiple Media Stream, therefore, first this electronic equipment needs to obtain the first packet of this MPEG2-TS stream, to carry out the process of the needed Media Stream type of follow-up definite user.
Wherein, described acquisition the first packet, is specifically as follows:
Download the packet header of a packet in described data flow;
When downloaded packet header is not the packet header of the first packet, gives up this packet header, and continue to download the packet header of next packet;
When downloaded packet header is the packet header of the first packet, download the corresponding inclusion in packet header of this first packet, with this, download to described the first packet.
Be understandable that, this first packet was transmitted according to the specific cycle, therefore, in the situation that first packet that this electronic equipment obtains is not the first packet, can flow in subsequent transmission process and get this first packet at MPEG2-TS, carry out follow-up treatment step.
S302, based on described the first packet, determines four kinds of Media Stream types that comprise in described data flow;
S303, shows four kinds of Media Stream types;
After determining the Media Stream type that described MPEG2-TS stream comprises, can described Media Stream type be showed to user by the display unit of this electronic equipment, with indicating user, according to current network state or the interest of self, select required Media Stream type.For example: when network environment is better, this user can select the video flowing that resolution is higher, but not the lower video flowing of resolution; And user preferences is experienced when English, can select English voice flow, this is all rational.
S304, determines that the first Media Stream type is: Chinese speech stream and high definition video steaming;
S305, the packet header of downloading the second packet, obtains header packet information;
After determining the first user-selected Media Stream type, this electronic equipment needs to download the packet header of the second packet, and then determines the entrained information in this packet header.
S306, whether the header packet information that judgement obtains meets described Chinese speech stream or high definition video steaming, if so, execution step S307; Otherwise, execution step S308;
It should be noted that, because packet header of the second packet comprises the Media Stream type under the entrained media content of corresponding inclusion, therefore, can whether meet described the first Media Stream type by the judgement header packet information that obtains, determine whether this packet header entrained media content of corresponding inclusion is that user is required.When obtained header packet information meets described the first Media Stream type, show that the corresponding inclusion in this packet header carries user-selected media content, now, perform step S307, download inclusion corresponding to this packet header; And work as obtained header packet information while not meeting described the first Media Stream type, and show that the corresponding inclusion in this packet header does not carry this user-selected media content, now, perform step S308, do not download the corresponding inclusion in this packet header.
S307, downloads the corresponding inclusion in described packet header;
S308, does not download the corresponding inclusion in described packet header;
S309, determines whether last second packet, if so, finishes to download, otherwise, continue to carry out S305.
Be understandable that, this electronic equipment can monitor whether receive the instruction that user reselects described Media Stream type in real time, and after receiving instruction, again shows all Media Stream types, and then indicating user reselects required Media Stream type.
Further, after downloading to the second required packet, the inclusion of the second downloaded packet can be integrated and processed and play.Certainly, according to different application demands, the process of integrate playing can realize in the process of the download of the second packet, also can after downloading complete the second required packet, realize, and this is all rational.
In the present embodiment, MPEG2-TS stream is comprised of a plurality of packets, and each packet comprises packet header and inclusion, according to the first packet in this MPEG2-TS stream, carry the feature of all Media Stream types that this MPEG2-TS stream comprises, first obtain the first packet, to determine the Media Stream type being comprised in this MPEG2-TS stream, and then indicating user is selected the first required Media Stream type; Download the second packet process in, the packet header of first downloading the second packet, when judging this packet header and meet the first Media Stream type that user selects, continue to download inclusion corresponding to this packet header, otherwise, give up inclusion corresponding to this packet header, continue to download next second packet.Visible, with in prior art, download all packets that MPEG2-TS stream comprises and compare, this programme is packet corresponding to the selected media content of download user only, to reduce data download, reached the bandwidth waste of bringing while reducing media content download, and the object that reduces playout-delay.
By the description of above embodiment of the method, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Understanding based on such, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as read-only memory (ROM), random-access memory (ram), magnetic disc or CDs.
Corresponding to said method, the embodiment of the present invention also provides a kind of electronic equipment, and described electronic equipment can receive a data flow, and described data flow is comprised of a plurality of packets, and each packet in described a plurality of packets comprises packet header and inclusion; Described electronic equipment can comprise:
The first packet obtains module 110, for obtaining the first packet;
Optional type determination module 120, for based on described the first packet, determines the programme information and/or the Media Stream type that in described data flow, comprise;
Display module 130, for showing described programme information and/or described Media Stream type;
Selected type to obtain module 140, for obtaining the first programme information and/or the first Media Stream type, described the first programme information and/or described the first Media Stream type are determined for selecting by user from described programme information and/or described Media Stream type;
The second packet download module 150, for downloading the packet header of the second packet, obtains header packet information;
Processing module 160, when meeting described the first programme information and/or described the first Media Stream type when described header packet information, downloads the corresponding inclusion in described packet header; When described header packet information does not meet described the first programme information and/or described the first Media Stream type, do not download the corresponding inclusion in described packet header.
The electronic equipment that the embodiment of the present invention provides, first obtains the first packet, and to determine programme information and/or the Media Stream type being comprised in this data flow, and then indicating user is selected the first required programme information and/or the first Media Stream type; In downloading the process of the second packet, first download the packet header of the second packet, when judging this packet header and meet the first programme information that user selects and/or the first Media Stream type, continue to download inclusion corresponding to this packet header, otherwise, give up inclusion corresponding to this packet header, continue to download next second packet.Visible, compare with all packets that in prior art, downloading data stream comprises, this programme is packet corresponding to the selected media content of download user only, to reduce data download, reached the bandwidth waste of bringing while reducing media content download, and the object that reduces playout-delay.
Be understandable that, this electronic equipment can be the equipment such as mobile phone, notebook, panel computer.
Wherein, this first packet obtains module 110, specifically for:
Download the packet header of a packet in described data flow;
When downloaded packet header is not the packet header of the first packet, give up described packet header, and continue to download the packet header of next packet, wherein, the packet header of described the first packet carries the first package identification information;
When downloaded packet header is the packet header of the first packet, download the corresponding inclusion in packet header of described the first packet, with this, download to described the first packet.
Further, described electronic equipment can also comprise:
Integrate playing module, for the inclusion of the second downloaded packet is integrated and processed and play.
Further, described electronic equipment can also comprise:
Reset indication processing module, reselects the instruction of described programme information and/or described Media Stream type for receiving user, and when receiving described instruction, triggers display module.
For device or system embodiment, because it is substantially corresponding to embodiment of the method, so relevant part is referring to the part explanation of embodiment of the method.Device described above or system embodiment are only schematic, the wherein said unit as separating component explanation can or can not be also physically to separate, the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of module wherein to realize the object of the present embodiment scheme.Those of ordinary skills, in the situation that not paying creative work, are appreciated that and implement.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, not surpassing in the application's spirit and scope, can realize in other way.Current embodiment is a kind of exemplary example, should be as restriction, and given particular content should in no way limit the application's object.For example, the division of described unit or subelement, is only that a kind of logic function is divided, and during actual realization, can have other dividing mode, and for example a plurality of unit or a plurality of subelement combine.In addition, a plurality of unit can or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.
In addition, institute's descriptive system, the schematic diagram of apparatus and method and different embodiment, within not exceeding the application's scope, can with other system, module, technology or method in conjunction with or integrated.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The above is only the specific embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. a data processing method, is characterized in that, is applicable to an electronic equipment, described electronic equipment can receive a data flow, described data flow is comprised of a plurality of packets, and each packet in described a plurality of packets comprises packet header and inclusion, and described method comprises:
Obtain the first packet;
Based on described the first packet, determine the programme information and/or the Media Stream type that in described data flow, comprise;
Show described programme information and/or described Media Stream type;
Obtain the first programme information and/or the first Media Stream type, described the first programme information and/or described the first Media Stream type are determined for selecting by user from described programme information and/or described Media Stream type;
Download the packet header of the second packet, obtain header packet information;
When described header packet information meets described the first programme information and/or described the first Media Stream type, download the corresponding inclusion in described packet header;
When described header packet information does not meet described the first programme information and/or described the first Media Stream type, do not download the corresponding inclusion in described packet header.
2. method according to claim 1, is characterized in that, obtains the first packet, is specially:
Download the packet header of a packet in described data flow;
When downloaded packet header is not the packet header of the first packet, give up described packet header, and continue to download the packet header of next packet, wherein, the packet header of described the first packet carries the first package identification information;
When downloaded packet header is the packet header of the first packet, download the corresponding inclusion in packet header of described the first packet, with this, download to described the first packet.
3. method according to claim 1, is characterized in that, described method also comprises: the inclusion of the second downloaded packet is integrated and processed and play.
4. method according to claim 1, it is characterized in that, described method also comprises: when receiving user and reselect the instruction of described programme information and/or described Media Stream type, show described programme information and/or described Media Stream type, obtain the first programme information and/or the first Media Stream type that user reselects from described programme information and/or described Media Stream type.
5. method according to claim 1, is characterized in that, described Media Stream type comprises:
The video flowing of Chinese speech stream, English voice flow, at least one resolution;
Described programme information comprises:
The TV programme of at least one satellite channel.
6. method according to claim 1, it is characterized in that, the needed band of the second packet that meets described the first programme information and/or described the first Media Stream type is wider than the needed bandwidth of the second packet of described the first programme information of discontented foot and/or described the first Media Stream type.
7. an electronic equipment, is characterized in that, described electronic equipment can receive a data flow, and described data flow is comprised of a plurality of packets, and each packet in described a plurality of packets comprises packet header and inclusion; Described electronic equipment comprises:
The first packet obtains module, for obtaining the first packet;
Optional type determination module, for based on described the first packet, determines the programme information and/or the Media Stream type that in described data flow, comprise;
Display module, for showing described programme information and/or described Media Stream type;
Selected type to obtain module, for obtaining the first programme information and/or the first Media Stream type, described the first programme information and/or described the first Media Stream type are determined for selecting by user from described programme information and/or described Media Stream type;
The second packet download module, for downloading the packet header of the second packet, obtains header packet information;
Processing module, when meeting described the first programme information and/or described the first Media Stream type when described header packet information, downloads the corresponding inclusion in described packet header; When described header packet information does not meet described the first programme information and/or described the first Media Stream type, do not download the corresponding inclusion in described packet header.
8. electronic equipment according to claim 7, is characterized in that, described the first packet obtains module, specifically for:
Download the packet header of a packet in described data flow;
When downloaded packet header is not the packet header of the first packet, give up described packet header, and continue to download the packet header of next packet, wherein, the packet header of described the first packet carries the first package identification information;
When downloaded packet header is the packet header of the first packet, download the corresponding inclusion in packet header of described the first packet, with this, download to described the first packet.
9. electronic equipment according to claim 7, is characterized in that, described electronic equipment also comprises:
Integrate playing module, for the inclusion of the second downloaded packet is integrated and processed and play.
10. electronic equipment according to claim 7, is characterized in that, described electronic equipment also comprises:
Reset indication processing module, reselects the instruction of described programme information and/or described Media Stream type for receiving user, and when receiving described instruction, triggers display module.
CN201210211267.6A 2012-06-20 2012-06-20 A kind of data processing method and electronic equipment Active CN103517084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210211267.6A CN103517084B (en) 2012-06-20 2012-06-20 A kind of data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210211267.6A CN103517084B (en) 2012-06-20 2012-06-20 A kind of data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103517084A true CN103517084A (en) 2014-01-15
CN103517084B CN103517084B (en) 2016-12-21

Family

ID=49898997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210211267.6A Active CN103517084B (en) 2012-06-20 2012-06-20 A kind of data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103517084B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115422A (en) * 1997-09-26 2000-09-05 International Business Machines Corporation Protocol and procedure for time base change in an MPEG-2 compliant datastream
CN101437149A (en) * 2007-11-12 2009-05-20 华为技术有限公司 Method, system and apparatus for providing multilingual program
CN101442663A (en) * 2007-11-22 2009-05-27 华为技术有限公司 Method, apparatus and system for implementing network television business
CN102196008A (en) * 2010-03-08 2011-09-21 株式会社日立制作所 Peer-to-peer downloading method, video equipment and content transmission method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6115422A (en) * 1997-09-26 2000-09-05 International Business Machines Corporation Protocol and procedure for time base change in an MPEG-2 compliant datastream
CN101437149A (en) * 2007-11-12 2009-05-20 华为技术有限公司 Method, system and apparatus for providing multilingual program
CN101442663A (en) * 2007-11-22 2009-05-27 华为技术有限公司 Method, apparatus and system for implementing network television business
CN102196008A (en) * 2010-03-08 2011-09-21 株式会社日立制作所 Peer-to-peer downloading method, video equipment and content transmission method

Also Published As

Publication number Publication date
CN103517084B (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN109525853B (en) Live broadcast room cover display method and device, terminal, server and readable medium
CN102970606B (en) The TV programme suggesting method and device of identity-based identification
US8307399B2 (en) Method of providing key frames of video in mobile terminal
CN103609131A (en) Reception device, reception method, transmission device, transmission method, and program
CN107454475A (en) Control method and device, computer installation and the readable storage medium storing program for executing of video playback
US20150341698A1 (en) Method and device for providing selection of video
CN103716719A (en) Multimedia file downloading method and user terminal
CN103533439A (en) Multimedia file recommendation method and electronic equipment
CN103810185A (en) Information processing method and device, and electronic equipment
CN103747292A (en) Television program-associated application program recommending method and recommending device
CN107509110A (en) A kind of loop play method and device of video file
CN103729407A (en) Method and device for playing live broadcast streaming media
CN106412676A (en) Video code stream switching method and device, and electronic device
EP1811773A2 (en) Method and device for providing brief information on data broadcasting service in digital multimedia broadcasting receiving terminal
CN106488270A (en) A kind of method and apparatus of direct broadcasting room switching
CN101888502A (en) Method, device and mobile terminal for displaying program information
CN103945265A (en) Advertisement processing method and terminal
CN112423006A (en) Live broadcast scene switching method, device, equipment and medium
CN106131689A (en) Method for downloading video and device
US20170078751A1 (en) Intelligent terminal-based tween interactive advertisement placement method and apparatus
CN108228278A (en) A kind of method and apparatus for loading video desktop
CN105791971A (en) Method and device for switching stream media audios
CN103702218A (en) Video playing method and device
CN111246245A (en) Method and device for pushing video aggregation page, server and terminal equipment
CN108184145A (en) Television channel commending method, equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant