CN110740351B - Method, device and storage medium for transmitting stream media data - Google Patents

Method, device and storage medium for transmitting stream media data Download PDF

Info

Publication number
CN110740351B
CN110740351B CN201911115107.XA CN201911115107A CN110740351B CN 110740351 B CN110740351 B CN 110740351B CN 201911115107 A CN201911115107 A CN 201911115107A CN 110740351 B CN110740351 B CN 110740351B
Authority
CN
China
Prior art keywords
streaming media
data
media data
terminal
request information
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
CN201911115107.XA
Other languages
Chinese (zh)
Other versions
CN110740351A (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.)
TP Link Technologies Co Ltd
Original Assignee
TP Link Technologies Co 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201911115107.XA priority Critical patent/CN110740351B/en
Publication of CN110740351A publication Critical patent/CN110740351A/en
Application granted granted Critical
Publication of CN110740351B publication Critical patent/CN110740351B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/654Transmission by server directed to the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The application is applicable to the technical field of computers, and provides a method and equipment for transmitting stream media data, wherein the method comprises the following steps: when acquiring streaming media data request information sent by a terminal, generating a data session identifier corresponding to each piece of streaming media data request information; sending a data session identifier corresponding to each streaming media data request message to the terminal based on the device identifier information of the terminal; acquiring streaming media data corresponding to each piece of streaming media data request information; and sending the data session identification and the streaming media data corresponding to each streaming media data request message to the terminal based on the equipment identification information of the terminal. In the above manner, the server generates the corresponding unique data session identifier for different streaming media data request information, so that the server and the terminal can simultaneously perform a plurality of unrelated data sessions, the transmission speed of the streaming media data is improved, the network resources are saved, and the playing quality of the streaming media data is improved.

Description

Method, device and storage medium for transmitting stream media data
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a method and an apparatus for transmitting streaming media data.
Background
With the development of computer technology and wireless communication technology, digital multimedia enters an industrialization stage, various multimedia application platforms gradually mature in the industrialization process, and real-time multimedia information processing gradually becomes practical. The real-time streaming media data transmission is mainly applied to video playing, voice talkback, multi-screen sharing and the like.
However, in the existing streaming media data transmission process, only one streaming media data with the same format can be transmitted at a time, which means that only one data interaction process can be realized between the server and the terminal at a time, resulting in slow transmission speed of the streaming media data, waste of network resources, and influence on the playing quality of the streaming media data.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for transmitting streaming media data, so as to solve the problems that in the existing streaming media data transmission process, only one streaming media data with the same format can be transmitted each time, which results in slow transmission speed of the streaming media data, waste of network resources, and influence on the playing quality of the streaming media data.
A first aspect of an embodiment of the present application provides a method for transmitting streaming media data, including:
when acquiring streaming media data request information sent by a terminal, generating a data session identifier corresponding to each piece of streaming media data request information; the data session identifier is used for identifying a data session corresponding to the streaming media data request information;
Sending the data session identifier corresponding to each streaming media data request message to the terminal based on the device identifier information of the terminal;
acquiring streaming media data corresponding to each piece of streaming media data request information;
and sending the data session identifier corresponding to each piece of streaming media data request information and the streaming media data to the terminal based on the equipment identifier information of the terminal.
Further, in order to meet different requirements of a user and change attributes of streaming media data in time, sending a data session identifier corresponding to each piece of streaming media data request information and the streaming media data to the terminal based on the device identifier information of the terminal may include:
when an attribute modification request containing a data session identifier sent by the terminal is acquired, modifying the attribute of the streaming media data corresponding to the streaming media data request information associated with the data session identifier;
and sending the data session identification and the streaming media data with the modified attributes to the terminal based on the equipment identification information of the terminal.
Further, in order to accurately and quickly transmit the streaming media data and improve the playing quality of the streaming media data, the present application may further include: when a transmission link connection request sent by the terminal is received, a data transmission link between the terminal and the terminal is established; the data transmission link is used for transmitting data to the terminal.
Further, in order to distinguish streaming media data in different data formats and improve the speed of the terminal for identifying different streaming media data, the present application may further include:
acquiring a target data format corresponding to the streaming media data;
marking the data format of the streaming media data as the target data format; the target data format is used for the terminal to identify the streaming media data;
the sending, to the terminal, the data session identifier and the streaming media data corresponding to each piece of streaming media data request information based on the device identifier information of the terminal includes:
and based on the equipment identification information of the terminal, sending the data session identification corresponding to each streaming media data request information and the streaming media data marked with the target data format to the terminal.
Further, in order to save network resources and end transmission of the streaming media data in time, the present application may further include:
when receiving session ending information which is sent by the terminal and contains a data session identifier, generating a session ending identifier corresponding to the session ending information;
sending the data session identifier and the session ending identifier to the terminal based on the equipment identifier information of the terminal; the session ending identifier is used for indicating that the data session interaction process corresponding to the data session identifier is ended.
Further, in order to efficiently transmit the stream media data and accurately control the data size of the stream media data per time, the present application may further include:
when the data volume of the streaming media data is larger than the maximum data volume corresponding to the threshold identification, dividing the streaming media data corresponding to the streaming media data request information into at least two streaming media data segments based on the threshold identification; wherein the data volume of each streaming media data segment is less than the maximum data volume corresponding to the threshold identification;
the sending, to the terminal, the data session identifier and the streaming media data corresponding to each piece of streaming media data request information based on the device identifier information of the terminal includes:
and sending at least two streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information.
Further, in order to efficiently transmit the stream media data and timely adjust the data size of the stream media data each time, the present application may further include:
when a data volume adjusting request containing a data session identifier sent by the terminal is received, dividing streaming media data associated with the data session identifier into at least two target streaming media data segments; the data volume adjusting request comprises a target threshold identification; the target threshold identifies a maximum amount of data to represent an adjusted single transmission; the data volume of the target streaming media data segment is smaller than the maximum data volume corresponding to the target threshold identification;
The sending, to the terminal, the data session identifier and the streaming media data corresponding to each piece of streaming media data request information based on the device identifier information of the terminal includes:
and sending at least two target streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification.
A second aspect of an embodiment of the present invention provides an apparatus for transmitting streaming media data, where the apparatus includes:
the generating unit is used for generating a data session identifier corresponding to each piece of streaming media data request information when the streaming media data request information sent by a terminal is acquired; the data session identifier is used for identifying a data session corresponding to the streaming media data request information;
a first sending unit, configured to send, based on the device identification information of the terminal, the data session identification corresponding to each piece of streaming media data request information to the terminal;
the acquiring unit is used for acquiring the streaming media data corresponding to each piece of streaming media data request information;
and a second sending unit, configured to send, based on the device identification information of the terminal, the data session identification and the streaming media data that correspond to each piece of streaming media data request information to the terminal.
Further, the apparatus further comprises:
a data format obtaining unit, configured to obtain a target data format corresponding to the streaming media data;
a marking unit, configured to mark a data format of the streaming media data as the target data format; the target data format is used for the terminal to identify the streaming media data.
And a second sending unit, configured to send, based on the device identification information of the terminal, the data session identification corresponding to each piece of streaming media data request information and the streaming media data in the marked target data format to the terminal.
Further, the second sending unit is specifically configured to:
when an attribute modification request containing a data session identifier sent by the terminal is acquired, modifying the attribute of the streaming media data corresponding to the streaming media data request information associated with the data session identifier;
and sending the data session identification and the streaming media data with the modified attributes to the terminal based on the equipment identification information of the terminal.
The streaming media data request information comprises a threshold identification of the maximum data volume which can be transmitted at a single time;
further, the apparatus further comprises:
A first dividing unit, configured to divide, when a data amount of the streaming media data is greater than a maximum data amount corresponding to the threshold identifier, the streaming media data corresponding to the streaming media data request information into at least two streaming media data segments based on the threshold identifier; wherein the data volume of each streaming media data segment is less than the maximum data volume corresponding to the threshold identification;
the second sending unit is specifically configured to: and sending at least two streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information.
Further, the apparatus further comprises:
the second dividing unit is used for dividing the streaming media data associated with the data session identifier into at least two target streaming media data segments when receiving a data volume adjusting request containing the data session identifier and sent by the terminal; the data volume adjusting request comprises a target threshold identification; the target threshold identifies a maximum amount of data to represent an adjusted single transmission; the data volume of the target streaming media data segment is smaller than the maximum data volume corresponding to the target threshold identification;
The second sending unit is specifically configured to: and sending at least two target streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification.
Further, the apparatus further comprises:
the identification generating unit is used for generating a session ending identification corresponding to the session ending information when receiving the session ending information which is sent by the terminal and contains a data session identification;
a fifth sending unit, configured to send the data session identifier and the session end identifier to the terminal based on the device identifier information of the terminal; the session ending identifier is used for indicating that the data session interaction process corresponding to the data session identifier is ended.
Further, the apparatus further comprises:
the establishing unit is used for establishing a data transmission link with the terminal when receiving a transmission link connection request sent by the terminal; the data transmission link is used for transmitting data to the terminal.
A third aspect of the embodiments of the present invention provides another device, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports a terminal to execute the above method, where the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps:
When acquiring streaming media data request information sent by a terminal, generating a data session identifier corresponding to each piece of streaming media data request information; the data session identifier is used for identifying a data session corresponding to the streaming media data request information;
sending the data session identifier corresponding to each streaming media data request message to the terminal based on the device identifier information of the terminal;
acquiring streaming media data corresponding to each piece of streaming media data request information;
and sending the data session identifier corresponding to each piece of streaming media data request information and the streaming media data to the terminal based on the equipment identifier information of the terminal.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of:
when acquiring streaming media data request information sent by a terminal, generating a data session identifier corresponding to each piece of streaming media data request information; the data session identifier is used for identifying a data session corresponding to the streaming media data request information;
Sending the data session identifier corresponding to each piece of streaming media data request information to the terminal based on the equipment identifier information of the terminal;
acquiring streaming media data corresponding to each piece of streaming media data request information;
and sending the data session identifier and the streaming media data corresponding to each piece of streaming media data request information to the terminal based on the equipment identifier information of the terminal.
The method and the device for transmitting the streaming media data have the following beneficial effects:
in the embodiment of the application, the server generates corresponding data session identifiers for different streaming media data request information, and the data session identifiers can identify data sessions corresponding to the streaming media data request information; when the server transmits the streaming media data corresponding to the streaming media data request information to the terminal, the streaming media data request information can be transmitted in the data session corresponding to the data session identifier, so that the server and the terminal can simultaneously perform a plurality of unrelated data sessions, namely, the server and the terminal can simultaneously transmit a plurality of unrelated streaming media data, the transmission speed of the streaming media data is improved, network resources are saved, and the playing quality of the streaming media data is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic application scenario of a method for transmitting streaming media data provided in the present application;
fig. 2 is a flowchart illustrating an implementation of a method for transmitting streaming media data according to an embodiment of the present application;
fig. 3 is a flowchart of an implementation of a method for transmitting streaming media data according to another embodiment of the present application;
fig. 4 is a flowchart illustrating an implementation of a method for transmitting streaming media data according to another embodiment of the present application;
fig. 5 is a flowchart illustrating an implementation of a method for transmitting streaming media data according to still another embodiment of the present application;
fig. 6 is a schematic diagram of an apparatus for transmitting streaming media data according to an embodiment of the present application;
fig. 7 is a schematic diagram of an apparatus for transmitting streaming media data according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a method for transmitting streaming media data according to an embodiment of the present invention. In the application scenario diagram shown in fig. 1, a server and a terminal (the number of terminals may be one or at least two) may mutually transmit streaming media data, and both of them may transmit and receive signaling (control command). Before streaming media data transmission, a terminal sends a transmission link connection request to a server, and when the server receives the request, a data transmission link with the terminal is established based on equipment identification information of the terminal; the server and the terminal can transmit streaming media data, signaling and the like based on the data transmission link.
After a data transmission link is established between a server and a terminal, the terminal sends different streaming media data request information to the server, and the server generates a data session identifier corresponding to each streaming media data request information; the server acquires the equipment identification information of the terminal and sends the received streaming media data request information and the corresponding data session identification to the terminal based on the equipment identification information; the server acquires streaming media data corresponding to each streaming media request message; and based on the equipment identification information of the terminal, sending the data session identification and the streaming media data association corresponding to each streaming media data request information to the terminal. The server generates corresponding data session identification for different streaming media data request information, and the data session identification can identify the data session corresponding to the streaming media data request information; when the server transmits the streaming media data to the terminal, the streaming media data can be transmitted in the data session corresponding to the data session identifier, so that the server and the terminal can simultaneously perform a plurality of unrelated data sessions, namely, the server and the terminal can simultaneously transmit a plurality of unrelated streaming media data, the transmission speed of the streaming media data is improved, the network resources are saved, and the playing quality of the streaming media data is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for transmitting streaming media data according to an embodiment of the present invention. The main execution body of the method for transmitting the streaming media data in this embodiment is the server. The method of transmitting streaming media data as shown in fig. 2 may include:
s101: when acquiring streaming media data request information sent by a terminal, generating a data session identifier corresponding to each piece of streaming media data request information; the data session identifier is used for identifying a data session corresponding to the streaming media data request information.
The terminal sends the streaming media data request information to the server, and the server receives the streaming media data request information sent by the terminal. When only one piece of streaming media data request information is sent by the terminal, the server may generate a data session identifier for identifying a data session corresponding to the streaming media data request information, with respect to the streaming media data request information. In this embodiment, in order to enable the server and the terminal to perform multiple unrelated data sessions simultaneously, that is, the server and the terminal transmit multiple unrelated streaming media data simultaneously, when receiving at least two different streaming media data request messages sent by the terminal, the server generates a data session identifier corresponding to each streaming media data request message; the data session identifier is used to identify a data session corresponding to the streaming media data request information. It can be understood that when the server acquires the streaming media data request information, a data session identifier is generated, and the session identifier can identify a data session corresponding to the streaming media data request information. The data session may be understood as data interaction between the server and the terminal for the streaming media data request information, that is, the terminal sends the streaming media data request information to the server, and the server gives a response and transmits corresponding streaming media data to the terminal.
Each data session identifier uniquely identifies the data session corresponding to the streaming media data request information, the data session identifier may be set by the user or randomly generated by the server, and the form of the data session identifier may be a number, a character, or a combination of a number and a character, and the like, which is not limited herein.
S102: and sending the data session identifier corresponding to each piece of streaming media data request information to the terminal based on the equipment identifier information of the terminal.
The server acquires equipment identification information of the terminals, and each terminal has unique equipment identification information. When the terminal sends the streaming media data request information, the terminal can carry the equipment identification information of the equipment, and the server obtains the equipment identification information. And the server sends the streaming media data request information and the data session identification corresponding to the streaming media data request information to the terminal based on the equipment identification information of the terminal. Further, the server may also obtain response information corresponding to the streaming media data request information, and send the streaming media data request information, the data session identifier corresponding to the streaming media data request information, and the response information to the terminal based on the device identifier information of the terminal.
S103: and acquiring the streaming media data corresponding to each piece of streaming media data request information.
And the server acquires the streaming media data corresponding to each piece of streaming media data request information. Specifically, different streaming media data corresponding to different streaming media request information are pre-stored in the server; the server can search the streaming media data corresponding to the request information according to different streaming media data request information. For example, the streaming media data request information requests a type of video data, and the corresponding streaming media data is video data; the streaming media data request information requests audio data, and the corresponding streaming media data is the audio data; the streaming media data request information requests a picture data, and the corresponding streaming media data is the picture data; the description is given for illustrative purposes only and is not intended to be limiting.
S104: and sending the data session identifier corresponding to each piece of streaming media data request information and the streaming media data to the terminal based on the equipment identifier information of the terminal.
And the server sends the data session identification and the streaming media data corresponding to each streaming media data request message to the terminal based on the equipment identification information of the terminal. Specifically, each piece of streaming media data request information corresponds to a data session identifier, each piece of streaming media data request information also has streaming media data corresponding to the streaming media data request information, and the server sends the data session identifier corresponding to the streaming media data request information and the streaming media data corresponding to the streaming media data request information to the terminal based on the equipment identifier information of the terminal; further, the server may also associate the data session identifier corresponding to the streaming media data request information with the streaming media data corresponding to the streaming media data request information, and send the associated data session identifier and the streaming media data to the terminal based on the device identifier information of the terminal.
Further, in order to meet different requirements of the user and change the attribute of the streaming media data in time, S104 may include S1041-S1042, which are as follows:
s1041: when an attribute modification request containing a data session identifier sent by the terminal is acquired, modifying the attribute of the streaming media data corresponding to the streaming media data request information associated with the data session identifier.
The attribute modification request sent by the terminal is used for requesting the server to modify the attribute of the streaming media data. The terminal sends an attribute modification request containing the data session identifier to the server, and when the server receives the attribute modification request sent by the terminal, the server modifies the attribute of the streaming media data corresponding to the streaming media data request information associated with the data session identifier.
Specifically, the data session identifier has streaming media data request information corresponding thereto, and the server may search for the corresponding streaming media data request information according to the data session identifier in the attribute modification request, search for the corresponding streaming media data according to the streaming media data request information, and modify the attribute of the streaming media data to the attribute included in the attribute modification request.
For example, when streaming media data is used to form an image and the attribute modification request wants to request the server to modify the resolution of the streaming media data, the server modifies the resolution of the corresponding streaming media data; when the attribute modification request wants to request the server to modify the audio format of the streaming media data, the server modifies the format of the corresponding streaming media data; the description is given for illustrative purposes only and is not intended to be limiting.
S1042: and sending the data session identification and the streaming media data with the modified attributes to the terminal based on the equipment identification information of the terminal.
And the server associates and sends the data session identification and the stream media data with the modified attribute to the terminal based on the equipment identification information of the terminal. Specifically, the server acquires the streaming media data with the modified attribute, sends the streaming media data with the data session identifier in the attribute modification request and sends the information to the terminal based on the equipment identifier information of the terminal; further, the attribute modification request can also be associated with the data session identifier in the attribute modification request, and the associated data can be sent to the terminal based on the device identification information of the terminal. When receiving the data session identifier and the stream media data with the modified attributes sent by the server, the terminal can identify which data session corresponds to the data session identifier according to the data session identifier, can know which stream media data request information the stream media data with the modified attributes aim at according to the data session identifier, and then plays the stream media data with the modified attributes on a corresponding playing interface.
Further, in the middle of data transmission between the server and the terminal, the terminal may also send an attribute modification request including a data session identifier to the server, and the server receives the attribute modification request; acquiring streaming media data request information corresponding to the data session identifier according to the data session identifier, and searching corresponding streaming media data which are not sent to the terminal according to the streaming media data request information; and modifying the attribute of the streaming media data which is not sent according to the content of the attribute modification request, associating the streaming media data with the data session identifier after the attribute is modified, and sending the associated data to the terminal based on the equipment identifier information of the terminal. The server receives the attribute modification request, modifies the attribute of the streaming media data, and sends the streaming media data with the modified attribute to the terminal.
In the embodiment of the application, the server generates corresponding data session identifiers for different streaming media data request information, and the data session identifiers can identify data sessions corresponding to the streaming media data request information; when the server transmits the streaming media data corresponding to the streaming media data request information to the terminal, the streaming media data can be transmitted in the data session corresponding to the data session identifier, so that the server and the terminal can simultaneously perform a plurality of unrelated data sessions, namely, the server and the terminal can simultaneously transmit a plurality of unrelated streaming media data, the transmission speed of the streaming media data is improved, network resources are saved, and the playing quality of the streaming media data is improved. And the server can receive the attribute modification request, modify the attribute of the streaming media data and send the streaming media data with the modified attribute to the terminal, and in the whole process, the data session between the server and the terminal does not need to be interrupted, so that the efficiency and the quality of streaming media data transmission are ensured.
Referring to fig. 3, fig. 3 is a schematic flowchart of a method for transmitting streaming media data according to another embodiment of the present invention. The main execution body of the method for transmitting the streaming media data in this embodiment is the server.
The differences between the embodiment of the present embodiment and the embodiment corresponding to fig. 2 are S201, S205 to S209, where S202 to S204 in the present embodiment are completely the same as S101 to S103 in the embodiment corresponding to fig. 2, and refer to the description of S101 to S103 in the embodiment corresponding to fig. 2, which is not repeated herein.
In order to accurately and quickly transmit the streaming media data and improve the playing quality of the streaming media data, the embodiment may further include S201, which is specifically as follows:
s201: when a transmission link connection request sent by the terminal is received, a data transmission link between the terminal and the terminal is established; the data transmission link is used for transmitting data to the terminal.
Before data transmission, the terminal and the server establish a data transmission link, and stream media data information, signaling, response information, request information and the like can be transmitted through the data transmission link. Specifically, the terminal sends a transmission link connection request to the server, and when the server receives the request, the server establishes a data transmission link with the terminal based on the device identification information of the terminal.
Further, in order to distinguish streaming media data in different data formats, the speed of identifying different streaming media data by the terminal is increased, and S205 is further included after S204, specifically as follows:
S205: and acquiring a target data format corresponding to the streaming media data.
Different data formats corresponding to different streaming media data can be stored in the server in advance, and the server searches a target data format corresponding to the streaming media data; or the server may analyze the target data format corresponding to the streaming media data. For example, if the server analyzes that the streaming media data is video data, the corresponding target data format is a video data format; and the server analyzes that the streaming media data is the picture data, and the corresponding target data format is the picture data format. The data format can be customized by the user according to the actual streaming media data; for example, the data format may be: application/json, video/mp2t, audio/mp2t, image/jpeg, image/avc, image/hevc, audio/alaw, and the like. Wherein, application/json indicates that the transmitted multimedia data is a control signaling; video/mp2t indicates that the transmitted streaming media data is audio/video or separate video data in MPEG2-TS format; audio/mp2t represents audio data in the MPEG2-TS format of streaming media data for transmission; image/jpeg represents that the transmitted streaming media data is picture data, and the format of the picture is JEPG (Joint Photographic Experts group) format; image/avc indicates that the transmitted streaming media data is Picture data of an H264 IDR frame, and includes both a Sequence Parameter Set (SPS) and a Picture Parameter Set (PPS); the image/hevc represents that the transmitted streaming media data is picture data of an H265 IDR frame and simultaneously comprises a video parameter set, an SPS and a PPS; the audio/alaw represents that the transmitted streaming media data is audio data with 8000Hz, 16bits and 1 channel; the description is given for illustrative purposes only and is not intended to be limiting.
S206: marking the data format of the streaming media data as the target data format; the target data format is used for the terminal to identify the streaming media data.
And the server marks the data format of the streaming media data as the corresponding target data format. For example, the data format of the streaming media data is labeled application/json, video/mp2t, audio/mp2t, image/jpeg, image/avc, image/hevc, audio/alaw, etc. The target data format is used for the terminal to identify the streaming media data, namely, the terminal can quickly identify the streaming media data according to the target data format and also can quickly identify the data format of the streaming media data. Further, in a streaming media data corresponding to a streaming media data request message, if the streaming media data includes streaming media data in different data formats, the server may divide the streaming media data according to the different data formats, and mark a corresponding target data format for each divided streaming media data.
S207: and based on the equipment identification information of the terminal, sending the data session identification corresponding to each streaming media data request information and the streaming media data marked with the target data format to the terminal.
And after the server marks the streaming media data in a data format, based on the equipment identification information of the terminal, sending the data session identification corresponding to each piece of streaming media data request information and the streaming media data marked with the target data format to the terminal in an associated manner. Specifically, the server searches for streaming media data request information corresponding to the streaming media data, searches for a corresponding data session identifier according to the streaming media data request information, associates the data session identifier with the streaming media data marked with the target data format, and sends the associated data to the terminal based on the device identifier information of the terminal.
Further, in order to save network resources and end transmission of the streaming media data in time, after the transmission of the streaming media data between the server and the terminal is completed, the method may further include S208-S209, which specifically includes:
s208: and when receiving session ending information which is sent by the terminal and contains a data session identifier, generating a session ending identifier corresponding to the session ending information.
The terminal sends session ending information containing the data session identification to the server, and the server receives the session ending information containing the data session identification sent by the terminal and generates a session ending identification corresponding to the session ending information. The specific form of the session end information and the session end identifier may be set by the user, and may be a symbol, a number, a letter, a character, or any combination of these, which is not limited in this respect. For example, the session end information may be: sample, the end of session flag may be: sample2- -.
S209: sending the data session identifier and the session ending identifier to the terminal based on the equipment identifier information of the terminal; the session ending identifier is used for indicating that the data session interaction process corresponding to the data session identifier is ended.
The server associates the data session identifier with the session ending identifier, and sends the information to the terminal based on the device identifier information of the terminal. The session ending identifier is used for indicating that the data session interaction process corresponding to the data session identifier is ended; when the terminal receives the data session identifier and the session end identifier, it can know that the data session interaction process corresponding to the data session identifier is ended. At this time, the data transmission link between the server and the terminal is continuously connected, which is convenient for other data sessions to be normally performed, and is also convenient for the subsequent data session based on the streaming media data request information to be normally performed.
In the embodiment of the application, the server generates corresponding data session identifiers for different streaming media data request information, and the data session identifiers can identify data sessions corresponding to the streaming media data request information; when the server transmits the streaming media data corresponding to the streaming media data request information to the terminal, the streaming media data can be transmitted in the data session corresponding to the data session identifier, so that the server and the terminal can simultaneously perform a plurality of unrelated data sessions, namely, the server and the terminal can simultaneously transmit a plurality of unrelated streaming media data, the transmission speed of the streaming media data is improved, network resources are saved, and the playing quality of the streaming media data is improved.
Referring to fig. 4, fig. 4 is a schematic flow chart of a method for transmitting streaming media data according to another embodiment of the present invention. The main execution body of the method for transmitting the streaming media data in this embodiment is the server.
The difference between the embodiment of the present embodiment and the embodiment corresponding to fig. 2 is S304 and S305, where S301 to S303 in the present embodiment are completely the same as S101 to S103 in the embodiment corresponding to fig. 2, and reference is specifically made to the description related to S101 to S103 in the embodiment corresponding to fig. 2, which is not repeated herein.
In order to efficiently transmit the streaming media data and accurately control the data size of the streaming media data each time, the present embodiment may further include S304-S305, which are as follows:
the streaming media data request information comprises threshold identification of maximum data volume which can be transmitted in a single time.
Specifically, the streaming media data request information sent by the terminal includes a threshold identification of the maximum data amount that the single server can transmit to the terminal. I.e. the threshold identifies the maximum amount of data that the server can send streaming media data to the terminal at a single time. The user can set and adjust the threshold identifier according to the actual situation, which is not limited.
S304: when the data volume of the streaming media data is larger than the maximum data volume corresponding to the threshold identification, dividing the streaming media data corresponding to the streaming media data request information into at least two streaming media data segments based on the threshold identification; and the data volume of each streaming media data segment is smaller than the maximum data volume corresponding to the threshold identification.
The server judges whether the data volume of the streaming media data to be sent is larger than the maximum data volume corresponding to the threshold identification. And when the judgment result is that the data volume of the streaming media data to be sent is less than or equal to the maximum data volume corresponding to the threshold identification, the server associates the streaming media data with the data session identification, and sends the associated data session identification and the streaming media data to the terminal based on the equipment identification information of the terminal. When the judgment result is that the data volume of the streaming media data to be sent is larger than the maximum data volume corresponding to the threshold identification, dividing the streaming media data to be sent corresponding to the streaming media data request information into at least two streaming media data segments based on the threshold identification; and the data volume of each divided streaming media data segment is less than the maximum data volume corresponding to the threshold identification.
S305: and sending at least two streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information.
And the server sends the divided at least two streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information. Specifically, the server may search for corresponding streaming media data request information according to the streaming media data, search for a corresponding data session identifier according to the streaming media data request information, and send the data session identifier and the divided streaming media data segment to the terminal according to the sequence of data division based on the device identifier information of the terminal.
Further, in order to reduce the memory pressure of the terminal for receiving the streaming media data and ensure the fluency of playing the streaming media data, the server may determine the size of the sent streaming media data, when the data amount of the sent streaming media data is greater than or equal to a preset data amount, the data session may be suspended first, that is, the sending of the remaining streaming media data corresponding to the streaming media data request information is suspended, the sending process may be resumed after waiting for a preset duration, or the indication of the terminal may be waited, and the operation is performed according to the indication of the terminal. The preset data volume and the preset time are set by the user according to the actual situation, and the preset data volume and the preset time are not limited.
It should be noted that S201 in the embodiment corresponding to fig. 3 may be executed before S301 in the embodiment, and S208-S209 in the embodiment corresponding to fig. 3 may be executed after S305 in the embodiment, which is not limited thereto.
In the embodiment of the application, the server generates corresponding data session identifiers for different streaming media data request information, and the data session identifiers can identify data sessions corresponding to the streaming media data request information; when the server transmits the streaming media data corresponding to the streaming media data request information to the terminal, the streaming media data can be transmitted in the data session corresponding to the data session identifier, so that the server and the terminal can simultaneously perform a plurality of unrelated data sessions, namely, the server and the terminal can simultaneously transmit a plurality of unrelated streaming media data, the transmission speed of the streaming media data is improved, network resources are saved, and the playing quality of the streaming media data is improved. And the data size of the transmitted streaming media data can be adjusted according to the threshold identification of the maximum data size, and the data size of the streaming media data is accurately controlled each time, so that the server efficiently transmits the streaming media data to the terminal, and the memory pressure of the terminal is reduced.
Referring to fig. 5, fig. 5 is a schematic flow chart illustrating a method for transmitting streaming media data according to still another embodiment of the present invention. The main execution body of the method for transmitting the streaming media data in the embodiment is the server.
The differences between the present embodiment and the embodiment corresponding to fig. 4 are S404 and S405, where S401 to S403 in the present embodiment are completely the same as S301 to S303 in the embodiment corresponding to fig. 4, and please refer to the related description of S301 to S303 in the embodiment corresponding to fig. 4, which is not repeated herein.
In order to efficiently transmit the streaming media data and timely adjust the data size of the streaming media data each time, the embodiment may further include S404-S405, which are as follows:
s404: when a data volume adjusting request containing a data session identifier sent by the terminal is received, dividing streaming media data associated with the data session identifier into at least two target streaming media data segments; the data volume adjusting request comprises a target threshold identification; the target threshold identifies a maximum amount of data to represent an adjusted single transmission; and the data volume of the target streaming media data segment is smaller than the maximum data volume corresponding to the target threshold identification.
The terminal sends a data volume adjusting request containing the data session identifier, and the server receives the data volume adjusting request containing the data session identifier sent by the terminal. The data volume adjusting request comprises a target threshold identification, and the target threshold identification is used for indicating the maximum data volume of the streaming media data which can be transmitted to the terminal by the server once after adjustment. The server judges whether the data volume of the streaming media data to be sent is larger than the maximum data volume corresponding to the target threshold identification. And when the judgment result is that the data volume of the streaming media data to be sent is less than or equal to the maximum data volume corresponding to the target threshold identification, the server associates the streaming media data with the data session identification, and sends the associated data session identification and the streaming media data to the terminal based on the equipment identification information of the terminal. When the judgment result is that the data volume of the streaming media data to be sent is larger than the maximum data volume corresponding to the target threshold identification, dividing the streaming media data to be sent corresponding to the streaming media data request information into at least two target streaming media data segments based on the target threshold identification; the data volume of each divided target streaming media data segment is smaller than the maximum data volume corresponding to the target threshold identification.
S405: and sending at least two target streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification.
And the server sends the divided at least two target streaming media data segments to the terminal according to the sequence of the streaming media data division based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information. Specifically, the server may search for corresponding streaming media data request information according to streaming media data, search for a corresponding data session identifier according to the streaming media data request information, and send the data session identifier and the divided target streaming media data segment to the terminal according to the sequence of data division based on the device identifier information of the terminal.
Further, in the middle of data transmission between the server and the terminal, the terminal may also send a data volume adjustment request including a data session identifier to the server, and the server receives the data volume adjustment request, where the data volume adjustment request includes a target threshold identifier, and the target threshold identifier is used to indicate that the server can transmit the maximum data volume of the streaming media data to the terminal at a single time after adjustment. When the server judges that the data volume of the remaining streaming media data to be sent is larger than the data volume corresponding to the target threshold identification, the server divides the remaining streaming media data to be sent into at least two target streaming media data segments based on the target threshold identification; the data volume of each divided target streaming media data segment is smaller than the maximum data volume corresponding to the target threshold identification. And the server sends the divided at least two target streaming media data segments to the terminal according to the sequence of the streaming media data division based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information.
It is worth to be noted that S201 in the embodiment corresponding to fig. 3 may be executed before S401 in this embodiment; S208-S209 in the embodiment corresponding to fig. 3 may be executed after S405 in this embodiment, which is not limited to this.
In the embodiment of the application, the server generates corresponding data session identifiers for different streaming media data request information, and the data session identifiers can identify data sessions corresponding to the streaming media data request information; when the server transmits the streaming media data corresponding to the streaming media data request information to the terminal, the streaming media data can be transmitted in the data session corresponding to the data session identifier, so that the server and the terminal can simultaneously perform a plurality of unrelated data sessions, namely, the server and the terminal can simultaneously transmit a plurality of unrelated streaming media data, the transmission speed of the streaming media data is improved, network resources are saved, and the playing quality of the streaming media data is improved. And the data size of the transmitted streaming media data can be adjusted at any time according to the target threshold identification, and the data size of the streaming media data is accurately controlled each time, so that the server efficiently transmits the streaming media data to the terminal, and the memory pressure of the terminal is reduced.
Referring to fig. 6, fig. 6 is a schematic diagram of an apparatus for transmitting streaming media data according to an embodiment of the present invention. The device comprises units for performing the steps in the embodiments corresponding to fig. 1, 2, 3, 4, 5. Please refer to the corresponding embodiments in fig. 1, fig. 2, fig. 3, fig. 4, and fig. 5. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 5, the apparatus 5 includes:
a generating unit 510, configured to generate a data session identifier corresponding to each piece of streaming media data request information when the streaming media data request information sent by a terminal is acquired; the data session identifier is used for identifying a data session corresponding to the streaming media data request information;
a first sending unit 520, configured to send the data session identifier corresponding to each piece of streaming media data request information to the terminal based on the device identifier information of the terminal;
an obtaining unit 530, configured to obtain streaming media data corresponding to each piece of streaming media data request information;
a second sending unit 540, configured to send, based on the device identification information of the terminal, a data session identification and the streaming media data, which correspond to each piece of streaming media data request information, to the terminal.
Further, the apparatus further comprises:
a data format obtaining unit, configured to obtain a target data format corresponding to the streaming media data;
a marking unit, configured to mark a data format of the streaming media data as the target data format; the target data format is used for the terminal to identify the streaming media data;
a second sending unit, configured to specifically send, to the terminal, a data session identifier and the streaming media data corresponding to each piece of streaming media data request information based on the device identifier information of the terminal, where the sending unit includes:
further, the second sending unit 540 is specifically configured to:
when an attribute modification request containing a data session identifier sent by the terminal is acquired, modifying the attribute of the streaming media data corresponding to the streaming media data request information associated with the data session identifier;
and sending the data session identification and the streaming media data with the modified attributes to the terminal based on the equipment identification information of the terminal.
The streaming media data request information comprises a threshold identification of the maximum data volume which can be transmitted at a single time;
further, the apparatus further comprises:
a first dividing unit, configured to divide, when a data amount of the streaming media data is greater than a maximum data amount corresponding to the threshold identifier, the streaming media data corresponding to the streaming media data request information into at least two streaming media data segments based on the threshold identifier; the data volume of each streaming media data segment is smaller than the maximum data volume corresponding to the threshold identification;
The second sending unit 540 is specifically configured to: and sending at least two streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information.
Further, the apparatus further comprises:
the second dividing unit is used for dividing the streaming media data associated with the data session identifier into at least two target streaming media data segments when receiving a data volume adjusting request containing the data session identifier and sent by the terminal; the data volume adjusting request comprises a target threshold identification; the target threshold identifies a maximum amount of data to represent an adjusted single transmission; the data volume of the target streaming media data segment is smaller than the maximum data volume corresponding to the target threshold identification;
the second sending unit 540 is specifically configured to: and sending at least two target streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification.
Further, the apparatus further comprises:
the identification generating unit is used for generating a session ending identification corresponding to the session ending information when receiving the session ending information which is sent by the terminal and contains a data session identification;
A fifth sending unit, configured to send the data session identifier and the session termination identifier to the terminal based on the device identifier information of the terminal; the session ending identifier is used for indicating that the data session interaction process corresponding to the data session identifier is ended.
Further, the apparatus further comprises:
the establishing unit is used for establishing a data transmission link with the terminal when receiving a transmission link connection request sent by the terminal; the data transmission link is used for transmitting data to the terminal.
Referring to fig. 7, fig. 7 is a schematic diagram of an apparatus for transmitting streaming media data according to another embodiment of the present invention. As shown in fig. 7, the apparatus 6 for transmitting streaming media data of this embodiment includes: a processor 60, a memory 61 and a computer program 62 stored in said memory 61 and executable on said processor 60. The processor 60 executes the computer program 62 to implement the steps in the method embodiments of the above-described respective devices for transmitting streaming media data, such as S101 to S104 shown in fig. 1. Alternatively, the processor 60, when executing the computer program 62, implements the functions of the units in the above-mentioned device embodiments, such as the functions of the units 510 to 540 shown in fig. 6.
Illustratively, the computer program 62 may be divided into one or more units, which are stored in the memory 61 and executed by the processor 60 to accomplish the present invention. The one or more units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 62 in the device 6 for proxy forwarding of real-time streaming protocol streaming media data. For example, the computer program 62 may be divided into a generation unit, a first transmission unit, an acquisition unit, and a second transmission unit, each of which functions specifically as described above.
The apparatus may include, but is not limited to, a processor 60, a memory 61. It will be understood by those skilled in the art that fig. 6 is merely an example of the device 6 for proxying the real time streaming protocol streaming media data and does not constitute a limitation of the device 6 for proxying the real time streaming protocol streaming media data and may include more or less components than those shown, or some components in combination, or different components.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 61 may be an internal storage unit of the device 6 for proxy forwarding of the rtp streaming media data, for example, a hard disk or a memory of the device 6 for proxy forwarding of the rtp streaming media data. The memory 61 may also be an external storage real-time streaming protocol client of the device 6 for proxy forwarding of real-time streaming protocol streaming Media data, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped on the device 6 for proxy forwarding of real-time streaming protocol streaming Media data. Further, the memory 61 may also include both an internal storage unit of the device 6 for proxy forwarding of the real-time streaming protocol streaming media data and an external storage real-time streaming protocol client. The memory 61 is used for storing the computer programs and other programs and data required by the real-time streaming protocol client. The memory 61 may also be used to temporarily store data that has been output or is to be output.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A method of transmitting streaming media data, comprising:
when acquiring streaming media data request information sent by a terminal, generating a data session identifier corresponding to each piece of streaming media data request information; the data session identifier is used for identifying a data session corresponding to the streaming media data request information;
sending the data session identifier corresponding to each streaming media data request message to the terminal based on the device identifier information of the terminal;
acquiring streaming media data corresponding to each piece of streaming media data request information; the streaming media data request information comprises a threshold identification of the maximum data volume which can be transmitted at a single time;
when the data volume of the streaming media data is larger than the maximum data volume corresponding to the threshold identification, dividing the streaming media data corresponding to the streaming media data request information into at least two streaming media data segments based on the threshold identification; the data volume of each streaming media data segment is smaller than the maximum data volume corresponding to the threshold identification;
based on the device identification information of the terminal, sending the data session identification and the streaming media data corresponding to each streaming media data request information to the terminal, including:
Based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information, sending at least two streaming media data segments to the terminal according to the sequence of data division;
the server judges the size of the transmitted streaming media data, when the data volume of the transmitted streaming media data is larger than or equal to the preset data volume, the data session process is suspended, namely the transmission of the residual streaming media data corresponding to the streaming media data request information is suspended, and the transmission process is resumed after waiting for the preset time; the preset data volume and the preset time are set by a user according to actual conditions.
2. The method of claim 1, wherein before sending the data session identifier and the streaming media data corresponding to each of the streaming media data request messages to the terminal based on the device identifier information of the terminal, the method further comprises:
acquiring a target data format corresponding to the streaming media data;
marking the data format of the streaming media data as the target data format; the target data format is used for the terminal to identify the streaming media data;
The sending, to the terminal, the data session identifier and the streaming media data corresponding to each piece of streaming media data request information based on the device identifier information of the terminal includes:
and based on the equipment identification information of the terminal, sending the data session identification corresponding to each streaming media data request information and the streaming media data marked with the target data format to the terminal.
3. The method of claim 1, wherein the sending the data session identifier and the streaming media data corresponding to each streaming media data request message to the terminal based on the device identifier information of the terminal comprises:
when an attribute modification request containing a data session identifier sent by the terminal is acquired, modifying the attribute of the streaming media data corresponding to the streaming media data request information associated with the data session identifier;
and sending the data session identification and the streaming media data with the modified attributes to the terminal based on the equipment identification information of the terminal.
4. The method of claim 1, wherein before sending the data session identifier and the streaming media data corresponding to each of the streaming media data request messages to the terminal based on the device identifier information of the terminal, the method further comprises:
When a data volume adjustment request containing a data session identifier sent by the terminal is received, dividing streaming media data associated with the data session identifier into at least two target streaming media data segments; the data volume adjusting request comprises a target threshold identification; the target threshold identifies a maximum amount of data for representing an adjusted single transmission; the data volume of the target streaming media data segment is smaller than the maximum data volume corresponding to the target threshold identification;
the sending, to the terminal, the data session identifier and the streaming media data corresponding to each piece of streaming media data request information based on the device identifier information of the terminal includes:
and sending at least two target streaming media data segments to the terminal according to the sequence of data division based on the equipment identification information of the terminal and the data session identification.
5. The method according to any one of claims 1 to 4, wherein after sending the data session identifier and the streaming media data corresponding to each of the streaming media data request information to the terminal based on the device identifier information of the terminal, further comprising:
When receiving session ending information which is sent by the terminal and contains a data session identifier, generating a session ending identifier corresponding to the session ending information;
sending the data session identifier and the session ending identifier to the terminal based on the equipment identifier information of the terminal; the session ending identifier is used for indicating that the data session interaction process corresponding to the data session identifier is ended.
6. The method according to any one of claims 1 to 4, wherein before generating a data session identifier corresponding to each streaming media data request information when the streaming media data request information sent by the terminal is acquired, the method further includes:
when a transmission link connection request sent by the terminal is received, a data transmission link between the terminal and the terminal is established; the data transmission link is used for transmitting data to the terminal.
7. An apparatus for transmitting streaming media data, comprising:
the generating unit is used for generating a data session identifier corresponding to each piece of streaming media data request information when the streaming media data request information sent by a terminal is acquired; the data session identifier is used for identifying a data session corresponding to the streaming media data request information;
A first sending unit, configured to send, based on the device identification information of the terminal, the data session identification corresponding to each piece of streaming media data request information to the terminal;
the acquiring unit is used for acquiring the streaming media data corresponding to each piece of streaming media data request information; the streaming media data request information comprises a threshold identification of the maximum data volume which can be transmitted at a single time;
when the data volume of the streaming media data is larger than the maximum data volume corresponding to the threshold identification, dividing the streaming media data corresponding to the streaming media data request information into at least two streaming media data segments based on the threshold identification; the data volume of each streaming media data segment is smaller than the maximum data volume corresponding to the threshold identification;
a second sending unit, configured to send, based on the device identification information of the terminal, a data session identification and the streaming media data, which correspond to each piece of streaming media data request information, to the terminal, where the second sending unit includes:
based on the equipment identification information of the terminal and the data session identification corresponding to the streaming media data request information, sending at least two streaming media data segments to the terminal according to the sequence of data division;
The server judges the size of the transmitted streaming media data, when the data volume of the transmitted streaming media data is larger than or equal to the preset data volume, the data session process is suspended, namely the transmission of the residual streaming media data corresponding to the streaming media data request information is suspended, and the transmission process is resumed after waiting for the preset time; the preset data volume and the preset time are set by a user according to actual conditions.
8. An apparatus for transporting streaming media data, comprising a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, wherein the processor when executing the computer readable instructions implements the method of any of claims 1 to 6.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6.
CN201911115107.XA 2019-11-14 2019-11-14 Method, device and storage medium for transmitting stream media data Active CN110740351B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911115107.XA CN110740351B (en) 2019-11-14 2019-11-14 Method, device and storage medium for transmitting stream media data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911115107.XA CN110740351B (en) 2019-11-14 2019-11-14 Method, device and storage medium for transmitting stream media data

Publications (2)

Publication Number Publication Date
CN110740351A CN110740351A (en) 2020-01-31
CN110740351B true CN110740351B (en) 2022-05-24

Family

ID=69272919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911115107.XA Active CN110740351B (en) 2019-11-14 2019-11-14 Method, device and storage medium for transmitting stream media data

Country Status (1)

Country Link
CN (1) CN110740351B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209945A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 Based on multi-link data transmission method for uplink and device
US9692831B1 (en) * 2013-05-31 2017-06-27 Google Inc. Pausing interactive sessions

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079871B (en) * 2006-09-29 2011-05-11 腾讯科技(深圳)有限公司 Transparent transfer method and system of multimedia information stream
CN101202940B (en) * 2006-12-14 2011-12-21 英华达(上海)电子有限公司 Method, device for sending multimedia document
KR20090071995A (en) * 2007-12-28 2009-07-02 삼성전자주식회사 Method for providing multimedia streaming service and system for performing the same
US8135850B2 (en) * 2008-11-25 2012-03-13 Citrix Systems, Inc. Systems and methods for load balancing real time streaming
CN103457956B (en) * 2013-09-17 2017-02-08 网宿科技股份有限公司 HTTP streaming media live broadcasting method and system based on multiple TCP links
CN105847217B (en) * 2015-01-12 2019-09-06 阿里巴巴集团控股有限公司 The method and its system of concurrent multi-service session
CN110072127B (en) * 2018-01-24 2021-09-24 腾讯科技(深圳)有限公司 Media stream playing processing method, device, system, storage medium and equipment
CN110213652B (en) * 2018-04-13 2021-11-30 腾讯科技(深圳)有限公司 Audio and video data transmission method and device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9692831B1 (en) * 2013-05-31 2017-06-27 Google Inc. Pausing interactive sessions
CN106209945A (en) * 2015-05-07 2016-12-07 阿里巴巴集团控股有限公司 Based on multi-link data transmission method for uplink and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
关于局部网络传输信息流实时控制仿真研究;严星;《计算机仿真》;20180515;270-273 *

