CN107135417A - A kind of throwing screen method and system of HLS protocol - Google Patents

A kind of throwing screen method and system of HLS protocol Download PDF

Info

Publication number
CN107135417A
CN107135417A CN201710426836.1A CN201710426836A CN107135417A CN 107135417 A CN107135417 A CN 107135417A CN 201710426836 A CN201710426836 A CN 201710426836A CN 107135417 A CN107135417 A CN 107135417A
Authority
CN
China
Prior art keywords
mpeg2
screen
hls
throwing
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
Application number
CN201710426836.1A
Other languages
Chinese (zh)
Other versions
CN107135417B (en
Inventor
刘海宝
陈志标
魏理坚
刘小杰
吴治雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen yunnet bate Technology Co., Ltd.
Original Assignee
Shenzhen Fly Resistant Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Fly Resistant Technology Co Ltd filed Critical Shenzhen Fly Resistant Technology Co Ltd
Priority to CN201710426836.1A priority Critical patent/CN107135417B/en
Publication of CN107135417A publication Critical patent/CN107135417A/en
Application granted granted Critical
Publication of CN107135417B publication Critical patent/CN107135417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/765Media network packet handling intermediate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of throwing screen method of HLS protocol, including:Client sends the HLS for waiting to throw screen video to throwing screen agent side and linked;HLS links are converted to the big file links of MPEG2 TS by the screen agent side of throwing, and feed back to the client;The big file links of the MPEG2 TS are sent to DLNA throwing screen equipments and shielded with asking to throw by the client;The DLNA, which throws screen equipment and linked according to the big files of MPEG2 TS to described throw, shields agent side transmission MPEG2 TS large file requests, and opens throwing screen playing task;The screen agent side of throwing is sent to the DLNA and throws screen equipment and play out according to the corresponding MPEG2 TS fragment datas of MPEG2 TS large file acquisition requests.The invention also discloses a kind of throwing screen system of HLS protocol.The present invention can reduce content storage and management and dispatching cost, and improve the speed for playing frame out.

Description

A kind of throwing screen method and system of HLS protocol
Technical field
The present invention relates to the throwing screen method and system of communication technical field, more particularly to a kind of HLS protocol.
Background technology
With the popularization of mobile phone and intelligent television, application program of mobile phone APP throws screen and has become many shadows to intelligent television Depending on the preferred viewing mode of fan.And the popular protocol for throwing screen has DLNA (DIGITAL LIVING NETWORK ALLIANCE, DLNA), (Apple Inc. adds airplay in iOS4.2 and OS X Mountain Lion A kind of play-back technology), Miracast (formulated by Wi-Fi Alliance in 2012, it is wireless aobvious based on Wi-Fi direct Indicating is accurate).Wherein airplay is the throwing screen agreement that Apple Inc. releases, and the comparison on the product of apple is more, Miracast There is part intelligent television support, and DLNA is then to use most wide, the throwing screen agreement supported by general television manufacturer at present, Skyworth, TCL, the most of intelligent televisions of three magnitudes and TV box all support DLNA throwing screen agreement.
But, the relative software service for lagging behind internet is updated due to hardware device, at present many intelligence on the market Energy TV does not support the direct throwing screen that HLS (HTTP Live Streaming, hypertext live TV stream) is linked, can only support Mp4, MPEG2-TS (communications protocol for being used for audio, image and data), the main flow such as flv (Flash Video, stream media format) The broadcasting of file container format.
Current APP most of on the market video throws the throwing screen that screen is all based on mp4 container encapsulation format, such as Tengxun's video It is exactly mp4 that DLNA, which throws used video playback link during screen,.Although having part APP using the TV box of oneself to realize HLS throws the function of screen, but is only limitted to buy the throwing screen that the user of the TV box could use TV box to realize HLS, however, big portion The user without purchase TV box is divided still to use mp4 throwing screen mode, such as iqiyi.com does not have mp4 video sources so that DLNA throws screen and not supported on the APP, can only support the throwing screen of airplay and the TV box of iqiyi.com oneself.
Movie and television contents in throwing screen based on mp4, CDN (Content Delivery Network, content distributing network) Two parts of storage is may require that, a HLS is used for APP program request, and a mp4 is used for TV and throws screen, and the video for increasing portion mp4 is deposited Storage, carrying cost will necessarily increase, and the management and dispatching cost of corresponding movie and television contents also can accordingly increase.In addition, mp4 Container Formats In the presence of a very complicated file index structure, mp4 index size can be with up to 3-7 million in the movie and television contents of 2 hours Byte, this causes the video playback frame out stand-by period can be long.
The content of the invention
The present invention is directed to problems of the prior art there is provided a kind of throwing screen method and system of HLS protocol, can Content storage and management and dispatching cost are reduced, and raising plays out picture speed.
The technical scheme that the present invention is proposed with regard to above-mentioned technical problem is as follows:
On the one hand, the present invention provides a kind of throwing screen method of HLS protocol, including:
Client obtains the HLS for waiting to throw screen video and links and be sent to throwing screen agent side;
HLS links are converted to the big file links of MPEG2-TS by the screen agent side of throwing, and feed back to the client End;
The big file links of the MPEG2-TS are sent to DLNA throwing screen equipments and shielded with asking to throw by the client;
The DLNA, which throws screen equipment and linked according to the big files of the MPEG2-TS to described throw, shields agent side transmission MPEG2- TS large files are asked, and open throwing screen playing task;
The screen agent side of throwing is according to the corresponding MPEG2-TS bursts number of the MPEG2-TS large files acquisition request According to, and be sent to the DLNA and throw screen equipment and play out.
Further, it is described obtain wait throw screen video HLS link before, in addition to:
The client waits to throw screen video to content dispatch server transmission throwing screen linking request according to what user chose;
The content scheduling server shields linking request to institute after the legitimacy of the client is verified according to described throw HLS described in client feedback is stated to link.
Further, it is corresponding according to the MPEG2-TS large files acquisition request in the throwing screen agent side Before MPEG2-TS fragment datas, in addition to:
The screen agent side of throwing links the communication connection set up with CDN according to the HLS;
The CDN links institute after the legitimacy of the HLS links is verified to the screen agent side feedback HLS that throws Corresponding m3u8 files and MPEG2-TS fragment datas.
Further, the MPEG2-TS large files request includes the big file request positions of MPEG2-TS;It is described M3u8 files include size, duration and the relative position of all MPEG2-TS bursts;
The screen agent side of throwing is according to the corresponding MPEG2-TS bursts number of the MPEG2-TS large files acquisition request According to specifically including:
The big file request positions of the MPEG2-TS are converted to HLS by the screen agent side of throwing according to the m3u8 files The relevant position of middle MPEG2-TS bursts, and obtain from the MPEG2-TS fragment datas the corresponding of the MPEG2-TS bursts The data of position.
Further, the link of the MPEG2-TS big files is sent to DLNA in the client and throws screen equipment to ask Throw after shielding, in addition to:
The DLNA throws screen equipment after the big file links of this equipment support MPEG2-TS are detected, to the client End feedback throws the successful message of screen.
On the other hand, the present invention provides a kind of throwing screen system of HLS protocol, including client, throwing screen agent side, DLNA are thrown Screen equipment;
The client includes HLS and links acquisition module, and the HLS links acquisition module, which is used to obtain, to be waited to throw screen video HLS, which is linked and is sent to described throw, shields agent side;
The screen agent side of throwing includes link modular converter, and the link modular converter, which is used to link the HLS, to be changed Linked for the big files of MPEG2-TS, and feed back to the client;
The client also includes throwing screen request module, and the throwing screen request module is used for the big files of the MPEG2-TS Link is sent to DLNA and throws screen equipment to ask to throw screen;
The DLNA, which throws screen equipment, includes data demand module, and the data demand module is used for according to the MPEG2-TS Big file, which is linked to described throw, shields agent side transmission MPEG2-TS large file requests, and opens throwing screen playing task;
The screen agent side of throwing also includes data acquisition module, and the data acquisition module is used for according to described
The corresponding HLS of MPEG2-TS large file acquisition requests MPEG2-TS fragment datas, and send
Screen equipment is thrown to the DLNA to play out.
Further, the throwing screen system of the HLS protocol also includes content scheduling server;
The client also includes linking request module, and the linking request module is used to treat throwing screen according to what user chose Video is sent to the content scheduling server throws screen linking request;
The content scheduling server is used for after the legitimacy of the client is verified, shields linking request according to described throw Linked to HLS described in the client feedback.
Further, the throwing screen system of the HLS protocol also includes CDN;
The screen agent side of throwing also includes communication building block, and the communication building block is used to be linked according to the HLS Set up the communication connection with the CDN;
The CDN is used for after the legitimacy of the HLS links is verified, the HLS chains are fed back to the screen agent side of throwing Connect corresponding m3u8 files and MPEG2-TS fragment datas.
Further, the MPEG2-TS large files request includes the big file request positions of MPEG2-TS;It is described M3u8 files include size, duration and the relative position of all MPEG2-TS bursts;
The data acquisition module is specifically for according to the m3u8 files, by the big file request positions of the MPEG2-TS The relevant position of MPEG2-TS bursts in HLS is converted to, and the MPEG2-TS is obtained from the MPEG2-TS fragment datas The data of the relevant position of burst, are played out with being sent to the DLNA throwings screen equipment.
Further, the DLNA, which throws screen equipment, also includes success message feedback module, the success message feedback module For after the big file links of this equipment support MPEG2-TS are detected, throwing screen to the client feedback and successfully disappearing Breath.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
It will wait that the HLS links for throwing screen video are converted to the big files of MPEG2-TS and linked by throwing screen agent side, DLNA thrown The HLS links that screen equipment can not be played are converted to the big files of MPEG2-TS that can be played, i.e., only need to dispose a set of program request sides of HLS Case, reduces content storage and management and dispatching cost;MPEG2-TS does not have file header not have file index data yet, is only needed during broadcasting Data frame calculating just can obtain playing required data before and after reading video file, greatly reduce and the picture time, raising plays out picture The speed in face.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the schematic flow sheet of one embodiment of the throwing screen method for the HLS protocol that the present invention is provided;
Fig. 2 is the structural representation of one embodiment of the throwing screen system for the HLS protocol that the present invention is provided;
Fig. 3 is the structural representation of another embodiment of the throwing screen system for the HLS protocol that the present invention is provided.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiments of the invention provide a kind of throwing screen method of HLS protocol, referring to Fig. 1, this method includes:
S1, client obtain the HLS for waiting to throw screen video and link and be sent to throwing screen agent side;
HLS links are converted to the big files of MPEG2-TS and linked by S2, the throwing screen agent side, and feed back to the visitor Family end;
The big file links of the MPEG2-TS are sent to DLNA throwing screen equipments and shielded with asking to throw by S3, the client;
S4, the DLNA, which throw screen equipment and linked according to the big files of the MPEG2-TS to described throw, shields agent side transmission MPEG2-TS large files are asked, and open throwing screen playing task;
S5, the throwing screen agent side are according to the corresponding MPEG2-TS bursts of the MPEG2-TS large files acquisition request Data, and be sent to the DLNA and throw screen equipment and play out.
It should be noted that being provided with application APP in client, client end AP P treats the HLS of throwing screen video obtaining After link, HLS links are sent to throwing screen agent side, and notify throwing screen agent side is created to throw screen task.Screen agent side is thrown to receive To after HLS links, screen task of throwing is created according to HLS links, and HLS links are converted into the big file links of MPEG2-TS and is fed back Give client end AP P.Wherein, HLS is made up of a M3U8 file and at least one MPEG2-TS burst.M3U8 files are all The index file of MPEG2-TS bursts, includes duration, the absolute or relative position of all MPEG2-TS bursts, meanwhile, in M3U8 Increase the size (byte) and MD5 check values of all MPEG2-TS bursts in file.First frame of video of MPEG2-TS bursts For key frame, subsequent video frame is made up of the coded audio data of P frames and B frames (a gop sequence) and correspondence time.Throw screen MPEG2-TS burst of the agent side in HLS can obtain the big file links of MPEG2-TS.
Client end AP P starts to throw to DLNA and shielded after the big file links of the MPEG2-TS for throwing screen agent side feedback are received Equipment is initiated to throw screen request, and informs the file type for throwing screen link, wherein, the big texts of MPEG2-TS for throwing screen agent side feedback Part link is linked as screen is thrown.DLNA throw screen equipment receive throw screen request after, according to the big files of the MPEG2-TS link to Throw screen agent side and send the request of MPEG2-TS large files, to ask to throw screen data, and open throwing screen playing task, start to delay Punching.Screen agent side is thrown after throwing screen task is created, begins to download HLS video datas, and screen equipment hair is thrown receiving DLNA After the MPEG2-TS large files request sent, the position acquisition asked in being asked according to MPEG2-TS large files is corresponding Video data, and by video data feed back to DLNA throw screen equipment play.The present embodiment need to only dispose a set of HLS program request side Case, you can while being thrown applied to client end AP P and DLNA in screen equipment, reduce content storage and management and dispatching cost, and MPEG2-TS does not have file header not have file index data yet, and data frame calculating just may be used before and after video file need to be only read during broadcasting Obtain playing required data, greatly reduce and the picture time, improve playback rate.Further, since HLS videos are in itself by m3u8 files Cut into slices and constitute with MPEG2-TS, it is only necessary to which MPEG2-TS sections, which are stitched together, can just constitute a big file of MPEG2-TS, Without carrying out the conversion of container data form and the recodification of audio frequency and video, cpu consumption also will not for throwing screen agent side It is too big.
Further, before the client obtains the HLS links for treating throwing screen video, in addition to:
The client waits to throw screen video to content dispatch server transmission throwing screen linking request according to what user chose;
The content scheduling server shields linking request to institute after the legitimacy of the client is verified according to described throw HLS described in client feedback is stated to link.
It should be noted that user throws the video of screen needed for being chosen in client end AP P, client end AP P can basis Video selected by user is sent to content dispatch server throws screen linking request, to ask corresponding to the video selected by user HLS is linked.Content scheduling server first verifies the legal of client after the throwing screen linking request of client end AP P transmissions is received Property, such as verifying accounts information, after being verified, feed back corresponding HLS to client end AP P and link.
Further, it is corresponding according to the MPEG2-TS large files acquisition request in the throwing screen agent side Before MPEG2-TS fragment datas, in addition to:
The screen agent side of throwing links the communication connection set up with CDN according to the HLS;
The CDN links institute after the legitimacy of the HLS links is verified to the screen agent side feedback HLS that throws Corresponding m3u8 files and MPEG2-TS fragment datas.
It should be noted that in one preferred embodiment, throwing screen agent side right by CDN acquisition HLS links institute The data answered, that is, throw screen agent side and linked according to the HLS to CDN establishment http connections, CDN is legal identification http connections Property after, receive http connections, and start to throw screen agent side feedback HLS link corresponding to data.
Another preferred embodiment in, throw screen agent side and pass through other and throw screen agent sides or other app clients (hls data can be obtained from from other throwing screen agent sides, can also be obtained from other app client end of playing back, because used at end Be all a set of hls demand schemes) obtain the corresponding data of HLS links, without being obtained from CDN, to use p2p (Peer to Peer, peer-to-peer network) save bandwidth.In addition, screen agent side is thrown after data are obtained, by MD5 check values to acquired number According to being verified, to verify the correctness of mpeg2-ts fragment datas.
Further, the MPEG2-TS large files request includes the big file request positions of MPEG2-TS;It is described M3u8 files include size, duration and the relative position of all MPEG2-TS bursts;
The screen agent side of throwing is according to the corresponding MPEG2-TS bursts number of the MPEG2-TS large files acquisition request According to specifically including:
The big file request positions of the MPEG2-TS are converted to HLS by the screen agent side of throwing according to the m3u8 files The relevant position of middle MPEG2-TS bursts, and obtain from the MPEG2-TS fragment datas the corresponding of the MPEG2-TS bursts The data of position.
It should be noted that the big file request positions of MPEG2-TS are converted to MPGE2-TS bursts relevant position in HLS Conversion method is:
Assuming that having the size for including MPEG2-TS bursts in n ts burst, m3u8 in the m3u8 of HLS links, then parsing M3u8 can obtain the 1st to n burst size respectively N1, n2, n3, n4 ... ..., Nn.All MPEG2-TS bursts are spelled The big file of the MPEG2-TS for throwing screen can be just constituted together, therefore the size of the big files of MPEG2-TS is Assuming that the position for throwing the screen big files of agent side MPEG2-TS is posSo,
Int k=1;
Int offsetpos=pos;
while(offsetpos<Nk)
{
Offsetpos=offsetpos-Nk;
k++;
}
The corresponding data in pos positions that therefore, it can obtain the big files of MPEG2-TS are that HLS links k-th of burst The corresponding data in offsetpos positions.
Further, the link of the MPEG2-TS big files is sent to DLNA in the client and throws screen equipment to ask Throw after shielding, in addition to:
The DLNA throws screen equipment after the big file links of this equipment support MPEG2-TS are detected, to the client End feedback throws the successful message of screen.
It should be noted that DLNA throws screen equipment after throwing screen request is received, inquire about whether this equipment supports MPEG2- The throwing screen of the big file links of TS, if it does not, then throwing screen failure by client, if supported, notifies client to throw screen Success.
The embodiment of the present invention will wait that the HLS links for throwing screen video are converted to the big file chains of MPEG2-TS by throwing screen agent side Connect, the HLS links that DLNA is thrown into screen equipment to play are converted to the big files of MPEG2-TS that can be played, i.e., only need deployment The a set of demand schemes of HLS, reduce content storage and management and dispatching cost;MPEG2-TS does not have file header not have file index number yet According to, data frame calculating just can obtain playing required data before and after video file need to be only read during broadcasting, greatly reduce and the picture time, Improve the speed for playing frame out.
Correspondingly, the embodiment of the present invention additionally provides a kind of throwing screen system of HLS protocol, is able to carry out in embodiment one All flows.Referring to Fig. 2, the system includes client, throws screen agent side, DLNA throwing screen equipments;
The client includes HLS and links acquisition module, and the HLS links acquisition module, which is used to obtain, to be waited to throw screen video HLS, which is linked and is sent to described throw, shields agent side;
The screen agent side of throwing includes link modular converter, and the link modular converter, which is used to link the HLS, to be changed Linked for the big files of MPEG2-TS, and feed back to the client;
The client also includes throwing screen request module, and the throwing screen request module is used for the big files of the MPEG2-TS Link is sent to DLNA and throws screen equipment to ask to throw screen;
The DLNA, which throws screen equipment, includes data demand module, and the data demand module is used for according to the MPEG2-TS Big file, which is linked to described throw, shields agent side transmission MPEG2-TS large file requests, and opens throwing screen playing task;
The screen agent side of throwing also includes data acquisition module, and the data acquisition module is used for according to the MPEG2-TS The corresponding MPEG2-TS fragment datas of large file acquisition request, and be sent to the DLNA and throw screen equipment and play out.
Further, the throwing screen system of the HLS protocol also includes content scheduling server;
The client also includes linking request module, and the linking request module is used to treat throwing screen according to what user chose Video is sent to the content scheduling server throws screen linking request;
The content scheduling server is used for after the legitimacy of the client is verified, shields linking request according to described throw Linked to HLS described in the client feedback.
Further, the throwing screen system of the HLS protocol also includes CDN;
The screen agent side of throwing also includes communication building block, and the communication building block is used to be linked according to the HLS Set up the communication connection with the CDN;
The CDN is used for after the legitimacy of the HLS links is verified, the HLS chains are fed back to the screen agent side of throwing Connect corresponding m3u8 files and MPEG2-TS fragment datas.
Further, the MPEG2-TS large files request includes the big file request positions of MPEG2-TS;It is described M3u8 files include size, duration and the relative position of all MPEG2-TS bursts;
The data acquisition module is specifically for according to the m3u8 files, by the big file request positions of the MPEG2-TS The relevant position of MPEG2-TS bursts in HLS is converted to, and the MPEG2-TS is obtained from the MPEG2-TS fragment datas The data of the relevant position of burst, are played out with being sent to the DLNA throwings screen equipment.
Further, the DLNA, which throws screen equipment, also includes success message feedback module, the success message feedback module For after the big file links of this equipment support MPEG2-TS are detected, throwing screen to the client feedback and successfully disappearing Breath.
It is the structural representation of the throwing screen system of another HLS protocol provided in an embodiment of the present invention referring to Fig. 3, including CDN, throwing screen agent side, DLNA throw screen equipment, client and content scheduling server.When user, which clicks on, starts throwing screen task, Client end AP P obtains a HLS link from the request of content scheduling server, and HLS links are sent into throwing screen agent side, simultaneously Notify that throwing screen agent side creates throwing screen task.Throw screen agent side and return to the big file broadcast address of a MPEG2-TS, and create generation Reason throws screen task, m3u8 and MPEG2-TS fragment datas are asked to CDN.Client end AP P obtains throwing what screen agent side was returned The big file broadcast address of MPEG2-TS, throws screen equipment to DLNA and initiates to throw screen request, and inform the file type for throwing screen link. DLNA throws screen equipment and received after throwing screen request, the throwing screen whether this equipment supports the throwing screen to link is inquired about, if it does not, then Notify client to throw screen failure, if supported, notify client is thrown to shield successfully, and open throwing screen playing task, commence play out Buffering.Throw screen agent side to create after throwing screen task, begin to download HLS video datas, and screen equipment is thrown according to DLNA The big file request positions of MPEG2-TS are converted to corresponding HLS MPEG2-TS bursts position, download and are forwarded after corresponding data Screen equipment is thrown to DLNA to play.The present embodiment turns the big files of mpeg2-ts by HLS program requests, and DLNA throwing screen equipments can not be played HLS links be converted to and can play the big files of mpeg2-ts, successfully solving a set of HLS demand schemes can not be while applies The problem of client end AP P and DLNA throw screen equipment, storage and operation cost are reduced, the durability of HLS schemes is added, together When also compensate for the problem of mp4 video request program frame outs are slow.
The embodiment of the present invention will wait that the HLS links for throwing screen video are converted to the big file chains of MPEG2-TS by throwing screen agent side Connect, the HLS links that DLNA is thrown into screen equipment to play are converted to the big files of MPEG2-TS that can be played, i.e., only need deployment The a set of demand schemes of HLS, reduce content storage and management and dispatching cost;MPEG2-TS does not have file header not have file index number yet According to, data frame calculating just can obtain playing required data before and after video file need to be only read during broadcasting, greatly reduce and the picture time, Improve the speed for playing frame out.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (10)

1. a kind of throwing screen method of HLS protocol, it is characterised in that including:
Client obtains the HLS for waiting to throw screen video and links and be sent to throwing screen agent side;
HLS links are converted to the big file links of MPEG2-TS by the screen agent side of throwing, and feed back to the client;
The big file links of the MPEG2-TS are sent to DLNA throwing screen equipments and shielded with asking to throw by the client;
The DLNA throwing screen equipments link big to the throwing screen agent side transmission MPEG2-TS according to the big files of the MPEG2-TS File data is asked, and opens throwing screen playing task;
Described throw shields agent side according to the corresponding MPEG2-TS fragment datas of the MPEG2-TS large files acquisition request, and The DLNA throwings screen equipment is sent to play out.
2. the throwing screen method of HLS protocol as claimed in claim 1, it is characterised in that obtain screen to be thrown in the client and regard Before the HLS links of frequency, in addition to:
The client waits to throw screen video to content dispatch server transmission throwing screen linking request according to what user chose;
The content scheduling server shields linking request to the visitor after the legitimacy of the client is verified according to described throw Feed back the HLS links in family end.
3. the throwing screen method of HLS protocol as claimed in claim 1, it is characterised in that in the screen agent side of throwing according to described Before the corresponding MPEG2-TS fragment datas of MPEG2-TS large file acquisition requests, in addition to:
The screen agent side of throwing links the communication connection set up with CDN according to the HLS;
The CDN is linked corresponding after the legitimacy of the HLS links is verified to the throwing screen agent side feedback HLS M3u8 files and MPEG2-TS fragment datas.
4. the throwing screen method of HLS protocol as claimed in claim 3, it is characterised in that the MPEG2-TS large files please Ask including the big file request positions of MPEG2-TS;The m3u8 files include size, duration and the phase of all MPEG2-TS bursts To position;
The screen agent side of throwing is according to the corresponding MPEG2-TS fragment datas of the MPEG2-TS large files acquisition request, tool Body includes:
The screen agent side of throwing is converted to the MPEG2-TS big file request positions in HLS according to the m3u8 files The relevant position of MPEG2-TS bursts, and obtain from the MPEG2-TS fragment datas corresponding positions of the MPEG2-TS bursts The data put.
5. the throwing screen method of HLS protocol as claimed in claim 1, it is characterised in that in the client by the MPEG2- The link of TS big files is sent to DLNA and throws screen equipment with after asking to throw and shielding, in addition to:
The DLNA throws screen equipment after the big file links of this equipment support MPEG2-TS are detected, anti-to the client The successful message of screen is thrown in feedback.
6. the throwing screen system of a kind of HLS protocol, it is characterised in that including client, throw screen agent side, DLNA throwing screen equipments;
The client includes HLS and links acquisition module, and the HLS links acquisition module is used to obtain the HLS for waiting to throw screen video Link and be sent to described throw and shield agent side;
The screen agent side of throwing includes link modular converter, and the link modular converter is used to be converted to HLS links The big file links of MPEG2-TS, and feed back to the client;
The client also includes throwing screen request module, and the throwing screen request module is used to link the big files of the MPEG2-TS DLNA is sent to throw screen equipment to ask to throw screen;
The DLNA, which throws screen equipment, includes data demand module, and the data demand module is used for according to the big texts of the MPEG2-TS Part, which is linked to described throw, shields agent side transmission MPEG2-TS large file requests, and opens throwing screen playing task;
The screen agent side of throwing also includes data acquisition module, and the data acquisition module is used for according to the big texts of the MPEG2-TS Number of packages is sent to the DLNA and throws screen equipment and play out according to the corresponding MPEG2-TS fragment datas of acquisition request.
7. the throwing screen system of HLS protocol as claimed in claim 6, it is characterised in that the throwing screen system of the HLS protocol is also wrapped Include content scheduling server;
The client also includes linking request module, and the linking request module is used to treat throwing screen video according to what user chose Sent to the content scheduling server and throw screen linking request;
The content scheduling server is used for after the legitimacy of the client is verified, shields linking request to institute according to described throw HLS described in client feedback is stated to link.
8. the throwing screen system of HLS protocol as claimed in claim 6, it is characterised in that the throwing screen system of the HLS protocol is also wrapped Include CDN;
The screen agent side of throwing also includes communication building block, and the communication building block, which is used to be linked according to the HLS, to be set up With the communication connection of the CDN;
The CDN is used for after the legitimacy of the HLS links is verified, feeding back the HLS to the throwing screen agent side links institute Corresponding m3u8 files and MPEG2-TS fragment datas.
9. the throwing screen system of HLS protocol as claimed in claim 8, it is characterised in that the MPEG2-TS large files please Ask including the big file request positions of MPEG2-TS;The m3u8 files include size, duration and the phase of all MPEG2-TS bursts To position;
The data acquisition module is specifically for according to the m3u8 files, the big file request positions of the MPEG2-TS are changed For the relevant position of MPEG2-TS bursts in HLS, and obtain from the MPEG2-TS fragment datas MPEG2-TS bursts Relevant position data, throw screen equipment to be sent to the DLNA and play out.
10. the throwing screen system of HLS protocol as claimed in claim 6, it is characterised in that the DLNA, which throws screen equipment, also to be included into Work(message feedback module, the success message feedback module is used to detect this equipment support big file chains of MPEG2-TS After connecing, thrown to the client feedback and shield successful message.
CN201710426836.1A 2017-06-08 2017-06-08 A kind of throwing screen method and system of HLS protocol Active CN107135417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710426836.1A CN107135417B (en) 2017-06-08 2017-06-08 A kind of throwing screen method and system of HLS protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710426836.1A CN107135417B (en) 2017-06-08 2017-06-08 A kind of throwing screen method and system of HLS protocol

Publications (2)

Publication Number Publication Date
CN107135417A true CN107135417A (en) 2017-09-05
CN107135417B CN107135417B (en) 2019-08-20

Family

ID=59734582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710426836.1A Active CN107135417B (en) 2017-06-08 2017-06-08 A kind of throwing screen method and system of HLS protocol

Country Status (1)

Country Link
CN (1) CN107135417B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460889A (en) * 2019-09-16 2019-11-15 深圳市迅雷网络技术有限公司 A kind of video throws screen method, apparatus, system and storage medium
CN110515573A (en) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 Throw screen method, apparatus, system and computer equipment
WO2020043104A1 (en) * 2018-08-30 2020-03-05 华为技术有限公司 Video screen projection method, device, computer equipment and storage medium
CN111182336A (en) * 2019-10-28 2020-05-19 腾讯科技(深圳)有限公司 Video data playing processing method and device, server and terminal
CN112055040A (en) * 2019-06-06 2020-12-08 百度在线网络技术(北京)有限公司 Screen projection processing method, device, equipment and storage medium
CN112243158A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Media file processing method and device and electronic equipment
CN112328344A (en) * 2020-11-02 2021-02-05 联想(北京)有限公司 Screen projection processing method and first equipment
CN112584200A (en) * 2020-12-10 2021-03-30 北京奇艺世纪科技有限公司 Screen projection method and system, electronic equipment and storage medium
CN112616065A (en) * 2020-12-16 2021-04-06 深圳乐播科技有限公司 Screen image initiating method and device, computer equipment, readable storage medium and screen image presenting system
CN112672212A (en) * 2020-12-16 2021-04-16 深圳乐播科技有限公司 Video transcoding screen projection method, device and system
CN113778361A (en) * 2021-09-10 2021-12-10 武汉市人机科技有限公司 Intelligent whiteboard with double-screen interaction function and file one-key screen shifting method
CN114339332A (en) * 2021-05-17 2022-04-12 海信视像科技股份有限公司 Mobile terminal, display device and cross-network screen projection method
CN114827682A (en) * 2022-04-08 2022-07-29 北京字节跳动网络技术有限公司 Screen projection method, system, equipment and storage medium
WO2022237379A1 (en) * 2021-05-10 2022-11-17 花瓣云科技有限公司 Screen projection method and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325271A (en) * 2011-09-02 2012-01-18 深圳创维-Rgb电子有限公司 Method and device of sending document from mobile terminal to television for sharing and mobile terminal
CN105872858A (en) * 2016-04-27 2016-08-17 亦非云互联网技术(上海)有限公司 Video sharing method and system, video processing system and client side
CN106254906A (en) * 2016-08-09 2016-12-21 亦非云互联网技术(上海)有限公司 A kind of net cast HLS anti-stealing link method and system
US20170019445A1 (en) * 2015-07-16 2017-01-19 Arris Enterprises, Inc. Systems and methods for providing dlna streaming to client devices
CN106685942A (en) * 2016-12-20 2017-05-17 徐亮 Video live and replaying system and video live and replaying method
CN106713987A (en) * 2015-07-23 2017-05-24 阿里巴巴集团控股有限公司 Implementation method and device for audio/video sharing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102325271A (en) * 2011-09-02 2012-01-18 深圳创维-Rgb电子有限公司 Method and device of sending document from mobile terminal to television for sharing and mobile terminal
US20170019445A1 (en) * 2015-07-16 2017-01-19 Arris Enterprises, Inc. Systems and methods for providing dlna streaming to client devices
CN106713987A (en) * 2015-07-23 2017-05-24 阿里巴巴集团控股有限公司 Implementation method and device for audio/video sharing
CN105872858A (en) * 2016-04-27 2016-08-17 亦非云互联网技术(上海)有限公司 Video sharing method and system, video processing system and client side
CN106254906A (en) * 2016-08-09 2016-12-21 亦非云互联网技术(上海)有限公司 A kind of net cast HLS anti-stealing link method and system
CN106685942A (en) * 2016-12-20 2017-05-17 徐亮 Video live and replaying system and video live and replaying method

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515573A (en) * 2018-05-21 2019-11-29 腾讯科技(深圳)有限公司 Throw screen method, apparatus, system and computer equipment
CN110515573B (en) * 2018-05-21 2022-07-22 腾讯科技(深圳)有限公司 Screen projection method, device and system and computer equipment
CN110876080B (en) * 2018-08-30 2021-07-20 华为技术有限公司 Video screen projection method and device, computer equipment and storage medium
WO2020043104A1 (en) * 2018-08-30 2020-03-05 华为技术有限公司 Video screen projection method, device, computer equipment and storage medium
CN110876080A (en) * 2018-08-30 2020-03-10 华为技术有限公司 Video screen projection method and device, computer equipment and storage medium
KR102387161B1 (en) 2018-08-30 2022-04-14 후아웨이 테크놀러지 컴퍼니 리미티드 Video screen projection method and apparatus, computer equipment, and storage medium
EP3840394A4 (en) * 2018-08-30 2021-09-15 Huawei Technologies Co., Ltd. Video screen projection method, device, computer equipment and storage medium
KR20210047933A (en) * 2018-08-30 2021-04-30 후아웨이 테크놀러지 컴퍼니 리미티드 Video screen projection method and apparatus, computer equipment, and storage media
CN112055040A (en) * 2019-06-06 2020-12-08 百度在线网络技术(北京)有限公司 Screen projection processing method, device, equipment and storage medium
CN112243158A (en) * 2019-07-18 2021-01-19 腾讯科技(深圳)有限公司 Media file processing method and device and electronic equipment
CN112243158B (en) * 2019-07-18 2023-07-14 腾讯科技(深圳)有限公司 Media file processing method and device, computer readable medium and electronic equipment
CN110460889A (en) * 2019-09-16 2019-11-15 深圳市迅雷网络技术有限公司 A kind of video throws screen method, apparatus, system and storage medium
CN111182336A (en) * 2019-10-28 2020-05-19 腾讯科技(深圳)有限公司 Video data playing processing method and device, server and terminal
CN112328344B (en) * 2020-11-02 2022-11-22 联想(北京)有限公司 Screen projection processing method and first equipment
CN112328344A (en) * 2020-11-02 2021-02-05 联想(北京)有限公司 Screen projection processing method and first equipment
CN112584200A (en) * 2020-12-10 2021-03-30 北京奇艺世纪科技有限公司 Screen projection method and system, electronic equipment and storage medium
CN112584200B (en) * 2020-12-10 2023-06-30 北京奇艺世纪科技有限公司 Screen projection method, system, electronic equipment and storage medium
CN112672212A (en) * 2020-12-16 2021-04-16 深圳乐播科技有限公司 Video transcoding screen projection method, device and system
CN112616065A (en) * 2020-12-16 2021-04-06 深圳乐播科技有限公司 Screen image initiating method and device, computer equipment, readable storage medium and screen image presenting system
WO2022237379A1 (en) * 2021-05-10 2022-11-17 花瓣云科技有限公司 Screen projection method and electronic device
CN114339332A (en) * 2021-05-17 2022-04-12 海信视像科技股份有限公司 Mobile terminal, display device and cross-network screen projection method
CN113778361A (en) * 2021-09-10 2021-12-10 武汉市人机科技有限公司 Intelligent whiteboard with double-screen interaction function and file one-key screen shifting method
CN114827682A (en) * 2022-04-08 2022-07-29 北京字节跳动网络技术有限公司 Screen projection method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN107135417B (en) 2019-08-20

Similar Documents

Publication Publication Date Title
CN107135417A (en) A kind of throwing screen method and system of HLS protocol
US11575961B2 (en) Reception apparatus, transmission apparatus, and data processing method
US9769236B2 (en) Combined broadcast and unicast delivery
CN101159577B (en) Apparatus for receiving adaptive broadcast signal and method thereof
US9282448B2 (en) Method, system and apparatus for providing streaming media service
CN105100954A (en) Interactive response system and method based on Internet communication and streaming media live broadcast
US10462529B2 (en) Multicast transmission method, apparatus and system for OTT media
US11277456B2 (en) System and method for delivering an audio-visual con tent to a client device
CN108063769B (en) Method and device for realizing content service and content distribution network node
GB2361154A (en) Digital broadcasting
US9888272B2 (en) Method, terminal and CDN server in IPTV system for realizing playing while downloading
US12081317B2 (en) Information processing apparatus, client apparatus, and data processing method
WO2018079295A1 (en) Information processing device and information processing method
CN114040232A (en) Screen projection system, method, electronic device and storage medium
CN103024491A (en) Video playing method and video playing system of mobile terminal
CN105430510A (en) Video on demand method, gateway, smart terminal and video on demand system
WO2021064664A1 (en) Method for broadcasting dash/hls hybrid multimedia streams
US9998514B2 (en) Method and apparatus for handling files in association with media content delivery
CN102547412A (en) Method, system, terminal and server for sharing TV live programs among users
CN101188740A (en) Multicast method for living broadcast network TV
JP2009245270A (en) Image distribution system and image distribution method
CN105744309A (en) Method, device and system for generating and playing, and terminal
CN105049415B (en) A kind of method and system by satellite remote transmission data
Dubs Another Busy Year for the DVB Project
Stockhammer et al. DVB-IPTV Content Download Services-IPTV services anytime and anywhere

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
CP03 Change of name, title or address

Address after: 518000 floor 14, Hangsheng science and technology building, No. 8, South 6th Road, high tech Zone, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen yunnet bate Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Patentee before: SHENZHEN NAIFEI TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address