CN103956175B - Playing method and equipment of multi-media files - Google Patents

Playing method and equipment of multi-media files Download PDF

Info

Publication number
CN103956175B
CN103956175B CN201410159145.6A CN201410159145A CN103956175B CN 103956175 B CN103956175 B CN 103956175B CN 201410159145 A CN201410159145 A CN 201410159145A CN 103956175 B CN103956175 B CN 103956175B
Authority
CN
China
Prior art keywords
video
file system
file
slicing files
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.)
Active
Application number
CN201410159145.6A
Other languages
Chinese (zh)
Other versions
CN103956175A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410159145.6A priority Critical patent/CN103956175B/en
Publication of CN103956175A publication Critical patent/CN103956175A/en
Application granted granted Critical
Publication of CN103956175B publication Critical patent/CN103956175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a playing method of multi-media files. The method comprises the steps that a player receives the path of video to be played, and a list file of the video is obtained according to the path; the player determines a network playing standard technical protocol followed by the list file of the video, and according to the network playing standard technical protocol, a used file system is determined; the player mounts and starts the file system, a downloader is indicated to download fragmentation files of the video, and the fragmentation files of the video are stored to storage equipment through the file system; and the player obtains fragmentation files at a target position from the fragmentation files of the video stored in the file system, and the fragmentation files at the target position are played. The invention further discloses playing equipment. The playing method and the equipment have the advantages that the management burden during video playing by the player can be lowered, and the user experience of video playing by the player is improved.

Description

