CN110519656A - Playback method, system and the server of adaptive stream media - Google Patents
Playback method, system and the server of adaptive stream media Download PDFInfo
- Publication number
- CN110519656A CN110519656A CN201810492891.5A CN201810492891A CN110519656A CN 110519656 A CN110519656 A CN 110519656A CN 201810492891 A CN201810492891 A CN 201810492891A CN 110519656 A CN110519656 A CN 110519656A
- Authority
- CN
- China
- Prior art keywords
- file
- media
- media slicing
- url
- address
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses the playback method of adaptive stream media, system and servers, it is related to field of communication technology, method therein includes: to carry out conversion process to the media slicing index file of client request, the address media slicing file original URL in media slicing index file is replaced with the new address URL of media slicing file;The character length of the address media slicing file original URL is greater than the character length of the new address URL of media slicing file;Media slicing index file after progress conversion process is sent to client;Client is based on media slicing index file downloads of media slicing files and plays out.Method, system and server of the invention can substantially shorten fragment URL address size, reduce storage and bandwidth that index file occupies, improve system performance and efficiency;Client, which needs to redirect, could access the original address URL, can hide the true address URL of fragment content, improve the safety of access to content.
Description
Technical field
The present invention relates to the playback method of field of communication technology more particularly to adaptive stream media, system and servers.
Background technique
Adaptive stream media technology is a kind of emerging stream media technology, the Http Live proposed with Apple Inc.
Streaming (abbreviation HLS) is representative, can preferably adapt to various network environments.HLS program generally comprises the video of multiple code rates
Content, wherein the video content of every kind of code rate usually has hundreds of fragment ts files and corresponding m3u8 index description file,
M3u8 index file has recorded the information such as duration, filename, the address URL of each fragment ts file.User terminal downloads m3u8
It is parsed after index file, the fragment content of code rate is corresponded to according to Network status Real time request.One typical HLS program knot
Test.m3u8 is level-one index to structure example as shown in Figure 1:, and describing this program includes two kinds of codes of 200000bps, 787444bps
The address URL of rate and corresponding secondary index index.m3u8.The code rate is contained in secondary index index.m3u8
Burst information, #EXTINF represent fragment duration 10 seconds.
Currently, the address fragment URL is longer, including domain name (hls.com), catalogue (20160802/gear1/), filename
The information, usually more than 50 characters or even 100 characters such as the verification of (001.ts, 002.ts ... 999.ts) and door chain
More than, a HLS program generally comprises hundreds of or even thousands of a fragments, and cause index.m3u8 index file volume larger,
Memory space and network bandwidth are wasted, also, the transmission of fragment URL address-transparent does not encrypt, there are Information Securities such as the
Tripartite illegally steals the hidden danger such as chain.
Summary of the invention
In view of this, the invention solves a technical problem be to provide the playback method of adaptive stream media, system
And server.
According to an aspect of the present invention, a kind of playback method of adaptive stream media is provided, comprising: be based on preset turn
It changes rule and conversion process is carried out to the media slicing index file of client request, to will be in the media slicing index file
The address media slicing file original URL replace with the new address URL of media slicing file;Wherein, the media slicing file original URL
The character length of address is greater than the character length of the new address URL of the media slicing file;Described in carrying out after conversion process
Media slicing index file is sent to client;Client is based on the media slicing index file downloads of media slicing files simultaneously
It plays out.
Optionally, described to be carried out at conversion based on media slicing index file of the preset transformation rule to client request
Reason includes: according to preset transfer algorithm that the media slicing file original URL address conversion is new for the media slicing file
The address URL;The mapping established between the new address URL of the media slicing file and the address the media slicing file original URL is closed
System.
Optionally, the media slicing index file is m3u8 file, and the media slicing is HLS slice, the basis
The media slicing file original URL address conversion is that the new address URL of the media slicing file includes: by preset transfer algorithm
To the address URL of level-one m3u8 file without conversion process;The media slicing file extracted in the second level m3u8 file is former
The address URL;According to the transfer algorithm by this media slicing file original URL address conversion be the media slicing with regular length
The new address URL of file;In the second level m3u8 file, corresponding matchmaker is replaced using the new address URL of this media slicing file
The address body slicing files original URL.
Optionally, the downloads of media for carrying the new address URL of the media slicing file point of client transmission is received
Piece request;Media slicing file original URL corresponding with the new address URL of this media slicing file is obtained according to the mapping relations
Address;The downloads of media fragment request is redirected to the address this media slicing file original URL so that client downloads and this
The corresponding media slicing in the address media slicing file original URL.
Optionally, described the downloads of media fragment request is redirected to the address this media slicing file original URL to include:
Response message corresponding with the downloads of media fragment request is sent to client;Wherein, the response message carries weight
Orient status code and the address the media slicing file original URL.
Optionally, client receives second level m3u8 file, and the media slicing file is obtained from second level m3u8 file
The new address URL, generates the downloads of media fragment request for carrying the new address URL of the media slicing file;Client's termination
The response message corresponding with the downloads of media fragment request is received, media slicing text is obtained from the response message
The address part original URL according to media slicing file original URL address downloads of media slicing files and plays out.
Optionally, client obtains the last one described new address URL of media slicing file, In from second level m3u8 file
After downloading downloads of media slicing files corresponding with the new address URL of media slicing file described in the last one and playing out,
This second level m3u8 file is deleted.
Optionally, the transfer algorithm includes: hash algorithm;The response message is http protocol message, described to reset
It include: 301 to status code.
According to another aspect of the present invention, a kind of streaming media server is provided, comprising: conversion processing module, for being based on
Preset transformation rule carries out conversion process to the media slicing index file of client request, to by the media slicing rope
The address media slicing file original URL in quotation part replaces with the new address URL of media slicing file;Wherein, the media slicing
The character length of the address file original URL is greater than the character length of the new address URL of the media slicing file;Index issues module,
For the media slicing index file after progress conversion process to be sent to client;Wherein, client is based on the matchmaker
Body fragment index file downloads of media slicing files simultaneously play out.
Optionally, the conversion processing module, for according to preset transfer algorithm by the media slicing file original URL
Address conversion is the new address URL of the media slicing file;Establish the new address URL of the media slicing file and the media point
Mapping relations between the address piece file original URL.
Optionally, the media slicing index file is m3u8 file, and the media slicing is HLS slice;The conversion
Processing module is also used to the address URL of level-one m3u8 file without conversion process;It extracts in the second level m3u8 file
The address media slicing file original URL, according to the transfer algorithm by this media slicing file original URL address conversion for fixation
The new address URL of the media slicing file of length;In the second level m3u8 file, the new address URL of this media slicing file is used
Replace the address corresponding media slicing file original URL.
Optionally, the index issues module, comprising: request reception unit, for receiving carrying for client transmission
The downloads of media fragment request of the new address URL of media slicing file;Unit is redirected, for obtaining according to the mapping relations
Take the address media slicing file original URL corresponding with the new address URL of this media slicing file;The downloads of media fragment is asked
It asks and is redirected to the address this media slicing file original URL, so that client downloads are opposite with this media slicing file address original URL
The media slicing answered.
Optionally, the redirection unit, it is corresponding with the downloads of media fragment request for being sent to client
Response message;Wherein, the response message, which carries, redirects status code and the address the media slicing file original URL.
Optionally, client receives the second level m3u8 file that the index issues module transmission, from second level m3u8 file
It is middle to obtain the new address URL of media slicing file, generate the downloading for carrying the new address URL of the media slicing file
Media slicing request;Client receives the index and issues the corresponding with the downloads of media fragment request of module transmission
The response message obtains the address media slicing file original URL from the response message, former according to the media slicing file
The address URL downloads of media slicing files simultaneously play out.
Optionally, client obtains the last one described new address URL of media slicing file, In from second level m3u8 file
After downloading downloads of media slicing files corresponding with the new address URL of media slicing file described in the last one and playing out,
This second level m3u8 file is deleted.
Optionally, the transfer algorithm includes: hash algorithm;The response message is http protocol message, described to reset
It include: 301 to status code.
According to another aspect of the invention, a kind of play system of Streaming Media, including Streaming Media as described above clothes are provided
Business device.
According to another aspect of the invention, a kind of streaming media server is provided, wherein include: memory;And it is coupled to
The processor of the memory, the processor is configured to the instruction based on storage in the memory, executes institute as above
The method stated.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium is provided, computer program is stored thereon with
The step of instruction, which realizes method as described above when being executed by one or more processors.
Playback method, system and the server of adaptive stream media of the invention, to the media slicing of client request
Index file carries out conversion process, and the address media slicing file original URL in media slicing index file is replaced with length and is subtracted
The new address URL of small media slicing file can substantially shorten fragment URL address size, reduce the storage that index file occupies
And bandwidth, improve system performance and efficiency;Client, which needs to redirect, could access the original address URL, can hide in fragment
Hold the true address URL, improves the safety of access to content.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only
Some embodiments of the present invention, for those of ordinary skill in the art, without any creative labor, also
Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is the schematic diagram of level-one m3u8 file in the prior art and second level m3u8 file;
Fig. 2A is the flow diagram of one embodiment of the playback method of adaptive stream media according to the present invention;
Fig. 2 B is in one embodiment of the playback method of adaptive stream media according to the present invention to m3u8 index text
Part converted before and after contrast schematic diagram;
Fig. 3 is the information exchange signal of another embodiment of the playback method of adaptive stream media according to the present invention
Figure;
Fig. 4 is the module diagram of one embodiment of streaming media server according to the present invention;
Fig. 5 is the module signal of the index acquisition module in one embodiment of streaming media server according to the present invention
Figure;
Fig. 6 is the module diagram of another embodiment of streaming media server according to the present invention.
Specific embodiment
With reference to the accompanying drawings to invention is more fully described, wherein illustrating exemplary embodiment of the present invention.Under
Face will combine the attached drawing in the embodiment of the present invention, and technical scheme in the embodiment of the invention is clearly and completely described, show
So, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Based on the reality in the present invention
Example is applied, every other embodiment obtained by those of ordinary skill in the art without making creative efforts all belongs to
In the scope of protection of the invention.Various descriptions are carried out to technical solution of the present invention below with reference to each figure and embodiment.
Fig. 2A is the flow diagram of one embodiment of the playback method of adaptive stream media according to the present invention, is such as schemed
Shown in 2A:
Step 201, conversion process is carried out based on media slicing index file of the preset transformation rule to client request,
The address media slicing file original URL in media slicing index file is replaced with the new address URL of media slicing file.Matchmaker
The character length of the address body slicing files original URL is greater than the character length of the new address URL of media slicing file;
Client can be mobile phone, PC, ipad etc..Media slicing index file can be existing a plurality of types of media
Fragment index file, such as media slicing are HLS format, and media slicing index file is the index file of m3u8 format.
Step 202, the media slicing index file after progress conversion process is sent to client.
Step 203, client is based on media slicing index file downloads of media slicing files and plays out.
Preset transformation rule can there are many.For example, by media slicing file original URL according to preset transfer algorithm
Location is converted to the new address URL of media slicing file, with establishing the new address URL of media slicing file and media slicing file original URL
Mapping relations between location.Transfer algorithm can be hash algorithm etc., for example, the hash algorithm (such as MD5) by open source will
The original long link URL address of cache of fragment in index.m3u8 index file is short link URL address, updates m3u8 index text
Part, as shown in Figure 2 B.It can be by long link and short link one-to-one mapping relationship writing system database, when client request is short
When link, client is redirected to original long connection by 301 protocol responses of HTTP and completes fragment request by server end.
In one embodiment, media slicing index file is m3u8 file, and media slicing is HLS slice, to level-one
The address URL of m3u8 file is without conversion process.Since the level-one index file (test.m3u8) of HLS program only includes two
The code rate and URL of grade index do not include burst information, file very little, therefore keep intact for level-one index, for including sea
The secondary index file (index.m3u8) of amount burst information optimizes.Extract the media slicing file in second level m3u8 file
The former address URL, it is according to transfer algorithm that this media slicing file original URL address conversion is literary for the media slicing with regular length
The new address URL of part.In second level m3u8 file, corresponding media slicing is replaced using the new address URL of this media slicing file
The address file original URL.
The downloads of media fragment request for carrying the new address URL of media slicing file for receiving client transmission, according to
Mapping relations obtain the address media slicing file original URL corresponding with the new address URL of this media slicing file.By downloads of media
Fragment request is redirected to the address this media slicing file original URL, so that client downloads and this media slicing file original URL
The corresponding media slicing in location.
Downloads of media fragment request is redirected to the address this media slicing file original URL can be there are many method.For example,
Response message corresponding with downloads of media fragment request is sent to client, response message, which carries, redirects status code and matchmaker
The address body slicing files original URL.Response message is HTTP message, and redirecting status code includes: 301 etc..Client has obtained one
A HTTP 301 is responded, and the media slicing file original URL to return from server feedback can be revised as in the address of request automatically
Address, response message are cacheable.
Client receives second level m3u8 file, and the new address URL of media slicing file is obtained from second level m3u8 file, raw
At the downloads of media fragment request for carrying the new address URL of media slicing file.Client is received asks with downloads of media fragment
Corresponding response message is sought, the address media slicing file original URL is obtained from response message, it is former according to media slicing file
The address URL downloads of media slicing files simultaneously play out.
Client requests short link URL address, and server end passes through 301 protocol responses of HTTP for client
End is redirected to original long link URL address, completes fragment content requests.Client obtains last from second level m3u8 file
Downloads of media corresponding with the new address URL of the last one media slicing file is being downloaded in a new address URL of media slicing file
Slicing files and after playing out, this second level m3u8 file is deleted.
In one embodiment, the secondary index file index.m3u8 index of HLS program is normative text file, not
It encrypts, therefore hash algorithm URL original to each fragment can be used and generate unique short link URL, and be updated.It is not necessarily to
Network and hardware device are changed, only need to carry out simple software development in server end.
Fig. 3 is the information exchange signal of another embodiment of the playback method of adaptive stream media according to the present invention
Figure, as shown in Figure 3: client request secondary index file index.m3u8, server will by hash algorithm after receiving request
The original long link URL string processing of each fragment is short link URL character string, updates the transmission of index.m3u8 index file
To client, mapping relations are written in database.By hash algorithm the binary value of random length can be mapped as compared with
The binary value of short regular length.Client requests first fragment content 001.ts by short link URL, and server passes through
Database Mapping relationship finds corresponding original long link URL, and carries out application layer redirection by 301 protocol responses of HTTP,
Client is gone into original long link URL and obtains fragment content;Client continues through short link URL and requests in second fragment
Hold 002.ts, server continues to retrieve original long link URL, redirect by 301 protocol responses of HTTP, to the last
One fragment 999.ts request is completed.
In one embodiment, the present invention provides a kind of streaming media server 40, comprising: conversion processing module 41 and index
Issue module 42.Conversion processing module 41 is carried out based on media slicing index file of the preset transformation rule to client request
Conversion process is new the address media slicing file original URL in media slicing index file is replaced with media slicing file
The address URL;Wherein, the character length of the address media slicing file original URL is long greater than the character of the new address URL of media slicing file
Degree.Index issues module 42 and the media slicing index file after carrying out conversion process is sent to client;Wherein, client's end group
In media slicing index file downloads of media slicing files and play out.
Media slicing file original URL address conversion is media slicing according to preset transfer algorithm by conversion processing module 41
The mapping relations between the new address URL of media slicing file and the address media slicing file original URL are established in the new address URL of file.
Media slicing index file is m3u8 file, and media slicing is HLS slice.Conversion processing module 42 is to level-one m3u8 file
The address media slicing file original URL in second level m3u8 file is extracted, according to transfer algorithm without conversion process in the address URL
It is the new address URL of media slicing file with regular length by this media slicing file original URL address conversion.Conversion process mould
Block 42 replaces corresponding media slicing file original URL in second level m3u8 file, using the new address URL of this media slicing file
Address.
In one embodiment, as shown in figure 5, it includes: that request reception unit 421 and redirection are single that index, which issues module 42,
Member 422.Request reception unit 421 receives the downloads of media for carrying the new address URL of media slicing file point that client is sent
Piece request.It redirects unit 422 and obtains media slicing corresponding with the new address URL of this media slicing file according to mapping relations
The address file original URL.It redirects unit 422 and downloads of media fragment request is redirected to the address this media slicing file original URL,
So that client downloads media slicing corresponding with this media slicing file address original URL.Unit 422 is redirected to client
Send response message corresponding with downloads of media fragment request;Wherein, response message, which carries, redirects status code and media
The address slicing files original URL.
In one embodiment, client receives the second level m3u8 file that index issues the transmission of module 42, from second level
The new address URL of media slicing file is obtained in m3u8 file, generates the downloads of media for carrying the new address URL of media slicing file
Fragment request.Client receives the response message corresponding with downloads of media fragment request that index issues the transmission of module 42,
The address media slicing file original URL is obtained from response message, according to the address media slicing file original URL downloads of media fragment text
Part simultaneously plays out.Client obtains the new address URL of the last one media slicing file from second level m3u8 file, downloading with
Corresponding downloads of media slicing files in the new address URL of the last one media slicing file and after playing out, by this second level
M3u8 file is deleted.
In one embodiment, the present invention provides a kind of play system of Streaming Media, including in any embodiment as above
Streaming media server.
Fig. 6 is the module diagram according to another embodiment of streaming media server disclosed by the invention.Such as Fig. 6 institute
Show, which may include memory 61, processor 62, communication interface 63 and bus 64.Memory 61 is for depositing
Storage instruction, processor 62 are coupled to memory 61, and the instruction execution that processor 62 is configured as storing based on memory 61 is realized
The playback method of above-mentioned adaptive stream media.
Memory 61 can be high speed RAM memory, nonvolatile memory (NoN-volatile memory) etc., deposit
Reservoir 61 is also possible to memory array.Memory 61 is also possible to by piecemeal, and block can be combined into virtually by certain rule
Volume.Processor 62 can be central processor CPU or application-specific integrated circuit ASIC (Application Specific
Integrated Circuit), or be arranged to implement the one of the playback method of adaptive stream media disclosed by the invention
A or multiple integrated circuits.
In one embodiment, the disclosure also provides a kind of computer readable storage medium, wherein computer-readable storage
Media storage has computer instruction, and the adaptive stream media that any embodiment as above is related to is realized in instruction when being executed by processor
Playback method.It should be understood by those skilled in the art that, embodiment of the disclosure can provide as method, apparatus or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the disclosure
The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the disclosure, which can be used in one or more,
Machine can use the meter implemented in non-transient storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of calculation machine program product.
The disclosure is reference according to the method for the embodiment of the present disclosure, the flow chart of equipment (system) and computer program product
And/or block diagram describes.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructions
And/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer to
Enable the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to generate
One machine so that by the instruction that the processor of computer or other programmable data processing devices executes generate for realizing
The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
So far, the disclosure is described in detail.In order to avoid covering the design of the disclosure, it is public that this field institute is not described
The some details known.Those skilled in the art as described above, completely it can be appreciated how implementing technology disclosed herein
Scheme.
Playback method, system and the server of adaptive stream media in above-described embodiment, to the matchmaker of client request
Body fragment index file carries out conversion process, and the address media slicing file original URL in media slicing index file is replaced with
The new address URL of media slicing file that length reduces can substantially shorten fragment URL address size, reduce index file and occupy
Storage and bandwidth, improve system performance and efficiency;Client, which needs to redirect, could access the original address URL, can hide
The true address URL of fragment content, improves the safety of access to content;And it only need to be simply transformed in server end row.
Method and system of the invention may be achieved in many ways.For example, can by software, hardware, firmware or
Software, hardware, firmware any combination realize method and system of the invention.The said sequence of the step of for method is only
In order to be illustrated, the step of method of the invention, is not limited to sequence described in detail above, especially says unless otherwise
It is bright.In addition, in some embodiments, also the present invention can be embodied as to record program in the recording medium, these programs include
For realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing according to this hair
The recording medium of the program of bright method.
Description of the invention is given for the purpose of illustration and description, and is not exhaustively or will be of the invention
It is limited to disclosed form.Many modifications and variations are obvious for the ordinary skill in the art.It selects and retouches
It states embodiment and is to more preferably illustrate the principle of the present invention and practical application, and those skilled in the art is enable to manage
The solution present invention is to design various embodiments suitable for specific applications with various modifications.
Claims (19)
1. a kind of playback method of adaptive stream media characterized by comprising
Conversion process is carried out to the media slicing index file of client request based on preset transformation rule, to by the matchmaker
The address media slicing file original URL in body fragment index file replaces with the new address URL of media slicing file;Wherein, described
The character length of the address media slicing file original URL is greater than the character length of the new address URL of the media slicing file;
The media slicing index file after progress conversion process is sent to client;
Client is based on the media slicing index file downloads of media slicing files and plays out.
2. the method as described in claim 1, which is characterized in that it is described based on preset transformation rule to the matchmaker of client request
Body fragment index file carries out conversion process
According to preset transfer algorithm by the media slicing file original URL address conversion be the new URL of media slicing file
Address;
Establish the mapping relations between the new address URL of the media slicing file and the address the media slicing file original URL.
3. method according to claim 2, which is characterized in that the media slicing index file is m3u8 file, the matchmaker
Body fragment be HLS slice, it is described according to preset transfer algorithm by the media slicing file original URL address conversion be the matchmaker
The new address URL of body slicing files includes:
To the address URL of level-one m3u8 file without conversion process;
Extract the address media slicing file original URL in the second level m3u8 file;
According to the transfer algorithm by this media slicing file original URL address conversion be the media slicing file with regular length
The new address URL;
In the second level m3u8 file, corresponding media slicing file is replaced using the new address URL of this media slicing file
The former address URL.
4. method as claimed in claim 3, which is characterized in that further include:
Receive the downloads of media fragment request for carrying the new address URL of the media slicing file of client transmission;
With obtaining media slicing file original URL corresponding with the new address URL of this media slicing file according to the mapping relations
Location;
The downloads of media fragment request is redirected to the address this media slicing file original URL so that client downloads and this
The corresponding media slicing in the address media slicing file original URL.
5. method as claimed in claim 4, which is characterized in that described that the downloads of media fragment request is redirected to this matchmaker
The address body slicing files original URL includes:
Response message corresponding with the downloads of media fragment request is sent to client;
Wherein, the response message, which carries, redirects status code and the address the media slicing file original URL.
6. method as claimed in claim 5, which is characterized in that further include:
Client receives second level m3u8 file, and the new address URL of the media slicing file is obtained from second level m3u8 file, raw
At the downloads of media fragment request for carrying the new address URL of the media slicing file;
Client receives the response message corresponding with the downloads of media fragment request, obtains from the response message
The address media slicing file original URL is taken, according to media slicing file original URL address downloads of media slicing files and is broadcast
It puts.
7. method as claimed in claim 5 characterized by comprising
Client obtains the last one described new address URL of media slicing file from second level m3u8 file, in downloading and finally
Corresponding downloads of media slicing files in one new address URL of media slicing file and after playing out, by this second level
M3u8 file is deleted.
8. method as claimed in claim 5, which is characterized in that
The transfer algorithm includes: hash algorithm;
The response message is http protocol message, and the redirection status code includes: 301.
9. a kind of streaming media server characterized by comprising
Conversion processing module, for being converted based on media slicing index file of the preset transformation rule to client request
Processing, it is new the address media slicing file original URL in the media slicing index file is replaced with media slicing file
The address URL;Wherein, the character length of the address the media slicing file original URL is greater than the new address URL of the media slicing file
Character length;
Index issues module, for the media slicing index file after progress conversion process to be sent to client;Wherein,
Client is based on the media slicing index file downloads of media slicing files and plays out.
10. streaming media server as claimed in claim 9, which is characterized in that
The conversion processing module, for being by the media slicing file original URL address conversion according to preset transfer algorithm
The new address URL of media slicing file;It establishes the new address URL of the media slicing file and the media slicing file is former
Mapping relations between the address URL.
11. streaming media server as claimed in claim 11, which is characterized in that the media slicing index file is m3u8 text
Part, the media slicing are HLS slice;
The conversion processing module is also used to the address URL of level-one m3u8 file without conversion process;Extract the second level
The address media slicing file original URL in m3u8 file turns this media slicing file address original URL according to the transfer algorithm
It is changed to the new address URL of media slicing file with regular length;In the second level m3u8 file, this media slicing text is used
Replace the address corresponding media slicing file original URL in the new address URL of part.
12. streaming media server as claimed in claim 11, which is characterized in that
The index issues module, comprising:
Request reception unit, for receiving the downloading matchmaker for carrying the new address URL of the media slicing file of client transmission
Body fragment request;
Unit is redirected, for obtaining media corresponding with the new address URL of this media slicing file according to the mapping relations
The address slicing files original URL;The downloads of media fragment request is redirected to the address this media slicing file original URL, so that
Client downloads media slicing corresponding with this media slicing file address original URL.
13. streaming media server as claimed in claim 12, which is characterized in that
The redirection unit, for sending response message corresponding with the downloads of media fragment request to client;Its
In, the response message, which carries, redirects status code and the address the media slicing file original URL.
14. streaming media server as claimed in claim 13, which is characterized in that
Client receives the second level m3u8 file that the index issues module transmission, from second level
The new address URL of the media slicing file is obtained in m3u8 file, is generated with carrying the new URL of media slicing file
The downloads of media fragment request of location;
Client receives the response corresponding with the downloads of media fragment request that the index issues module transmission
Message obtains the address media slicing file original URL, according to the address the media slicing file original URL from the response message
Downloads of media slicing files simultaneously play out.
15. streaming media server as claimed in claim 13, which is characterized in that
Client obtains the last one described new address URL of media slicing file from second level m3u8 file, in downloading and finally
Corresponding downloads of media slicing files in one new address URL of media slicing file and after playing out, by this second level
M3u8 file is deleted.
16. streaming media server as claimed in claim 13, which is characterized in that
The transfer algorithm includes: hash algorithm;
The response message is http protocol message, and the redirection status code includes: 301.
17. a kind of play system of Streaming Media characterized by comprising
Such as the described in any item streaming media servers of claim 9 to 16.
18. a kind of streaming media server, wherein include:
Memory;And it is coupled to the processor of the memory, the processor is configured to based on the storage is stored in
Instruction in device executes such as method described in any item of the claim 1 to 8.
19. a kind of computer readable storage medium, is stored thereon with computer program instructions, which is handled by one or more
The step of method described in claim 1 to 8 any one is realized when device executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810492891.5A CN110519656B (en) | 2018-05-22 | 2018-05-22 | Self-adaptive streaming media playing method, system and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810492891.5A CN110519656B (en) | 2018-05-22 | 2018-05-22 | Self-adaptive streaming media playing method, system and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110519656A true CN110519656A (en) | 2019-11-29 |
CN110519656B CN110519656B (en) | 2021-11-26 |
Family
ID=68621679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810492891.5A Active CN110519656B (en) | 2018-05-22 | 2018-05-22 | Self-adaptive streaming media playing method, system and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110519656B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113347218A (en) * | 2020-02-18 | 2021-09-03 | 北京沃东天骏信息技术有限公司 | Module downloading method and device |
CN113438513A (en) * | 2021-06-25 | 2021-09-24 | 深圳Tcl新技术有限公司 | Video resolution switching method, device, equipment and storage medium |
US20230224303A1 (en) * | 2022-01-07 | 2023-07-13 | Axis Cyber Security Ltd. | Techniques for providing long uniform resource locators through a secure environment |
US12155667B2 (en) | 2022-01-07 | 2024-11-26 | Hewlett Packard Enterprise Development Lp | Techniques for providing hypertext transfer protocol through a secure environment |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070136279A1 (en) * | 2005-11-29 | 2007-06-14 | Yahoo! Inc. | URL shortening and authentication with reverse hash lookup |
CN102333082A (en) * | 2010-08-23 | 2012-01-25 | 微软公司 | The URL of safety shortens |
CN102810089A (en) * | 2011-05-30 | 2012-12-05 | 盛乐信息技术(上海)有限公司 | Content-based short link system and implementation method |
US20130080579A1 (en) * | 2011-09-26 | 2013-03-28 | Unicorn Media, Inc. | Dynamically-executed syndication services |
CN103620609A (en) * | 2011-05-02 | 2014-03-05 | 英赛瑟库尔公司 | Method for playing digital contents protected with a DRM (digital right management) scheme and corresponding system |
CN103945259A (en) * | 2014-03-31 | 2014-07-23 | Tcl集团股份有限公司 | Online video playing method and device |
WO2014113193A1 (en) * | 2013-01-17 | 2014-07-24 | Intel IP Corporation | Dash-aware network application function (d-naf) |
CN103957436A (en) * | 2014-05-13 | 2014-07-30 | 北京清源新创科技有限公司 | Video anti-stealing-link method based on OTT service |
CN104065736A (en) * | 2014-07-03 | 2014-09-24 | 车智互联(北京)科技有限公司 | URL redirection method, device, and system |
CN104349176A (en) * | 2013-07-30 | 2015-02-11 | 中国电信股份有限公司 | Self-adaptive stream media system, downloading method and stream media server, user terminal |
CN104683833A (en) * | 2014-11-20 | 2015-06-03 | 华为软件技术有限公司 | Self-adaptive media service method and device |
US20150215359A1 (en) * | 2012-06-12 | 2015-07-30 | Wi-Lan Labs, Inc. | Systems and methods for using client-side video buffer occupancy for enhanced quality of experience in a communication network |
CN106658226A (en) * | 2015-10-28 | 2017-05-10 | 中兴通讯股份有限公司 | Play method and apparatus |
CN106685942A (en) * | 2016-12-20 | 2017-05-17 | 徐亮 | Video live and replaying system and video live and replaying method |
CN107547917A (en) * | 2016-06-27 | 2018-01-05 | 中兴通讯股份有限公司 | The broadcasting of channel and processing method and processing device, the processing system of channel |
CN107707984A (en) * | 2017-09-12 | 2018-02-16 | 武汉楚鼎信息技术有限公司 | Video web page player method, server and playback terminal based on authorization check |
CN107707504A (en) * | 2016-08-08 | 2018-02-16 | 中国电信股份有限公司 | A kind of player method of Streaming Media, system and server and client side |
CN107801051A (en) * | 2017-10-27 | 2018-03-13 | 广东省南方数字电视无线传播有限公司 | Virtual sliced sheet information transferring method and device, video server |
-
2018
- 2018-05-22 CN CN201810492891.5A patent/CN110519656B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070136279A1 (en) * | 2005-11-29 | 2007-06-14 | Yahoo! Inc. | URL shortening and authentication with reverse hash lookup |
CN102333082A (en) * | 2010-08-23 | 2012-01-25 | 微软公司 | The URL of safety shortens |
CN103620609A (en) * | 2011-05-02 | 2014-03-05 | 英赛瑟库尔公司 | Method for playing digital contents protected with a DRM (digital right management) scheme and corresponding system |
CN102810089A (en) * | 2011-05-30 | 2012-12-05 | 盛乐信息技术(上海)有限公司 | Content-based short link system and implementation method |
US20130080579A1 (en) * | 2011-09-26 | 2013-03-28 | Unicorn Media, Inc. | Dynamically-executed syndication services |
US20150215359A1 (en) * | 2012-06-12 | 2015-07-30 | Wi-Lan Labs, Inc. | Systems and methods for using client-side video buffer occupancy for enhanced quality of experience in a communication network |
WO2014113193A1 (en) * | 2013-01-17 | 2014-07-24 | Intel IP Corporation | Dash-aware network application function (d-naf) |
CN104349176A (en) * | 2013-07-30 | 2015-02-11 | 中国电信股份有限公司 | Self-adaptive stream media system, downloading method and stream media server, user terminal |
CN103945259A (en) * | 2014-03-31 | 2014-07-23 | Tcl集团股份有限公司 | Online video playing method and device |
CN103957436A (en) * | 2014-05-13 | 2014-07-30 | 北京清源新创科技有限公司 | Video anti-stealing-link method based on OTT service |
CN104065736A (en) * | 2014-07-03 | 2014-09-24 | 车智互联(北京)科技有限公司 | URL redirection method, device, and system |
CN104683833A (en) * | 2014-11-20 | 2015-06-03 | 华为软件技术有限公司 | Self-adaptive media service method and device |
CN106658226A (en) * | 2015-10-28 | 2017-05-10 | 中兴通讯股份有限公司 | Play method and apparatus |
CN107547917A (en) * | 2016-06-27 | 2018-01-05 | 中兴通讯股份有限公司 | The broadcasting of channel and processing method and processing device, the processing system of channel |
CN107707504A (en) * | 2016-08-08 | 2018-02-16 | 中国电信股份有限公司 | A kind of player method of Streaming Media, system and server and client side |
CN106685942A (en) * | 2016-12-20 | 2017-05-17 | 徐亮 | Video live and replaying system and video live and replaying method |
CN107707984A (en) * | 2017-09-12 | 2018-02-16 | 武汉楚鼎信息技术有限公司 | Video web page player method, server and playback terminal based on authorization check |
CN107801051A (en) * | 2017-10-27 | 2018-03-13 | 广东省南方数字电视无线传播有限公司 | Virtual sliced sheet information transferring method and device, video server |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113347218A (en) * | 2020-02-18 | 2021-09-03 | 北京沃东天骏信息技术有限公司 | Module downloading method and device |
CN113438513A (en) * | 2021-06-25 | 2021-09-24 | 深圳Tcl新技术有限公司 | Video resolution switching method, device, equipment and storage medium |
US20230224303A1 (en) * | 2022-01-07 | 2023-07-13 | Axis Cyber Security Ltd. | Techniques for providing long uniform resource locators through a secure environment |
US12155667B2 (en) | 2022-01-07 | 2024-11-26 | Hewlett Packard Enterprise Development Lp | Techniques for providing hypertext transfer protocol through a secure environment |
Also Published As
Publication number | Publication date |
---|---|
CN110519656B (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104396263B (en) | For the method and system of the real-time multiplexing transformation of streaming content | |
US8327013B2 (en) | Dynamic index file creation for media streaming | |
CN102111685B (en) | Acceleration method, equipment and system for network video loading | |
CN101677325B (en) | Method, device and system for publishing media description information and acquiring media | |
JP5861220B2 (en) | System and method for effective support for short term crypto periods in template mode | |
CN101917488B (en) | BT download method, device and system | |
CN104980482B (en) | Document sending method and device, document receiving method and device | |
CN104581374B (en) | A kind of method, node and server for obtaining section file and generating sub- m3u8 files | |
CN110519656A (en) | Playback method, system and the server of adaptive stream media | |
US20130219441A1 (en) | Method, server and terminal for audio and video on demand | |
CN110121871A (en) | For the coding based on request of flowing content part | |
RU2009135239A (en) | WAYS OF ACCESS TO REMOTE DATA FOR PORTABLE DEVICES | |
CN103813185B (en) | A kind of method that segment programs are quickly distributed, server and client | |
CN102131114B (en) | Method and system for providing playlist | |
CN103648019A (en) | Video downloading method and device based on HLS protocol | |
US20140359066A1 (en) | System, method and device for offline downloading resource and computer storage medium | |
CN105828096B (en) | Method and device for processing media stream file | |
WO2016054923A1 (en) | Hls protocol-based user information acquisition method and server | |
CN107113337A (en) | The network address translation | |
CA2866472A1 (en) | Dynamic audio track selection for media streaming | |
CN108134811B (en) | Method, device and system for distributing or downloading target file | |
CN107645475B (en) | File resource distribution system and method in heterogeneous network | |
CN103561013A (en) | Streaming media data distributing system | |
CN101184002A (en) | A method and device for in-depth monitoring of point-to-point traffic | |
EP3785444B1 (en) | Server-side insertion of media fragments |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20191129 Assignee: Softcom Power (Guangzhou) Technology Co.,Ltd. Assignor: CHINA TELECOM Corp.,Ltd. Contract record no.: X2024110000016 Denomination of invention: The playback method, system, and server of adaptive streaming media Granted publication date: 20211126 License type: Common License Record date: 20240226 |
|
EE01 | Entry into force of recordation of patent licensing contract |