CN105407412A - Method and device for playing streaming media supporting M3U8 format - Google Patents
Method and device for playing streaming media supporting M3U8 format Download PDFInfo
- Publication number
- CN105407412A CN105407412A CN201410468187.8A CN201410468187A CN105407412A CN 105407412 A CN105407412 A CN 105407412A CN 201410468187 A CN201410468187 A CN 201410468187A CN 105407412 A CN105407412 A CN 105407412A
- Authority
- CN
- China
- Prior art keywords
- files
- stream media
- stream
- file
- dst player
- 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.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and device for playing stream media in an M3U8 file format, so as to allow an Adobe system Flash player to flexibly play stream media in the M3U8 file format and improving user experience in viewing stream media files. The method provided by the invention comprises the steps in which, a stream media player acquires M3U8 fragmented streams of a stream media file in a time-sharing and continuous manner; the stream media player caches the M3U8 fragmented streams of the stream media file; and the stream media player plays the stream media file. The method and device provided by the invention for playing the stream media file adopts a new method of playing the stream media file in the M3U8 format, thereby enabling diversified and flexible viewing ways of M3U8 stream media files for users, and enhancing the user experience.
Description
Technical field
The present invention relates to files in stream media and play field, particularly the invention discloses a kind of method and the device of playing M3U8 files in stream media.
Background technology
HTTPLiveStreaming (abbreviation is HLS) is a stream media network host-host protocol based on HTTP proposed by Apple.It is a part for Apple QuickTimeX and iPhone software systems.Its operation principle is that whole stream is divided into the file based on HTTP little one by one to download, and only downloads at every turn.When Media Stream is play, client can be selected to download same resource with different speed from many different Back Up Sources, allows flow media session to adapt to different data rates.When a beginning flow media session, client can download extendedM3U (m3u8) listing file that comprises metadata, for finding available Media Stream.M3U is writing a Chinese character in simplified form of MP3URL, MP3URL and MovingPictureExpertsGroupAudioLayer3UniformResourceLocat or, is media file address list, uses on the equipment of the iOS system of apple and all can distribute by the mode of http.M3U8 is the proprietary video format of the system of apple, and the browser under Apple Computers or iOS all supports that M3U8 plays.
In prior art, website generally adopts the flash player of Adobe company, and this player can locate seek at any time, advance, the functions such as retrogressing, but in view of m3u8 be Apple support specific broadcast format, the primary system of Adobe company does not support the broadcasting of m3u8.Such as a kind of interaction network page media player based on flash by the JW player (JWPlayer) of Jeroen and Wijering joint development, but JWPlayer is generally by the mode of plug-in HLS player, realize the plug-in parsing of hlsm3u8, this needs multiple file to dispose usually simultaneously, master file needs to be separated with plug-in m3u8 file, file is imperfect, be unfavorable for very much disposing, uniformity is inadequate, and this player is not supported searching, location, advanced or fallback function.To sum up, support in prior art that the media player of M3U8 form exists file imperfect, the problem that flexibility is inadequate.
Summary of the invention
The present invention solves in prior art to support that the played file that the media player of M3U8 form exists is imperfect, the problem that flexibility is inadequate, provides following technical scheme:
Play a method for M3U8 Streaming File Format, comprising: DST PLAYER timesharing obtains files in stream media M3U8 fragment stream continuously; DST PLAYER cache flow media file M3U8 fragment stream; DST PLAYER playing stream media file.Wherein, the files in stream media content of M3U8 form can be found or locate to DST PLAYER.Further, the files in stream media content of location M3U8 form comprises DST PLAYER and calculates described fragment stream length, by calculating mean values location M3U8 file.After the files in stream media content of location M3U8 form, also comprise the transport stream fragment file that files in stream media content that DST PLAYER search and M3U8 form play is nearest, put soon or the files in stream media content of playback M3U8 form broadcasting.
A kind of DST PLAYER, comprises files in stream media acquisition module, obtains files in stream media M3U8 fragment stream continuously for timesharing; Files in stream media cache module, for cache flow media file M3U8 fragment stream; Files in stream media playing module, for playing stream media file.
A kind of client device, comprising: streaming media server link block, for connecting with streaming media server, sends the request of the files in stream media content playing M3U8 form; Streaming media playing module, for playing the files in stream media content of M3U8 form.
The player method of files in stream media provided by the invention, device employ the player method of new M3U8 format stream media file, make user watch the mode of M3U8 files in stream media more versatile and flexible, improve Consumer's Experience.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing the present invention.Object of the present invention and other advantages realize by structure specifically noted in write specification, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for specification, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the method flow diagram that in the embodiment of the present invention one, DST PLAYER plays M3U8 format stream media file.
Fig. 2 is the modular structure schematic diagram supporting the DST PLAYER that M3U8 format stream media file is play in the embodiment of the present invention two.
Fig. 3 is the modular structure schematic diagram supporting the client device that M3U8 format stream media file is play in the embodiment of the present invention three.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
The method of embodiment one, broadcasting M3U8 Streaming File Format
As shown in Figure 1, embodiment one comprises:
Step 101, DST PLAYER timesharing obtains files in stream media M3U8 fragment stream continuously;
Step 102, DST PLAYER cache flow media file M3U8 fragment stream;
Step 103, DST PLAYER plays described files in stream media.
Preferably, the files in stream media content of described M3U8 form can be found or locate to DST PLAYER.DST PLAYER by calculating each file fragmentation stream length, then calculates the mean values of each fragment stream length, location M3U8 file.
Preferably, the transport stream fragment file (TS file) that the files in stream media content that DST PLAYER is searched for and M3U8 form is play is nearest, puts the files in stream media content of (fastward) or the broadcasting of playback (backward) M3U8 form soon by the nearest TS fragment file searched out.
Embodiment two, a kind of DST PLAYER
As shown in Figure 2, comprising:
Files in stream media acquisition module 21, obtains files in stream media M3U8 fragment stream continuously for timesharing;
Files in stream media cache module 22, for cache flow media file M3U8 fragment stream;
Files in stream media playing module 23, for playing described files in stream media.
Preferably, this DST PLAYER can comprise searching locating module further, for finding or locate the files in stream media content of M3U8 form.
Preferably, this DST PLAYER can comprise further puts back to amplification module soon, for searching for the nearest TS fragment file of the files in stream media content play with M3U8 form, puts soon or the content of playback M3U8 files in stream media.
Embodiment three, a kind of client device
As shown in Figure 3, this client device comprises, streaming media server link block 31, for connecting with streaming media server, sends the request of the files in stream media content playing M3U8 form;
Streaming media playing module 32, for playing the files in stream media content of M3U8 form.
Preferably, streaming media playing module can comprise searching locating module further, for finding or locate the files in stream media content of M3U8 form.
Preferably, streaming media playing module also can comprise further puts back to amplification module soon, for searching for the nearest TS fragment file of the files in stream media content play with M3U8 form, puts soon or the content of playback M3U8 files in stream media.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (10)
1. play a method for M3U8 Streaming File Format, it is characterized in that, comprising:
DST PLAYER timesharing obtains files in stream media M3U8 fragment stream continuously;
Files in stream media M3U8 fragment stream described in described DST PLAYER buffer memory;
Described DST PLAYER plays described files in stream media.
2. method according to claim 1, is characterized in that, described method comprises further:
Described DST PLAYER is found or is located the files in stream media content of described M3U8 form.
3. method according to claim 2, is characterized in that, the files in stream media content of described location M3U8 form comprises: described DST PLAYER calculates described fragment stream length, by calculating mean values location M3U8 file.
4. method according to claim 3, after the files in stream media content of described location M3U8 form, also comprise the transport stream fragment file that files in stream media content that the search of described DST PLAYER plays with described M3U8 form is nearest, put soon or the files in stream media content of M3U8 form broadcasting described in playback.
5. a DST PLAYER, is characterized in that, comprising:
Files in stream media acquisition module, obtains files in stream media M3U8 fragment stream continuously for timesharing;
Files in stream media cache module, for files in stream media M3U8 fragment stream described in buffer memory;
Files in stream media playing module, for playing described files in stream media.
6. DST PLAYER according to claim 5, is characterized in that, described DST PLAYER comprises: find locating module, for finding or locate the files in stream media content of M3U8 form.
7. DST PLAYER according to claim 5, it is characterized in that, described DST PLAYER comprises: put back to amplification module soon, for searching for the nearest TS fragment file of the files in stream media content play with M3U8 form, puts soon or the content of playback M3U8 files in stream media.
8. a client device, is characterized in that, comprising:
Streaming media server link block, for connecting with streaming media server, sends the request of the files in stream media content playing M3U8 form;
Streaming media playing module, for playing the files in stream media content of described M3U8 form.
9. client device according to claim 8, is characterized in that, described client device comprises: find locating module, for finding or locate the files in stream media content of M3U8 form.
10. client device according to claim 8, it is characterized in that, described client device comprises: put back to amplification module soon, for searching for the nearest TS fragment file of the files in stream media content play with M3U8 form, puts soon or the content of playback M3U8 files in stream media.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410468187.8A CN105407412A (en) | 2014-09-15 | 2014-09-15 | Method and device for playing streaming media supporting M3U8 format |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410468187.8A CN105407412A (en) | 2014-09-15 | 2014-09-15 | Method and device for playing streaming media supporting M3U8 format |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105407412A true CN105407412A (en) | 2016-03-16 |
Family
ID=55472615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410468187.8A Pending CN105407412A (en) | 2014-09-15 | 2014-09-15 | Method and device for playing streaming media supporting M3U8 format |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105407412A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120166667A1 (en) * | 2010-12-22 | 2012-06-28 | Edward Hall | Streaming media |
CN102685088A (en) * | 2011-09-06 | 2012-09-19 | 天脉聚源(北京)传媒科技有限公司 | Method for playing M3U8 stream media |
CN103533395A (en) * | 2013-09-27 | 2014-01-22 | 武汉市烽视威科技有限公司 | Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel |
CN103702171A (en) * | 2013-12-12 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method for downloading video stream and electronic equipment |
-
2014
- 2014-09-15 CN CN201410468187.8A patent/CN105407412A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120166667A1 (en) * | 2010-12-22 | 2012-06-28 | Edward Hall | Streaming media |
CN102685088A (en) * | 2011-09-06 | 2012-09-19 | 天脉聚源(北京)传媒科技有限公司 | Method for playing M3U8 stream media |
CN103533395A (en) * | 2013-09-27 | 2014-01-22 | 武汉市烽视威科技有限公司 | Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel |
CN103702171A (en) * | 2013-12-12 | 2014-04-02 | 乐视网信息技术(北京)股份有限公司 | Method for downloading video stream and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210327408A1 (en) | Real Time Popularity Based Audible Content Acquisition | |
US9349413B2 (en) | User interface for video preview creation | |
TWI717744B (en) | Methods and apparatus for updating media presentation data | |
CN101415069B (en) | Server and method for sending on-line play video | |
JP6219800B2 (en) | Multi-track video content service method and system for providing multi-track video content | |
RU2018124449A (en) | DETERMINATION OF LOCATIONS OF MULTIMEDIA DELIVERY EVENTS FOR TRANSPORTATION OF MULTIMEDIA | |
WO2017092327A1 (en) | Playing method and apparatus | |
CN105828096B (en) | Method and device for processing media stream file | |
CN105025319A (en) | Video pushing method and device | |
US9313084B2 (en) | Systems and methods for client-side media chunking | |
CN113767639B (en) | Method, apparatus and non-volatile computer readable medium for receiving media data | |
CN103648019A (en) | Video downloading method and device based on HLS protocol | |
US11907279B2 (en) | Mechanism to handle interrupted playback experience for media items in playlists | |
US9648123B2 (en) | Distributing content elements among devices | |
CN104410901A (en) | Play method and play device of M3U8 format live stream | |
CN103024289A (en) | Method and device for editing live stream on basis of M3U8 listing protocol | |
CN104918108A (en) | Video accurate positioning device and method based on HLS (HTTP Live Streaming) protocol | |
CN104837033A (en) | Information processing method and server | |
CN103220587A (en) | Method and device for obtaining time shifting contents | |
CN107205177A (en) | Video broadcasting method and device | |
CN104486347A (en) | Method and device for pushing multimedia | |
US20240171797A1 (en) | Techniques for providing a content stream based on a delivered stream of content | |
CN105407412A (en) | Method and device for playing streaming media supporting M3U8 format | |
KR102196504B1 (en) | Apparatus and method for providing contents | |
CN104866563A (en) | Album searching method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160316 |
|
RJ01 | Rejection of invention patent application after publication |