A kind of player method and playback equipment of multimedia file
Technical field
The present invention relates to communication technical field, more particularly to a kind of player method and playback equipment of multimedia file.
Background technology
It is current with the popularization of the Internet, the audio and video resources on the Internet are also with becoming increasingly abundant;Simultaneously with hand-held The popularization and intellectuality of equipment, and the lifting of network speed, more users play interconnection by computer, hand-held intelligent terminal Net video watches programme televised live on the Internet, also, the at the same time Play Technique for Multimedia suitable for netcast Also it is gradually ripe.The development of the current Play Technique for Multimedia with netcast, based on file fragmentation and listed files form The multimedia video play-back technology of realization also becomes increasingly popular.
In prior art, audio-video document is mainly cut into slices by the video playback based on file fragmentation and listed files form Into file fragmentation, the file fragmentation of audio-video document is supplied to by listing file form for the player of user, under player List file is simultaneously parsed, and extracts the letters such as the duration of position that each file fragmentation stored in server end and each file fragmentation Breath, downloads file fragmentation one by one, and is locally carrying out file data reduction and broadcasting.Player needs to download, parses, manages row List file and audio-video document, with increasing for burst number, file management will become more complicated, player management file Difficulty becomes more to increase, and during player plays video file, task is heavy.If there is broadcasting jump (seek) to broadcast when operating in playing Put device to be also required to the slicing files of seek impact points are found by listing file, re-download data, buffering and play, at this During, player is downloaded to after specified burst inside burst firstly the need of the slicing files title for knowing that impact point is located Searched repeatedly, found the impact point that wanted seek is arrived, and need to consider slice boundaries, realized that flow process is complicated, time-consuming; When the video file data played simultaneously is reviewed, need to re-download, the broadcasting of video file data may be received It is limited to network state, and wastes flow.In prior art, if player has the recording function when playing, player is then Also need to while managing broadcasting path and recording path, managing file by player then becomes a hard work, Jin Erzeng Plus player plays audio frequency and video power consumption, reduce the Consumer's Experience of player plays audio frequency and video.
The content of the invention
The embodiment of the present invention provides a kind of player method and playback equipment of multimedia file, and player can obtain to be played Video listing file, by the slicing files of downloader foradownloaded video, and the slicing files by file system to video It is managed, the slicing files quality of video can be improved, reduces administrative burden during player plays video, enhance player Play the Consumer's Experience effect of video.
Embodiment of the present invention first aspect provides a kind of player method of multimedia file, and which may include:
Player receives the path of video to be played, obtains the listing file of the video according to the path;
The player determines the netcast standard technique agreement that the listing file of the video is deferred to, according to the net Network playing standard technical protocol uses the corresponding file system of the netcast standard technique agreement;
The player carry simultaneously enables the file system, indicates that downloader downloads the slicing files of the video, and The slicing files of the video are stored to storage device by the file system;
The burst of target location is obtained in the slicing files of the video that the player is stored from the file system File, and the slicing files to the target location play out.
With reference in a first aspect, in the first possible implementation, the player determines the list text of the video The netcast standard technique agreement that part is deferred to, determines the file system for using according to the netcast standard technique agreement, Including:
According to the path of the listing file for obtaining the video, the player determines that the listing file of the video is deferred to Netcast standard technique agreement;
The file system that the netcast standard technique agreement corresponding file system is defined as using;
Wherein, file system of the file system for using particularly for the slicing files for managing the video.
With reference in a first aspect, in second possible implementation, the player determines the list text of the video The netcast standard technique agreement that part is deferred to, determines the file system for using according to the netcast standard technique agreement, Including:
According to the path of the listing file for obtaining the video, the player determines that the listing file of the video is deferred to Netcast standard technique agreement;
The player is by the protocol conversion layer of the netcast standard technique agreement by the netcast standard Technical protocol is converted to the netcast standard technique agreement specified, and by the netcast standard technique agreement pair specified The file system answered is defined as the file system for using;
Wherein, file system of the file system for using particularly for the slicing files for managing the video.
Second possible implementation of the first possible implementation or first aspect with reference to first aspect, In three kinds of possible implementations, the netcast standard technique agreement, including:It is HTTP live streaming media HLS protocols, smooth At least one of streaming SmoothStreaming agreement;
The file system includes the corresponding file system of the HLS protocol, the SmoothStreaming agreements correspondence At least one of file system.
The third possible implementation with reference to first aspect, in the 4th kind of possible implementation, under the instruction The slicing files that device downloads the video are carried, including:
The information of the play position of the video to be played is sent to the downloader by the player, is indicated The downloader starts to download the slicing files of the video from the play position;
Wherein, the information of the play position of the video includes:Time started, starting position, burst number, slicing files name At least one of title information.
The third possible implementation with reference to first aspect, in the 5th kind of possible implementation, under the instruction The slicing files that device downloads the video are carried, including:
The player reads the video to be played to the file system, and will be read by the file system The data positional information of video be sent to the downloader, indicate that the downloader downloads the burst of the video to be played File.
With reference to the 5th kind of possible implementation of the 4th kind of possible implementation of first aspect or first aspect, It is in six kinds of possible implementations, described the slicing files of the video to be stored to storage device by the file system, Including:
The slicing files of the video are stored into the storage device by the file system for the storage position specified Put;Or
By the file system by the slicing files random storage of the video to the storage device.
With reference in the 6th kind of possible implementation of first aspect to first aspect any one, in the 7th kind of possible realization In mode, described the slicing files of the video to be stored to storage device by the file system, methods described is also Including:
Distribute descriptor by the video being stored in the storage device by the position of the file system The abstract data for the continuous space of logic of slicing files, so that the follow-up player is according to the digital independent in the space The slicing files of the video file.
With reference to the 7th kind of possible implementation of first aspect, in the 8th kind of possible implementation, the file system A file on system specially management physical disk, or management physical disk in existing file system.
Embodiment of the present invention second aspect provides a kind of playback equipment, and which may include:
Acquisition module, for receiving the path of video to be played, obtains the list text of the video according to the path Part;
Determining module, for determining netcast that the listing file of the video that the acquisition module gets is deferred to Standard technique agreement, uses the corresponding text of the netcast standard technique agreement according to the netcast standard technique agreement Part system;
Processing module, for carry and enables the file system that the determining module determines, indicates that downloader is downloaded The slicing files of the video, and the slicing files of the video are stored to storage device by the file system;
Playing module, for dividing for target location is obtained in the slicing files of the video stored from the file system Piece file, and the slicing files to the target location play out.
With reference to second aspect, in the first possible implementation, the determining module, including:
First determining unit, described in being determined according to the path of the listing file of the acquisition module acquisition video The netcast standard technique agreement that the listing file of video is deferred to;
Second determining unit, for the netcast standard technique agreement correspondence for determining first determining unit File system be defined as the file system for using;
Wherein, file system of the file system for using particularly for the slicing files for managing the video.
With reference in a first aspect, in second possible implementation, the determining module, including:
3rd determining unit, described in being determined according to the path of the listing file of the acquisition module acquisition video The netcast standard technique agreement that the listing file of video is deferred to;
4th determining unit, for the netcast standard technique agreement that determined by the 3rd determining unit The netcast standard technique protocol conversion is the netcast standard technique agreement specified by protocol conversion layer, and will be described The corresponding file system of netcast standard technique agreement specified is defined as the file system for using;
Wherein, file system of the file system for using particularly for the slicing files for managing the video.
With reference to second aspect in second possible implementation of the first possible implementation or second aspect, In the third possible implementation, the netcast standard technique agreement, including:It is HTTP live streaming media HLS protocols, flat At least one of slip-stream formula SmoothStreaming agreement;
The file system includes the corresponding file system of the HLS protocol, the SmoothStreaming agreements correspondence At least one of file system.
The third possible implementation with reference to second aspect, in the 4th kind of possible implementation, the process mould Block, specifically for:
The information of the play position of the video to be played is sent to into the downloader, the downloader is indicated Start to download the slicing files of the video from the play position;
Wherein, the information of the play position of the video includes:Time started, starting position, burst number, slicing files name At least one of title information.
The third possible implementation with reference to second aspect, in the 5th kind of possible implementation, the process mould Block, specifically for:
The video to be played is read to the file system, and by the file system by the number of the video for reading The downloader is sent to according to positional information, indicates that the downloader downloads the slicing files of the video to be played.
With reference to the 5th kind of possible implementation of the 4th kind of possible implementation of second aspect or fourth aspect, In six kinds of possible implementations, the processing module is stored the slicing files of the video to depositing by the file system Storage equipment, including:
The slicing files of the video are stored into the storage device by the file system for the storage position specified Put;Or
By the file system by the slicing files random storage of the video to the storage device.
With reference in the 6th kind of possible implementation of second aspect to second aspect any one, in the 7th kind of possible realization In mode, the playback equipment also includes:
Abstract module, for the processing module by the file system by the slicing files of the video store to After storage device, distribute descriptor by described in described being stored in the storage device by the position of the file system The abstract data for the continuous space of logic of slicing files of video, so that the follow-up player is according to the data in the space Read the slicing files of the video file.
With reference to the 7th kind of possible implementation of second aspect, in the 8th kind of possible implementation, the file system A file on system specially management physical disk, or management physical disk in existing file system.
In embodiments of the present invention, player can obtain the list of video according to the path of the video to be played for receiving File, determines the file system for using according to the listing file of video, and then by regarding that file system management downloader is downloaded The slicing files of frequency, player directly can read the slicing files of video from file system, and the slicing files of video are carried out Play, higher-quality video slicing file can be downloaded by downloader and storage device is stored in by file system, can be The high-quality video of user's offer, the slicing files by downloader foradownloaded video the burst by file system management video File, it is possible to decrease the burden of player plays video, simplifies the realization of player, enhances the user of the broadcasting of video file Experience.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description 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, can be obtaining other according to these accompanying drawings Accompanying drawing.
Fig. 1 is the first embodiment schematic flow sheet of the player method of multimedia file provided in an embodiment of the present invention;
Fig. 2 is the second embodiment schematic flow sheet of the player method of multimedia file provided in an embodiment of the present invention;
Fig. 3 is the first embodiment structural representation of playback equipment provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the determining module in the first embodiment of playback equipment provided in an embodiment of the present invention;
Fig. 5 is the second embodiment structural representation of playback equipment provided in an embodiment of the present invention.
Specific 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 the embodiment of whole.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.
In implementing, the playback equipment described in the embodiment of the present invention is specifically as follows multimedia play equipment, tool Body may include:Mobile phone, panel computer, notebook computer, hand-hold multimedia terminals etc. have multimedia file or multimedia The equipment of function;Additionally, the playback equipment described in the embodiment of the present invention can also be operates in above-mentioned mobile phone, flat board electricity Player software on the equipment such as brain, notebook computer, the concretely player software or browser on notebook computer On player plug-in unit etc.;More or, the playback equipment described in the embodiment of the present invention is can also be with multimedia file Or the equipment or software of the identification, scanning or information extraction of Streaming Media, embodiment of the present invention tool not to playback equipment Body form is limited, and above-mentioned playback equipment is only citing, and non exhaustive, including but not limited to the said equipment.
Referring to Fig. 1, it is that the first embodiment flow process of the player method of multimedia file provided in an embodiment of the present invention is illustrated Figure.The player method of the multimedia file described in the present embodiment, including step:
S101, player receive the path of video to be played, obtain the listing file of the video according to the path.
S102, the player determine the netcast standard technique agreement that the listing file of the video is deferred to, according to The netcast standard technique agreement determines the file system for using.
Player described in the embodiment of the present invention can be the player software on the playback equipments such as mobile phone, alternatively Player plug-in unit of browser on the playback equipments such as mobile phone etc. is operated in, below by by taking the player software on mobile phone as an example, The player method of the multimedia file described in the embodiment of the present invention is specifically described.In implementing, the present invention is real Apply the one kind of video file described in example concretely in multimedia file, the multimedia described in the embodiment of the present invention The player method of file is also applied for the broadcasting of the multimedia files such as audio file, below by by taking the broadcasting of video file as an example, The player method of the multimedia file described in the embodiment of the present invention is specifically described.
In some feasible embodiments, user can be wished by the video played by the player application on mobile phone The path (that is, URL (Uniform Resource Locator, URL)) of (that is, video to be played) sends To player, after player receives the path of video to be played, then network, root can be accessed by above-mentioned path (URL) The listing file of above-mentioned video is obtained according to above-mentioned URL.Specifically, player can be passed through when player obtains the listing file of video Internal network data acquisition module directly accesses network according to above-mentioned URL, obtains corresponding listing file, can also pass through mobile phone In the position specified from above-mentioned URL of downloader download in player buffering, here is not limited.Wherein, above-mentioned video The information of each slicing files of above-mentioned video, including burst number, the burst name of each slicing files are contained in listing file The information such as title or burst duration, player can be according to each slicing files of the listing file of above-mentioned video or above-mentioned video Information.In implementing, after player acquires the listing file of video to be played, then can be according to above-mentioned video Listing file determines the netcast standard technique agreement that the listing file of above-mentioned video is deferred to, and specifically, player can pass through Resolver on mobile phone is parsed to the listing file of above-mentioned video, to determine net that the listing file of above-mentioned video is deferred to Network playing standard technical protocol.In implementing, player determines the listing file institute of video to be played by resolver After the netcast standard technique agreement deferred to, then the netcast standard skill that the listing file of above-mentioned video can be deferred to The corresponding file system of art agreement is defined as the file system for using, you can the network for deferring to the listing file of above-mentioned video The corresponding file system of playing standard technical protocol is chosen to be for managing the file system of the slicing files of above-mentioned video.Specifically In realization, the netcast standard technique agreement described in the embodiment of the present invention can include:HTTP live streaming media (HTTP Live Streaming, HLS) agreement, smooth streaming (SmoothStreaming) agreement etc., specifically, due to the list of video The netcast standard technique agreement that file can be deferred to may include it is various, so in order to preferably support that deferring to different networks broadcasts The broadcasting of the video of standard technique agreement is put, various file system, a kind of corresponding net of every kind of file system can be set in mobile phone Network playing standard technical protocol, i.e. the file system described in the embodiment of the present invention can include:The corresponding text of HLS protocol Part system, may also comprise corresponding file system of SmoothStreaming agreements etc., and the embodiment of the present invention is to supporting that video divides The quantity or type of the file system that piece file is managed is not limited, the netcast mark that can be deferred to according to video Quasi- technical protocol is specifically selected.
S103, the player carry simultaneously enable the file system, indicate that downloader downloads the burst text of the video Part, and the slicing files of the video are stored to storage device by the file system.
S104, obtains target location in the slicing files of the video that the player is stored from the file system Slicing files, and the slicing files to the target location play out.
In some feasible embodiments, player is determined for managing the burst of video according to the listing file of video After the file system of file, then carry above-mentioned file system can be enabled create local data buffering, specifically, may indicate that down The slicing files that device downloads above-mentioned video are carried, and the slicing files of the video is stored to storage by the file system and is set It is standby.In implementing, the concretely built-in download module of player of the downloader described in the embodiment of the present invention, alternatively Download module (that is, the downloader in mobile phone outside player) outside player.In implementing, player carry is simultaneously enabled After above-mentioned file system, then video to be played can be read to above-mentioned file system, the video that will be read by file system Data Position be sent to downloader, specifically, player to file system read video data after, file system will can be broadcast The Data Position for putting device reading sends downloader to, indicates that downloader is downloaded according to the Data Position that above-mentioned player reads and waits to broadcast The slicing files of the video put.The Data Position that downloader is indicated according to player download video to be played slicing files it Afterwards, then the slicing files of the video of download can be sent to file system, by file system by the slicing files of above-mentioned video The data for storing to storage device, file system the video that can be downloaded to downloader are managed.
In some feasible embodiments, after the slicing files of video to be played are downloaded by downloader, text The slicing files of the video that part system can be downloaded to downloader are managed, i.e. the slicing files of video can be deposited by file system Corresponding position is stored up into storage device, and player can read data (that is, the target of required target location by file system The slicing files of position), player then can be to above-mentioned target location after reading the slicing files of the video of target location Slicing files are parsed and are played.
In embodiments of the present invention, after player acquires the path of video to be played, then addressable network, obtains The listing file of above-mentioned video is taken, the netcast standard skill deferred to by the listing file of above-mentioned video is determined according to listing file Art agreement, and the file system for using is determined according to the netcast standard technique agreement for determining, and then pass through file system pair The slicing files of the video that downloader is downloaded are managed, and the slicing files of video are stored to storage device by file system In, player directly can read the data such as the slicing files of target location, and then the burst to target location from file system File is played out.I.e., in embodiments of the present invention, player is without the need for voluntarily slicing files of foradownloaded video, management video Slicing files, reduce burden during player plays video, simplify the realization of player;Meanwhile, in the embodiment of the present invention Can pass through the slicing files of downloader foradownloaded video during described player plays video, and by file system by downloader The slicing files of the video of download are stored to storage device, you can record video, when player will play video then Data can be read from file system directly, be capable of achieving playing when recording for video, improve the Consumer's Experience of video playback Effect.
Referring to Fig. 2, it is that the second embodiment flow process of the player method of multimedia file provided in an embodiment of the present invention is illustrated Figure.The player method of multimedia file described in this example, including step:
S201, player receive the path of video to be played, obtain the listing file of the video according to the path.
S202, the player determine the netcast standard technique agreement that the listing file of the video is deferred to, according to The netcast standard technique agreement determines the file system for using.
Player described in the embodiment of the present invention can be the player software on the playback equipments such as mobile phone, alternatively Player plug-in unit of browser on the playback equipments such as mobile phone etc. is operated in, below by by taking the player software on mobile phone as an example, The player method of the multimedia file described in the embodiment of the present invention is specifically described.In implementing, the present invention is real Apply the one kind of video file described in example concretely in multimedia file, the multimedia described in the embodiment of the present invention The player method of file is also applied for the player method of the multimedia files such as audio file.
In some feasible embodiments, user can be wished by the video played by the player application on mobile phone The path (that is, URL) of (that is, video to be played) is sent to player, player receive video to be played path it Afterwards, then network can be accessed by above-mentioned path (URL), the listing file of above-mentioned video is obtained according to above-mentioned URL.Specifically, broadcast Put the network data acquisition module that can pass through inside player when device obtains the listing file of video directly to be accessed according to above-mentioned URL Network, obtains corresponding listing file, also can download to player from the position that above-mentioned URL is specified by the downloader in mobile phone In buffering, here is not limited.Wherein, the letter of each slicing files of above-mentioned video is contained in the listing file of above-mentioned video Breath, specifically may include the information such as burst number, burst title or the burst duration of each slicing files, and player can be according to above-mentioned The listing file of video knows the information of each slicing files of above-mentioned video.In implementing, player is acquired to be waited to broadcast After the listing file of the video put, then can determine what the listing file of above-mentioned video was deferred to according to the listing file of above-mentioned video Netcast standard technique agreement, specifically, player can be entered to the listing file of above-mentioned video by the resolver on mobile phone Row parsing, to determine netcast standard technique agreement that the listing file of above-mentioned video is deferred to.In implementing, player After the netcast standard technique agreement deferred to by the listing file that video to be played is determined by resolver, then can be by The corresponding file system of netcast standard technique agreement deferred to by the listing file of above-mentioned video is defined as the file for using System, you can the corresponding file system of netcast standard technique agreement for deferring to the listing file of above-mentioned video is chosen to be For managing the file system of the slicing files of above-mentioned video.In implementing, the network described in the embodiment of the present invention is broadcast Putting standard technique agreement can include:HLS protocol, SmoothStreaming agreements etc., specifically, due to the list text of video The netcast standard technique agreement that part can be deferred to may include it is various, so in order to preferably support to defer to different netcasts The broadcasting of the video of standard technique agreement, can set various file system, a kind of corresponding network of every kind of file system in mobile phone Playing standard technical protocol, i.e. the file system described in the embodiment of the present invention can include:The corresponding file of HLS protocol System, may also comprise corresponding file system of SmoothStreaming agreements etc., burst of the embodiment of the present invention to support video The quantity or type of the file system that file is managed is not limited, the netcast standard that can be deferred to according to video Technical protocol is specifically selected.
In some feasible embodiments, the embodiment of the present invention is except setting multiple network playing standard skill in mobile phone The corresponding file system of art agreement, with support defer to different netcast standard technique agreements listing file broadcasting it Outward, can also support to defer to difference using same file system by the conversion of different netcast standard technique agreements Netcast standard technique agreement listing file broadcasting.Specifically, list text of the player according to video to be played After the path of part determines the netcast standard technique agreement deferred to by the listing file of video, then can be by the list of video By the protocol conversion layer of the netcast standard technique agreement deferred to by the file network deferred to by the listing file of above-mentioned video Playing standard technical protocol is converted to the netcast standard technique agreement specified, and (i.e. built-in in mobile phone file system is corresponding Netcast standard technique agreement), and the file system of the above-mentioned netcast standard technique agreement pair specified is defined as making File system (will in mobile phone the file system of content be chosen to be for managing the file system of the slicing files of video). That is, when the netcast standard technique agreement supported by the file system in mobile phone is general netcast standard technique agreement When, after the netcast standard technique agreement deferred to by the listing file that player determines video to be played, can lead to The protocol conversion layer of the netcast standard technique agreement itself is crossed, in being mobile phone by the netcast standard technique protocol conversion The netcast standard technique agreement that existing file system is supported, will the list of video to be played that receives of player The netcast standard technique protocol conversion deferred to by file is general netcast standard technique agreement.For example, work as mobile phone System in had when realizing supporting the file system of HLS protocol, if the row of video to be played that player gets When the netcast standard technique agreement deferred to by list file is SmoothStreaming agreements, can pass through It is corresponding that the code stream of SmoothStreaming agreements is converted to HLS protocol by the protocol conversion layer of SmoothStreaming agreements The type that file system can be recognized so that the corresponding file system of existing HLS protocol can support above-mentioned to be played in mobile phone Video listing file, and then can be by the corresponding file system of above-mentioned HLS protocol to video to be played slicing files It is managed, not only extends the implementation method of multiple network playing standard technical protocol, also extends existing in cell phone system The supported video of file system listing file, improve the Consumer's Experience of player plays video, reduce player Play burden during video.
S203, the player carry simultaneously enable the file system.
The information of the play position of the video to be played is sent to the download by S204, the player Device, indicates that the downloader starts to download the slicing files of the video frequency program from the play position.
S205, the slicing files of the video are stored the storage position specified into storage device by the file system Put.
S206, obtains target location in the slicing files of the video that the player is stored from the file system Slicing files, and the slicing files to the target location play out.
In some feasible embodiments, player is determined for managing the burst of video according to the listing file of video After the file system of file, then carry above-mentioned file system can be enabled create local data buffering, specifically, may indicate that down The slicing files that device downloads above-mentioned video are carried, and the slicing files of the video is stored to storage by the file system and is set It is standby.In implementing, the concretely built-in download module of player of the downloader described in the embodiment of the present invention, alternatively Download module (that is, the downloader in mobile phone outside player) outside player.In implementing, player carry is simultaneously enabled After above-mentioned file system, then video to be played can be read to above-mentioned file system, the video that will be read by file system Data Position be sent to downloader, specifically, player to file system read video data after, file system can basis The Data Position that current player reads sends downloader to, indicates under the Data Position that downloader is read according to above-mentioned player Carry the slicing files of video to be played.
In some feasible embodiments, when player indicates that downloader downloads the slicing files of video to be played, Also the information of the play position of above-mentioned video to be played can be transmitted directly to downloader, indicate downloader from above-mentioned player The play position specified starts the slicing files of foradownloaded video, wherein, the play position of above-mentioned video may include:Time started, Starting position, burst number, slicing files title etc., i.e. time started that downloader can be specified according to player, starting position, The information such as burst number, slicing files title start the slicing files of foradownloaded video.The data bit that downloader is indicated according to player After putting the slicing files of the video for downloading to be played, then the slicing files of the video of download can be sent to file system, be led to Cross the number that the slicing files of above-mentioned video are stored to storage device, file system file system the video that can be downloaded to downloader According to being managed.In embodiments of the present invention, when network condition is preferable, downloader can make full use of the network bandwidth and local The space of buffering, high-quality slicing files are downloaded in file system in advance, in case player is used, as player Seek During to the data downloaded, then data directly can be obtained from local system, downloader without the need for access network again, now Downloading data.
In some feasible embodiments, after the slicing files of video to be played are downloaded by downloader, text The slicing files of the video that part system can be downloaded to downloader are managed, and the slicing files of video can be stored to storage device In corresponding position.In embodiments of the present invention, the burst of the above-mentioned video that player is downloaded to downloader by file system When file is managed, file system can be by the slicing files random storage of above-mentioned video into storage device, or will be above-mentioned The slicing files of video store the storage location specified into storage device, i.e. the slicing files of video can be deposited by file system Continuous storage location is stored up into storage device, also the slicing files of video discontinuous storage can be stored into storage device Position.When the slicing files of video are stored the discontinuous storage location into storage device by file system, file system will After the slicing files of video store into storage device discontinuous storage location, can also be distributed by the position of file system Descriptor will be stored in the abstract data for the continuous space of logic of slicing files of the video in storage device, will physics not Data of the continuous data abstraction for the continuous space of logic.File system is that logic is continuous to the discontinuous data abstraction of physics Space data after, what the data that player is obtained were then that continuous video file, i.e. player obtain is complete regarding Frequently, rather than different storage location video slicing, player can facilitate as playing local file, obtain whenever and wherever possible and think The data wanted.In embodiments of the present invention, file system concretely manages physical disk, and the data storage of file system can be with It is the data of the physical location being stored directly on physical disk, it is above-mentioned existing that above-mentioned file system alternatively manages physical disk A file in file system, the data storage of file system can be stored in based on alternative document system creation based on In the file system of file.Wherein, the file system based on file and listing file are a difference in that using method is different, That is the mode of player acquisition video file is different.When player obtains video file by file system, standard can be used File operation (such as fopen (), fread () etc. operation) open a buffer culture, it is not necessary to player realizes multifile Management and be repeatedly opened multiple slicing files, and player by listing file obtain video file when then need to know respectively The position of multiple slicing files of video, opens multiple slicing files of video respectively.In embodiments of the present invention, multiple bursts When file is stored in file system, storage form can be with versatile and flexible, you can be to store in the form of one file, passes through Multiple position distribution descriptors of file system are associated, it is also possible to be stored as multiple files, be finally presented as comprising multiple The complete entirety of burst content.
In implementing, the slicing files of the video that player is downloaded to downloader by file system are managed and deposit After storage, player then can read the data (that is, the slicing files of target location) of required target location by file system, Player then can be parsed and be played to the slicing files of above-mentioned target location after reading the slicing files of target location.
In embodiments of the present invention, after player acquires the path of video to be played, then addressable network is obtained The listing file of above-mentioned video is taken, the netcast standard skill deferred to by the listing file of above-mentioned video is determined according to listing file Art agreement, and the file system for using is determined according to the netcast standard technique agreement for determining, and then pass through file system pair The slicing files of the video that downloader is downloaded are managed, and the slicing files of video are stored into storage device, and player can The data such as the slicing files of target location are directly read from file system, and then the slicing files to video are played out.That is, In embodiments of the present invention, player is reduced and is broadcast without the need for the voluntarily slicing files of foradownloaded video, the slicing files of management video Burden during device broadcasting video is put, the realization of player is simplified;The embodiment of the present invention can pass through downloader foradownloaded video simultaneously Slicing files, and the slicing files of the video downloaded downloader by file system are stored to storage device, you can will be regarded Frequency is recorded, and then directly can read data from file system when player will play video, is capable of achieving the side record of video Side processed is played, and improves the Consumer's Experience effect of video playback.The embodiment of the present invention can also support that netcast standard technique is assisted The extension of view, can simplify the realization of player plays video, and downloader also downloads high-quality video using network state Slicing files, can provide higher-quality video file for player, improve the Consumer's Experience of player plays video.
Referring to Fig. 3, it is the first embodiment structural representation of playback equipment provided in an embodiment of the present invention.In the present embodiment Described playback equipment, including:
Acquisition module 10, for receiving the path of video to be played, obtains the list of the video according to the path File.
Determining module 20, for determining that the network that the listing file of the video that the acquisition module gets is deferred to is broadcast Standard technique agreement is put, the file system for using is determined according to the netcast standard technique agreement.
Processing module 30, for carry and enables the file system wound that the determining module determines, indicates downloader The slicing files of the video are downloaded, and the slicing files of the video is stored to storage device by the file system.
Playing module 40, for target location is obtained in the slicing files of the video stored from the file system Slicing files, and the slicing files to the target location play out.
In some feasible embodiments, above-mentioned determining module 20 (such as Fig. 4), including:
First determining unit 21, the path for the listing file of the video is obtained according to the acquisition module determine institute State the netcast standard technique agreement that the listing file of video is deferred to.
Second determining unit 22, for the netcast standard technique agreement pair for determining first determining unit The file system answered is defined as the file system for using.
In implementing, concretely player, mobile phone, notebook are electric for the playback equipment described in the embodiment of the present invention The equipment with multimedia file or stream media playing function such as brain, the player described in the embodiment of the present invention can be Player software on the playback equipments such as mobile phone, alternatively operates in the player plug-in unit of the browser on the playback equipments such as mobile phone Deng below by by taking the player software on mobile phone as an example, specifically being retouched to the playback equipment described in the embodiment of the present invention State.In implementing, described in the embodiment of the present invention, playback equipment can be used for the broadcasting of video file, it can also be used to audio frequency text The broadcasting of the multimedia files such as part.
In some feasible embodiments, user can be wished by the video played by the player application on mobile phone The path (that is, URL (Uniform Resource Locator, URL)) of (that is, video to be played) sends To player, after the acquisition module 10 of player receives the path of video to be played, then can pass through above-mentioned path (URL) Network is accessed, the listing file of above-mentioned video is obtained according to above-mentioned URL.Specifically, the acquisition module 10 of player obtains video Listing file when can pass through player inside network data acquisition module directly according to above-mentioned URL access network, obtain phase The listing file answered, the position that also can be specified from above-mentioned URL by the downloader in mobile phone are downloaded in player buffering, here It is not limited.Wherein, the information of each slicing files of above-mentioned video is contained in the listing file of above-mentioned video, can be specifically wrapped The information such as burst number, burst title or the burst duration of each slicing files are included, player can be according to the list of above-mentioned video File knows the information of each slicing files of above-mentioned video.In implementing, the acquisition module 10 of player is acquired to be treated After the listing file of the video of broadcasting, the list text of the video that determining module 20 then can be got according to above-mentioned acquisition module 10 Part determines the netcast standard technique agreement that the listing file of above-mentioned video is deferred to, specifically, first in determining module 20 Determining unit 21 can be parsed to the listing file of above-mentioned video by the resolver in mobile phone, to determine the row of above-mentioned video The netcast standard technique agreement deferred to by list file.In implementing, the first determining unit 21 of determining module 20 passes through After resolver determines the netcast standard technique agreement deferred to by the listing file of video to be played, second determines list The corresponding file system of netcast standard technique agreement that the listing file of above-mentioned video can then be deferred to by unit 22 is defined as The file system for using, i.e., the netcast standard technique that the listing file of above-mentioned video can be deferred to by the second determining unit 22 The corresponding file system of agreement is chosen to be for managing the file system of the slicing files of above-mentioned video.In implementing, this Netcast standard technique agreement described in bright embodiment can include:HLS protocol, SmoothStreaming agreements etc., Specifically, due to the netcast standard technique agreement that the listing file of video can be deferred to may include it is various, so in order to more preferable The broadcasting of the video for deferring to different netcast standard technique agreements is supported on ground, and various file system can be set in mobile phone, The corresponding a kind of netcast standard technique agreement of every kind of file system, i.e. the file system described in the embodiment of the present invention can To include:The corresponding file system of HLS protocol, may also comprise corresponding file system of SmoothStreaming agreements etc., this The quantity or type of the file system that bright embodiment is managed to the slicing files for supporting video is not limited, can basis The netcast standard technique agreement deferred to by video is specifically selected.
In some feasible embodiments, the determining module 20 of player is determined for managing according to the listing file of video After the file system of the slicing files of reason video, processing module 30 then carry can enable above-mentioned file system and create local number According to buffering, specifically, may indicate that downloader downloads the slicing files of above-mentioned video, and by the file system by the video Slicing files store to storage device.In implementing, the downloader described in the embodiment of the present invention is concretely played The built-in download module of device, the download module (that is, the downloader in mobile phone outside player) alternatively outside player.Specifically In realization, 30 carry of processing module of player after enabling above-mentioned file system, playing module 40 then can be to above-mentioned file System reads video to be played, and the Data Position of the video of reading is sent to downloader by file system, specifically, After the playing module 40 of player reads the data of video to file system, processing module 30 then be able to will can be worked as by file system The Data Position that front player reads sends downloader to, indicates that downloader is downloaded according to the Data Position that above-mentioned player reads The slicing files of video to be played.Downloader is downloaded to be played according to the Data Position that the processing module 30 of player is indicated After the slicing files of video, then the slicing files of the video of download can be sent to file system, will be upper by file system The slicing files for stating video are stored to storage device, and file system can be managed to the data of the video of downloader download.
In some feasible embodiments, after the slicing files of video to be played are downloaded by downloader, text The slicing files of the video that part system can be downloaded to downloader are managed, and the slicing files of video can be stored to storage device In corresponding position, the playing module 40 of player can pass through data (that is, the target that file system reads required target location The slicing files of position), playing module 40 then can divide to above-mentioned target location after reading the slicing files of target location Piece file is parsed and is played.
In embodiments of the present invention, after player acquires the path of video to be played, then addressable network is obtained The listing file of above-mentioned video is taken, the netcast standard skill deferred to by the listing file of above-mentioned video is determined according to listing file Art agreement, and the file system for using is determined according to the netcast standard technique agreement for determining, and then pass through file system pair The slicing files of the video that downloader is downloaded are managed, and the slicing files of video are stored into storage device, and player can The data such as the slicing files of target location are directly read from file system, and then the slicing files to target location are broadcast Put.I.e., in embodiments of the present invention, player is without the need for the voluntarily slicing files of foradownloaded video, the slicing files of management video, drop Burden during low player plays video, simplifies the realization of player;The embodiment of the present invention can be by under downloader simultaneously The slicing files of video are carried, and the slicing files of the video downloaded downloader by file system are stored to storage device, i.e., Video can be recorded, then directly data can be read from file system when player will play video, be capable of achieving video While record while play, improve the Consumer's Experience effect of video playback.
Referring to Fig. 5, it is the second embodiment structural representation of playback equipment provided in an embodiment of the present invention.In the present embodiment Described playback equipment, including:
Acquisition module 10, for receiving the path of video to be played, obtains the list of the video according to the path File.
Determining module 50, for determining that the network that the listing file of the video that the acquisition module gets is deferred to is broadcast Standard technique agreement is put, the file system for using is determined according to the netcast standard technique agreement.
Processing module 60, for carry and enables the file system that the determining module determines, indicates under downloader The slicing files of the video are carried, and the slicing files of the video is stored to storage device by the file system.
Playing module 40, for target location is obtained in the slicing files of the video stored from the file system Slicing files, and the slicing files to the target location play out.
In some feasible embodiments, above-mentioned determining module, including:
3rd determining unit 51, the path for the listing file of the video is obtained according to the acquisition module determine institute State the netcast standard technique agreement that the listing file of video is deferred to.
4th determining unit 52, for the netcast standard technique agreement determined by the 3rd determining unit Protocol conversion layer be the netcast standard technique agreement specified by the netcast standard technique protocol conversion, and by institute State the corresponding file system of netcast standard technique agreement specified and be defined as the file system for using.
In some feasible embodiments, above-mentioned processing module 60, specifically for:
The information of the play position of the video to be played is sent to into the downloader, the downloader is indicated Start to download the slicing files of the video from the play position.
In some feasible embodiments, the present invention it is above-mentioned described in playback equipment, also include:
Abstract module 70, for being stored the slicing files of the video by the file system in the processing module To storage device, distribute descriptor by the institute being stored in the storage device by the position of the file system The abstract data for the continuous space of logic of slicing files of video are stated, so that the follow-up player is according to the number in the space According to the slicing files for reading the video file.
In implementing, concretely player, mobile phone, notebook are electric for the playback equipment described in the embodiment of the present invention The equipment with multimedia file or stream media playing function such as brain, the player described in the embodiment of the present invention can be Player software on the playback equipments such as mobile phone, alternatively operates in the player plug-in unit of the browser on the playback equipments such as mobile phone Deng below by by taking the player software on mobile phone as an example, specifically being retouched to the playback equipment described in the embodiment of the present invention State.In implementing, the playback equipment described in the embodiment of the present invention can be used for the broadcasting of video file, it can also be used to audio frequency The broadcasting of the multimedia files such as file.
In some feasible embodiments, user can be wished by the video played by the player application on mobile phone The path (that is, URL) of (that is, video to be played) is sent to player, and the acquisition module 10 of player receives to be played After the path of video, then network can be accessed by above-mentioned path (URL), the list text of above-mentioned video is obtained according to above-mentioned URL Part.Specifically, the network data acquisition module that can pass through inside player when acquisition module 10 obtains the listing file of video is straight Connect and network is accessed according to above-mentioned URL, obtain corresponding listing file, the downloader that can also pass through in mobile phone is specified from above-mentioned URL Position download to player buffering in, here is not limited.Wherein, above-mentioned video is contained in the listing file of above-mentioned video Each slicing files information, specifically may include burst number, burst title or burst duration of each slicing files etc. believe Breath, player can know the information of each slicing files of above-mentioned video according to the listing file of above-mentioned video.In implementing, After the acquisition module 10 of player acquires the listing file of video to be played, determining module 50 then can be regarded according to above-mentioned The listing file of frequency determines the netcast standard technique agreement that the listing file of above-mentioned video is deferred to, specifically, determining module 50 the 3rd determining unit 51 can be parsed to the listing file of above-mentioned video by the resolver on mobile phone, above-mentioned to determine The netcast standard technique agreement deferred to by the listing file of video.In implementing, the 3rd determining unit 51 is by parsing After device determines the netcast standard technique agreement deferred to by the listing file of video to be played, the 4th determining unit 52 The corresponding file system of netcast standard technique agreement that then listing file of above-mentioned video can be deferred to is defined as using File system, i.e., the listing file of above-mentioned video can be deferred to by determining module 50 netcast standard technique agreement correspondence File system be chosen to be for managing the file system of the slicing files of above-mentioned video.In implementing, the embodiment of the present invention Described in netcast standard technique agreement can include:HLS protocol, SmoothStreaming agreements etc., specifically, Due to the netcast standard technique agreement that the listing file of video can be deferred to may include it is various, so in order to preferably support to abide by From the broadcasting of the video of different netcast standard technique agreements, various file system, every kind of file can be set in mobile phone A kind of netcast standard technique agreement of system correspondence, i.e. the file system described in the embodiment of the present invention can include: The corresponding file system of HLS protocol, may also comprise corresponding file system of SmoothStreaming agreements etc., and the present invention is implemented The quantity or type of the file system that example is managed to the slicing files for supporting video is not limited, can be according to video institute The netcast standard technique agreement deferred to specifically is selected.
In some feasible embodiments, the embodiment of the present invention is except setting multiple network playing standard skill in mobile phone The corresponding file system of art agreement, with support defer to different netcast standard technique agreements listing file broadcasting it Outward, can also support to defer to difference using same file system by the conversion of different netcast standard technique agreements Netcast standard technique agreement listing file broadcasting.Specifically, 51 basis of the 3rd determining unit of determining module 50 The path of the listing file of video to be played determine netcast standard technique agreement that the listing file of video deferred to it Afterwards, the protocol conversion of the netcast standard technique agreement that the 4th determining unit 52 then can be deferred to by the listing file of video By the layer netcast standard technique protocol conversion deferred to by the listing file of above-mentioned video is the netcast standard skill specified Art agreement (the corresponding netcast standard technique agreement of i.e. built-in in mobile phone file system), and the above-mentioned network specified is broadcast Put file system that the file system of standard technique agreement pair is defined as using (file system of content to be chosen to be in mobile phone For managing the file system of the slicing files of video).That is, when the netcast standard skill supported by the file system on mobile phone When art agreement is general netcast standard technique agreement, when the 3rd determining unit 51 of determining module 50 determine it is to be played Video the netcast standard technique agreement deferred to of listing file after, the netcast standard technique agreement can be passed through The protocol conversion layer of itself, by the network that the netcast standard technique protocol conversion is existing file system support in mobile phone Playing standard technical protocol, will the netcast standard deferred to of the listing file of video to be played that receives of player Technical protocol is converted to general netcast standard technique agreement, and above-mentioned general network can then be broadcast by the 4th determining unit 52 Put the corresponding file system of standard technique agreement and be defined as the file system for using (i.e. for managing the text of the slicing files of video Part system).For example, when having there is the file system for realizing support HLS protocol in the system of mobile phone, if player gets The netcast standard technique agreement deferred to of listing file of video to be played when being SmoothStreaming agreements, The code stream of SmoothStreaming agreements can be converted to by HLS protocol by the protocol conversion layer of SmoothStreaming agreements The type that corresponding file system can be recognized so that the corresponding file system of existing HLS protocol can support above-mentioned in mobile phone The listing file of video to be played, so can by the corresponding file system of above-mentioned HLS protocol to video to be played point Piece file is managed, and not only extends the implementation method of multiple network playing standard technical protocol, also extends cell phone system In the supported video of existing file system listing file, improve the Consumer's Experience of player plays video, reduce Burden during player plays video.
In some feasible embodiments, the determining module 50 of player is determined for managing according to the listing file of video After the file system of the slicing files of reason video, processing module 60 then carry can enable above-mentioned file system and create local number According to buffering, specifically, may indicate that downloader downloads the slicing files of above-mentioned video, and by the file system by the video Slicing files store to storage device.In implementing, the downloader described in the embodiment of the present invention is concretely played The built-in download module of device, the download module (that is, the downloader in mobile phone outside player) alternatively outside player.Specifically In realization, 60 carry of processing module after enabling above-mentioned file system, playing module 40 then can be read to above-mentioned file system Video to be played, processing module 60 can pass through the Data Position of the video that playing module 40 is read by file system and be sent to down Device is carried, specifically, after playing module 40 reads the data of video to file system, processing module 60 can ought by file system The Data Position that front player reads sends downloader to, indicates that downloader is downloaded according to the Data Position that above-mentioned player reads The slicing files of video to be played.
In some feasible embodiments, processing module 60 indicates that downloader downloads the slicing files of video to be played When, also the information of the play position of above-mentioned video to be played can be transmitted directly to downloader, indicate that downloader is broadcast from above-mentioned The slicing files that the play position that device specifies starts foradownloaded video are put, wherein, the play position of above-mentioned video may include:During beginning Between, starting position, burst number, slicing files title etc., i.e. time started that downloader can be specified according to player, start bit Put, the information such as burst number, slicing files title starts the slicing files of foradownloaded video.The data that downloader is indicated according to player After the slicing files of video to be played are downloaded in position, then the slicing files of the video of download can be sent to file system, The slicing files of above-mentioned video are stored to storage device, file system by the video that can be downloaded to downloader by file system Data are managed.In embodiments of the present invention, when network condition is preferable, downloader can make full use of the network bandwidth and sheet The space of ground buffering, high-quality slicing files are downloaded in file system in advance, in case player is used, work as player When Seek is to the data downloaded, then data directly can be obtained from local system, downloader without the need for access network again, Current downloading data.
In some feasible embodiments, after the slicing files of video to be played are downloaded by downloader, text The slicing files of the video that part system can be downloaded to downloader are managed, you can the slicing files of video are stored to storage and set Corresponding position in standby.In embodiments of the present invention, player passes through dividing for the above-mentioned video that file system is downloaded to downloader When piece file is managed, file system can be by the slicing files random storage of above-mentioned video into storage device, or will be upper The slicing files for stating video store the storage location specified into storage device, i.e. file system can be by the slicing files of video Continuous storage location is stored into storage device, also the slicing files of video discontinuous depositing can be stored into storage device Storage space is put.When the slicing files of video are stored the discontinuous storage location into storage device by file system, file system After the slicing files of video are stored into storage device discontinuous storage location, abstract module 70 can pass through file system Position distribution descriptor will be stored in the abstract data for the continuous space of logic of slicing files of the video in storage device, Will the discontinuous data abstraction of physics for the continuous space of logic data.Physics in file system is not connected by abstract module 70 After continuous data abstraction is for the data in the continuous space of logic, the data that player is obtained are then continuous video files, i.e., What player was obtained is complete video, rather than the video slicing of different storage locations, and player can be as playing local file one Sample prescription obtains just, whenever and wherever possible the data wanted.In embodiments of the present invention, file system concretely manages physics magnetic Disk, the data storage of file system can be the data of the physical location being stored directly on physical disk, above-mentioned file system A file in the above-mentioned existing file system of physical disk is managed alternatively, the data storage of file system can be to be stored in In the file system based on file based on alternative document system creation.Wherein, the file system and listing file based on file Be a difference in that using method is different, i.e., player obtain video file mode it is different.Player passes through file system When system obtains video file, the file operation (such as operation such as fopen (), fread ()) of standard can be used to open a buffering File, it is not necessary to which player is realized the management of multifile and is repeatedly opened multiple slicing files, and player passes through listing file The position of the multiple slicing files for then needing to know video respectively during video file is obtained, multiple bursts texts of video are opened respectively Part.In embodiments of the present invention, when multiple slicing files are stored in file system, storage form can be with versatile and flexible, you can To be to store in the form of one file, distribute descriptor by multiple positions of file system and be associated, it is also possible to store For multiple files, the complete entirety comprising multiple burst contents is finally presented as.
In implementing, the slicing files of the video that player is downloaded to downloader by file system are managed and deposit After storage, play Mocha coffee 40 then can pass through file system read needed for target location data (that is, target location divide Piece file), playing module 40 then can enter to the slicing files of above-mentioned target location after reading the slicing files of target location Row parsing and broadcasting.
In embodiments of the present invention, after player acquires the path of video to be played, then addressable network is obtained The listing file of above-mentioned video is taken, the netcast standard skill deferred to by the listing file of above-mentioned video is determined according to listing file Art agreement, and the file system for using is determined according to the netcast standard technique agreement for determining, and then pass through file system pair The slicing files of the video that downloader is downloaded are managed, and the slicing files of video are stored into storage device, and player can The data such as the slicing files of target location are directly read from file system, and then the slicing files to target location are broadcast Put.I.e., in embodiments of the present invention, player is without the need for the voluntarily slicing files of foradownloaded video, the slicing files of management video, drop Burden during low player plays video, simplifies the realization of player;The embodiment of the present invention can be by under downloader simultaneously The slicing files of video are carried, and the slicing files of the video downloaded downloader by file system are stored to storage device, i.e., Video can be recorded, then directly data can be read from file system when player will play video, be capable of achieving video While record while play, improve the Consumer's Experience effect of video playback.The embodiment of the present invention can also support netcast standard The extension of technical protocol, can simplify the realization of player plays video, and downloader is also downloaded high-quality using network state The slicing files of video, can provide higher-quality video file for player, improve the Consumer's Experience of player plays video.
One of ordinary skill in the art will appreciate that all or part of flow process in realizing above-described embodiment method, can be Instruct related hardware to complete by computer program, described program can be stored in computer read/write memory medium In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosed is only present pre-ferred embodiments, and the right model of the present invention can not be limited certainly with this Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope covered by the present invention.

Claims (18)

1. a kind of player method of multimedia file, it is characterised in that include:
Player receives the path of video to be played, obtains the listing file of the video according to the path;
The player determines the netcast standard technique agreement that the listing file of the video is deferred to, and is broadcast according to the network Put standard technique agreement to determine using the corresponding file system of the netcast standard technique agreement;
The player carry simultaneously enables the file system, indicates that downloader downloads the slicing files of the video, and passes through The file system stores the slicing files of the video to storage device;
The slicing files of target location are obtained in the slicing files of the video that the player is stored from the file system, And the slicing files to the target location are played out.
2. the method for claim 1, it is characterised in that the player determines what the listing file of the video was deferred to Netcast standard technique agreement, determines the file system for using according to the netcast standard technique agreement, including:
The player determines the net that the listing file of the video is deferred to according to the path of the listing file for obtaining the video Network playing standard technical protocol;
The file system that the netcast standard technique agreement corresponding file system is defined as using;
Wherein, file system of the file system for using particularly for the slicing files for managing the video.
3. the method for claim 1, it is characterised in that the player determines what the listing file of the video was deferred to Netcast standard technique agreement, determines the file system for using according to the netcast standard technique agreement, including:
The player determines the net that the listing file of the video is deferred to according to the path of the listing file for obtaining the video Network playing standard technical protocol;
The player is by the protocol conversion layer of the netcast standard technique agreement by the netcast standard technique Protocol conversion is the netcast standard technique agreement specified, and will be the netcast standard technique agreement specified corresponding File system is defined as the file system for using;
Wherein, file system of the file system for using particularly for the slicing files for managing the video.
4. method as claimed in claim 2 or claim 3, it is characterised in that the netcast standard technique agreement, including:HTTP At least one of live streaming media HLS protocol, smooth streaming SmoothStreaming agreement;
The file system includes the corresponding file system of the HLS protocol, the corresponding text of the SmoothStreaming agreements At least one of part system.
5. method as claimed in claim 4, it is characterised in that the instruction downloader downloads the slicing files of the video, Including:
The information of the play position of the video to be played is sent to the downloader by the player, is indicated described Downloader starts to download the slicing files of the video from the play position;
Wherein, the information of the play position of the video includes:Time started, starting position, burst number, in slicing files title At least one information.
6. method as claimed in claim 4, it is characterised in that the instruction downloader downloads the slicing files of the video, Including:
The player reads the video to be played, and the regarding reading by the file system to the file system The data positional information of frequency is sent to the downloader, indicates that the downloader downloads the burst text of the video to be played Part.
7. the method as described in claim 5 or 6, it is characterised in that it is described by the file system by the video point Piece file is stored to storage device, including:
The slicing files of the video are stored into the storage device by the storage location specified by the file system;Or Person
By the file system by the slicing files random storage of the video to the storage device.
8. the method as described in claim 1-3 any one, it is characterised in that described to be regarded described by the file system The slicing files of frequency are stored to storage device, and methods described also includes:
By the position of the file system distribute descriptor by the video being stored in the storage device point The abstract data for the continuous space of logic of piece file, so that the follow-up player is according to the digital independent in the space The slicing files of video file.
9. method as claimed in claim 8, it is characterised in that the file system specially manages physical disk, Huo Zheguan A file on reason physical disk in existing file system.
10. a kind of playback equipment, it is characterised in that include:
Acquisition module, for receiving the path of video to be played, obtains the listing file of the video according to the path;
Determining module, for determining netcast standard that the listing file of the video that the acquisition module gets is deferred to Technical protocol, determines using the corresponding text of the netcast standard technique agreement according to the netcast standard technique agreement Part system;
Processing module, for carry and enables the file system that the determining module determines, indicates that downloader is downloaded described The slicing files of video, and the slicing files of the video are stored to storage device by the file system;
Playing module, for the burst text of target location is obtained in the slicing files of the video stored from the file system Part, and the slicing files to the target location play out.
11. playback equipments as claimed in claim 10, it is characterised in that the determining module, including:
First determining unit, the path for the listing file of the video is obtained according to the acquisition module determine the video The netcast standard technique agreement deferred to of listing file;
Second determining unit, for the corresponding text of the netcast standard technique agreement for determining first determining unit Part system is defined as the file system for using;
Wherein, file system of the file system for using particularly for the slicing files for managing the video.
12. playback equipments as claimed in claim 10, it is characterised in that the determining module, including:
3rd determining unit, the path for the listing file of the video is obtained according to the acquisition module determine the video The netcast standard technique agreement deferred to of listing file;
4th determining unit, the agreement of the netcast standard technique agreement for being determined by the 3rd determining unit The netcast standard technique protocol conversion is the netcast standard technique agreement specified by conversion layer, and is specified described The corresponding file system of netcast standard technique agreement be defined as the file system for using;
Wherein, file system of the file system for using particularly for the slicing files for managing the video.
13. playback equipments as described in claim 11 or 12, it is characterised in that the netcast standard technique agreement, bag Include:At least one of HTTP live streaming media HLS protocols, smooth streaming SmoothStreaming agreement;
The file system includes the corresponding file system of the HLS protocol, the corresponding text of the SmoothStreaming agreements At least one of part system.
14. playback equipments as claimed in claim 13, it is characterised in that the processing module, specifically for:
The information of the play position of the video to be played is sent to into the downloader, indicates the downloader from institute State play position to start to download the slicing files of the video;
Wherein, the information of the play position of the video includes:Time started, starting position, burst number, in slicing files title At least one information.
15. playback equipments as claimed in claim 13, it is characterised in that the processing module, specifically for:
The video to be played is read to the file system, and by the file system by the data bit of the video for reading Confidence breath is sent to the downloader, indicates that the downloader downloads the slicing files of the video to be played.
16. playback equipments as described in claims 14 or 15, it is characterised in that the processing module is by the file system The slicing files of the video are stored to storage device, including:
The slicing files of the video are stored into the storage device by the storage location specified by the file system;Or Person
By the file system by the slicing files random storage of the video to the storage device.
17. playback equipments as described in claim 10-12 any one, it is characterised in that the playback equipment, also include:
Abstract module, for the slicing files of the video being stored to storage by the file system in the processing module After equipment, distribute descriptor by the video being stored in the storage device by the position of the file system The abstract data for the continuous space of logic of slicing files, so that the follow-up player is according to the digital independent in the space The slicing files of the video file.
18. playback equipments as claimed in claim 17, it is characterised in that the file system specially manages physical disk, Or a file on management physical disk in existing file system.
CN201410159145.6A 2014-04-18 2014-04-18 Playing method and equipment of multi-media files Active CN103956175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410159145.6A CN103956175B (en) 2014-04-18 2014-04-18 Playing method and equipment of multi-media files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410159145.6A CN103956175B (en) 2014-04-18 2014-04-18 Playing method and equipment of multi-media files

