CN102685088A - Method for playing M3U8 stream media - Google Patents
Method for playing M3U8 stream media Download PDFInfo
- Publication number
- CN102685088A CN102685088A CN2011102623075A CN201110262307A CN102685088A CN 102685088 A CN102685088 A CN 102685088A CN 2011102623075 A CN2011102623075 A CN 2011102623075A CN 201110262307 A CN201110262307 A CN 201110262307A CN 102685088 A CN102685088 A CN 102685088A
- Authority
- CN
- China
- Prior art keywords
- file
- computer
- client
- windows
- request
- 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
Images
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a method for playing an M3U8 stream media, which is applicable to a computer. The method provided by the invention comprises the following steps: monitoring a request sent by a client to play the M3U8 stream media through a windows backstage service of a computer; connecting the request with a remote server to ask for obtaining M3U3 file information; analyzing an M3U8 file; obtaining a remote server address of a TS (test set) file from the M3U8 file; checking validity of the TS file address; receiving the TS file and checking the integrality of the TS file; caching the TS file; waiting http request of a client player on the TS file; receiving the TS file returned through the windows backstage service and caching the TS file for the second time after the client player sends the request; informing the client player of the address; and playing the TS file by the client player. According to the technical scheme provided by the invention, a user can directly watch stream media information in a client of the computer and does not need to store a file firstly, so as to greatly reduce the delay duration of live broadcast.
Description
Technical field
The present invention relates to multimedia technology field, relate in particular to a kind of method of the M3U8 of broadcast Streaming Media.
Background technology
Multiple player has appearred in the continuous development along with multimedia technology, like MediaPlayer, KMPlayer, VLCMediaPlayer etc.; Broadcast for file medium has been accomplished almost ideal; And, then lack the support of backstage service for the broadcast that continues Streaming Media, therefore can't accomplish the live of Streaming Media; And must be independent disk file form with the medium unloading earlier, play again.
Summary of the invention
The objective of the invention is to propose a kind of method of the M3U8 of broadcast Streaming Media, can on computer client, directly watch the stream media information that the service provider provides and need not advanced style of writing part and preserve, thereby significantly reduced live delay duration.
For reaching this purpose, the present invention adopts following technical scheme:
A kind of method of playing the M3U8 Streaming Media is applicable to may further comprise the steps on the computer:
The request of the broadcast M3U8 Streaming Media of client transmission is monitored in the Windows backstage service of A, computer;
Connect between the Windows backstage service of B, computer and the remote server;
The Windows backstage service of C, computer is to remote server acquisition request M3U8 fileinfo;
M3U8 file, the remote server address that obtains the TS file are resolved in the Windows backstage service of D, computer;
The validity of the service verification TS file address, Windows backstage of E, computer receives the TS file and verifies the integrality of TS file, carries out buffer memory, waits for the http request of client player to the TS file;
F, client player are initiated the http request to the TS file;
The TS file is returned in the said http request of the Windows backstage service response of G, computer, and client player receives the TS file and carries out the secondary buffer memory, with secondary buffer address notice client player;
H, client player are play the TS file.
Further comprising the steps of:
Video button is opened in click;
Client shows that dialog box supplies the user to select video frequency program;
The request that client is sent is monitored in the Windows backstage service of computer.
Further comprising the steps of:
Click stops broadcast button;
Client player stops to play the TS file;
The request that client is sent is monitored in the Windows backstage service of computer.
Adopted technical scheme of the present invention; Be to the expansion of the function of existing media player, can accomplish for the stream media information that the service provider provided live in real time, under the situation of personal user's environment 2M bandwidth; Time of delay is between 20~30 seconds, much smaller than 60 seconds.
Description of drawings
Fig. 1 is a flow chart of playing the M3U8 Streaming Media in the specific embodiment of the invention.
Embodiment
Further specify technical scheme of the present invention below in conjunction with accompanying drawing and through embodiment.
The main thought of technical scheme of the present invention is: in order to support live streaming media, in the finger daemon of server, Streaming Media according to duration cutting in per three minutes, and is saved as the file of TS form and the M3U8 file of listed files; Between the service versus server finger daemon of PC backstage, keep network service unimpeded, and communication protocol stack safely and efficiently is provided; In the service of PC backstage, set up and receive buffer area, resolve M3U8 and related protocol content, finally in this buffer area, the TS file is spliced into a complete information flow, transfer to player again.
Fig. 1 is a flow chart of playing the M3U8 Streaming Media in the specific embodiment of the invention.As shown in Figure 1, this flow process that is applicable to the broadcast M3U8 Streaming Media on the computer may further comprise the steps:
Connect between the Windows backstage service of step 103, computer and the remote server.
The Windows backstage service of step 104, computer is to remote server acquisition request M3U8 fileinfo.
M3U8 file, the remote server address that obtains the TS file are resolved in the Windows backstage service of step 105, computer.
The validity of the service verification TS file address, Windows backstage of step 106, computer receives the TS file and verifies the integrality of TS file, carries out buffer memory, waits for the http request of client player to the TS file.
The TS file is returned in this http request of the Windows backstage service response of step 108, computer, and client player receives the TS file and carries out the secondary buffer memory, with secondary buffer address notice client player;
The above; Be merely the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with this technological people in the technical scope that the present invention disclosed; The variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.
Claims (3)
1. a method of playing the M3U8 Streaming Media is applicable to it is characterized in that on the computer, may further comprise the steps:
The request of the broadcast M3U8 Streaming Media of client transmission is monitored in the Windows backstage service of A, computer;
Connect between the Windows backstage service of B, computer and the remote server;
The Windows backstage service of C, computer is to remote server acquisition request M3U8 fileinfo;
M3U8 file, the remote server address that obtains the TS file are resolved in the Windows backstage service of D, computer;
The validity of the service verification TS file address, Windows backstage of E, computer receives the TS file and verifies the integrality of TS file, carries out buffer memory, waits for the http request of client player to the TS file;
F, client player are initiated the http request to the TS file;
The TS file is returned in the said http request of the Windows backstage service response of G, computer, and client player receives the TS file and carries out the secondary buffer memory, with secondary buffer address notice client player;
H, client player are play the TS file.
2. a kind of method of playing the M3U8 Streaming Media according to claim 1 is characterized in that, and is further comprising the steps of:
Video button is opened in click;
Client shows that dialog box supplies the user to select video frequency program;
The request that client is sent is monitored in the Windows backstage service of computer.
3. a kind of method of playing the M3U8 Streaming Media according to claim 1 is characterized in that, and is further comprising the steps of:
Click stops broadcast button;
Client player stops to play the TS file;
The request that client is sent is monitored in the Windows backstage service of computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110262307.5A CN102685088B (en) | 2011-09-06 | 2011-09-06 | Method for playing M3U8 stream media |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110262307.5A CN102685088B (en) | 2011-09-06 | 2011-09-06 | Method for playing M3U8 stream media |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102685088A true CN102685088A (en) | 2012-09-19 |
CN102685088B CN102685088B (en) | 2015-03-18 |
Family
ID=46816460
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110262307.5A Expired - Fee Related CN102685088B (en) | 2011-09-06 | 2011-09-06 | Method for playing M3U8 stream media |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102685088B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024289A (en) * | 2012-12-28 | 2013-04-03 | 天脉聚源(北京)传媒科技有限公司 | Method and device for editing live stream on basis of M3U8 listing protocol |
CN103414733A (en) * | 2013-09-03 | 2013-11-27 | 百视通网络电视技术发展有限责任公司 | HLS (HTTP Live Streaming) streaming media playing method and HLS streaming media playing system |
CN103491427A (en) * | 2013-09-11 | 2014-01-01 | 天脉聚源(北京)传媒科技有限公司 | Method and device for processing video |
CN103702171A (en) * | 2013-12-12 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method for downloading video stream and electronic equipment |
CN103763609A (en) * | 2013-11-22 | 2014-04-30 | 乐视致新电子科技(天津)有限公司 | HLS protocol-based channel switching method and apparatus |
CN104244079A (en) * | 2013-06-07 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Video download method and device |
CN104410901A (en) * | 2014-11-18 | 2015-03-11 | 上海天脉聚源文化传媒有限公司 | Play method and play device of M3U8 format live stream |
WO2016015419A1 (en) * | 2014-07-31 | 2016-02-04 | 合一网络技术(北京)有限公司 | Streaming media playing method and playing device |
CN105407412A (en) * | 2014-09-15 | 2016-03-16 | 上海天脉聚源文化传媒有限公司 | Method and device for playing streaming media supporting M3U8 format |
CN108712684A (en) * | 2018-06-07 | 2018-10-26 | 深圳市茁壮网络股份有限公司 | A kind of local TS stream files playback method, third party's player and terminal |
CN109089174A (en) * | 2018-08-16 | 2018-12-25 | 咪咕视讯科技有限公司 | A kind of processing method and processing device of multimedia data stream, computer storage medium |
CN110139136A (en) * | 2019-04-30 | 2019-08-16 | 北京数字太和科技有限责任公司 | A kind of method and device that the Web TV based on DRM technology plays |
CN110557689A (en) * | 2019-09-29 | 2019-12-10 | 湖南快乐阳光互动娱乐传媒有限公司 | Video playing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668178A (en) * | 2008-09-04 | 2010-03-10 | 杨良海 | Method for realizing network streaming media unbuffered technology in electronic products |
CN101697549A (en) * | 2009-10-23 | 2010-04-21 | 中兴通讯股份有限公司 | Method and system for displaying stream media and stream media management server |
WO2010108053A1 (en) * | 2009-03-19 | 2010-09-23 | Azuki Systems, Inc. | Method for scalable live streaming delivery for mobile audiences |
CN102118428A (en) * | 2010-12-29 | 2011-07-06 | 天脉聚源(北京)传媒科技有限公司 | Method and system for playing streaming media |
-
2011
- 2011-09-06 CN CN201110262307.5A patent/CN102685088B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101668178A (en) * | 2008-09-04 | 2010-03-10 | 杨良海 | Method for realizing network streaming media unbuffered technology in electronic products |
WO2010108053A1 (en) * | 2009-03-19 | 2010-09-23 | Azuki Systems, Inc. | Method for scalable live streaming delivery for mobile audiences |
CN101697549A (en) * | 2009-10-23 | 2010-04-21 | 中兴通讯股份有限公司 | Method and system for displaying stream media and stream media management server |
CN102118428A (en) * | 2010-12-29 | 2011-07-06 | 天脉聚源(北京)传媒科技有限公司 | Method and system for playing streaming media |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024289A (en) * | 2012-12-28 | 2013-04-03 | 天脉聚源(北京)传媒科技有限公司 | Method and device for editing live stream on basis of M3U8 listing protocol |
CN103024289B (en) * | 2012-12-28 | 2016-06-15 | 天脉聚源(北京)传媒科技有限公司 | A kind of edit methods based on M3U8 list protocol live TV stream and device |
CN104244079A (en) * | 2013-06-07 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Video download method and device |
CN104244079B (en) * | 2013-06-07 | 2019-07-16 | 腾讯科技(深圳)有限公司 | A kind of method for downloading video and device |
CN103414733B (en) * | 2013-09-03 | 2016-10-26 | 百视通网络电视技术发展有限责任公司 | The player method of HLS Streaming Media and system |
CN103414733A (en) * | 2013-09-03 | 2013-11-27 | 百视通网络电视技术发展有限责任公司 | HLS (HTTP Live Streaming) streaming media playing method and HLS streaming media playing system |
CN103491427A (en) * | 2013-09-11 | 2014-01-01 | 天脉聚源(北京)传媒科技有限公司 | Method and device for processing video |
CN103763609A (en) * | 2013-11-22 | 2014-04-30 | 乐视致新电子科技(天津)有限公司 | HLS protocol-based channel switching method and apparatus |
CN103702171A (en) * | 2013-12-12 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method for downloading video stream and electronic equipment |
WO2016015419A1 (en) * | 2014-07-31 | 2016-02-04 | 合一网络技术(北京)有限公司 | Streaming media playing method and playing device |
CN105407412A (en) * | 2014-09-15 | 2016-03-16 | 上海天脉聚源文化传媒有限公司 | Method and device for playing streaming media supporting M3U8 format |
CN104410901A (en) * | 2014-11-18 | 2015-03-11 | 上海天脉聚源文化传媒有限公司 | Play method and play device of M3U8 format live stream |
CN108712684A (en) * | 2018-06-07 | 2018-10-26 | 深圳市茁壮网络股份有限公司 | A kind of local TS stream files playback method, third party's player and terminal |
CN108712684B (en) * | 2018-06-07 | 2021-04-06 | 深圳市茁壮网络股份有限公司 | Local TS (transport stream) file playing method, third-party player and terminal |
CN109089174A (en) * | 2018-08-16 | 2018-12-25 | 咪咕视讯科技有限公司 | A kind of processing method and processing device of multimedia data stream, computer storage medium |
CN109089174B (en) * | 2018-08-16 | 2020-12-22 | 咪咕视讯科技有限公司 | Multimedia data stream processing method and device and computer storage medium |
CN110139136A (en) * | 2019-04-30 | 2019-08-16 | 北京数字太和科技有限责任公司 | A kind of method and device that the Web TV based on DRM technology plays |
CN110139136B (en) * | 2019-04-30 | 2021-11-26 | 北京数字太和科技有限责任公司 | Method and device for playing network television based on DRM technology |
CN110557689A (en) * | 2019-09-29 | 2019-12-10 | 湖南快乐阳光互动娱乐传媒有限公司 | Video playing method and device |
CN110557689B (en) * | 2019-09-29 | 2022-02-22 | 湖南快乐阳光互动娱乐传媒有限公司 | Video playing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102685088B (en) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102685088A (en) | Method for playing M3U8 stream media | |
CN102790911B (en) | Direct playing and playback method and system | |
CN102281474B (en) | Live network broadcasting and recording method | |
CN102118428B (en) | Method and system for playing streaming media | |
JP5979483B2 (en) | Content reproduction apparatus, content reproduction system, and content reproduction method | |
WO2014199357A1 (en) | Hybrid video recognition system based on audio and subtitle data | |
US20130294747A1 (en) | Content playing device, content playing method, distribution system, content playing program, recording medium, and data structure | |
CN105228001B (en) | A kind of method and system that FLV format videos play online | |
CN104506937A (en) | Method and system for sharing processing of audios and videos | |
WO2007130310A3 (en) | A system and method for pushing conditional message data between a client device and a server device in an internet protocol television network | |
CA2822751C (en) | Offline generation of subtitles | |
CN102137279B (en) | Method for realizing disconnection continuous playing of on-line video of portable electronic equipment | |
WO2016015419A1 (en) | Streaming media playing method and playing device | |
WO2012138183A3 (en) | Apparatus and method for providing content using a network condition-based adaptive data streaming service | |
CN105025345A (en) | Method and device for recording live program | |
CN101577827A (en) | Control method of delay playing and system | |
CN102740125A (en) | System and method for playing streaming media | |
CN102065322A (en) | Multi-service-oriented log processing method and device of Internet protocol television (IPTV) system | |
CN103974057A (en) | Video quality user experience value evaluation method, device and system | |
CN101026721A (en) | Method, system and device for recording and playing programmes without advertisement | |
CN106303754A (en) | A kind of audio data play method and device | |
CN106792158A (en) | Order video inserting method based on internet television client | |
US20150049208A1 (en) | Method, device and system for video monitoring based on universal plug and play (UPnP) | |
CN105578216A (en) | Method for realizing HLS on-demand fast forward and fast backward operation | |
US20220394328A1 (en) | Consolidated Watch Parties |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Method for playing M3U8 stream media Effective date of registration: 20170401 Granted publication date: 20150318 Pledgee: Silicon Valley Bank Co.,Ltd. Pledgor: TVMINING (BEIJING) MEDIA TECHNOLOGY Co.,Ltd. Registration number: 2017310000019 |
|
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150318 Termination date: 20210906 |
|
CF01 | Termination of patent right due to non-payment of annual fee |