CN104093045A - Method and system for processing OTT TV playing request based on source return - Google Patents
Method and system for processing OTT TV playing request based on source return Download PDFInfo
- Publication number
- CN104093045A CN104093045A CN201410340097.0A CN201410340097A CN104093045A CN 104093045 A CN104093045 A CN 104093045A CN 201410340097 A CN201410340097 A CN 201410340097A CN 104093045 A CN104093045 A CN 104093045A
- Authority
- CN
- China
- Prior art keywords
- file
- server
- request
- level
- client
- 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
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention belongs to the technical field of network media, and provides a method for processing an OTT TV playing request based on source return. The method comprises the steps that a first server receives a first-class M3U8 file request of a client side; the first server detects whether a first-class M3U8 file is stored or not; if the first-class M3U8 file is not stored in the first server, the first-class M3U8 file request is processed and sent to a second server; the second server returns the first-class M3U8 file to the first server after one time of 302 skip; the first server sends the first-class M3U8 file to the client side; the client side initiates a second-class M3U8 file request to the first server after matching a code rate according to the first-class M3U8 file; the first server responds to the second-class M3U8 file request. Therefore, according to the method, the butt-joint period can be shortened, content distribution efficiency is improved, and therefore the content need of a user can be met better.
Description
Technical field
The present invention relates to network multimedia technology field, relate in particular to a kind of OTT TV playing request processing method and system based on Hui Yuan.
Background technology
B2B (Business To Business) OTT (Over The Top) TV is the television services that content service provider and Virtual network operator cooperation are carried out on the internet, integrate the multiple technologies such as multimedia, communication, by the Internet towards television terminal provide live, review, the system of the various video service such as program request and application, system, for the network characteristics of the Internet, has adopted the multiple internet video technology such as multi code Rate of Chinese character network self-adapting, video segment.
IPTV (Internet Protocol Television) business is the television services that content service provider and Virtual network operator cooperation are carried out on private network.Its content service provider and Virtual network operator each other the mode of transferring content be all injection way, its service logic is as follows:
1) meaningful renewal, the media resource system of content service provider is sent out UPDATE message to Virtual network operator media resource system
2) the descriptor XML that Virtual network operator media resource system upgrades to content service provider's media resource system request
3) Virtual network operator media resource system analyzing XML, obtains the file address of program
4) Virtual network operator media resource system, by FTP, removes content service provider's media resource system program downloading file
5) after Virtual network operator is downloaded successfully, content of announcement service provider
6) content service provider upgrades EPG (Electronic Program Guide, electric program menu)
Known according to above description, it between Virtual network operator system and content service provider's system and STB terminal, is a kind of close-coupled relation being formed by the tight time sequential routine, above-mentioned six steps must all complete, a program just can be by program request, what link of Yao is gone on business, all will do error handling processing or rollback, the efficiency that the system docking cycle between content service provider and Virtual network operator and content are reached the standard grade has all caused considerable influence.
Because B2B OTT TV has adopted multiple internet video technology, especially multi code Rate of Chinese character network self-adapting, video segment, a video content can be cut into hundreds and thousands of, in the case, realize the system docking between content service provider and Virtual network operator if continue to continue to use the injection way of IPTV, docking complexity, the stability of a system and content are reached the standard grade ageingly all has a significant impact, for user's content demand meet and operator carries out service and has considerable influence.
In summary, obviously there is inconvenience and defect in prior art in actual use, so be necessary to be improved.
Summary of the invention
For above-mentioned defect, the object of the present invention is to provide a kind of OTT TV playing request processing method and system based on Hui Yuan, can shorten request and process the docking cycle, improve contents distribution efficiency, meet better user's content demand.
To achieve these goals, the invention provides a kind of OTT TV playing request processing method based on Hui Yuan, described method at least comprises:
First server receives client one-level M3U8 file request;
Described first server detects whether store described one-level M3U8 file;
If described first server does not store described one-level M3U8 file, after described one-level M3U8 file request being processed, send to second server;
Described second server returns to one-level M3U8 file to described first server after 302 redirects;
Described one-level M3U8 file is sent to described client by described first server;
Described client is initiated secondary M3U8 file request according to the backward described first server of the adaptive code check of described one-level M3U8 file;
Described first server responds described secondary M3U8 file request.
According to the OTT TV playing request processing method based on Hui Yuan of the present invention, if described first server stores described one-level M3U8 file, further judge that whether the time that described one-level M3U8 file cache-control field identifies is expired, if not out of date, described one-level M3U8 file is sent to described client.
According to the OTT TV playing request processing method based on Hui Yuan of the present invention, described first server responds described secondary M3U8 file request step and comprises:
Described first server detects whether store described secondary M3U8 file;
Described first server does not store described secondary M3U8 file, after described secondary M3U8 file request being processed, sends to described second server;
Described second server returns to secondary M3U8 file to described first server after 302 redirects;
Described secondary M3U8 file is sent to described client by described first server.
According to the OTT TV playing request processing method based on Hui Yuan of the present invention, if described first server stores described secondary M3U8 file, further judge that whether the time that the cache-control field of described secondary M3U8 file identifies is expired, if not out of date, described secondary M3U8 file is sent to client.
According to the OTT TV playing request processing method based on Hui Yuan of the present invention, described method also comprises:
First server receives the TS file request that client is initiated according to described secondary M3U8 file;
If first server stores described TS file, described TS file is sent to described client, otherwise sends to described second server after described TS file request is processed;
Described second server returns to described TS file.
The present invention is also corresponding provides a kind of OTT TV playing request treatment system based on Hui Yuan, comprises client, first server and second server, wherein:
Described first server comprises:
Request receiving module, for receiving client one-level M3U8 file request;
Whether file detection module, store described one-level M3U8 file for detection of described first server;
Request processing module, sends to second server after while not storing described one-level M3U8 file, described one-level M3U8 file request being processed for described first server;
Described second server for returning to one-level M3U8 file to described first server after 302 redirects, and described one-level M3U8 file is sent to described client by described first server;
Described client is for initiating secondary M3U8 file request according to the backward described first server of the adaptive code check of described one-level M3U8 file, and described first server responds described secondary M3U8 file request.
The present invention is also corresponding provides a kind of OTT TV playing request treatment system based on Hui Yuan, and described first server further comprises:
Effectively judge module, while storing described one-level M3U8 file, further judges that whether the time that described one-level M3U8 file cache-control field identifies is expired for described first server, transfers to file send module processing if not out of date;
File send module, sends to described client by described one-level M3U8 file.
The present invention is also corresponding provides a kind of OTT TV playing request treatment system based on Hui Yuan, and described file detection module is further used for detecting described first server and whether stores described secondary M3U8 file;
After will described secondary M3U8 file request when described request processing module is further used for described first server and does not store described secondary M3U8 file processing, send to described second server;
Described second server returns to secondary M3U8 file to described first server after 302 redirects;
Described secondary M3U8 file is sent to described client by described first server.
The present invention is also corresponding provides a kind of OTT TV playing request treatment system based on Hui Yuan, when being further used for described first server and storing described secondary M3U8 file, described effective judge module further judges that whether the time that the cache-control field of described secondary M3U8 file identifies is expired, if not out of date, transfer to file send module processing;
Described file send module is further used for described secondary M3U8 file to send to client.
The present invention is also corresponding provides a kind of OTT TV playing request treatment system based on Hui Yuan,
The TS file request that described request receiver module is also initiated according to described secondary M3U8 file for receiving client;
If first server stores described TS file, described TS file is sent to described client, otherwise sends to described second server after described TS file request is processed;
Described second server returns to described TS file.
The present invention receives client one-level M3U8 file request by first server, and judges whether first server detection stores described one-level M3U8 file; If directly file is sent to client, otherwise after being processed, one-level M3U8 file request sends to second server, return to described one-level M3U8 file to described client by second server, described client according to described,, the adaptive code check of one-level M3U8 file, and further initiate secondary M3U8 file request to first server; Described first server responds described secondary M3U8 file request.Whereby, client can be carried out video playback after getting complete firsts and seconds M3U8 file.The present invention can shorten request and process the docking cycle, improves contents distribution efficiency, meets better user's content demand.
Brief description of the drawings
Fig. 1 is OTT TV playing request treatment system structural representation of the present invention;
Fig. 2 is the OTT TV playing request treatment system structural representation of one embodiment of the invention;
Fig. 3 is the OTT TV playing request process flow figure based on Hui Yuan of the present invention;
Fig. 4 is the OTT TV playing request process flow figure based on Hui Yuan of one embodiment of the invention;
Fig. 5 is the OTT TV playing request process flow figure based on Hui Yuan of another embodiment of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, the invention provides a kind of OTT TV playing request treatment system based on Hui Yuan, this system 100 comprises client 10, first server 20 and second server 30.Need to illustrate, client 10 of the present invention is preferably Set Top Box, and first server 20 is preferably network operator server, and second server 30 is preferably content service provider's server.Described first server 20 and second server 30 are all supported CDN (Content Delivery Network, content distributing network) service.Concrete:
Described first server 20 comprises:
Request receiving module 21, for receiving client one-level M3U8 file request.M3U8 file is a kind of broadcast format that is different from other file, and it has comprised one-level M3U8 file and secondary M3U8 file, and client 10 need to be obtained complete M3U8 file by step could normal play.And the file request of client 10 can only directly be initiated to the network operator server as first server 20, and network operator server is processed one-level M3U8 file request by CDN strategy.
Whether file detection module 22, store described one-level M3U8 file for detection of described first server 20.If there is no described one-level M3U8 file in first server 20, illustrate first server 20 need to return source process.
Request processing module 23, sends to second server 30 after while not storing described one-level M3U8 file, described one-level M3U8 file request being processed for described first server 20.
Described second server 30 returns to one-level M3U8 file to first server 20 after 302 redirects, and described one-level M3U8 file is sent to described client 10 by described first server 20.
Client 10 receives after one-level M3U8 file, according to the adaptive code check of described one-level M3U8 file, and further initiate secondary M3U8 file request to described first server 20, described first server 20 responds described secondary M3U8 file request, to obtain secondary M3U8 file.
Client 10 can coordinate a file that is applicable to own code check to play according to the network bandwidth and one-level M3U8 file, ensures whereby the smoothness of video flowing.
Content service provider of the present invention is without realizing content update by complicated interactive interfacing, only need content service provider will return source request address and offer Virtual network operator CDN, greatly reduce the degree of coupling of system and the complexity of docking between content service provider and Virtual network operator, shorten the docking cycle, and it is ageing that raising content is reached the standard grade, can meet better user's content demand.
In one embodiment of the invention, first server 20 also comprises:
Effectively judge module 24, while storing described one-level M3U8 file, further judges that whether the time that described one-level M3U8 file cache-control field identifies is expired for described first server 20, transfers to file send module 25 to process if not out of date.
File send module 25, sends to described client 10 by described one-level M3U8 file, simplifies whereby the implementation of request.
Preferably, first server 20 is in the time of response secondary M3U8 file request, and file detection module 22 further detects described first server 20 and whether stores described secondary M3U8 file;
After will described secondary M3U8 file request when 23 of request processing module are further used for described first server 20 and do not store described secondary M3U8 file processing, send to described second server 30.
Described second server returns to secondary M3U8 file to described first server 20 after 302 redirects, and secondary M3U8 file is sent to described client 10 by first server 20.
Same, described effective judge module 24 enters while storing described secondary M3U8 file for first server 20 further to judge that whether the time that the cache-control field of described secondary M3U8 file identifies is expired, if not out of date, transfer to file send module 25 to process, described secondary M3U8 file is sent to client 10 by file send module 25.
Client 10 is initiated TS file request according to described secondary M3U8 file to first server 20 after receiving secondary M3U8 file, if first server 20 stores TS file, described TS file is sent to described client 10, otherwise described TS file request is returned after process in source and sent to second server 30, second server returns to TS file, makes whereby client 10 obtain complete displaying video.
The present invention can effectively improve the ageing efficiency with distributing that content is issued, reduce the degree of coupling and docking complexity between content service provider and Virtual network operator system, and be no longer limited by the memory capacity of the CDN of Virtual network operator, can, so that the full dose content of content operator to be full out provided as user, farthest meet user's video requirement.
Referring to Fig. 3, the invention provides a kind of OTT TV playing request processing method based on Hui Yuan, it can be realized by system 100 as shown in Figure 1, and the method comprises:
Step S301, first server 20 receives client one-level M3U8 file request.M3U8 file is a kind of broadcast format that is different from other file, and it has comprised one-level M3U8 file and secondary M3U8 file, and client 10 need to be obtained complete M3U8 file by step could normal play.And the file request of client 10 can only directly be initiated to the network operator server as first server 20, and network operator server is processed one-level M3U8 file request by CDN strategy.
Step S302, detects described first server 20 and whether stores described one-level M3U8 file.If there is no described one-level M3U8 file in first server 20, illustrate first server 20 need to return source process.
Step S303, sends to second server 30 after when first server 20 does not store described one-level M3U8 file, described one-level M3U8 file request being processed.
Step S304, second server 30 returns to one-level M3U8 file to first server 20 after 302 redirects.
Step S305, described one-level M3U8 file is sent to described client 10 by first server 20.
Step S306, client 10 receives after one-level M3U8 file, according to the adaptive code check of described one-level M3U8 file, and further initiates secondary M3U8 file request to described first server 20.Client 10 can coordinate a file that is applicable to own code check to play according to the network bandwidth and one-level M3U8 file, ensures whereby the smoothness of video flowing.
Step S307, first server 20 responds described secondary M3U8 file request, to obtain secondary M3U8 file.
Be more preferably, in step S302, if first server 20 stores one-level M3U8 file, the present invention further judges that whether the time that described one-level M3U8 file cache-control field identifies is expired, if not out of date, directly described one-level M3U8 file is sent to described client, otherwise carry out again S403, simplify whereby handling process.
Content service provider of the present invention is without realizing content update by complicated interactive interfacing, only need content service provider will return source request address and offer Virtual network operator CDN, greatly reduce the degree of coupling of system and the complexity of docking between content service provider and Virtual network operator, shorten the docking cycle, and it is ageing that raising content is reached the standard grade, can meet better user's content demand.
Preferably, in conjunction with Fig. 2 and Fig. 5, step S307 further comprises:
Step S3071, first server 20 is in the time of response secondary M3U8 file request, and file detection module 22 further detects first server 20 and whether stores described secondary M3U8 file;
Step S3072, sends to described second server 30 after will described secondary M3U8 file request when 23 of request processing module are further used for described first server 20 and do not store described secondary M3U8 file processing.
Step S3073, second server 30 returns to secondary M3U8 file to described first server 20 after 302 redirects,
Step S3074, secondary M3U8 file is sent to described client 10 by first server 20.
Step S3075, client 10 is initiated TS file request according to described secondary M3U8 file to first server 20 after receiving secondary M3U8 file.
Step S3076, if first server 20 stores TS file, is sent to described client 10 by described TS file, otherwise described TS file request is returned after process in source and sent to second server 30.
Step S3077, second server returns to TS file.
The handling process of the present invention's one specific embodiment, comprising:
0, client is initiated to obtain Virtual network operator CDN to the EPG of content service provider and is play the request of pulling.
1, the EPG of content service provider returns to the broadcast address at the one-level m3u8 of Virtual network operator CDN.
2, client is initiated the request of obtaining one-level m3u8 to Virtual network operator CDN.Such as:
Example one: the CDN of operator is without 302 redirects
http://slb.shtelcdn.com/FDN/FDN1290067/HLSVodService.m3u8?taskID=test_1394140307034_020341000514778&_userId=020341000514778&_adCategorySource=0&_categoryPath=&_cdnCode=BTV&_enCode=m3u8&_flag=.m3u8&_categoryCode=&_type=0&_adPositionId=01001000&_mdCode=5778356&_client=103&_rCode=TerOut_17840&_cms=ctv&_CDNToken=EC4849C1C818C7438054A149A441C6C9
Illustrate: the base address that http://slb.shtel.com/ is Virtual network operator, the part after base address is the logical identifier of content service provider's program
Example two: the CDN of operator has 302 redirects
http://WW.XX.YY.ZZ/FDN/FDN1290067/HLSVodService.m3u8?taskID=test_1394140307034_020341000514778&_userId=020341000514778&_adCategorySource=0&_categoryPath=&_cdnCode=BTV&_enCode=m3u8&_flag=.m3u8&_categoryCode=&_type=0&_adPositionId=01001000&_mdCode=5778356&_client=103&_rCode=TerOut_17840&_cms=ctv&_CDNToken=EC4849C1C818C7438054A149A441C6C9
If 3, Virtual network operator CDN has this one-level m3u8 file and time of identifying by cache-control field judges not out of dately, directly provide to client, otherwise by agency after client-requested repacking to the CDN of content service provider.Such as:
http://slb.shtelcdn.com/FDN/FDN1290067/HLSVodService.m3u8?taskID=test_1394140307034_020341000514778&_userId=020341000514778&_adCategorySource=0&_categoryPath=&_cdnCode=BTV&_enCode=m3u8&_flag=.m3u8&_categoryCode=&_type=0&_adPositionId=01001000&_mdCode=5778356&_client=103&_rCode=TerOut_17840&_cms=ctv&_CDNToken=EC4849C1C818C7438054A149A441C6C9
Be adapted as:
http://slb.bestvcdn.com/gslb/program/FDN/FDN1290067/HLSVodService.m3u8?taskID=test_1394140307034_020341000514778&_userId=020341000514778&_adCategorySource=0&_categoryPath=&_cdnCode=BTV&_enCode=m3u8&_flag=.m3u8&_categoryCode=&_type=0&_adPositionId=01001000&_mdCode=5778356&_client=103&_rCode=TerOut_17840&_cms=ctv&_CDNToken=EC4849C1C818C7438054A149A441C6C9&_back=ms
Example explanation:
Virtual network operator CDN base address (in sample, being http://slb.shtel.com/) replaced and become the CDN Hui Yuan of content service provider base address (being http://gslb.bestvcdn.com/gslb/program/ in sample), part after base address retains, and whether add _ back parameter identification is Hui Yuan (being _ back=ms) in sample.
4, the CDN of content service provider is through returning to one-level m3u8 after 302 redirects.
Address after 302 redirects:
http://118.123.99.61/gslb/program/11/FDN/FDN1290067/HLSVodService.m3u8?_userId=020341000514778&taskID=test_1394140307034_020341000514778&_adCategorySource=0&_cdnCode=BTV&_categoryPath=&_categoryCode=&_flag=.m3u8&_enCode=m3u8&_type=0&_adPositionId=01001000&_mdCode=5778356&_rCode=TerOut_17840&_client=103&_cms=ctv&_CDNToken=EC4849C1C818C7438054A149A441C6C9
The content of one-level m3u8:
#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=700000
HLSVodService.m3u8?_mdCode=5778356&_cdnCode=BTV&_type=1&_rCode=TerOut_17840&_userId=020341000514778&_categoryPath=&_adPositionId=01001000&_adCategorySource=0&token_mod=&_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&_flag=.m3u8&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&nb_cache5-nb-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1300000
HLSVodService.m3u8?_mdCode=5778348&_cdnCode=BTV&_type=1&_rCode=TerOut_17840&_userId=020341000514778&_categoryPath=&_adPositionId=01001000&_adCategorySource=0&token_mod=&_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&_flag=.m3u8&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&nb_cache5-nb-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2300000
HLSVodService.m3u8?_mdCode=5778346&_cdnCode=BTV&_type=1&_rCode=TerOut_17840&_userId=020341000514778&_categoryPath=&_adPositionId=01001000&_adCategorySource=0&token_mod=&_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&_flag=.m3u8&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&nb_cache5-nb-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=4000000
HLSVodService.m3u8?_mdCode=5778354&_cdnCode=BTV&_type=1&_rCode=TerOut_17840&_userId=020341000514778&_categoryPath=&_adPositionId=01001000&_adCategorySource=0&token_mod=&_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&_flag=.m3u8&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&nb_cache5-nb-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
5, one-level m3u8 is returned to client by Virtual network operator CDN.
6, client is selected suitable code check and is asked its corresponding secondary m3u8 to Virtual network operator CDN according to one-level m3u8.Such as
Example one: Virtual network operator CDN is without 302 redirects
http://slb.shtelcdn.com/FDN/FDN1290067/HLSVodService.m3u8?_mdCode=5778354&_cdnCode=BTV&_type=1&_rCode=TerOut_17840&_userId=020341000514778&_categoryPath=&_adPositionId=01001000&_adCategorySource=0&token_mod=&_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&_flag=.m3u8&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&nb_cache5-nb-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
Example explanation,
Replace with selected code check corresponding contents in one-level m3u8 file by the HLSVodService.m3u8 in one-level m3u8 request address and with rear section, be the request address of secondary m3u8
Sample two: Virtual network operator CDN is through 302 redirects
http://WW.XX.YY.ZZ/FDN/FDN1290067/HLSVodService.m3u8?_mdCode=5778354&_cdnCode=BTV&_type=1&_rCode=TerOut_17840&_userId=020341000514778&_categoryPath=&_adPositionId=01001000&_adCategorySource=0&token_mod=&_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&_flag=.m3u8&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&nb_cache5-nb-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv。
If 7, Virtual network operator CDN has this secondary m3u8 file and judges not out of dately by the time of cache-control field identification, directly provide to client, otherwise by agency after client-requested repacking to the server at the one-level m3u8 of content service provider place.
Example:
http://118.123.99.61/gslb/program/11/FDN/FDN1290067/HLSVodService.m3u8?_mdCode=5778354&_cdnCode=BTV&_type=1&_rCode=TerOut_17840&_userId=020341000514778&_categoryPath=&_adPositionId=01001000&_adCategorySource=0&token_mod=&_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&_flag=.m3u8&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&nb_cache5-nb-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
Example explanation:
Because the same program of content service provider leaves on same station server, so in order to reduce by 302 number of hops, raise the efficiency, Virtual network operator CDN is changed to the CDN of content service provider by its base address (being http://slb.shtelcdn.com/ in sample) base address of the server of one-level m3u8 (being http: // 118.123.99.61/gslb/program/11/ in sample) is provided, and add that whether parameter _ back mark is back source request, is to the request of the CDN of content service provider request secondary m3u8.
8, the server at content service provider's one-level m3u8 place returns to secondary m3u8.
The content of secondary m3u8:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10,1
4000/4345314.mp4.0.to.ts?_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&dz_cache5-dz-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
#EXTINF:10,2
4000/4345314.mp4.10.to.ts?_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&dz_cache5-dz-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv。
9, secondary m3u8 is returned to client by Virtual network operator CDN.
10, client is initiated the request of obtaining ts to Virtual network operator CDN according to secondary m3u8 content.
Example one: Virtual network operator CDN is without 302 redirects
http://slb.shtelcdn.com/FDN/FDN1290067/4000/4345314.mp4.0.to.ts?_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&dz_cache5-dz-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
Example explanation,
By the HLSVodService.m3u8 in secondary m3u8 request address and replace with the corresponding contents of the ts file of being asked in secondary m3u8 file with rear section, it is the request address of ts file.
Example two: the CDN of operator is through 302 redirects
http://WW.XX.YY.ZZ/FDN/FDN1290067/4000/4345314.mp4.0.to.ts?_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&dz_cache5-dz-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
If 11, Virtual network operator CDN has this ts file, directly provide to client, if not, will after client-requested repacking, act on behalf of to the server of the one-level m3u8 of content service provider place.
http://118.123.99.61/gslb/program/11/FDN/FDN1290067/4000/4345314.mp4.0.to.ts?_client=103&taskID=test_1394140307034_020341000514778&_cms=ctv&xa_cache4-xa-cc.bestvcdn.cn_args=dm9kNy54YS5iZXN0dmNkbi5uZXQ6ODB8L2dzbGIvcHJvZ3JhbS8xMS9GRE4vRkROMTI5MDA2Ny98LzcvMTM1LzkyNS8wMDAv&dz_cache5-dz-cc.bestvcdn.cn_args=MTE3LjM0LjIwLjE3OjgwfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcvfC9nc2xiL3Byb2dyYW0vMTEvRkROL0ZETjEyOTAwNjcv
Example explanation:
The same with the source request of returning of repacking secondary m3u8, Virtual network operator CDN is changed to the CDN of content service provider by its base address (being http://slb.shtelcdn.com/ in sample) base address of the server of secondary m3u8 (being http: // 118.123.99.61/gslb/program/11/ in sample) is provided, and add that whether parameter _ back mark is back source request, is to the request of the CDN of content service provider request ts.
12, the ts file of request is returned to Virtual network operator CDN by content service provider's one-level m3u8 place server.
13, Virtual network operator CDN returns to ts file to client.
In sum, the present invention receives client one-level M3U8 file request by first server, and judges whether first server detection stores described one-level M3U8 file; If directly file is sent to client, otherwise after being processed, one-level M3U8 file request sends to second server, return to described one-level M3U8 file to described client by second server, described client according to described,, the adaptive code check of one-level M3U8 file, and further initiate secondary M3U8 file request to first server; Described first server responds described secondary M3U8 file request.Whereby, client can be carried out video playback after getting complete firsts and seconds M3U8 file.The present invention can shorten request and process the docking cycle, improves contents distribution efficiency, meets better user's content demand.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (10)
1. the OTT TV playing request processing method based on Hui Yuan, is characterized in that, described method at least comprises:
First server receives client one-level M3U8 file request;
Described first server detects whether store described one-level M3U8 file;
If described first server does not store described one-level M3U8 file, after described one-level M3U8 file request being processed, send to second server;
Described second server returns to one-level M3U8 file to described first server after 302 redirects;
Described one-level M3U8 file is sent to described client by described first server;
Described client is initiated secondary M3U8 file request according to the backward described first server of the adaptive code check of described one-level M3U8 file;
Described first server responds described secondary M3U8 file request.
2. the OTT TV playing request processing method based on Hui Yuan according to claim 1, it is characterized in that, if described first server stores described one-level M3U8 file, further judge that whether the time that described one-level M3U8 file cache-control field identifies is expired, if not out of date, described one-level M3U8 file is sent to described client.
3. the OTT TV playing request processing method based on Hui Yuan according to claim 1, is characterized in that, described first server responds described secondary M3U8 file request step and comprises:
Described first server detects whether store described secondary M3U8 file;
Described first server does not store described secondary M3U8 file, after described secondary M3U8 file request being processed, sends to described second server;
Described second server returns to secondary M3U8 file to described first server after 302 redirects;
Described secondary M3U8 file is sent to described client by described first server.
4. the OTT TV playing request processing method based on Hui Yuan according to claim 3, it is characterized in that, if described first server stores described secondary M3U8 file, further judge that whether the time that the cache-control field of described secondary M3U8 file identifies is expired, if not out of date, described secondary M3U8 file is sent to client.
5. the OTT TV playing request processing method based on Hui Yuan according to claim 3, is characterized in that, described method also comprises:
First server receives the TS file request that client is initiated according to described secondary M3U8 file;
If first server stores described TS file, described TS file is sent to described client, otherwise sends to described second server after described TS file request is processed;
Described second server returns to described TS file.
6. the OTT TV playing request treatment system based on Hui Yuan, is characterized in that, comprises client, first server and second server, wherein:
Described first server comprises:
Request receiving module, for receiving client one-level M3U8 file request;
Whether file detection module, store described one-level M3U8 file for detection of described first server;
Request processing module, sends to second server after while not storing described one-level M3U8 file, described one-level M3U8 file request being processed for described first server;
Described second server for returning to one-level M3U8 file to described first server after 302 redirects, and described one-level M3U8 file is sent to described client by described first server;
Described client is for initiating secondary M3U8 file request according to the backward described first server of the adaptive code check of described one-level M3U8 file, and described first server responds described secondary M3U8 file request.
7. the OTT TV playing request treatment system based on Hui Yuan according to claim 6, is characterized in that, described first server further comprises:
Effectively judge module, while storing described one-level M3U8 file, further judges that whether the time that described one-level M3U8 file cache-control field identifies is expired for described first server, transfers to file send module processing if not out of date;
File send module, sends to described client by described one-level M3U8 file.
8. the OTT TV playing request treatment system based on Hui Yuan according to claim 1, is characterized in that, described file detection module is further used for detecting described first server and whether stores described secondary M3U8 file;
After will described secondary M3U8 file request when described request processing module is further used for described first server and does not store described secondary M3U8 file processing, send to described second server;
Described second server returns to secondary M3U8 file to described first server after 302 redirects;
Described secondary M3U8 file is sent to described client by described first server.
9. the OTT TV playing request treatment system based on Hui Yuan according to claim 8, it is characterized in that, when being further used for described first server and storing described secondary M3U8 file, described effective judge module further judges that whether the time that the cache-control field of described secondary M3U8 file identifies is expired, if not out of date, transfer to file send module processing;
Described file send module is further used for described secondary M3U8 file to send to client.
10. the OTT TV playing request treatment system based on Hui Yuan according to claim 8, is characterized in that, the TS file request that described request receiver module is also initiated according to described secondary M3U8 file for receiving client;
If first server stores described TS file, described TS file is sent to described client, otherwise sends to described second server after described TS file request is processed;
Described second server returns to described TS file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410340097.0A CN104093045B (en) | 2014-07-17 | 2014-07-17 | OTT TV playing requests processing methods and system based on Hui Yuan |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410340097.0A CN104093045B (en) | 2014-07-17 | 2014-07-17 | OTT TV playing requests processing methods and system based on Hui Yuan |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104093045A true CN104093045A (en) | 2014-10-08 |
CN104093045B CN104093045B (en) | 2018-01-16 |
Family
ID=51640718
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410340097.0A Active CN104093045B (en) | 2014-07-17 | 2014-07-17 | OTT TV playing requests processing methods and system based on Hui Yuan |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104093045B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320681A (en) * | 2014-11-07 | 2015-01-28 | 百视通网络电视技术发展有限责任公司 | CDN back-to-source service method and system |
WO2016062092A1 (en) * | 2014-10-24 | 2016-04-28 | 中兴通讯股份有限公司 | Method and mobile terminal for processing encrypted video |
CN105592369A (en) * | 2014-10-21 | 2016-05-18 | 中国移动通信集团公司 | Video abstract processing method and device |
CN109525867A (en) * | 2017-09-18 | 2019-03-26 | 中兴通讯股份有限公司 | Load-balancing method, device and mobile terminal |
CN109618195A (en) * | 2018-12-27 | 2019-04-12 | 贵州省广播电视信息网络股份有限公司 | A method of platform injection feedback is provided for handling downstream matchmaker |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120331293A1 (en) * | 2011-06-23 | 2012-12-27 | Azuki Systems, Inc. | Method and system for secure over-the-top live video delivery |
CN103648019A (en) * | 2013-11-29 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Video downloading method and device based on HLS protocol |
CN103747112A (en) * | 2013-12-24 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | CDN back-to-source method, first server and system thereof |
-
2014
- 2014-07-17 CN CN201410340097.0A patent/CN104093045B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120331293A1 (en) * | 2011-06-23 | 2012-12-27 | Azuki Systems, Inc. | Method and system for secure over-the-top live video delivery |
CN103648019A (en) * | 2013-11-29 | 2014-03-19 | 乐视致新电子科技(天津)有限公司 | Video downloading method and device based on HLS protocol |
CN103747112A (en) * | 2013-12-24 | 2014-04-23 | 乐视网信息技术(北京)股份有限公司 | CDN back-to-source method, first server and system thereof |
Non-Patent Citations (2)
Title |
---|
KEVIN J. MA AND RADIM BARTOS: "HTTP Live Streaming Bandwidth Management using Intelligent Segment Selection", 《GLOBAL TELECOMMUNICATIONS CONFERENCE(GLOBECOM 2011)》 * |
KEVIN J. MA: "Provider-Controlled Bandwidth Management for HTTP-based Video Delivery", 《DOCTORAL DISSERTATION》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105592369A (en) * | 2014-10-21 | 2016-05-18 | 中国移动通信集团公司 | Video abstract processing method and device |
WO2016062092A1 (en) * | 2014-10-24 | 2016-04-28 | 中兴通讯股份有限公司 | Method and mobile terminal for processing encrypted video |
CN105592355A (en) * | 2014-10-24 | 2016-05-18 | 中兴通讯股份有限公司 | Method for realizing encrypted video processing, and mobile terminal |
CN104320681A (en) * | 2014-11-07 | 2015-01-28 | 百视通网络电视技术发展有限责任公司 | CDN back-to-source service method and system |
CN104320681B (en) * | 2014-11-07 | 2018-03-09 | 百视通网络电视技术发展有限责任公司 | A kind of CDN returns the method and system of source service |
CN109525867A (en) * | 2017-09-18 | 2019-03-26 | 中兴通讯股份有限公司 | Load-balancing method, device and mobile terminal |
CN109618195A (en) * | 2018-12-27 | 2019-04-12 | 贵州省广播电视信息网络股份有限公司 | A method of platform injection feedback is provided for handling downstream matchmaker |
Also Published As
Publication number | Publication date |
---|---|
CN104093045B (en) | 2018-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108989264B (en) | Live broadcast method, system and related equipment | |
CN104883618B (en) | Programme televised live tries method, apparatus and system | |
CN105635180B (en) | Information push method and device | |
CN103260079A (en) | Control method and control device for multi-screen interaction | |
CN101677394B (en) | Method and apparatus for commercial break based on IPTV | |
CN103813185B (en) | A kind of method that segment programs are quickly distributed, server and client | |
CN104093045A (en) | Method and system for processing OTT TV playing request based on source return | |
CN105263055B (en) | A kind of interactive approach and system of live telecast | |
CN101742240B (en) | IPTV (internet protocol television) system capable of flexibly switching multi-media nodes and implementation method thereof | |
CN103533395A (en) | Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel | |
US20080243602A1 (en) | Systems and methods for providing iptv advertisements | |
CN102946552A (en) | Media asset injection method and related system | |
CN102571409B (en) | Service request management system and method for realizing service across-terminal application | |
KR20090123781A (en) | Method and apparatus for using internet protocol television based on application received by multi-cast session | |
CN106161351A (en) | Method, device and the CDN server that streaming media service is merged with file download | |
CN107925798A (en) | receiving device, sending device and data processing method | |
CN101431653A (en) | Method, system and apparatus for creating and demanding channel | |
CN101355676B (en) | Method for providing network television service information and network television service system | |
US8978059B2 (en) | Connecting message media with shared digital media | |
US9674564B2 (en) | System and methods for multicast delivery of internet protocol video content | |
CN108668151B (en) | Audio and video interaction method and device | |
CN106303619A (en) | A kind of advertisement placement method, Apparatus and system | |
US8341666B2 (en) | ADM enabled OITF, supporting IPTV infrastructure and associated methods | |
WO2016082806A1 (en) | Video processing method and device | |
KR20100023473A (en) | Individual broadcasting system and method for providing chatting service on individual broadcasting using iptv |
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 |