Publications (2)

Publication Number Publication Date
CN103956175A CN103956175A (en) 2014-07-30
CN103956175B true CN103956175B (en) 2017-04-26

Family

ID=51333441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410159145.6A Active CN103956175B (en) 2014-04-18 2014-04-18 Playing method and equipment of multi-media files

Country Status (1)

Country Link
CN (1) CN103956175B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812893B (en) * 2014-12-29 2019-07-26 深圳Tcl数字技术有限公司 Method and system for playing page video
CN104780455B (en) * 2015-03-20 2017-08-25 广东欧珀移动通信有限公司 A kind of digital document control method for playing back and mobile terminal
CN106550263A (en) * 2015-09-16 2017-03-29 深圳市腾讯计算机系统有限公司 Media playing method and device
CN107888949A (en) * 2016-09-29 2018-04-06 法乐第(北京)网络科技有限公司 A kind of method and apparatus for downloading audio-video document in advance
CN106789956B (en) * 2016-12-01 2019-10-25 武汉市烽视威科技有限公司 A kind of P2P order method and system based on HLS
CN107071548B (en) * 2017-04-20 2020-08-28 北京搜狐新媒体信息技术有限公司 Video processing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005196781A (en) * 2003-12-30 2005-07-21 Samsung Electronics Co Ltd Method for processing file of sub-memory in portable terminal equipment
CN102282825A (en) * 2010-12-14 2011-12-14 华为技术有限公司 Method and device for streaming media to request address mapping and cache nodes in content delivery network
CN102769787A (en) * 2012-08-02 2012-11-07 中兴通讯股份有限公司 Time shifting method and time shifting equipment of mobile phone terminal channel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005196781A (en) * 2003-12-30 2005-07-21 Samsung Electronics Co Ltd Method for processing file of sub-memory in portable terminal equipment
CN102282825A (en) * 2010-12-14 2011-12-14 华为技术有限公司 Method and device for streaming media to request address mapping and cache nodes in content delivery network
CN102769787A (en) * 2012-08-02 2012-11-07 中兴通讯股份有限公司 Time shifting method and time shifting equipment of mobile phone terminal channel

