CN105791223B - media stream data processing method and system and electronic equipment - Google Patents

media stream data processing method and system and electronic equipment Download PDF

Info

Publication number
CN105791223B
CN105791223B CN201410808277.7A CN201410808277A CN105791223B CN 105791223 B CN105791223 B CN 105791223B CN 201410808277 A CN201410808277 A CN 201410808277A CN 105791223 B CN105791223 B CN 105791223B
Authority
CN
China
Prior art keywords
media stream
server
stream data
electronic device
receiving
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.)
Active
Application number
CN201410808277.7A
Other languages
Chinese (zh)
Other versions
CN105791223A (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 CN201410808277.7A priority Critical patent/CN105791223B/en
Publication of CN105791223A publication Critical patent/CN105791223A/en
Application granted granted Critical
Publication of CN105791223B publication Critical patent/CN105791223B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a media stream data processing method, a system and an electronic device, wherein the method can be applied to a electronic device and comprises the steps of sending an media stream transmission request to a server when receiving a operation of a user for a electronic device, establishing connection with the server, receiving media stream data sent by the server, converting the media stream data according to a target protocol supported by a electronic device, and controlling a electronic device to output the converted media stream data.

Description

media stream data processing method and system and electronic equipment
Technical Field
The invention relates to the technical field of media stream transmission, in particular to a processing method and a processing system for media stream data and electronic equipment.
Background
, the second electronic device can transmit media stream data to the server, and the electronic device can send a request to the server to receive the media stream data sent by the server, so that the media stream data can be output on the electronic device.
In the prior art, the th electronic device, the server and the second electronic device need to follow a media streaming protocol, such as the RTSP protocol, for the transmission of media stream data therebetween.
Since the domain network environment where the server is located is complex, a time delay is easily generated in a manner of performing protocol analysis and then transmitting, which results in a pause phenomenon in multimedia data output from the th electronic device.
Disclosure of Invention
In view of this, the present invention provides a processing method and system for media stream data, and an electronic device, so as to solve the technical problem in the prior art that a pause phenomenon easily occurs in multimedia data output by a th electronic device when a server analyzes the media stream data.
In order to achieve the purpose, the invention provides the following technical scheme:
A method for processing media stream data, applied to electronic equipment, the method comprising:
sending a th media streaming request to a server upon receiving a th operation by a user with respect to the th electronic device;
establishing a connection with the server;
receiving media stream data sent by the server;
converting the media stream data according to a target protocol supported by the electronic device;
controlling the electronic device to output the converted media stream data;
the media stream data is data sent to the server by the second electronic device.
Preferably, the receiving the media stream data sent by the server specifically includes:
and receiving the media stream data sent by the server in a push mode.
Preferably, the converting the media stream data according to the target protocol supported by the th electronic device specifically includes:
sequentially converting the media stream data according to a receiving order according to a target protocol supported by the th electronic device.
Preferably, the sending th media stream transmission request to the server specifically includes:
sending th media stream transmission request carrying time period identification to the server;
the receiving of the media stream data sent by the server specifically includes:
receiving media stream data between th time and a second time sent by the server;
the th time is a start time corresponding to the time period identifier, and the second time is an end time corresponding to the time period identifier.
Preferably, the receiving the media stream data sent by the server specifically includes:
and receiving the media stream data which is sent by the server and received from the second electronic equipment in real time.
A method for processing media stream data, applied to a second electronic device, the method comprising:
sending a second media stream transmission request to a server, and establishing connection with the server;
sending media stream data to the server in real time in a pushing mode;
wherein the server is configured to establish a connection with the th electronic device to transmit the media stream data to the th electronic device upon receiving a th media stream transmission request transmitted by an th electronic device, so that the th electronic device converts the media stream data according to the supported target protocol and outputs the converted media stream data.
Preferably, after the sending the media stream data to the server in real time in a push manner, the method further includes:
and when the disconnection of the connection link between the second electronic equipment and the server is detected, stopping sending the media stream data to the server.
Preferably, before the sending the second media streaming request to the server and establishing the connection with the server, the method further includes:
acquiring a third moment at which the second electronic equipment is currently located;
and determining that the third moment reaches a preset target moment.
an electronic device, comprising:
a receiving and transmitting unit for transmitting media streaming request to the server upon receiving th operation of the user for the electronic device;
, a establishing unit for establishing connection with the server;
th receiving element, used to receive the media stream data sent by the server;
conversion unit, for converting the media stream data according to the target protocol supported by the electronic equipment;
control unit, which is used to control the electronic equipment to output the converted media stream data;
the media stream data is data sent to the server by the second electronic device.
Preferably, the th receiving unit is specifically configured to receive media stream data sent by the server in a push manner.
Preferably, the th converting unit is specifically configured to sequentially convert the media stream data according to a receiving order according to a target protocol supported by the electronic device.
Preferably, the receiving and sending unit is specifically configured to send, to the server, a -th media streaming request carrying a time period identifier when an -th operation of the user on the electronic device is received;
the th receiving unit is specifically configured to receive media stream data between th time and a second time sent by the server;
the th time is a start time corresponding to the time period identifier, and the second time is an end time corresponding to the time period identifier.
Preferably, the receiving and sending unit is specifically configured to receive, when an th operation of the user for the electronic device is received, the media stream data that is sent by the server and received in real time from the second electronic device.
an electronic device, comprising:
a sending and establishing unit, configured to send a second media stream transmission request to a server, and establish a connection with the server;
, a sending unit, configured to send media stream data to the server in real time in a push manner;
wherein the server is configured to establish a connection with the th electronic device to transmit the media stream data to the th electronic device upon receiving a th media stream transmission request transmitted by an th electronic device, so that the th electronic device converts the media stream data according to the supported target protocol and outputs the converted media stream data.
Preferably, the method further comprises the following steps:
and the detection stopping unit is used for stopping sending the media stream data to the server when detecting that the connection link between the electronic equipment and the server is disconnected.
Preferably, the method further comprises the following steps:
an obtaining unit, configured to obtain a third time at which the electronic device is currently located;
an determining unit, configured to determine that the third time reaches a preset target time.
a system for processing media stream data, comprising:
an electronic device;
a second electronic device;
a server;
wherein: the second electronic equipment is used for sending a second media stream transmission request to the server so as to establish connection with the server and sending media stream data to the server in real time in a pushing mode;
the server is used for receiving the media stream data sent by the second electronic equipment;
the electronic device is configured to send a media streaming request to the server to establish a connection with the server upon receiving a operation by a user with respect to the electronic device;
the server is further used for sending the media stream data to the electronic device after establishing a connection with the electronic device;
the electronic device is further configured to receive the media stream data sent by the server, convert the media stream data according to a target protocol supported by the electronic device, and output the converted media stream data.
Compared with the prior art, the embodiment of the invention discloses media stream data processing methods, and in the method, when a th operation of a user for a th electronic device is received, a th media stream transmission request is sent to a server to establish a connection with the server, so that the server can send media stream data to a th electronic device, and a th electronic device can convert the received media stream data according to a target protocol supported by a th electronic device, so as to output the converted media stream data, so that in the invention, protocol conversion of the media stream data can be performed in the th electronic device, so that transmission of the media stream data between the electronic device and the server does not need to follow the media stream transmission protocol, and accordingly, the server does not need to perform parsing of the media stream data, and because the th electronic device for converting the media stream data is in a simple environment, a time delay does not occur, and fluency of outputting multimedia data by an th electronic device is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a processing method of media stream data according to embodiments of the present invention;
fig. 2 is a schematic flowchart of another media stream data processing method disclosed in embodiments of the present invention;
FIG. 3 is a schematic flow chart of another media stream data processing method according to another embodiment of the present invention;
FIG. 4 is a flow chart illustrating another media stream data processing method according to yet another embodiment of the present invention disclosed in ;
fig. 5 is a schematic structural diagram of kinds of electronic devices disclosed in embodiments of the present invention;
fig. 6 is a schematic structural diagram of another electronic devices disclosed in embodiments of the present invention;
FIG. 7 is a schematic structural diagram of another electronic devices disclosed in another embodiment of the invention;
FIG. 8 is a schematic structural diagram of another electronic devices disclosed in this patent application for a further embodiment;
fig. 9 is a schematic structural diagram of a processing system for media stream data according to embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only partial embodiments of of the present invention, rather than all embodiments.
embodiments of the invention disclose media stream data processing methods, which can be applied to electronic devices such as mobile phones, tablet computers, notebook computers and the like;
as shown in fig. 1, the method may include the steps of:
step 101, when receiving operation of a user aiming at electronic equipment, sending media stream transmission request to a server;
the th operation is an operation by a user with respect to the th electronic device to enable the th electronic device to output multimedia data.
The implementation form of the operation is not specifically limited in the present invention, for example, if the operation may trigger the operation of a certain specific physical or virtual key on the electronic device, specifically, the electronic device may output multimedia data by using a player, then the operation may trigger the operation of a play key provided on the player for the user.
When it is determined that multimedia data needs to be output when a user operation is received with respect to an th electronic device, at this time, a th media streaming request may be sent to the server.
Step 102: establishing a connection with a server;
after receiving the media streaming request sent by the th electronic device, the server may respond to the request to establish a connection with the th electronic device.
Step 103: receiving media stream data sent by a server;
after the server establishes a connection with the th electronic device, media stream data may be sent to the th electronic device, where the media stream data is data sent to the server by the second electronic device.
104, converting media stream data according to a target protocol supported by the th electronic equipment;
in order to enable the th electronic device to output the media stream data sent by the server, a target protocol supported by the th electronic device may be determined to convert the media stream data according to the target protocol.
For example, when the th electronic device needs to output the media stream data through the player, a target protocol supported by the player of the th electronic device may be determined to convert the media stream data according to the target protocol.
It should be noted that there may be a plurality of target protocols supported by the th electronic device, and in the present invention, only target protocols need to be selected to convert the media stream data.
And step 105, controlling the electronic equipment to output the converted media stream data.
After converting the media stream data to th electronic device supported media stream data, it can be output on th electronic device to enable viewing by the user.
In the embodiment of the present invention, the protocol conversion of the media stream data may be performed in the th electronic device, so that the transmission of the media stream data between the electronic device and the server does not need to follow the media stream transmission protocol, and accordingly, the server does not need to perform parsing of the media stream data, and since the th electronic device for converting the media stream data is in a simple environment, no time delay occurs, and the fluency of the electronic device for outputting multimedia data is improved.
In the prior art, only frames of media stream data can be transmitted by establishing connections between a server and an th electronic device, and since the network environment of a domain network where the server is located is complex, packet loss is easily caused by such a transmission mode, so that a screen splash phenomenon occurs when the th electronic device outputs the media stream data.
Based on the problem, another embodiment of the present invention further discloses a processing method of media stream data, in this embodiment, unlike the above embodiment, the server may send the media stream data to the th electronic device by using a push method, and correspondingly, the media stream data sent by the receiving server may specifically be the media stream data sent by the receiving server by using a push method.
Specifically, after the server responds to the media stream transmission request sent by the th electronic device, a long connection can be established between the server and the th electronic device, specifically, the long connection refers to that the server can send multi-frame media stream data to the th electronic device on the basis that the th electronic device establishes connections with the server, and after the server establishes a long connection with the th electronic device, the server can continuously send the media stream data to the th electronic device in a push manner.
The pushing mode specifically means that after the server establishes a connection with the th electronic device, the server can continuously push the received media stream data to the th electronic device.
It should be noted that, when the server actively disconnects from the th electronic device, the server will not send the media stream data to the th electronic device, and when the th electronic device actively disconnects from the server, the th electronic device cannot receive even if the server sends the media stream data to the th electronic device, and as implementation, the server may actively stop sending the media stream data to the th electronic device when detecting the connection disconnection with the th electronic device.
In practical application, a websocket manner can be adopted to establish a long connection between the th electronic device and the server.
In this embodiment, the connection established between the server and the th electronic device is a long connection, so that the server can send media stream data to the th electronic device in a push manner, thereby avoiding the occurrence of packet loss.
after receiving the media stream data sent by the server in the push mode, in order to ensure that the order of receiving the media stream data and the order of outputting the media stream data are preserved , in this embodiment, the media stream data is converted according to the target protocol supported by the electronic device, specifically, the media stream data is sequentially converted according to the receiving order according to the target protocol supported by the electronic device, accordingly, the electronic device may be controlled to sequentially output the converted media stream data.
In the invention, the electronic device can send media stream transmission request to the server according to the user's requirement, so that the electronic device outputs the media stream data as the media stream data the user wants to watch;
specifically, as implementation manners, the sending of the media transmission request to the server may specifically be sending of a media stream transmission request carrying a time period identifier to the server, and correspondingly, receiving media stream data sent by the server may specifically be receiving of the media stream data between the th time and the second time sent by the server.
The th time is a start time corresponding to the time segment identifier, and the second time is an end time corresponding to the time segment identifier.
The corresponding relation between the th time and the second time and the time period identification can be determined according to the specific form of the time period identification;
as determination methods, if the time period identifier includes a start time and an end time, the th time may be the start time of the time period identifier, and the second time may be the end time of the time period.
For example, the current time is 10 o' clock, and the user wants to view the media stream data sent by the second electronic device to the server at 8: 30 to 9: 00, the user may control the th electronic device to send a th media stream transmission request carrying the identifier of time period of 8: 30 to 9: 00 to the server, and after receiving the th media stream transmission request, the server may determine the media stream data received at time period of 8: 30 to 9: 00 from the buffered media stream data and sequentially send the media stream data to the th electronic device.
As another determinations, if the time period is identified as time duration, then the th time may be a time earlier than and separated from the current time at which the server receives the th media streaming request by the time period, and the second time may be empty.
For example, when the current time is 10 o' clock and the user wants to watch the media stream data sent by the second electronic device to the server from 30min ago, the user may control th electronic device to send th media stream transmission request carrying the th time slot identifier of 30min to the server, and the server, after receiving the th media stream transmission request, determines the media stream data received from 9: 30 from the buffered media stream data and sends the media stream data to th electronic device in turn.
As another implementation manners, the electronic device may send a media streaming request without carrying any identifier to the server, and the server sends media streaming data received from the second electronic device in real time to the electronic device after receiving the media streaming request, and correspondingly, receives the media streaming data sent by the server, which may specifically be the media streaming data sent by the server and received from the second electronic device in real time.
embodiments of the present invention further disclose another methods for processing media stream data, which may be applied to a second electronic device, where the second electronic device may be a media stream device, such as a network camera, or a mobile phone, a tablet computer, a computer, etc. with a camera or a sound recording function.
As shown in fig. 2, the method comprises the steps of:
step 201: sending a second media stream transmission request to the server, and establishing connection with the server;
the server may respond to the second media streaming request sent by the second electronic device after receiving the request, so as to establish a connection with the second electronic device.
Step 202: and sending the media stream data to the server in real time in a push mode.
The server and the second electronic device may establish a long connection, where the long connection may specifically refer to that the second electronic device is capable of sending multi-frame media stream data to the server on the basis of establishing connections between the second electronic device and the server.
Specifically, after receiving a media stream transmission request sent by the th electronic device, the server may establish a connection with the th electronic device to send the media stream data to the th electronic device, so that the th electronic device may convert the media stream data according to the supported target protocol and output the converted media stream data.
In the embodiment of the present invention, the protocol conversion of the media stream data may be performed in the th electronic device, so that the transmission of the media stream data between the electronic device and the server does not need to follow the media stream transmission protocol, and accordingly, the server does not need to analyze the media stream data, and since the th electronic device for converting the media stream data is in a simple environment, no time delay occurs, and the fluency of the electronic device for outputting multimedia data is improved;
and , because the connection between the second electronic device and the server is a long connection, the second electronic device can send the media stream data to the server in a push mode, thereby avoiding the occurrence of packet loss.
Another embodiment of the present invention further discloses a processing method of media streams, as shown in fig. 3, the method may include the following steps:
step 301: sending a second media stream transmission request to the server, and establishing connection with the server;
step 302: sending media stream data to a server in real time in a push mode;
step 303: when detecting that a connection link between the second electronic equipment and the server is disconnected, stopping sending the media stream data to the server;
there are at least two cases when the connection link between the second electronic device and the server is disconnected, and cases are that the second electronic device can actively disconnect the server when the collection of the media stream data is stopped or the media stream data does not need to be sent to the server.
In another cases, the server actively disconnects the second electronic device, for example, the server caches too much media stream data or the th electronic device does not send th media stream transmission request to the server within a preset time, and the server may actively disconnect the second electronic device, in which case, in order to save resources, the second electronic device may stop sending media stream data to the server when detecting that the connection link between the second electronic device and the server is disconnected.
An embodiment of the present invention further discloses a processing method of media stream data, as shown in fig. 4, the method may include the following steps:
step 401: acquiring a current third moment of the second electronic device;
the third time currently displayed by the second electronic device may be obtained, and the third time currently displayed at the geographic location of the second electronic device may also be obtained by the network server.
Step 402: determining the third moment as a preset target moment;
the target time is the time when the second electronic device starts to transmit the media stream data to the server, and then the third time needs to be compared with the target time after the third time at which the second electronic device is currently located is obtained, and the server can transmit the media stream data when the third time reaches the target time; and when the third time does not reach the target time, the media stream data can not be transmitted to the server.
It should be noted that the means for acquiring the media stream data by the second electronic device may be in the start state, but the media stream data transmission to the service area is started only when the third time reaches the target time.
Step 403: sending a second media stream transmission request to the server, and establishing connection with the server;
step 404: and sending the media stream data to the server in real time in a push mode.
embodiments of the invention disclose electronic devices, which may be mobile phones, tablet computers, notebook computers, and the like.
As shown in FIG. 5, the electronic device may include a receiving and transmitting unit 501, an th establishing unit 502, a th receiving unit 503, a th converting unit 504, and a th controlling unit 505, wherein:
a receiving and sending unit 501, configured to send a media streaming request to the server upon receiving th operation of the user for the electronic device;
, establishing unit 502, may be configured to establish a connection with a server;
, a receiving unit 503, which may be used to receive the media stream data sent by the server;
, a conversion unit 504, which may be used to convert media stream data according to a target protocol supported by the electronic device;
, a control unit 505 for controlling the electronic device to output the converted media stream data;
the media stream data is data sent by the second electronic device to the server.
In the embodiment of the present invention, the protocol conversion of the media stream data may be performed in the electronic device, so that the transmission of the media stream data between the electronic device and the server does not need to follow the media stream transmission protocol, and accordingly, the server does not need to analyze the media stream data, and since the th electronic device for converting the media stream data is in a simple environment, no time delay occurs, and the fluency of the electronic device for outputting the multimedia data is improved.
In this embodiment of the present invention, the th receiving unit may be specifically configured to receive media stream data sent by a server in a push manner.
Specifically, after the server responds to the th media stream transmission request sent by the electronic device, a long connection can be established between the server and the electronic device, specifically, the long connection refers to that the server can send multi-frame media stream data to the electronic device on the basis that connections are established between the electronic device and the server.
In practical application, a websocket mode can be adopted between the electronic equipment and the server to establish long connection.
In this embodiment, the connection established between the server and the electronic device is a long connection, so that the server can send media stream data to the electronic device in a push manner, thereby avoiding the occurrence of packet loss.
In order to ensure that the order of receiving the media stream data and the order of outputting the media stream data are stored after the electronic device receives the media stream data sent by the server in a push manner, in this embodiment, the conversion unit is specifically configured to sequentially convert the media stream data according to the receiving order according to a target protocol supported by the electronic device, and correspondingly, the control unit is specifically configured to control the electronic device to sequentially output the converted media stream data.
In the invention, the electronic device can send media stream transmission request to the server according to the user's requirement, so that the electronic device outputs the media stream data as the media stream data the user wants to watch;
specifically, as implementation manners, the receiving and sending unit may be specifically configured to send a th media stream transmission request carrying a time period identifier to the server when receiving a operation of the user for the electronic device, and correspondingly, the th receiving unit may be specifically configured to receive media stream data sent by the server between th time and second time.
The th time is a start time corresponding to the time segment identifier, and the second time is an end time corresponding to the time segment identifier.
As another implementation manners, the receiving and sending unit may be specifically configured to receive, when receiving the th operation of the user on the electronic device, the media stream data sent by the server and received in real time from the second electronic device.
embodiments of the invention also disclose kinds of electronic devices, which can be media stream devices, such as network cameras, mobile phones, tablet computers, computers and the like with camera shooting or recording functions.
As shown in fig. 6, the electronic device may include a sending establishing unit 601 and an -th sending unit 602, wherein:
a sending establishing unit 601, configured to send a second media streaming request to the server, and establish a connection with the server;
the th sending unit 602 may be configured to send the media stream data to the server in real time in a push manner.
Wherein the server is configured to establish a connection with the th electronic device to transmit the media stream data to the th electronic device upon receiving the th media stream transmission request transmitted by the th electronic device, so that the th electronic device converts the media stream data according to the supported target protocol and outputs the converted media stream data.
In the embodiment of the present invention, the protocol conversion of the media stream data may be performed in the th electronic device, so that the transmission of the media stream data between the electronic device and the server does not need to follow the media stream transmission protocol, and accordingly, the server does not need to analyze the media stream data, and since the th electronic device for converting the media stream data is in a simple environment, no time delay occurs, and the fluency of the electronic device for outputting multimedia data is improved;
and , because the connection between the second electronic device and the server is a long connection, the second electronic device can send the media stream data to the server in a push mode, thereby avoiding the occurrence of packet loss.
Another embodiment of the present invention further discloses kinds of electronic devices, as shown in fig. 7, the electronic devices may include a transmission establishing unit 701, a th transmitting unit 702, and a detection stopping unit 703, wherein:
a sending establishing unit 701, configured to send a second media streaming request to a server, and establish a connection with the server;
, a sending unit 702, configured to send media stream data to a server in real time by using a push method;
wherein the server is configured to establish a connection with the th electronic device to transmit the media stream data to the th electronic device upon receiving the th media stream transmission request transmitted by the th electronic device, so that the th electronic device converts the media stream data according to the supported target protocol and outputs the converted media stream data.
The detection stopping unit 703 may be configured to stop sending the media stream data to the server when detecting that the connection link between the electronic device and the server is disconnected.
The embodiment of the present invention further discloses electronic devices, as shown in fig. 8, the electronic device may include a th obtaining unit 801, a th determining unit 802, a sending establishing unit 803, and a th sending unit 804, wherein:
an -th obtaining unit 801, configured to obtain a third time at which the electronic device is currently located;
an determining unit 802, configured to determine that the third time reaches a preset target time;
a sending establishing unit 803, configured to send a second media streaming request to the server, and establish a connection with the server;
the th sending unit 804 may be configured to send the media stream data to the server in real time in a push manner.
The invention also discloses a processing system of kinds of media stream data, which can comprise a electronic device 901, a second electronic device 902 and a server 903 as shown in FIG. 9, wherein:
the second electronic device 902 may be configured to send a second media streaming request to the server, to establish a connection with the server, and send media streaming data to the server in real time in a push manner;
the server 903 may be configured to receive media stream data sent by the second electronic device;
the electronic device 901 may be configured to, upon receiving a th operation by the user with respect to the electronic device, send a th media streaming request to the server to establish a connection with the server;
the server 903 may be configured to send the media stream data to the th electronic device after establishing a connection with the th electronic device;
the th electronic device 901 may be configured to receive the media stream data sent by the server, convert the media stream data according to a target protocol supported by the th electronic device and output the converted media stream data.
In the embodiment of the present invention, the protocol conversion of the media stream data may be performed in the th electronic device, so that the transmission of the media stream data between the electronic device and the server does not need to follow the media stream transmission protocol, and accordingly, the server does not need to perform parsing of the media stream data, and since the th electronic device for converting the media stream data is in a simple environment, no time delay occurs, and the fluency of the electronic device for outputting multimedia data is improved.
When the buffer amount reaches a preset buffer amount or a media stream transmission request sent by the electronic device is not received for a long time, such as a preset time, the cached media stream data is deleted, and of course, the server can also actively disconnect the second electronic device so as not to receive the media stream data sent by the second electronic device.
The embodiments of the apparatuses and systems correspond to the method embodiments, and reference may be made to the method embodiments for details, which are not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention.

Claims (13)

  1. The processing method of media stream data of types 1 and , which is applied to the electronic device, and comprises the following steps:
    sending a th media streaming request to a server upon receiving a th operation by a user with respect to the th electronic device;
    establishing a connection with the server, wherein the connection is a long connection;
    receiving media stream data sent by the server;
    converting the media stream data according to a target protocol supported by the electronic device;
    controlling the electronic device to output the converted media stream data;
    the media stream data is data sent to the server by the second electronic device, and the server does not need to analyze the media stream data;
    the receiving of the media stream data sent by the server specifically includes:
    receiving media stream data sent by the server in a push mode;
    stopping sending media stream data to the th electronic device upon detecting that the connection link between the th electronic device and the server is broken.
  2. 2. The method according to claim 1, wherein said converting said media stream data according to a target protocol supported by said electronic device comprises:
    sequentially converting the media stream data according to a receiving order according to a target protocol supported by the th electronic device.
  3. 3. The method according to claim 1, wherein the sending th media streaming request to the server is specifically:
    sending th media stream transmission request carrying time period identification to the server;
    the receiving of the media stream data sent by the server specifically includes:
    receiving media stream data between th time and a second time sent by the server;
    the th time is a start time corresponding to the time period identifier, and the second time is an end time corresponding to the time period identifier.
  4. 4. The method according to claim 1, wherein the receiving of the media stream data sent by the server specifically includes:
    and receiving the media stream data which is sent by the server and received from the second electronic equipment in real time.
  5. 5, A method for processing media stream data, which is applied in a second electronic device, the method includes:
    sending a second media stream transmission request to a server, and establishing connection with the server, wherein the connection is long connection;
    sending media stream data to the server in real time in a pushing mode;
    wherein, the server is configured to establish a connection with the th electronic device to transmit the media stream data to the th electronic device when receiving a th media stream transmission request transmitted by an th electronic device, so that the th electronic device converts the media stream data according to a supported target protocol and outputs the converted media stream data, and the server does not need to parse the media stream data;
    after the media stream data is sent to the server in real time in a push mode, the method further comprises the following steps:
    and when the disconnection of the connection link between the second electronic equipment and the server is detected, stopping sending the media stream data to the server.
  6. 6. The method of claim 5, wherein sending the second media streaming request to the server further comprises, before establishing the connection with the server:
    acquiring a third moment at which the second electronic equipment is currently located;
    and determining that the third moment reaches a preset target moment.
  7. An electronic device of the kind , comprising:
    a receiving and transmitting unit for transmitting media streaming request to the server upon receiving th operation of the user for the electronic device;
    , an establishing unit, configured to establish a connection with the server, where the connection is a long connection;
    th receiving element, used to receive the media stream data sent by the server;
    conversion unit, for converting the media stream data according to the target protocol supported by the electronic equipment;
    control unit, which is used to control the electronic equipment to output the converted media stream data;
    the media stream data is data sent to the server by the second electronic device, and the server does not need to analyze the media stream data;
    the th receiving unit is specifically configured to receive media stream data sent by the server in a push manner;
    wherein, when detecting that a connection link between the electronic device and the server is disconnected, stopping sending media stream data to the electronic device.
  8. 8. The electronic device according to claim 7, wherein the conversion unit is specifically configured to sequentially convert the media stream data according to a receiving order according to a target protocol supported by the electronic device.
  9. 9. The electronic device according to claim 7, wherein the receiving and sending unit is specifically configured to, upon receiving th operation of a user for the electronic device, send th media streaming request carrying a time period identifier to the server;
    the th receiving unit is specifically configured to receive media stream data between th time and a second time sent by the server;
    the th time is a start time corresponding to the time period identifier, and the second time is an end time corresponding to the time period identifier.
  10. 10. The electronic device according to claim 7, wherein the receiving and sending unit is specifically configured to receive, when th operation of the user for the electronic device is received, the media stream data sent by the server and received in real time from the second electronic device.
  11. An electronic device of the kind 11, , comprising:
    a sending and establishing unit, configured to send a second media stream transmission request to a server, and establish a connection with the server, where the connection is a long connection;
    , a sending unit, configured to send media stream data to the server in real time in a push manner;
    wherein, the server is configured to establish a connection with the th electronic device to transmit the media stream data to the th electronic device when receiving a th media stream transmission request transmitted by an th electronic device, so that the th electronic device converts the media stream data according to a supported target protocol and outputs the converted media stream data, and the server does not need to parse the media stream data;
    further comprising:
    and the detection stopping unit is used for stopping sending the media stream data to the server when detecting that the connection link between the electronic equipment and the server is disconnected.
  12. 12. The electronic device of claim 11, further comprising:
    an obtaining unit, configured to obtain a third time at which the electronic device is currently located;
    an determining unit, configured to determine that the third time reaches a preset target time.
  13. A system for processing media stream data of type 13, , comprising:
    an electronic device;
    a second electronic device;
    a server;
    wherein: the second electronic equipment is used for sending a second media stream transmission request to the server so as to establish connection with the server and sending media stream data to the server in real time in a pushing mode, and the server does not need to analyze the media stream data;
    the server is used for receiving the media stream data sent by the second electronic equipment; wherein the sending of media stream data to the server is stopped upon detecting a disconnection of a connection link between the second electronic device and the server;
    the electronic device is configured to send a media streaming request to the server to establish a connection with the server upon receiving a operation by a user with respect to the electronic device;
    the server is also used for sending the media stream data to the electronic equipment after establishing connection with the electronic equipment, wherein the server sends the media stream data to the electronic equipment in a pushing mode;
    the electronic device is also used for receiving the media stream data sent by the server, converting the media stream data according to the target protocol supported by the electronic device and outputting the converted media stream data;
    upon detecting that the connection link between the th electronic device and the server is broken, stopping sending media stream data to the th electronic device;
    the connection is a long connection.
CN201410808277.7A 2014-12-22 2014-12-22 media stream data processing method and system and electronic equipment Active CN105791223B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410808277.7A CN105791223B (en) 2014-12-22 2014-12-22 media stream data processing method and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410808277.7A CN105791223B (en) 2014-12-22 2014-12-22 media stream data processing method and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN105791223A CN105791223A (en) 2016-07-20
CN105791223B true CN105791223B (en) 2020-01-31

Family

ID=56385564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410808277.7A Active CN105791223B (en) 2014-12-22 2014-12-22 media stream data processing method and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN105791223B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385494B (en) * 2016-09-07 2020-05-05 努比亚技术有限公司 Method and device for acquiring dynamic home page of mobile terminal application
CN111314303B (en) * 2020-01-17 2022-11-22 网易(杭州)网络有限公司 Live broadcast system, and data processing method and device of live broadcast system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102308560A (en) * 2011-07-18 2012-01-04 华为技术有限公司 Transmission method and device of media stream data in cloud calculative system
CN102843351A (en) * 2012-03-31 2012-12-26 华为技术有限公司 Streaming media service processing method, streaming media server and system
CN103200430A (en) * 2012-01-04 2013-07-10 华为终端有限公司 Personal content sharing method, system, server and terminal devices
CN103546725A (en) * 2013-10-24 2014-01-29 北京百纳威尔科技有限公司 Mobile phone client and remote video monitor and control system and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5339413A (en) * 1992-08-21 1994-08-16 International Business Machines Corporation Data stream protocol for multimedia data streaming data processing system
CN101771673B (en) * 2008-12-26 2013-10-09 华为技术有限公司 Method and device for processing media data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102308560A (en) * 2011-07-18 2012-01-04 华为技术有限公司 Transmission method and device of media stream data in cloud calculative system
CN103200430A (en) * 2012-01-04 2013-07-10 华为终端有限公司 Personal content sharing method, system, server and terminal devices
CN102843351A (en) * 2012-03-31 2012-12-26 华为技术有限公司 Streaming media service processing method, streaming media server and system
CN103546725A (en) * 2013-10-24 2014-01-29 北京百纳威尔科技有限公司 Mobile phone client and remote video monitor and control system and method

Also Published As

Publication number Publication date
CN105791223A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
EP2744169B1 (en) Method and apparatus for playing streaming media files
US20160219007A1 (en) Capturing multimedia data based on user action
US20100333155A1 (en) Selectively using local non-volatile storage in conjunction with transmission of content
WO2017092259A1 (en) Transmission control method and apparatus for game live video
WO2015058590A1 (en) Control method, device and system for live broadcast of video, and storage medium
CN109151494B (en) Multimedia data transmission method, multimedia acquisition equipment and server
CN109561320B (en) Server switching method, device, equipment and medium
US20190051147A1 (en) Remote control method, apparatus, terminal device, and computer readable storage medium
CN107800665B (en) Multimedia transmission method, access network equipment and terminal
JP6132116B2 (en) Method, device and system for assessing user experience value of video quality
WO2020233462A1 (en) Communication method for unmanned vehicle, and unmanned vehicle
CN106713127B (en) Method and device for acquiring and processing instant chat records
KR102036579B1 (en) Method and apparatus for providing a web service in a wireless communication system
CN112399190A (en) Audio and video data acquisition method and device
CN108924485B (en) Client real-time video stream interrupt processing method and system and monitoring system
EP3024225B1 (en) System and method of video streaming
CN105791223B (en) media stream data processing method and system and electronic equipment
CN105791987A (en) Media data playing method and terminal
CN109729438B (en) Method and device for sending video packet and method and device for receiving video packet
CN106791992B (en) Signal source method for pushing and system
CN101094159B (en) Method for penetrating through private network of media stream
CN111866526B (en) Live broadcast service processing method and device
CN116527852A (en) Real-time video monitoring system
EP2819384A1 (en) Method, device and system for video monitoring based on universal plug and play (upnp)
CN112188245B (en) Front-end camera real-time video-on-demand method and device and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant