CN106464985A - Media stream transmission method and device - Google Patents

Media stream transmission method and device Download PDF

Info

Publication number
CN106464985A
CN106464985A CN201580026048.2A CN201580026048A CN106464985A CN 106464985 A CN106464985 A CN 106464985A CN 201580026048 A CN201580026048 A CN 201580026048A CN 106464985 A CN106464985 A CN 106464985A
Authority
CN
China
Prior art keywords
code check
media
server
transmission
media fragment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201580026048.2A
Other languages
Chinese (zh)
Other versions
CN106464985B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN106464985A publication Critical patent/CN106464985A/en
Application granted granted Critical
Publication of CN106464985B publication Critical patent/CN106464985B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a media stream transmission method and device, which relate to the technical field of communications and can improve the real-time performance of a user equipment acquiring a media stream file. The main design concept is: by using an active sending manner, after receiving a first media transmission request sent by a downstream node, a server sends the ith media segment with a code rate being a first code rate to the downstream node according to the first media transmission request, and subsequently sends the i+1th media segment with the code rate being the first code rate to the downstream node, wherein a media stream file to be transmitted is divided into N continuous media segments, 1<=i<=N, and both i and N are positive integers

Description

A kind of media stream transmission method and device Technical field
The present invention relates to communication technical field, more particularly to a kind of media stream transmission method and device.
Background technology
HTTP dynamic self-adapting stream (English:Dynamic Adaptive Streaming over HTTP, abbreviation:DASH) it is a kind of adaptive media flow transmission technology of code check loaded on the http protocol.
Using DASH technologies, media stream file waiting for transmission (for example, video file, audio file etc.) is divided into multiple continuous media fragments (English:Segment), for each media fragment, the version that server provides multiple different code checks is selected for user equipment.User equipment describes (English according to the media exhibition of media stream file waiting for transmission:Media Presentation Description, abbreviation:MPD) file and itself assess network condition (for example:Quality of wireless channel) media transmission request is sent to server, with the media fragment of the specific code check of acquisition request.Wherein, the MPD file is used for the storage format for describing media stream file waiting for transmission, includes the storage format of each media fragment.Server sends the media fragment of the specific code check to user equipment after the media transmission request of user equipment transmission is received.But, because multiple network nodes of carrier network are undergone in the end-to-end transmission between server and user equipment, when the state dynamic change of network, particularly when congestion occurs for network, actual transmissions time delay between user equipment and server is longer, therefore, the real-time of user equipment acquisition media stream file waiting for transmission is difficult to ensure that.
In order to improve the real-time that user equipment obtains media stream file waiting for transmission, provide a method that in the prior art:The DASH agent entitys with caching capabilities are set in the network node close to user equipment, DASH agent entitys can cache each media fragment obtained from server.When DASH agent entitys receive the media transmission request of the specific code check of user equipment transmission, if being cached with the specific code check in DASH agent entitys Media fragment, then DASH agent entitys the media fragment of the code check is sent to user equipment;If the media fragment of the uncached specific code check in DASH agent entitys, DASH agent entitys then need further to send media transmission request to server, with the media fragment of the acquisition request code check, after DASH agent entitys receive the media fragment of the code check of server transmission, the media fragment of the code check is sent to user equipment.
The problem of above method is present be:Server is only after the media transmission request of DASH agent entitys transmission is received, the media fragment of the specific code check is just sent to DASH agent entitys, therefore, if without media fragment from other users equipment to the requested specific code check of DASH agent entitys, then the media fragment of the specific code check will not be cached in DASH agent entitys, server stills need to wait the request of the media transmission from DASH clients forwarded from DASH agent entitys, then the media fragment of the specific code check is forwarded to user equipment by DASH agent entitys, the problem of user equipment obtains the real-time of media stream file waiting for transmission still can not be effectively solved using the above method.
The content of the invention
Embodiments of the invention provide a kind of media stream transmission method and device, can improve the real-time that user equipment obtains media stream file.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
The first aspect of the embodiment of the present invention there is provided a kind of media stream transmission method, including:
Server receives the first media transmission request that downstream node is sent, and first segment information is carried in the first media transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
The server is asked according to first media transmission, and i-th of media fragment that code check is the first code check is sent to the downstream node;
The server sends the i+1 media fragment that code check is first code check to the downstream node;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
With reference in a first aspect, in the first possible implementation of first aspect, the server sends the i+1 media piece that code check is first code check to the downstream node Section, including:
The server determined for the first moment, at the time of first moment is the transmission i+1 media fragment according to the playing duration of i-th of media fragment;
The server sends the i+1 media fragment that code check is first code check to the downstream node at first moment.
With reference to the first possible implementation of first aspect or first aspect, in second of possible implementation of first aspect, the server is asked according to first media transmission, and i-th of media fragment that code check is the first code check is sent to the downstream node, including:
The server determines first code check according to pre-defined strategy;
The server sends i-th of media fragment that code check is first code check to the downstream node.
With reference to the first possible implementation of first aspect or first aspect, in the third possible implementation of first aspect, the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check;
The server is asked according to first media transmission, and i-th of media fragment that code check is the first code check is sent to the downstream node, including:
The server determines first code check according to first code rate information;
The server sends i-th of media fragment that code check is first code check to the downstream node.
With reference to first aspect and above-mentioned possible implementation, in the 4th kind of possible implementation of first aspect, if 1≤i < N-1, after the server sends code check to the downstream node for the i+1 media fragment of first code check, methods described also includes:
The server sends the i-th+2 media fragments that code check is first code check to the downstream node.
With reference to first aspect and above-mentioned possible implementation, in the 5th kind of possible implementation of first aspect, methods described also includes:
The server receives the second media transmission request that the downstream node is sent, described Second segment information and the second code rate information are carried in the request of second media transmission, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and second code check is different from first code check;
The server is asked according to second media transmission, and j-th of media fragment that code check is second code check is sent to the downstream node.
With reference to first aspect and above-mentioned possible implementation, in the 6th kind of possible implementation of first aspect, before the server receives the first media transmission request that downstream node is sent, methods described also includes:
The server is set up HTTP http session with the downstream node and is connected;
The server receives the push function enable message that the downstream node is sent, and the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the downstream node.
With reference to first aspect and above-mentioned possible implementation, in the 7th kind of possible implementation of first aspect, the downstream node is user equipment;Or, the downstream node is HTTP dynamic self-adapting stream DASH agent entitys.
The second aspect of the embodiment of the present invention there is provided a kind of media stream transmission method, including:
User equipment sends the request of the first media transmission to server, first segment information is carried in the first media transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
The code check that the user equipment receives the server transmission is i-th of media fragment of the first code check;
The code check that the user equipment receives the server transmission is the i+1 media fragment of first code check;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
With reference to second aspect, in the first possible implementation of second aspect, in institute State user equipment to server send the first media transmission request before, methods described also includes:
The local cache of user equipment described in the user equipment access, i-th of media fragment is not found in the local cache of the user equipment.
With reference to the first possible implementation of second aspect or second aspect, in second of possible implementation of second aspect, after the code check that the user equipment receives the server transmission is i-th of media fragment of the first code check, methods described also includes:
The played code check is i-th of media fragment of first code check;
After the code check that the user equipment receives the server transmission is the i+1 media fragment of first code check, methods described also includes:
The local cache of user equipment described in the user equipment access, code check is found in the local cache of the user equipment and is the i+1 media fragment of first code check, and plays the i+1 media fragment that code check is first code check.
With reference to second aspect and above-mentioned possible implementation, in the third possible implementation of second aspect, the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
With reference to second aspect and above-mentioned possible implementation, in the 4th kind of possible implementation of second aspect, if 1≤i < N-1, after the code check that the user equipment receives the server transmission is the i+1 media fragment of first code check, methods described also includes:
The code check that the user equipment receives the server transmission is the i-th+2 media fragments of first code check.
With reference to second aspect and above-mentioned possible implementation, in the 5th kind of possible implementation of second aspect, methods described also includes:
The local cache of user equipment described in the user equipment access, j-th of media fragment that code check is the second code check is not found, 1≤j≤N, j is positive integer, and second code check is different from first code check in the local cache of the user equipment;
The user equipment sends the request of the second media transmission to the server, and second segment information and the second code rate information, second fragment are carried in the second media transmission request The media fragment that information is used to indicate request is j-th of media fragment, and the code check that second code rate information is used to indicate the media fragment of request is second code check;
The code check that the user equipment receives the server transmission is j-th of media fragment of second code check, and plays j-th of media fragment that code check is second code check.
With reference to second aspect and above-mentioned possible implementation, in the 6th kind of possible implementation of second aspect, before the user equipment sends the request of the first media transmission to server, methods described also includes:
The user equipment is set up HTTP http session with the server and is connected;
The user equipment sends push function to the server and enables message, and the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the user equipment.
The third aspect of the embodiment of the present invention there is provided a kind of media stream transmission method, including:
HTTP dynamic self-adapting stream DASH agent entitys receive the first media transmission request that user equipment is sent, first segment information is carried in the first media transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
If the DASH agent entitys are uncached i-th of media fragment, the DASH agent entitys send first media transmission to server and asked;
The code check that the DASH agent entitys receive the server transmission is i-th of media fragment of the first code check, and sends i-th of media fragment that code check is first code check to the user equipment;
The code check that the DASH agent entitys receive the server transmission is the i+1 media fragment of first code check;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i, N are positive integer.
With reference to the third aspect, in the first possible implementation of the third aspect, the first code rate information is also carried in the first media transmission request, first code rate information is used for The code check for indicating the media fragment of request is first code check.
With reference to the first possible implementation of the third aspect or the third aspect, in second of possible implementation of the third aspect, if 1≤i < N-1, then after the code check that the DASH agent entitys receive the server transmission is the i+1 media fragment of first code check, methods described also includes:
The code check that the DASH agent entitys receive the server transmission is the i-th+2 media fragments of first code check.
With reference to the third aspect and above-mentioned possible implementation, in the third possible implementation of the third aspect, methods described also includes:
The DASH agent entitys receive the second media transmission request that the user equipment is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and second code check is different from first code check;
If the DASH agent entitys are uncached j-th of media fragment that code check is second code check, the DASH agent entitys send second media transmission to the server and asked;
The code check that the DASH agent entitys receive the server transmission is j-th of media fragment of second code check, and sends j-th of media fragment that code check is second code check to the user equipment.
With reference to the third aspect and above-mentioned possible implementation, in the 4th kind of possible implementation of the third aspect, before the DASH agent entitys receive the first media transmission request that user equipment is sent, methods described also includes:
The DASH agent entitys are set up HTTP http session with the user equipment and are connected, and the DASH agent entitys are set up http session with the server and are connected;
The DASH agent entitys send push function to the server and enable message, and the push function, which enables message, to be used to indicate that the server is sent out to the DASH agent entitys Send the continuous media fragment of the same media stream file of same code rate.
The fourth aspect of the embodiment of the present invention there is provided a kind of server, including:
Receiving unit, the first media transmission request for receiving downstream node transmission, first segment information is carried in the first media transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
Transmitting element, for being asked according to first media transmission, i-th of media fragment that code check is the first code check is sent to the downstream node;
The transmitting element, is additionally operable to send the i+1 media fragment that code check is first code check to the downstream node;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
With reference to fourth aspect, in the first possible implementation of fourth aspect, the server, in addition to:
Processing unit, for the playing duration according to i-th of media fragment, determined for the first moment, at the time of first moment is the transmission i+1 media fragment;
The transmitting element, specifically for sending the i+1 media fragment that code check is first code check to the downstream node at first moment.
With reference to the first possible implementation of fourth aspect or fourth aspect, in second of possible implementation of fourth aspect, the processing unit, it is additionally operable to before the transmitting element sends code check to the downstream node for i-th of media fragment of first code check, first code check is determined according to pre-defined strategy.
With reference to the first possible implementation of fourth aspect or fourth aspect, in the third possible implementation of fourth aspect, the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check;
The processing unit, is additionally operable to before the transmitting element sends code check to the downstream node for i-th of media fragment of first code check, first code check is determined according to first code rate information.
With reference to fourth aspect and above-mentioned possible implementation, the 4th kind in fourth aspect can In the implementation of energy, if 1≤i < N-1, then the transmitting element, is additionally operable to after code check is sent to the downstream node for the i+1 media fragment of first code check, and the i-th+2 media fragments that code check is first code check are sent to the downstream node.
With reference to fourth aspect and above-mentioned possible implementation, in the 5th kind of possible implementation of fourth aspect, the receiving unit, it is additionally operable to receive the second media transmission request that the downstream node is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, second code check is different from first code check;
The transmitting element, is additionally operable to be asked according to second media transmission, j-th of media fragment that code check is second code check is sent to the downstream node.
With reference to fourth aspect and above-mentioned possible implementation, in the 6th kind of possible implementation of fourth aspect, the processing unit, it is additionally operable to before the receiving unit receives the first media transmission request that downstream node is sent, controls the server to set up HTTP http session with the downstream node and be connected;
The receiving unit, is additionally operable to receive the push function enable message that the downstream node is sent, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the downstream node.
With reference to fourth aspect and above-mentioned possible implementation, in the 7th kind of possible implementation of fourth aspect, the downstream node is user equipment;Or, the downstream node is HTTP dynamic self-adapting stream DASH agent entitys.
There is provided a kind of user equipment in terms of the 5th of the embodiment of the present invention, including:
Transmitting element, for sending the request of the first media transmission to server, carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the first media transmission request;
Receiving unit, for receiving i-th of media fragment that the code check that the server is sent is the first code check;
The receiving unit, the code check for being additionally operable to receive the server transmission is described first The i+1 media fragment of code check;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
With reference to the 5th aspect, in the first possible implementation of the 5th aspect, the user equipment, in addition to:
Processing unit, for before the transmitting element sends the request of the first media transmission to server, accessing the local cache of the user equipment, and does not find i-th of media fragment in the local cache of the user equipment.
With reference to the 5th aspect or the first possible implementation of the 5th aspect, in second of possible implementation of the 5th aspect, the user equipment, in addition to:
Broadcast unit, after in the code check that the receiving unit reception server is sent for i-th of media fragment of the first code check, plays i-th of media fragment that code check is first code check;
The processing unit, it is additionally operable to after the code check that the receiving unit receives the server transmission is the i+1 media fragment of first code check, the local cache of the user equipment is accessed, and finds in the local cache of the user equipment i+1 media fragment that code check is first code check;
The broadcast unit, is additionally operable to play the i+1 media fragment that code check is first code check.
With reference to the 5th aspect and above-mentioned possible implementation, in the third possible implementation of the 5th aspect, the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
With reference to the 5th aspect and above-mentioned possible implementation, in the 4th kind of possible implementation of the 5th aspect, if 1≤i < N-1, the then receiving unit, it is additionally operable to after the code check that the reception server is sent is the i+1 media fragment of first code check, receives the i-th+2 media fragments of the code check of the server transmission for first code check.
With reference to the 5th aspect and above-mentioned possible implementation, in the 5th kind of possible implementation of the 5th aspect, the processing unit is additionally operable to access the local of the user equipment Caching, and j-th of media fragment that code check is the second code check is not found in the local cache of the user equipment, 1≤j≤N, j is positive integer, and second code check is different from first code check;
The transmitting element, it is additionally operable to send the request of the second media transmission to the server, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment, and the code check that second code rate information is used to indicate the media fragment of request is second code check;
The receiving unit, is additionally operable to receive j-th media fragment of the code check of the server transmission for second code check;
The broadcast unit, is additionally operable to play j-th of media fragment that code check is second code check.
With reference to the 5th aspect and above-mentioned possible implementation, in the 6th kind of possible implementation of the 5th aspect, the processing unit, it is additionally operable to before the transmitting element sends the request of the first media transmission to server, controls the user equipment to set up HTTP http session with the server and be connected;
The transmitting element, is additionally operable to send push function enable message to the server, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the user equipment.
There is provided a kind of HTTP dynamic self-adapting stream DASH agent entitys in terms of the 6th of the embodiment of the present invention, including:
Receiving unit, the first media transmission request for receiving user equipment transmission, first segment information is carried in the first media transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
Transmitting element, if having i-th of media fragment for the DASH agent entitys to be uncached, sends first media transmission to server and asks;
The receiving unit, is additionally operable to receive i-th media fragment of the code check of the server transmission for the first code check;
The transmitting element, is additionally operable to send i-th of media fragment that code check is first code check to the user equipment;
The receiving unit, is additionally operable to receive i+1 media fragment of the code check of the server transmission for first code check;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i, N are positive integer.
With reference to the 6th aspect, in the first possible implementation of the 6th aspect, the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
With reference to the 6th aspect or the first possible implementation of the 6th aspect, in second of possible implementation of the 6th aspect, the receiving unit, if being additionally operable to 1≤i < N-1, then after the code check that the reception server is sent is the i+1 media fragment of first code check, the i-th+2 media fragments of the code check of the server transmission for first code check are received.
With reference to the 6th aspect and above-mentioned possible implementation, in the third possible implementation of the 6th aspect, the receiving unit, it is additionally operable to receive the second media transmission request that the user equipment is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, second code check is different from first code check;
The transmitting element, if being additionally operable to, the DASH agent entitys are uncached j-th of media fragment that code check is second code check, and sending second media transmission to the server asks;
The receiving unit, is additionally operable to receive j-th media fragment of the code check of the server transmission for second code check;
The transmitting element, is additionally operable to send j-th of media fragment that code check is second code check to the user equipment.
With reference to the 6th aspect and above-mentioned possible implementation, in the 4th kind of possible implementation of the 6th aspect, the DASH agent entitys, in addition to:
Processing unit, for receiving the first media that user equipment is sent in the receiving unit Transmit before request, the control DASH agent entitys are set up HTTP http session with the user equipment and are connected, and control the DASH agent entitys to set up http session with the server and be connected;
The transmitting element, is additionally operable to send push function enable message to the server, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the DASH agent entitys.
There is provided a kind of server in terms of the 7th of the embodiment of the present invention, including:
Receiver, the first media transmission request for receiving downstream node transmission carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the first media transmission request;
Transmitter, for being asked according to first media transmission, i-th of media fragment that code check is the first code check is sent to the downstream node;
The transmitter, is additionally operable to send the i+1 media fragment that code check is first code check to the downstream node;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
With reference to the 7th aspect, in the first possible implementation of the 7th aspect, the server, in addition to:
Processor, for the playing duration according to i-th of media fragment, determined for the first moment, at the time of first moment is the transmission i+1 media fragment;
The transmitter, specifically for sending the i+1 media fragment that code check is first code check to the downstream node at first moment.
With reference to the 7th aspect or the first possible implementation of the 7th aspect, in second of possible implementation of the 7th aspect, the processor, it is additionally operable to before the transmitter sends code check to the downstream node for i-th of media fragment of first code check, first code check is determined according to pre-defined strategy.
With reference to the 7th aspect or the first possible implementation of the 7th aspect, in the third possible implementation of the 7th aspect, the first code rate information is also carried in the first media transmission request, first code rate information is used to indicate that the code check of the media fragment of request to be First code check;
The processor, is additionally operable to before the transmitter sends code check to the downstream node for i-th of media fragment of first code check, first code check is determined according to first code rate information.
With reference to the 7th aspect and above-mentioned possible implementation, in the 4th kind of possible implementation of the 7th aspect, if 1≤i < N-1, the then transmitter, it is additionally operable to after code check is sent to the downstream node for the i+1 media fragment of first code check, the i-th+2 media fragments that code check is first code check is sent to the downstream node.
With reference to the 7th aspect and above-mentioned possible implementation, in the 5th kind of possible implementation of the 7th aspect, the receiver, it is additionally operable to receive the second media transmission request that the downstream node is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, second code check is different from first code check;
The transmitter, is additionally operable to be asked according to second media transmission, j-th of media fragment that code check is second code check is sent to the downstream node.
With reference to the 7th aspect and above-mentioned possible implementation, in the 6th kind of possible implementation of the 7th aspect, the processor, it is additionally operable to before the receiver receives the first media transmission request that downstream node is sent, controls the server to set up HTTP http session with the downstream node and be connected;
The receiver, is additionally operable to receive the push function enable message that the downstream node is sent, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the downstream node.
With reference to the 7th aspect and above-mentioned possible implementation, in the 7th kind of possible implementation of the 7th aspect, the downstream node is user equipment;Or, the downstream node is HTTP dynamic self-adapting stream DASH agent entitys.
The eighth aspect of the embodiment of the present invention there is provided a kind of user equipment, including:
Transmitter, for sending the request of the first media transmission, first media to server First segment information is carried in transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
Receiver, for receiving i-th of media fragment that the code check that the server is sent is the first code check;
The receiver, is additionally operable to receive i+1 media fragment of the code check of the server transmission for first code check;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
With reference to eighth aspect, in the first possible implementation of eighth aspect, the user equipment, in addition to:
Processor, for before the transmitter sends the request of the first media transmission to server, accessing the local cache of the user equipment, and does not find i-th of media fragment in the local cache of the user equipment.
With reference to the first possible implementation of eighth aspect or eighth aspect, in second of possible implementation of eighth aspect, the user equipment, in addition to:
Player, after in the code check that the receiver reception server is sent for i-th of media fragment of the first code check, plays i-th of media fragment that code check is first code check;
The processor, it is additionally operable to after the code check that the receiver receives the server transmission is the i+1 media fragment of first code check, the local cache of the user equipment is accessed, and finds in the local cache of the user equipment i+1 media fragment that code check is first code check;
The player, is additionally operable to play the i+1 media fragment that code check is first code check.
With reference to eighth aspect and above-mentioned possible implementation, in the third possible implementation of eighth aspect, the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
With reference to eighth aspect and above-mentioned possible implementation, the 4th kind in eighth aspect can In the implementation of energy, if 1≤i < N-1, then the receiver, is additionally operable to after the code check that the reception server is sent is the i+1 media fragment of first code check, receives the i-th+2 media fragments of the code check of the server transmission for first code check.
With reference to eighth aspect and above-mentioned possible implementation, in the 5th kind of possible implementation of eighth aspect, the processor, it is additionally operable to access the local cache of the user equipment, and j-th of media fragment that code check is the second code check is not found in the local cache of the user equipment, 1≤j≤N, j are positive integer, and second code check is different from first code check;
The transmitter, it is additionally operable to send the request of the second media transmission to the server, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment, and the code check that second code rate information is used to indicate the media fragment of request is second code check;
The receiver, is additionally operable to receive j-th media fragment of the code check of the server transmission for second code check;
The player, is additionally operable to play j-th of media fragment that code check is second code check.
With reference to eighth aspect and above-mentioned possible implementation, in the 6th kind of possible implementation of eighth aspect, the processor, it is additionally operable to before the transmitter sends the request of the first media transmission to server, controls the user equipment to set up HTTP http session with the server and be connected;
The transmitter, is additionally operable to send push function enable message to the server, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the user equipment.
There is provided a kind of HTTP dynamic self-adapting stream DASH agent entitys in terms of the 9th of the embodiment of the present invention, including:
Receiver, the first media transmission request for receiving user equipment transmission carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the first media transmission request;
Transmitter, if having i-th of media for the DASH agent entitys to be uncached Fragment, then send first media transmission to server and ask;
The receiver, is additionally operable to receive i-th media fragment of the code check of the server transmission for the first code check;
The transmitter, is additionally operable to send i-th of media fragment that code check is first code check to the user equipment;
The receiver, is additionally operable to receive i+1 media fragment of the code check of the server transmission for first code check;
Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i, N are positive integer.
With reference to the 9th aspect, in the first possible implementation of the 9th aspect, the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
With reference to the 9th aspect or the first possible implementation of the 9th aspect, in second of possible implementation of the 9th aspect, the receiver, if being additionally operable to 1≤i < N-1, then after the code check that the reception server is sent is the i+1 media fragment of first code check, the i-th+2 media fragments of the code check of the server transmission for first code check are received.
With reference to the 9th aspect and above-mentioned possible implementation, in the third possible implementation of the 9th aspect, the receiver, it is additionally operable to receive the second media transmission request that the user equipment is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, second code check is different from first code check;
The transmitter, if being additionally operable to, the DASH agent entitys are uncached j-th of media fragment that code check is second code check, and sending second media transmission to the server asks;
The receiver, is additionally operable to receive j-th media fragment of the code check of the server transmission for second code check;
The transmitter, is additionally operable to send j-th of media fragment that code check is second code check to the user equipment.
With reference to the 9th aspect and above-mentioned possible implementation, in the 4th kind of possible implementation of the 9th aspect, the DASH agent entitys, in addition to:
Processor, for before the receiver receives the first media transmission request that user equipment is sent, control the DASH agent entitys to set up HTTP http session with the user equipment to be connected, and control the DASH agent entitys to set up http session with the server to be connected;
The transmitter, is additionally operable to send push function enable message to the server, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the DASH agent entitys.
Media stream transmission method and device provided in an embodiment of the present invention, because server is asked according to the first media transmission, after code check is sent to downstream node for i-th of media fragment of the first code check, the i+1 media fragment that code check is the first code check is sent to downstream node, request without waiting downstream node, therefore, the wait time delay during downstream node in the prior art obtains the i+1 media fragment that code check is the first code check can be reduced, the real-time that downstream node obtains media stream file can be improved.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which downstream node repeatedly sends request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of media stream transmission method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another media stream transmission method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another media stream transmission method provided in an embodiment of the present invention;
Fig. 4 is the flow chart of another media stream transmission method provided in an embodiment of the present invention;
Fig. 5 is the flow chart of another media stream transmission method provided in an embodiment of the present invention;
Fig. 6 is a kind of composition schematic diagram of server provided in an embodiment of the present invention;
Fig. 7 is the composition schematic diagram of another server provided in an embodiment of the present invention;
Fig. 8 is a kind of composition schematic diagram of user equipment provided in an embodiment of the present invention;
Fig. 9 is the composition schematic diagram of another user equipment provided in an embodiment of the present invention;
Figure 10 is the composition schematic diagram of another user equipment provided in an embodiment of the present invention;
Figure 11 is a kind of composition schematic diagram of DASH agent entitys provided in an embodiment of the present invention;
Figure 12 is the composition schematic diagram of another DASH agent entitys provided in an embodiment of the present invention;
Figure 13 is the composition schematic diagram of another server provided in an embodiment of the present invention;
Figure 14 is the composition schematic diagram of another server provided in an embodiment of the present invention;
Figure 15 is the composition schematic diagram of another user equipment provided in an embodiment of the present invention;
Figure 16 is the composition schematic diagram of another user equipment provided in an embodiment of the present invention;
Figure 17 is the composition schematic diagram of another user equipment provided in an embodiment of the present invention;
Figure 18 is the composition schematic diagram of another DASH agent entitys provided in an embodiment of the present invention;
Figure 19 is the composition schematic diagram of another DASH agent entitys provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
The embodiment of the present invention is applied in DASH technologies, use DASH technologies, media stream file waiting for transmission (including video file and audio file etc.) multiple continuous media fragments are divided into, for each media fragment, server provides the version of multiple different code checks For user equipment selection.
Server herein, for the server of all media fragments for the media stream file waiting for transmission that is stored with.
User equipment herein, can be mobile phone, personal computer (English:Personal computer, abbreviation:PC), notebook computer, tablet personal computer etc..
The present embodiment is the angle from server, and a kind of media stream transmission method provided in an embodiment of the present invention is illustrated.As shown in figure 1, media stream transmission method provided in an embodiment of the present invention includes:
S101, server receive the first media transmission request that downstream node is sent.
Wherein, downstream node is specially the network node positioned at the downstream of server, and with caching capabilities.Downstream node can be user equipment, or, downstream node can be DASH agent entitys.
First segment information is carried in the request of first media transmission, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.Media stream file waiting for transmission can be video file or audio file etc..
Exemplary, it is assumed that media stream file waiting for transmission is the video file that a playing duration is 1 minute.It regard the video pictures of every 6 seconds as a media fragment, the video file can be divided into the media fragment that 10 continuous, playing duration is 6 seconds, i.e. the 1st media fragment includes the video pictures of the 0th second to the 6th second of the video file, 2nd media fragment includes the video pictures of the 6th second to the 12nd second of the video file, the video pictures of 12nd second to 18th second of the 3rd media fragment comprising the video file etc..It is of course also possible to which the video file is divided into the unequal N number of continuous media file of playing duration, as long as the content of the video pictures of this N number of media fragment is continuous, the embodiment of the present invention is not limited this.
S102, server are asked according to the first media transmission, and i-th of media fragment that code check is the first code check is sent to downstream node.
Wherein, the first code check is what server was determined, and server can determine the first code check according to pre-defined strategy, it would however also be possible to employ other modes determine the first code check, and the present invention is real Apply example and determine that the mode of the first code check is not limited here pair.Pre-defined strategy includes:The current load situation of server and the corresponding relation of code check, the corresponding relation of current network congestion and code check, user equipment user type (such as, Gold Subscriber, Silver Subscriber, Bronze Subscriber etc.) with the corresponding relation of code check etc., the embodiment of the present invention is not specifically limited to pre-defined strategy here.
S103, server send the i+1 media fragment that code check is the first code check to downstream node.
Wherein, i+1 media fragment is and the continuous media fragment of i-th of media fragment.
Generally, the code check of the media fragment for the media stream file transmitted within a certain period of time keeps constant, and therefore, the code check for the i+1 media fragment that server is sent to downstream node is identical with the code check of i-th of media fragment, is the first code check.
Exemplary, it is assumed that i is 1, and the first code check is 500kbps (kilobit is per second), then after server sends the 1st media fragment that code check is 500kbps to downstream node, the 2nd media fragment that code check is 500kbps is also sent to downstream node.Certainly, after the 2nd media fragment that server sends that code check is 500kbps to downstream node, it is 500kbps the 3rd media fragment, the 4th media fragment etc. that server, which can also continue to send code check to downstream node,.
Media stream transmission method provided in an embodiment of the present invention, because server is asked according to the first media transmission, after code check is sent to downstream node for i-th of media fragment of the first code check, the i+1 media fragment that code check is the first code check is sent to downstream node, request without waiting downstream node, therefore, the wait time delay during downstream node in the prior art obtains the i+1 media fragment that code check is the first code check can be reduced, the real-time that downstream node obtains media stream file can be improved.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which downstream node repeatedly sends request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
The present embodiment is the angle from user equipment, and a kind of media stream transmission method provided in an embodiment of the present invention is illustrated.As shown in Fig. 2 media stream transmission method provided in an embodiment of the present invention includes:
S201, user equipment send the request of the first media transmission to server.
Wherein, first segment information is carried in the request of the first media transmission, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission.Media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
The code check that S202, user equipment the reception server are sent is i-th of media fragment of the first code check.
The code check that S203, user equipment the reception server are sent is the i+1 media fragment of the first code check.
Media stream transmission method provided in an embodiment of the present invention, due to user equipment the reception server send code check for the first code check i-th of media fragment after, without being asked again to server, just i+1 media fragment of the code check that can be sent using the reception server as the first code check, therefore, the wait time delay during user equipment in the prior art obtains the i+1 media fragment that code check is the first code check can be reduced, the real-time that user equipment obtains media stream file can be improved.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which user equipment repeatedly sends request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
The present embodiment is the angle from DASH agent entitys, and a kind of media stream transmission method provided in an embodiment of the present invention is illustrated.As shown in figure 3, media stream transmission method provided in an embodiment of the present invention includes:
S301, DASH agent entity receive the first media transmission request that user equipment is sent.
Wherein, first segment information is carried in the request of the first media transmission, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission.Media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
If S302, DASH agent entity are uncached i-th of media fragment, DASH agent entitys send the first media transmission to server and asked.
Wherein, if DASH agent entitys are not in advance to requested i-th of the media fragment of server, DASH agent entitys will not be cached with i-th of media fragment.
The code check that S303, DASH agent entity the reception server are sent is i-th of media fragment of the first code check, and sends i-th of media fragment that code check is the first code check to user equipment.
The code check that S304, DASH agent entity the reception server are sent is the i+1 media fragment of the first code check.
Wherein, DASH agent entitys are after the code check that the reception server is sent is i-th of media fragment of the first code check, without asking the i+1 media fragment that code check is the first code check, i+1 media fragment of the code check that just can be sent using the reception server as the first code check to server.When user equipment requests code check is the i+1 media fragment of the first code check, DASH agent entitys cache code check for the i+1 media fragment of the first code check, therefore, DASH agent entitys can send the i+1 media fragment that code check is the first code check to user equipment.
Media stream transmission method provided in an embodiment of the present invention, due to DASH agent entitys the reception server send code check for the first code check i-th of media fragment after, without being asked again to server, just i+1 media fragment of the code check that can be sent using the reception server as the first code check, it is thereby possible to reduce the wait time delay during DASH agent entitys obtain the i+1 media fragment that code check is the first code check in the prior art.When it is the i+1 media fragment of the first code check that user equipment, which needs acquisition code check, because DASH agent entitys have cached the i+1 media fragment that code check is the first code check, therefore, wait time delay during user equipment obtains the i+1 media fragment that code check is the first code check is also reduced, so as to improve the real-time that user equipment obtains media stream file.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which DASH agent entitys repeatedly send request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
The present embodiment is the angle interacted from server and user equipment, and a kind of media stream transmission method provided in an embodiment of the present invention is illustrated.As shown in figure 4, media stream transmission method provided in an embodiment of the present invention includes:
S401, server and user equipment set up HTTP (English:HyperText Transfer Protocol, abbreviation:HTTP) session connection.
Wherein, the particular content of http session may be referred to associated description of the prior art, The embodiment of the present invention is repeated no more here.
S402, user equipment send push function to server and enable message.
Wherein, push (PUSH) function and enable the continuous media fragment that message is used to indicate the same media stream file that server sends same code rate to user equipment, the media transmission request message that i.e. server is sent without waiting for user equipment, directly actively sends the continuous media fragment of the same media stream file of same code rate to user equipment.
Exemplary, the form that push function enables message can be:
SETTINGS_ENABLE_PUSH=1.
S403, server send media exhibition description (English to user equipment:Media Presentation Description, abbreviation:MPD) file.
Wherein, MPD file is used for the storage format for indicating each media fragment of media stream file waiting for transmission.After user equipment obtains MPD file, user equipment can ask media fragment to server as needed.The specific descriptions of MPD file may be referred to associated description of the prior art, and the embodiment of the present invention is repeated no more here.
S404, user equipment access user equipment local cache, i-th of media fragment is not found in the local cache of user equipment.
Wherein, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.If not having i-th of media fragment in the local cache of user equipment, user equipment needs to ask i-th of media fragment to server.
S405, user equipment send the request of the first media transmission to server.
Wherein, first segment information is carried in the request of the first media transmission, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission.
Specifically, first segment information can be the mark of i-th of media fragment, represented with ID.In the agreements of HTTP 2.0, if i-th media fragment is designated ID, i+1 media fragment is designated ID+2, and i+1 media fragment is designated ID+4.
S406, server are asked according to the first media transmission, and i-th of media fragment that code check is the first code check is sent to user equipment.
Further, in the first situation of the embodiment of the present invention, server determines the first code check according to pre-defined strategy, and it is the of the first code check to send code check to user equipment I media fragment.Pre-defined strategy includes:The current load situation of server and the corresponding relation of code check, the corresponding relation of current network congestion and code check, user equipment user type (such as, Gold Subscriber, Silver Subscriber, Bronze Subscriber etc.) with the corresponding relation of code check etc., the embodiment of the present invention is not specifically limited to pre-defined strategy here.
Further, in the second case of the embodiment of the present invention, the first code rate information is also carried in the request of the first media transmission, the code check that the first code rate information is used to indicate the media fragment of request is the first code check.Server determines the first code check according to the first code rate information, and sends i-th of media fragment that code check is the first code check to user equipment.
S407, played code check are i-th of media fragment of the first code check.
S408, server send the i+1 media fragment that code check is the first code check to user equipment.
Specifically, S408 can include:S408a and S408b.
S408a, server determined for the first moment, at the time of the first moment is transmission i+1 media fragment according to the playing duration of i-th of media fragment.
Wherein, the first moment can be at the time of playing earlier than or equal to i-th of media fragment.For example, the playing duration of i-th of media fragment is 6 seconds, if the 1st point of server sends i-th of media fragment that code check is the first code check to user equipment in 0 second, the transmission time of i-th of media fragment is not considered, then server can determine for the first moment for the 1st point of any instant between 6 seconds 0 second to the 1st point.
S408b, server send the i+1 media fragment that code check is the first code check to user equipment at the first moment.
S409, user equipment access user equipment local cache, code check is found in the local cache of user equipment and is the i+1 media fragment of the first code check, and plays the i+1 media fragment that code check is the first code check.
S410, server send the i-th+2 media fragments that code check is the first code check to user equipment.
Wherein, during 1≤i < N-1, S410 is only possible to perform.During i=N-1, S410 is not performed.
S411, user equipment access user equipment local cache, j-th of media fragment that code check is the second code check is not found in the local cache of user equipment.
Wherein, 1≤j≤N, j are positive integer, and the second code check is different from the first code check.
For example, the first code check is 500kbps, the second code check is 1000kbps.After user equipment receives the media fragment that several code checks are 500kbps, if detecting current network condition preferably (for example:The quality of the wireless channel of user equipment is more excellent), then can request server send code check be 1000kbps media fragment, to obtain more preferable Consumer's Experience.
S412, user equipment send the request of the second media transmission to server.
Wherein, second segment information and the second code rate information are carried in the request of the second media transmission, second segment information is used to indicate that the media fragment of request is j-th of media fragment, and the code check that the second code rate information is used to indicate the media fragment of request is the second code check.
S413, server are asked according to the second media transmission, and j-th of media fragment that code check is the second code check is sent to user equipment.
Wherein, when server receives the request of the second media transmission, transmitted if still suffering from the media fragment that code check is the first code check, server terminates the transmission for the media fragment that the code check is the first code check.
S414, played code check are j-th of media fragment of the second code check.
It should be noted that after S410, server can also send multiple continuous media fragments that code check is the first code check to user equipment;After S413, server can also send in multiple continuous media fragments that code check is the second code check, the embodiment of the present invention to user equipment and be merely illustrative of, not the number for the continuous media fragment that Limited service device is pushed to user equipment.
Media stream transmission method provided in an embodiment of the present invention, because server is asked according to the first media transmission, after code check being sent to user equipment for i-th of media fragment of the first code check, the i+1 media fragment that code check is the first code check is sent to user equipment, request without waiting user equipment, therefore, the wait time delay during user equipment in the prior art obtains the i+1 media fragment that code check is the first code check can be reduced, the real-time that user equipment obtains media stream file can be improved.If the code check of user equipment requests changes, using the method for the embodiment of the present invention, server can send the media fragment that code check is new code check (the second code check in the code check after change, i.e. the present embodiment) to user equipment.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to user Equipment repeatedly sends media transmission request, compared with the mode of request of the prior art-response message interaction, can mitigate the signaling burden between equipment.
The present embodiment is the angle interacted from server, DASH agent entitys and user equipment, and a kind of media stream transmission method provided in an embodiment of the present invention is illustrated.As shown in figure 5, media stream transmission method provided in an embodiment of the present invention includes:
S501, server and DASH agent entitys set up http session connection, and DASH agent entitys are set up http session with user equipment and are connected.
S502, DASH agent entity send push function to server and enable message.
Wherein, push function enables the continuous media fragment that message is used to indicate the same media stream file that server sends same code rate to DASH agent entitys, the media transmission request message that i.e. server is sent without waiting for DASH agent entitys, directly actively sends the continuous media fragment of the same media stream file of same code rate to DASH agent entitys.
S503, server send MPD file to DASH agent entitys.
S504, DASH agent entity send MPD file to user equipment.
S505, user equipment access user equipment local cache, i-th of media fragment is not found in the local cache of user equipment.
Wherein, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.If not having i-th of media fragment in the local cache of user equipment, user equipment needs to ask i-th of media fragment to server.
S506, user equipment send the request of the first media transmission to DASH agent entitys.
Wherein, first segment information is carried in the request of the first media transmission, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission.
If S507, DASH agent entity are uncached i-th of media fragment, DASH agent entitys send the first media transmission to server and asked.
S508, server are asked according to the first media transmission, and i-th of media fragment that code check is the first code check is sent to DASH agent entitys.
Further, in the first situation of the embodiment of the present invention, server determines the first code check according to pre-defined strategy, and sends i-th of media fragment that code check is the first code check to DASH agent entitys.
Further, in the second case of the embodiment of the present invention, the first code rate information is also carried in the request of the first media transmission, the code check that the first code rate information is used to indicate the media fragment of request is the first code check.Server determines the first code check according to the first code rate information, and sends i-th of media fragment that code check is the first code check to DASH agent entitys.
S509, DASH agent entity send i-th of media fragment that code check is the first code check to user equipment.
S510, played code check are i-th of media fragment of the first code check.
S511, server send the i+1 media fragment that code check is the first code check to DASH agent entitys.
Specifically, S511 can include:S511a and S511b.
S511a, server determined for the first moment, at the time of the first moment is transmission i+1 media fragment according to the playing duration of i-th of media fragment.
Wherein, the first moment can be at the time of playing earlier than or equal to i-th of media fragment.For example, the playing duration of i-th of media fragment is 6 seconds, if the 1st point of server sends i-th of media fragment that code check is the first code check to DASH agent entitys in 0 second, the transmission time of i-th of media fragment is not considered, then server can determine for the first moment for the 1st point of any instant between 6 seconds 0 second to the 1st point.
S511b, server send the i+1 media fragment that code check is the first code check to DASH agent entitys at the first moment.
S512, user equipment ask the i+1 media fragment that code check is the first code check to DASH agent entitys.
S513, DASH agent entity send the i+1 media fragment that code check is the first code check to user equipment.
Because server has sent the i+1 media fragment that code check is the first code check to DASH agent entitys in advance, therefore, when user equipment asks the i+1 media fragment that code check is the first code check to DASH agent entitys, DASH agent entitys can send the i+1 media fragment that the code check cached is the first code check to user equipment, reduce the wait time delay during user equipment in the prior art obtains the i+1 media fragment that code check is the first code check.
S514, played code check are the i+1 media fragment of the first code check.
S515, server send the i-th+2 media fragments that code check is the first code check to DASH agent entitys.
S516, user equipment access user equipment local cache, j-th of media fragment that code check is the second code check is not found in the local cache of user equipment.
Wherein, 1≤j≤N, j are positive integer, and the second code check is different from the first code check.
S517, user equipment send the request of the second media transmission to DASH agent entitys.
Wherein, second segment information and the second code rate information are carried in the request of the second media transmission, second segment information is used to indicate that the media fragment of request is j-th of media fragment, and the code check that the second code rate information is used to indicate the media fragment of request is the second code check.
If S518, DASH agent entity are uncached j-th of media fragment that code check is the second code check, DASH agent entitys send the second media transmission to server and asked.
S519, server are asked according to the second media transmission, and j-th of media fragment that code check is the second code check is sent to DASH agent entitys.
Wherein, when server receives the request of the second media transmission, transmitted if still suffering from the media fragment that code check is the first code check, server terminates the transmission for the media fragment that the code check is the first code check.
S520, DASH agent entity send j-th of media fragment that code check is the second code check to user equipment.
S521, played code check are j-th of media fragment of the second code check.
It should be noted that after S515, server can also send multiple continuous media fragments that code check is the first code check to DASH agent entitys;After S519, server can also send in multiple continuous media fragments that code check is the second code check, the embodiment of the present invention to DASH agent entitys and be merely illustrative of, not the number for the continuous media fragment that Limited service device is sent to DASH agent entitys.
Media stream transmission method provided in an embodiment of the present invention, because DASH servers send the i+1 media fragment that code check is the first code check to DASH agent entitys in advance, therefore, when user equipment asks the i+1 media fragment that code check is the first code check to DASH agent entitys, it is first that DASH agent entitys can send the code check cached to user equipment The i+1 media fragment of code check, reduces the wait time delay during user equipment in the prior art obtains the i+1 media fragment that code check is the first code check, can improve the real-time that user equipment obtains media stream file.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which DASH agent entitys repeatedly send media transmission request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
The embodiment of the present invention provides a kind of server, as shown in fig. 6, including:Receiving unit 61 and transmitting element 62.
Receiving unit 61, the first media transmission request for receiving downstream node transmission carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the request of the first media transmission.
Transmitting element 62, for being asked according to the first media transmission, sends i-th of media fragment that code check is the first code check to downstream node.
Transmitting element 62, is additionally operable to send the i+1 media fragment that code check is the first code check to downstream node.
Wherein, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
Further, as shown in fig. 7, the server in the embodiment of the present invention also includes:Processing unit 63.
Processing unit 63, for the playing duration according to i-th of media fragment, determined for the first moment, at the time of the first moment is transmission i+1 media fragment.
Transmitting element 62, specifically for sending the i+1 media fragment that code check is the first code check to downstream node at the first moment.
Optionally, processing unit 63, are additionally operable to before i-th of media fragment that transmitting element 62 sends that code check is the first code check to downstream node, and the first code check is determined according to pre-defined strategy.
Optionally, the first code rate information is also carried in the request of the first media transmission, the code check that the first code rate information is used to indicate the media fragment of request is the first code check.
Processing unit 63, it is the to be additionally operable to send code check to downstream node in transmitting element 62 Before i-th of media fragment of one code check, the first code check is determined according to the first code rate information.
Further, if 1≤i < N-1, transmitting element 62, it is additionally operable to after code check is sent to downstream node for the i+1 media fragment of the first code check, the i-th+2 media fragments that code check is the first code check is sent to downstream node.
Further, receiving unit 61, it is additionally operable to receive the second media transmission request that downstream node is sent, second segment information and the second code rate information are carried in the request of second media transmission, the media fragment that second segment information is used to indicate request is j-th of media fragment of media stream file waiting for transmission, and 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and the second code check is different from the first code check.
Transmitting element 62, is additionally operable to be asked according to the second media transmission, j-th of media fragment that code check is the second code check is sent to downstream node.
Further, processing unit 63, are additionally operable to before receiving unit 61 receives the first media transmission request that downstream node is sent, control server is set up http session with downstream node and is connected.
Receiving unit 61, is additionally operable to receive the push function enable message that downstream node is sent, push function, which enables message, to be used to indicate that server sends the continuous media fragment of the same media stream file of same code rate to downstream node.
Optionally, downstream node is user equipment;Or, downstream node is DASH agent entitys.
It should be noted that the specific descriptions of part functional module may be referred to the corresponding content in embodiment of the method in server provided in an embodiment of the present invention, the present embodiment is no longer described in detail here.
Server provided in an embodiment of the present invention, because server is asked according to the first media transmission, after code check is sent to downstream node for i-th of media fragment of the first code check, the i+1 media fragment that code check is the first code check is sent to downstream node, request without waiting downstream node, therefore, the wait time delay during downstream node in the prior art obtains the i+1 media fragment that code check is the first code check can be reduced, the real-time that downstream node obtains media stream file can be improved.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which downstream node repeatedly sends request, and of the prior art The mode of request-response message interaction is compared, and can mitigate the signaling burden between equipment.
The embodiment of the present invention also provides a kind of user equipment, as shown in figure 8, including:Transmitting element 71 and receiving unit 72.
Transmitting element 71, for sending the request of the first media transmission to server, carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the request of the first media transmission.
Receiving unit 72, for i-th of media fragment that the code check that the reception server is sent is the first code check.
Receiving unit 72, the code check for being additionally operable to the reception server transmission is the i+1 media fragment of the first code check.
Wherein, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
Further, as shown in figure 9, the user equipment in the embodiment of the present invention also includes:Processing unit 73.
Processing unit 73, for before transmitting element 71 sends the request of the first media transmission to server, accessing the local cache of user equipment, and does not find i-th of media fragment in the local cache of user equipment.
Further, as shown in Figure 10, the user equipment in the embodiment of the present invention also includes:Broadcast unit 74.
Broadcast unit 74, after in the code check that the reception server of receiving unit 72 is sent for i-th of media fragment of the first code check, plays i-th of media fragment that code check is the first code check.
Processing unit 73, it is additionally operable to after the code check that the reception server of receiving unit 72 is sent is the i+1 media fragment of the first code check, the local cache of user equipment is accessed, and finds in the local cache of user equipment the i+1 media fragment that code check is the first code check.
Broadcast unit 74, is additionally operable to play the i+1 media fragment that code check is the first code check.
Further, the first code rate information is also carried in the request of the first media transmission, the code check that the first code rate information is used to indicate the media fragment of request is the first code check.
Further, if 1≤i < N-1, receiving unit 72, it is additionally operable to after the code check that the reception server is sent is the i+1 media fragment of the first code check, the code check that the reception server is sent is the i-th+2 media fragments of the first code check.
Further, processing unit 73, are additionally operable to access the local cache of user equipment, and do not find j-th of media fragment that code check is the second code check in the local cache of user equipment, and 1≤j≤N, j is positive integer, and the second code check is different from the first code check.
Transmitting element 71, it is additionally operable to send the request of the second media transmission to server, second segment information and the second code rate information are carried in the request of second media transmission, second segment information is used to indicate that the media fragment of request is j-th of media fragment, and the code check that the second code rate information is used to indicate the media fragment of request is the second code check.
Receiving unit 72, the code check for being additionally operable to the reception server transmission is j-th of media fragment of the second code check.
Broadcast unit 74, is additionally operable to play j-th of media fragment that code check is the second code check.
Further, processing unit 73, are additionally operable to before transmitting element 71 sends the request of the first media transmission to server, and control user equipment is set up http session with server and is connected.
Transmitting element 71, is additionally operable to send push function enable message to server, push function enables the continuous media fragment that message is used to indicate the same media stream file that server sends same code rate to user equipment.
It should be noted that the specific descriptions of part functional module may be referred to the corresponding content in embodiment of the method in user equipment provided in an embodiment of the present invention, the present embodiment is no longer described in detail here.
User equipment provided in an embodiment of the present invention, due to user equipment the reception server send code check for the first code check i-th of media fragment after, without being asked again to server, just i+1 media fragment of the code check that can be sent using the reception server as the first code check, therefore, the wait time delay during user equipment in the prior art obtains the i+1 media fragment that code check is the first code check can be reduced, the real-time that user equipment obtains media stream file can be improved.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which user equipment repeatedly sends request, is interacted with request-response message of the prior art Mode compare, the signaling burden between equipment can be mitigated.
The embodiment of the present invention also provides a kind of DASH agent entitys, as shown in figure 11, including:Receiving unit 81 and transmitting element 82.
Receiving unit 81, the first media transmission request for receiving user equipment transmission carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the request of the first media transmission.
Transmitting element 82, if having i-th of media fragment for DASH agent entitys to be uncached, the request of the first media transmission is sent to server.
Receiving unit 81, the code check for being additionally operable to the reception server transmission is i-th of media fragment of the first code check.
Transmitting element 82, is additionally operable to send i-th of media fragment that code check is the first code check to user equipment.
Receiving unit 81, the code check for being additionally operable to the reception server transmission is the i+1 media fragment of the first code check.
Wherein, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i, N are positive integer.
Further, the first code rate information is also carried in the request of the first media transmission, the code check that the first code rate information is used to indicate the media fragment of request is the first code check.
Further, receiving unit 81, if being additionally operable to 1≤i < N-1, after the code check that the reception server is sent is the i+1 media fragment of the first code check, the code check that the reception server is sent is the i-th+2 media fragments of the first code check.
Further, receiving unit 81, it is additionally operable to receive the second media transmission request that user equipment is sent, second segment information and the second code rate information are carried in the request of second media transmission, the media fragment that second segment information is used to indicate request is j-th of media fragment of media stream file waiting for transmission, and 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and the second code check is different from the first code check.
Transmitting element 82, if being additionally operable to, DASH agent entitys are uncached j-th of media fragment that code check is the second code check, and the request of the second media transmission is sent to server.
Receiving unit 81, the code check for being additionally operable to the reception server transmission is the jth of the second code check Individual media fragment.
Transmitting element 82, is additionally operable to send j-th of media fragment that code check is the second code check to user equipment.
Further, as shown in figure 12, the DASH agent entitys in the embodiment of the present invention also include:Processing unit 83.
Processing unit 83, for before receiving unit 81 receives the first media transmission request that user equipment is sent, controlling DASH agent entitys to set up http session with user equipment and being connected, and control DASH agent entitys to set up http session with server to be connected.
Transmitting element 82, is additionally operable to send push function enable message to server, push function enables the continuous media fragment that message is used to indicate the same media stream file that server sends same code rate to DASH agent entitys.
It should be noted that the specific descriptions of part functional module may be referred to the corresponding content in embodiment of the method in DASH agent entitys provided in an embodiment of the present invention, the present embodiment is no longer described in detail here.
DASH agent entitys provided in an embodiment of the present invention, due to DASH agent entitys the reception server send code check for the first code check i-th of media fragment after, without being asked again to server, just i+1 media fragment of the code check that can be sent using the reception server as the first code check, it is thereby possible to reduce the wait time delay during DASH agent entitys obtain the i+1 media fragment that code check is the first code check in the prior art.When it is the i+1 media fragment of the first code check that user equipment, which needs acquisition code check, because DASH agent entitys have cached the i+1 media fragment that code check is the first code check, therefore, wait time delay during user equipment obtains the i+1 media fragment that code check is the first code check is also reduced, so as to improve the real-time that user equipment obtains media stream file.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which DASH agent entitys repeatedly send request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
The embodiment of the present invention also provides a kind of server, as shown in figure 13, including:Receiver 91 and transmitter 92.
Receiver 91, the first media transmission request for receiving downstream node transmission, first First segment information is carried in media transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission.
Transmitter 92, for being asked according to the first media transmission, sends i-th of media fragment that code check is the first code check to downstream node.
Transmitter 92, is additionally operable to send the i+1 media fragment that code check is the first code check to downstream node.
Wherein, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
Further, as shown in figure 14, the server in the embodiment of the present invention also includes:Processor 93.
Processor 93, for the playing duration according to i-th of media fragment, determined for the first moment, at the time of the first moment is transmission i+1 media fragment.
Transmitter 92, specifically for sending the i+1 media fragment that code check is the first code check to downstream node at the first moment.
Optionally, processor 93, are additionally operable to before i-th of media fragment that transmitter 92 sends that code check is the first code check to downstream node, and the first code check is determined according to pre-defined strategy.
Optionally, the first code rate information is also carried in the request of the first media transmission, the code check that the first code rate information is used to indicate the media fragment of request is the first code check.
Processor 93, is additionally operable to before i-th of media fragment that transmitter 92 sends that code check is the first code check to downstream node, the first code check is determined according to the first code rate information.
Further, if 1≤i < N-1, transmitter 92, it is additionally operable to after code check is sent to downstream node for the i+1 media fragment of the first code check, the i-th+2 media fragments that code check is the first code check is sent to downstream node.
Further, receiver 91, it is additionally operable to receive the second media transmission request that downstream node is sent, second segment information and the second code rate information are carried in the request of second media transmission, the media fragment that second segment information is used to indicate request is j-th of media fragment of media stream file waiting for transmission, and 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and the second code check is different from the first code check.
Transmitter 92, is additionally operable to be asked according to the second media transmission, j-th of media fragment that code check is the second code check is sent to downstream node.
Further, processor 93, are additionally operable to before receiver 91 receives the first media transmission request that downstream node is sent, control server is set up http session with downstream node and is connected.
Receiver 91, is additionally operable to receive the push function enable message that downstream node is sent, push function, which enables message, to be used to indicate that server sends the continuous media fragment of the same media stream file of same code rate to downstream node.
Optionally, downstream node is user equipment;Or, downstream node is DASH agent entitys.
It should be noted that the specific descriptions of part functional module may be referred to the corresponding content in embodiment of the method in server provided in an embodiment of the present invention, the present embodiment is no longer described in detail here.
Server provided in an embodiment of the present invention, because server is asked according to the first media transmission, after code check is sent to downstream node for i-th of media fragment of the first code check, the i+1 media fragment that code check is the first code check is sent to downstream node, request without waiting downstream node, therefore, the wait time delay during downstream node in the prior art obtains the i+1 media fragment that code check is the first code check can be reduced, the real-time that downstream node obtains media stream file can be improved.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which downstream node repeatedly sends request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
The embodiment of the present invention also provides a kind of user equipment, as shown in figure 15, including:Transmitter A1 and receiver A2.
Transmitter A1, for sending the request of the first media transmission to server, carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the request of the first media transmission.
Receiver A2, for i-th of media fragment that the code check that the reception server is sent is the first code check.
Receiver A2, the code check for being additionally operable to the reception server transmission is the i+1 of the first code check Individual media fragment.
Wherein, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
Further, as shown in figure 16, the user equipment in the embodiment of the present invention also includes:Processor A3.
Processor A3, for before transmitter A1 sends the request of the first media transmission to server, accessing the local cache of user equipment, and does not find i-th of media fragment in the local cache of user equipment.
Further, as shown in figure 17, the user equipment in the embodiment of the present invention also includes:Player A4.
Player A4, after in the code check that receiver A2 the reception servers are sent for i-th of media fragment of the first code check, plays i-th of media fragment that code check is the first code check.
Processor A3, it is additionally operable to after the code check that receiver A2 the reception servers are sent is the i+1 media fragment of the first code check, the local cache of user equipment is accessed, and finds in the local cache of user equipment the i+1 media fragment that code check is the first code check.
Player A4, is additionally operable to play the i+1 media fragment that code check is the first code check.
Further, the first code rate information is also carried in the request of the first media transmission, the code check that the first code rate information is used to indicate the media fragment of request is the first code check.
Further, if 1≤i < N-1, receiver A2, it is additionally operable to after the code check that the reception server is sent is the i+1 media fragment of the first code check, the code check that the reception server is sent is the i-th+2 media fragments of the first code check.
Further, processor A3, is additionally operable to access the local cache of user equipment, and does not find j-th of media fragment that code check is the second code check in the local cache of user equipment, and 1≤j≤N, j is positive integer, and the second code check is different from the first code check.
Transmitter A1, it is additionally operable to send the request of the second media transmission to server, second segment information and the second code rate information are carried in the request of second media transmission, second segment information is used to indicate that the media fragment of request is j-th of media fragment, and the code check that the second code rate information is used to indicate the media fragment of request is the second code check.
Receiver A2, the code check for being additionally operable to the reception server transmission is j-th of the second code check Media fragment.
Player A4, is additionally operable to play j-th of media fragment that code check is the second code check.
Further, processor A3, is additionally operable to before transmitter A1 sends the request of the first media transmission to server, and control user equipment is set up http session with server and is connected.
Transmitter A1, is additionally operable to send push function enable message to server, push function enables the continuous media fragment that message is used to indicate the same media stream file that server sends same code rate to user equipment.
It should be noted that the specific descriptions of part functional module may be referred to the corresponding content in embodiment of the method in user equipment provided in an embodiment of the present invention, the present embodiment is no longer described in detail here.
User equipment provided in an embodiment of the present invention, due to user equipment the reception server send code check for the first code check i-th of media fragment after, without being asked again to server, just i+1 media fragment of the code check that can be sent using the reception server as the first code check, therefore, the wait time delay during user equipment in the prior art obtains the i+1 media fragment that code check is the first code check can be reduced, the real-time that user equipment obtains media stream file can be improved.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which user equipment repeatedly sends request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
The embodiment of the present invention also provides a kind of DASH agent entitys, as shown in figure 18, including:Receiver B1 and transmitter B2.
Receiver B1, the first media transmission request for receiving user equipment transmission carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the request of the first media transmission.
Transmitter B2, if having i-th of media fragment for DASH agent entitys to be uncached, the request of the first media transmission is sent to server.
Receiver B1, the code check for being additionally operable to the reception server transmission is i-th of media fragment of the first code check.
Transmitter B2, is additionally operable to send i-th of media fragment that code check is the first code check to user equipment.
Receiver B1, the code check for being additionally operable to the reception server transmission is the i+1 media fragment of the first code check.
Wherein, media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i, N are positive integer.
Further, the first code rate information is also carried in the request of the first media transmission, the code check that the first code rate information is used to indicate the media fragment of request is the first code check.
Further, receiver B1, if being additionally operable to 1≤i < N-1, after the code check that the reception server is sent is the i+1 media fragment of the first code check, the code check that the reception server is sent is the i-th+2 media fragments of the first code check.
Further, receiver B1, it is additionally operable to receive the second media transmission request that user equipment is sent, second segment information and the second code rate information are carried in the request of second media transmission, the media fragment that second segment information is used to indicate request is j-th of media fragment of media stream file waiting for transmission, and 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and the second code check is different from the first code check.
Transmitter B2, if being additionally operable to, DASH agent entitys are uncached j-th of media fragment that code check is the second code check, and the request of the second media transmission is sent to server.
Receiver B1, the code check for being additionally operable to the reception server transmission is j-th of media fragment of the second code check.
Transmitter B2, is additionally operable to send j-th of media fragment that code check is the second code check to user equipment.
Further, as shown in figure 19, the DASH agent entitys in the embodiment of the present invention also include:Processor B3.
Processor B3, for before receiver B1 receives the first media transmission request that user equipment is sent, controlling DASH agent entitys to set up http session with user equipment and being connected, and control DASH agent entitys to set up http session with server to be connected.
Transmitter B2, is additionally operable to send push function enable message to server, push function enables the continuous media fragment that message is used to indicate the same media stream file that server sends same code rate to DASH agent entitys.
It should be noted that part work(in DASH agent entitys provided in an embodiment of the present invention The specific descriptions of energy module may be referred to the corresponding content in embodiment of the method, and the present embodiment is no longer described in detail here.
DASH agent entitys provided in an embodiment of the present invention, due to DASH agent entitys the reception server send code check for the first code check i-th of media fragment after, without being asked again to server, just i+1 media fragment of the code check that can be sent using the reception server as the first code check, it is thereby possible to reduce the wait time delay during DASH agent entitys obtain the i+1 media fragment that code check is the first code check in the prior art.When it is the i+1 media fragment of the first code check that user equipment, which needs acquisition code check, because DASH agent entitys have cached the i+1 media fragment that code check is the first code check, therefore, wait time delay during user equipment obtains the i+1 media fragment that code check is the first code check is also reduced, so as to improve the real-time that user equipment obtains media stream file.Further, since the method that the embodiment of the present invention is actively sent using server, it is not necessary to which DASH agent entitys repeatedly send request, compared with the mode of request of the prior art-response message interaction, the signaling burden between equipment can be mitigated.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for convenience and simplicity of description, only it is illustrated with the division of above-mentioned each functional module, in practical application, it can as needed and by above-mentioned functions distribute and be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be realized by another way.For example, device embodiment described above is only schematical, for example, the division of the module or unit, it is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.Another, it, by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be electrical, machinery or other forms that shown or discussed coupling or direct-coupling or communication connection each other, which can be,.
The unit illustrated as separating component can be or may not be physically separate, and the part shown as unit can be or may not be physical location, you can with positioned at a place, or can also be distributed on multiple NEs.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in each of the invention embodiment can be integrated in a processing unit or unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or in use, can be stored in a computer read/write memory medium.Understood based on such, the part or all or part of the technical scheme that technical scheme substantially contributes to prior art in other words can be embodied in the form of software product, the computer software product is stored in a storage medium, including some instructions to cause a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (English:Processor all or part of step of each embodiment methods described of the invention) is performed.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (English:Read-Only Memory, abbreviation:ROM), random access memory (English:Random Access Memory, abbreviation:RAM), magnetic disc or CD etc. are various can be with the medium of store program codes.
It is described above; only embodiment of the invention, but protection scope of the present invention is not limited thereto, any one skilled in the art the invention discloses technical scope in; change or replacement can be readily occurred in, should be all included within the scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (40)

  1. A kind of media stream transmission method, it is characterised in that including:
    Server receives the first media transmission request that downstream node is sent, and first segment information is carried in the first media transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
    The server is asked according to first media transmission, and i-th of media fragment that code check is the first code check is sent to the downstream node;
    The server sends the i+1 media fragment that code check is first code check to the downstream node;
    Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
  2. According to the method described in claim 1, it is characterised in that the server to the downstream node send code check be first code check i+1 media fragment, including:
    The server determined for the first moment, at the time of first moment is the transmission i+1 media fragment according to the playing duration of i-th of media fragment;
    The server sends the i+1 media fragment that code check is first code check to the downstream node at first moment.
  3. Method according to claim 1 or 2, it is characterised in that the server is asked according to first media transmission, i-th of media fragment that code check is the first code check is sent to the downstream node, including:
    The server determines first code check according to pre-defined strategy;
    The server sends i-th of media fragment that code check is first code check to the downstream node.
  4. Method according to claim 1 or 2, it is characterised in that the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check;
    The server is asked according to first media transmission, and i-th of media fragment that code check is the first code check is sent to the downstream node, including:
    The server determines first code check according to first code rate information;
    The server sends i-th of media fragment that code check is first code check to the downstream node.
  5. Method according to any one of claim 1-4, it is characterised in that if 1≤i < N-1, after the server sends code check to the downstream node for the i+1 media fragment of first code check, methods described also includes:
    The server sends the i-th+2 media fragments that code check is first code check to the downstream node.
  6. Method according to any one of claim 1-5, it is characterised in that methods described also includes:
    The server receives the second media transmission request that the downstream node is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and second code check is different from first code check;
    The server is asked according to second media transmission, and j-th of media fragment that code check is second code check is sent to the downstream node.
  7. Method according to any one of claim 1-6, it is characterised in that before the server receives the first media transmission request that downstream node is sent, methods described also includes:
    The server is set up HTTP http session with the downstream node and is connected;
    The server receives the push function enable message that the downstream node is sent, and the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the downstream node.
  8. Method according to any one of claim 1-7, it is characterised in that the downstream node is user equipment;Or, the downstream node is HTTP dynamic self-adapting stream DASH agent entitys.
  9. A kind of media stream transmission method, it is characterised in that including:
    User equipment sends the request of the first media transmission to server, and first media transmission please First segment information of middle carrying is sought, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
    The code check that the user equipment receives the server transmission is i-th of media fragment of the first code check;
    The code check that the user equipment receives the server transmission is the i+1 media fragment of first code check;
    Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
  10. Method according to claim 9, it is characterised in that before the user equipment sends the request of the first media transmission to server, methods described also includes:
    The local cache of user equipment described in the user equipment access, i-th of media fragment is not found in the local cache of the user equipment.
  11. Method according to claim 9 or 10, it is characterised in that after the code check that the user equipment receives the server transmission is i-th of media fragment of the first code check, methods described also includes:
    The played code check is i-th of media fragment of first code check;
    After the code check that the user equipment receives the server transmission is the i+1 media fragment of first code check, methods described also includes:
    The local cache of user equipment described in the user equipment access, code check is found in the local cache of the user equipment and is the i+1 media fragment of first code check, and plays the i+1 media fragment that code check is first code check.
  12. Method according to any one of claim 9-11, it is characterised in that the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
  13. Method according to any one of claim 9-12, it is characterised in that if 1≤i < N-1, after the code check that the user equipment receives the server transmission is the i+1 media fragment of first code check, methods described also includes:
    The code check that the user equipment receives the server transmission is the i-th+2 media fragments of first code check.
  14. Method according to any one of claim 9-13, it is characterised in that methods described also includes:
    The local cache of user equipment described in the user equipment access, j-th of media fragment that code check is the second code check is not found, 1≤j≤N, j is positive integer, and second code check is different from first code check in the local cache of the user equipment;
    The user equipment sends the request of the second media transmission to the server, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment, and the code check that second code rate information is used to indicate the media fragment of request is second code check;
    The code check that the user equipment receives the server transmission is j-th of media fragment of second code check, and plays j-th of media fragment that code check is second code check.
  15. Method according to any one of claim 9-14, it is characterised in that before the user equipment sends the request of the first media transmission to server, methods described also includes:
    The user equipment is set up HTTP http session with the server and is connected;
    The user equipment sends push function to the server and enables message, and the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the user equipment.
  16. A kind of media stream transmission method, it is characterised in that including:
    HTTP dynamic self-adapting stream DASH agent entitys receive the first media transmission request that user equipment is sent, first segment information is carried in the first media transmission request, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission;
    If the DASH agent entitys are uncached i-th of media fragment, the DASH agent entitys send first media transmission to server and asked;
    The code check that the DASH agent entitys receive the server transmission is i-th of media fragment of the first code check, and it is first code check to send code check to the user equipment I-th of media fragment;
    The code check that the DASH agent entitys receive the server transmission is the i+1 media fragment of first code check;
    Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i, N are positive integer.
  17. Method according to claim 16, it is characterised in that the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
  18. Method according to claim 16 or 17, it is characterised in that if 1≤i < N-1, after the code check that the DASH agent entitys receive the server transmission is the i+1 media fragment of first code check, methods described also includes:
    The code check that the DASH agent entitys receive the server transmission is the i-th+2 media fragments of first code check.
  19. Method according to any one of claim 16-18, it is characterised in that methods described also includes:
    The DASH agent entitys receive the second media transmission request that the user equipment is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and second code check is different from first code check;
    If the DASH agent entitys are uncached j-th of media fragment that code check is second code check, the DASH agent entitys send second media transmission to the server and asked;
    The code check that the DASH agent entitys receive the server transmission is j-th of media fragment of second code check, and sends j-th of media fragment that code check is second code check to the user equipment.
  20. Method according to any one of claim 16-19, it is characterised in that before the DASH agent entitys receive the first media transmission request that user equipment is sent, institute Stating method also includes:
    The DASH agent entitys are set up HTTP http session with the user equipment and are connected, and the DASH agent entitys are set up http session with the server and are connected;
    The DASH agent entitys send push function to the server and enable message, and the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the DASH agent entitys.
  21. A kind of server, it is characterised in that including:
    Receiver, the first media transmission request for receiving downstream node transmission carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the first media transmission request;
    Transmitter, for being asked according to first media transmission, i-th of media fragment that code check is the first code check is sent to the downstream node;
    The transmitter, is additionally operable to send the i+1 media fragment that code check is first code check to the downstream node;
    Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
  22. Server according to claim 21, it is characterised in that the server, in addition to:
    Processor, for the playing duration according to i-th of media fragment, determined for the first moment, at the time of first moment is the transmission i+1 media fragment;
    The transmitter, specifically for sending the i+1 media fragment that code check is first code check to the downstream node at first moment.
  23. Server according to claim 21 or 22, it is characterized in that, the processor, is additionally operable to before the transmitter sends code check to the downstream node for i-th of media fragment of first code check, first code check is determined according to pre-defined strategy.
  24. Server according to claim 21 or 22, it is characterised in that the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check;
    The processor, it is institute to be additionally operable to send code check to the downstream node in the transmitter Before i-th of the media fragment for stating the first code check, first code check is determined according to first code rate information.
  25. Server according to any one of claim 21-24, it is characterized in that, if 1≤i < N-1, the then transmitter, it is additionally operable to after code check is sent to the downstream node for the i+1 media fragment of first code check, the i-th+2 media fragments that code check is first code check is sent to the downstream node.
  26. Server according to any one of claim 21-25, it is characterized in that, the receiver, it is additionally operable to receive the second media transmission request that the downstream node is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, and second code check is different from first code check;
    The transmitter, is additionally operable to be asked according to second media transmission, j-th of media fragment that code check is second code check is sent to the downstream node.
  27. Server according to any one of claim 21-26, it is characterized in that, the processor, is additionally operable to before the receiver receives the first media transmission request that downstream node is sent, controls the server to set up HTTP http session with the downstream node and be connected;
    The receiver, is additionally operable to receive the push function enable message that the downstream node is sent, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the downstream node.
  28. Server according to any one of claim 21-27, it is characterised in that the downstream node is user equipment;Or, the downstream node is HTTP dynamic self-adapting stream DASH agent entitys.
  29. A kind of user equipment, it is characterised in that including:
    Transmitter, for sending the request of the first media transmission to server, carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the first media transmission request;
    Receiver, is described the i-th of the first code check for receiving the code check that the server is sent Individual media fragment;
    The receiver, is additionally operable to receive i+1 media fragment of the code check of the server transmission for first code check;
    Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i and N are positive integer.
  30. User equipment according to claim 29, it is characterised in that the user equipment, in addition to:
    Processor, for before the transmitter sends the request of the first media transmission to server, accessing the local cache of the user equipment, and does not find i-th of media fragment in the local cache of the user equipment.
  31. User equipment according to claim 29 or 30, it is characterised in that the user equipment, in addition to:
    Player, after in the code check that the receiver reception server is sent for i-th of media fragment of the first code check, plays i-th of media fragment that code check is first code check;
    The processor, it is additionally operable to after the code check that the receiver receives the server transmission is the i+1 media fragment of first code check, the local cache of the user equipment is accessed, and finds in the local cache of the user equipment i+1 media fragment that code check is first code check;
    The player, is additionally operable to play the i+1 media fragment that code check is first code check.
  32. User equipment according to any one of claim 29-31, it is characterised in that the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
  33. User equipment according to any one of claim 29-32, it is characterized in that, if 1≤i < N-1, the then receiver, it is additionally operable to after the code check that the reception server is sent is the i+1 media fragment of first code check, receives the i-th+2 media fragments of the code check of the server transmission for first code check.
  34. User equipment according to any one of claim 29-33, it is characterised in that The processor, is additionally operable to access the local cache of the user equipment, and does not find j-th of media fragment that code check is the second code check in the local cache of the user equipment, and 1≤j≤N, j is positive integer, and second code check is different from first code check;
    The transmitter, it is additionally operable to send the request of the second media transmission to the server, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment, and the code check that second code rate information is used to indicate the media fragment of request is second code check;
    The receiver, is additionally operable to receive j-th media fragment of the code check of the server transmission for second code check;
    The player, is additionally operable to play j-th of media fragment that code check is second code check.
  35. User equipment according to any one of claim 29-34, it is characterized in that, the processor, is additionally operable to before the transmitter sends the request of the first media transmission to server, controls the user equipment to set up HTTP http session with the server and is connected;
    The transmitter, is additionally operable to send push function enable message to the server, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the user equipment.
  36. A kind of HTTP dynamic self-adapting stream DASH agent entitys, it is characterised in that including:
    Receiver, the first media transmission request for receiving user equipment transmission carries first segment information, the media fragment that first segment information is used to indicate request is i-th of media fragment of media stream file waiting for transmission in the first media transmission request;
    Transmitter, if having i-th of media fragment for the DASH agent entitys to be uncached, sends first media transmission to server and asks;
    The receiver, is additionally operable to receive i-th media fragment of the code check of the server transmission for the first code check;
    The transmitter, is additionally operable to send i-th of media fragment that code check is first code check to the user equipment;
    The receiver, is additionally operable to receive i+1 media fragment of the code check of the server transmission for first code check;
    Wherein, the media stream file waiting for transmission is divided into N number of continuous media fragment, and 1≤i < N, i, N are positive integer.
  37. DASH agent entitys according to claim 36, it is characterised in that the first code rate information is also carried in the first media transmission request, the code check that first code rate information is used to indicate the media fragment of request is first code check.
  38. DASH agent entitys according to claim 36 or 37, it is characterized in that, the receiver, if being additionally operable to 1≤i < N-1, then after the code check that the reception server is sent is the i+1 media fragment of first code check, the i-th+2 media fragments of the code check of the server transmission for first code check are received.
  39. DASH agent entitys according to any one of claim 36-38, it is characterized in that, the receiver, it is additionally operable to receive the second media transmission request that the user equipment is sent, second segment information and the second code rate information are carried in the second media transmission request, the media fragment that second segment information is used to indicate request is j-th of media fragment of the media stream file waiting for transmission, 1≤j≤N, j is positive integer, the code check that second code rate information is used to indicate the media fragment of request is the second code check, second code check is different from first code check;
    The transmitter, if being additionally operable to, the DASH agent entitys are uncached j-th of media fragment that code check is second code check, and sending second media transmission to the server asks;
    The receiver, is additionally operable to receive j-th media fragment of the code check of the server transmission for second code check;
    The transmitter, is additionally operable to send j-th of media fragment that code check is second code check to the user equipment.
  40. DASH agent entitys according to any one of claim 36-39, it is characterised in that the DASH agent entitys, in addition to:
    Processor, for before the receiver receives the first media transmission request that user equipment is sent, controlling the DASH agent entitys to set up Hyper text transfer association with the user equipment Http session connection is discussed, and controls the DASH agent entitys to set up http session with the server and is connected;
    The transmitter, is additionally operable to send push function enable message to the server, the push function enables the continuous media fragment that message is used to indicate the same media stream file that the server sends same code rate to the DASH agent entitys.
CN201580026048.2A 2015-04-30 2015-04-30 A kind of media stream transmission method and device Active CN106464985B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/078125 WO2016172967A1 (en) 2015-04-30 2015-04-30 Media stream transmission method and device

Publications (2)

Publication Number Publication Date
CN106464985A true CN106464985A (en) 2017-02-22
CN106464985B CN106464985B (en) 2019-04-12

Family

ID=57198045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201580026048.2A Active CN106464985B (en) 2015-04-30 2015-04-30 A kind of media stream transmission method and device

Country Status (2)

Country Link
CN (1) CN106464985B (en)
WO (1) WO2016172967A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545492B (en) * 2018-09-05 2020-07-31 北京开广信息技术有限公司 Real-time delivery method and server of media stream

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103535047A (en) * 2011-05-17 2014-01-22 阿尔卡特朗讯公司 Method for streaming video content, node in a network for monitoring video content streaming
WO2014057896A1 (en) * 2012-10-09 2014-04-17 シャープ株式会社 Content transmission device, content playback device, content distribution system, method for controlling content transmission device, method for controlling content playback device, control program, and recording medium
CN103813185A (en) * 2014-01-26 2014-05-21 中兴通讯股份有限公司 Method, server and client for quickly distributing segmented programs
CN103974147A (en) * 2014-03-07 2014-08-06 北京邮电大学 MPEG (moving picture experts group)-DASH protocol based online video playing control system with code rate switch control and static abstract technology
CN104270646A (en) * 2014-09-22 2015-01-07 何震宇 Self-adaption transmission method and system based on mobile streaming media
CN104429090A (en) * 2012-07-10 2015-03-18 夏普株式会社 Content transmission device, content playback device, content delivery system, control method for content transmission device, control method for content playback device, data structure, control program, and recording medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103535047A (en) * 2011-05-17 2014-01-22 阿尔卡特朗讯公司 Method for streaming video content, node in a network for monitoring video content streaming
CN104429090A (en) * 2012-07-10 2015-03-18 夏普株式会社 Content transmission device, content playback device, content delivery system, control method for content transmission device, control method for content playback device, data structure, control program, and recording medium
WO2014057896A1 (en) * 2012-10-09 2014-04-17 シャープ株式会社 Content transmission device, content playback device, content distribution system, method for controlling content transmission device, method for controlling content playback device, control program, and recording medium
CN103813185A (en) * 2014-01-26 2014-05-21 中兴通讯股份有限公司 Method, server and client for quickly distributing segmented programs
CN103974147A (en) * 2014-03-07 2014-08-06 北京邮电大学 MPEG (moving picture experts group)-DASH protocol based online video playing control system with code rate switch control and static abstract technology
CN104270646A (en) * 2014-09-22 2015-01-07 何震宇 Self-adaption transmission method and system based on mobile streaming media

Also Published As

Publication number Publication date
CN106464985B (en) 2019-04-12
WO2016172967A1 (en) 2016-11-03

Similar Documents

Publication Publication Date Title
US9979771B2 (en) Adaptive variable fidelity media distribution system and method
CN107743698B (en) Method and apparatus for multi-path media delivery
US9124674B2 (en) Systems and methods for connection pooling for video streaming in content delivery networks
CN106688239B (en) Method for downloading video, apparatus and system
CN110636339B (en) Scheduling method and device based on code rate and electronic equipment
CN108063769B (en) Method and device for realizing content service and content distribution network node
CN104219286B (en) streaming media processing method, device, client, CDN node server and terminal
EP2904757B1 (en) Throttling a media stream for transmission via a radio access network
US10320872B2 (en) Method and apparatus for transmitting and receiving media segments using adaptive streaming
AU2020257112B2 (en) Distribution of bandwidth in a network
WO2015142752A1 (en) Transport accelerator implementing a multiple interface architecture
CN104170315B (en) For the method and video gateway of bandwidth allocation
CN108494702B (en) Transmission control method and apparatus, storage medium, and electronic apparatus
CN106416198A (en) Method and apparatus for DASH streaming using HTTP streaming
Nguyen et al. An adaptive streaming method of 360 videos over HTTP/2 protocol
CN105991469B (en) Dynamic time window and caching mechanism under a kind of heterogeneous network transmission
CN106464985A (en) Media stream transmission method and device
US20140161125A1 (en) Method, duplication point device, and system for data flow reuse transmission
KR20200018493A (en) Methods and apparatuses for streaming data
WO2019070020A1 (en) Data communication device, communication system, data communication method, and program
WO2017071524A1 (en) Multimedia resource publishing method and apparatus
CN103634332B (en) A kind of flow-medium transmission method based on P2P, Apparatus and system
TW201542013A (en) Method for obtaining network information by a client terminal configured for receiving a multimedia content divided into segments
TW201532427A (en) Method for obtaining network information by a client terminal configured for receiving a multimedia content divided into segments
KR102088294B1 (en) Method for delivering adaptive media based on received status information from media client and apparatus using thereof

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