Also Published As

Publication number Publication date
CN103956175A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN103956175B (en) Playing method and equipment of multi-media files
CN104244079B (en) A kind of method for downloading video and device
CN104025548B (en) For the method and apparatus for the flexible caching for being delivered media
CN103905474B (en) A kind of information sharing method, terminal, server and system
CN103826159B (en) The local offline player method and terminal of a kind of M3U8 format videos
CN103716719B (en) A kind of method for down loading of multimedia file and user terminal
CN1538701A (en) Method and data formate for synchronizing contents
CN102006368B (en) Streaming media audio file play method based on mobile terminal memory card cache technology
CN102687518A (en) Apparatus and methods for describing and timing representations in streaming media files
CN101895562A (en) Mobile multimedia broadcast (CMMB) channel-based data and audio/video pushing system
CN102577420A (en) Method and apparatus for client capable of accessing broadcasting network and internet network to receive application
CN103531218B (en) A kind of online multimedia file editing method and system
CN1988547A (en) Method, server and system for online playing medium file
EP2207332A1 (en) Terminal device and content data processing method
CN102280132A (en) Online streaming audio play method based on HTTP (hyper text transfer protocol)
CN103220297B (en) Method for carrying out multi-screen interaction through social network
CN103535011A (en) Routing method, device, and system in content delivery network (CDN)
CN109391540A (en) A kind of processing method and processing device of RCS message
CN105847943A (en) Playback equipment, and audio and video playback method and device thereof
CN103369007A (en) Method, system and mobile terminal for obtaining associated music information
CN102904891A (en) Multimedia data sharing method and device and multimedia playing equipment
CN100571331C (en) The set-top box additional service platform interdynamic method
CN104639976A (en) Method for synchronizing programs of set top box and mobile terminal, set top box and mobile terminal
CN103929658A (en) Video program listening method and system based on cloud server
CN100534211C (en) Method for playing multimedia information using user recognizing module

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