Also Published As

Publication number Publication date
CN110740351A (en) 2020-01-31

Similar Documents

Publication Publication Date Title
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
US10637970B2 (en) Packet processing method and apparatus
US10516712B2 (en) Streaming media data transmission method, client and server
US9602553B2 (en) Method, apparatus, and system for implementing VOIP call in cloud computing environment
WO2015053530A1 (en) Method and apparatus for content delivery
CN108848060B (en) Multimedia file processing method, processing system and computer readable storage medium
CN112738140B (en) Video stream transmission method, device, storage medium and equipment based on WebRTC
US10498783B2 (en) Non-DSG mechanisms for aligning client devices with their multicast data flows in a DOCSIS network environment
US10038664B2 (en) Terminal status subscription method, apparatus, and system
WO2015120766A1 (en) Video optimisation system and method
US20140082123A1 (en) Content caching and delivering system with traffic of repetitively requested content reduced
JP6116240B2 (en) Transmission device, transmission method, and program
US20210092400A1 (en) Video coder-based code rate control method and device, and video server
CN110113298B (en) Data transmission method, device, signaling server and computer readable medium
CN114553839A (en) RTC data processing method and device
CN110971873B (en) Real-time monitoring method, monitoring system and storage medium
CN110740351B (en) Method, device and storage medium for transmitting stream media data
CN108616760B (en) Live broadcasting method based on browser, server, anchor terminal and user terminal
CN107370731B (en) Method and device for realizing communication between different applications based on natural language
CN111200562B (en) Flow guiding method, static father node, edge node and CDN (content delivery network)
CN111585962A (en) RTP data packet processing method, system and storage medium
CN107395583B (en) Method and device for realizing communication between different applications based on natural language
CN111212052A (en) Service processing method and device, electronic equipment and storage medium
CN111131741A (en) Multi-party video call method, system, device and computer readable storage medium
CN110572703A (en) Multimedia data synchronous playing method, system, terminal and storage medium

Legal Events

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