CN105912705A - Acquisition method and device of multimedia file playing duration - Google Patents

Acquisition method and device of multimedia file playing duration Download PDF

Info

Publication number
CN105912705A
CN105912705A CN201610269545.1A CN201610269545A CN105912705A CN 105912705 A CN105912705 A CN 105912705A CN 201610269545 A CN201610269545 A CN 201610269545A CN 105912705 A CN105912705 A CN 105912705A
Authority
CN
China
Prior art keywords
file
multimedia
playing duration
multimedia file
played
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
Application number
CN201610269545.1A
Other languages
Chinese (zh)
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.)
LeTV Holding Beijing Co Ltd
LeTV Sports Culture Develop Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Sports Culture Develop Beijing 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 LeTV Holding Beijing Co Ltd, LeTV Sports Culture Develop Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610269545.1A priority Critical patent/CN105912705A/en
Publication of CN105912705A publication Critical patent/CN105912705A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor
    • G06F16/447Temporal browsing, e.g. timeline

Abstract

The invention discloses an acquisition method and device of multimedia file playing duration, relates to the technical field of videos, mainly aims to solve the problem in the prior art that the total playing duration of an on-demand multimedia file can not be accurately obtained, and improves the acquisition accuracy of the total playing duration of the on-demand multimedia file. The embodiment adopts the technical scheme that an index file corresponding to a multimedia file to be played is firstly obtained, then, the index file is analyzed to obtain the playing duration independently corresponding to each multimedia section file corresponding to the multimedia file to be played, and the total playing duration corresponding to the multimedia section file is obtained according to the playing duration independently corresponding to each multimedia section file. The acquisition method and device is mainly used for obtaining the total playing duration of the on-demand multimedia file.

Description

The acquisition methods of a kind of multimedia file playing duration and device
Technical field
The present invention relates to video technique field, particularly relate to the acquisition side of a kind of multimedia file playing duration Method and device.
Background technology
Along with the development of network, the network media has become as a part indispensable in daily life, Streaming Media is a kind of network multimedia can broadcast with biography limit, limit, and i.e. Media Provider is at transmission over networks media While, user can constantly receive and watch or listen to the media being transmitted.At present, many matchmakers Live or the program request of body file mainly by based on HTTP (HyperText Transfer Protocol, HTML (Hypertext Markup Language)) HLS (HTTP Live Streaming, dynamic code rate adaptive technique) of agreement Realize.The live of multimedia file and program request viewing is preferably carried out in order to meet user, can be at point The display of multimedia file total playing duration is carried out when playing multimedia file.
When the total duration of broadcasting to program request class multimedia file obtains at present, mainly call Android system System player preset function interface getDuration () directly obtains total playing duration.This duration is terminal unit Total playing duration that current system framework calculates is as the playing duration of multimedia file, but due to difference The multimedia system framework implementation of the Android system of terminal unit manufacturer customization may be different, cause phase Total playing duration that same multimedia file obtains on the terminal unit of different manufacturers is different, thus makes The acquisition accuracy becoming the existing program request total playing duration of class multimedia file is relatively low.
Summary of the invention
The embodiment of the present invention provides acquisition methods and the device of a kind of multimedia file playing duration, in order to solve The problem that certainly cannot accurately obtain the program request total playing duration of class multimedia file in prior art, improves many matchmakers The accuracy that the total playing duration of body file obtains.
For reaching above-mentioned purpose, present invention generally provides following technical scheme:
On the one hand, embodiments provide the acquisition methods of a kind of multimedia file playing duration, should Method includes:
Obtain the index file that multimedia file to be played is corresponding;
Resolve described index file, obtain each multimedia slices that described multimedia file to be played is corresponding The playing duration that file is the most corresponding;
According to the playing duration that the section of each multimedia file is the most corresponding, obtain described multimedia file Corresponding total playing duration.
On the other hand, the embodiment of the present invention also provides for the acquisition dress of a kind of multimedia file playing duration Putting, this device includes:
Acquiring unit, for obtaining the index file that multimedia file to be played is corresponding;
Resolution unit, for resolve described acquiring unit obtain described index file, obtain described in treat Play the playing duration that each multimedia slices file corresponding to multimedia file is the most corresponding;
Described acquiring unit, when being additionally operable to according to the broadcasting that the section of each multimedia file is the most corresponding Long, obtain total playing duration that described multimedia file is corresponding.
By technique scheme, the technical scheme that the embodiment of the present invention provides at least has following excellent Point:
The acquisition methods of a kind of multimedia file playing duration that the present invention provides and device, first obtain The index file that multimedia file to be played is corresponding, then resolves described index file, obtain described in treat Play the playing duration that each multimedia slices file corresponding to multimedia file is the most corresponding, last root According to the playing duration that the section of each multimedia file is the most corresponding, obtain described multimedia file corresponding Total playing duration.With at present by calling Android system multimedia player preset function interface GetDuration () total playing duration that directly acquisition terminal unit current system framework calculates is compared, Due to the fact that it is the playing duration corresponding by first obtaining each multimedia slices file, then will be each Individual duration is added total duration of obtaining and as total playing duration of multimedia file rather than directly obtains Total playing duration of multimedia file, such that it is able to improve the standard that the total playing duration of multimedia file obtains Really property.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the present invention's Technological means, and can being practiced according to the content of description, and in order to allow the above-mentioned of the present invention and Other objects, features and advantages can become apparent, below especially exemplified by the detailed description of the invention of the present invention.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below by right In embodiment or description of the prior art, the required accompanying drawing used is briefly described, it is clear that Ground, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skill in the art From the point of view of, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings Figure.
The stream of the acquisition methods of a kind of multimedia file playing duration that Fig. 1 provides for the embodiment of the present invention Cheng Tu;
The acquisition methods of the another kind of multimedia file playing duration that Fig. 2 provides for the embodiment of the present invention Flow chart;
The knot of the acquisition device of a kind of multimedia file playing duration that Fig. 3 provides for the embodiment of the present invention Structure schematic diagram;
The acquisition device of the another kind of multimedia file playing duration that Fig. 4 provides for the embodiment of the present invention Structural representation.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in inventive embodiments, clearly and completely retouches the technical scheme in the embodiment of the present invention State, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments. Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, broadly falls into the scope of protection of the invention.
The embodiment of the present invention provides the acquisition methods of a kind of multimedia file playing duration, as it is shown in figure 1, Described method includes:
101, the index file that multimedia file to be played is corresponding is obtained.
Wherein, described multimedia file to be played can be user's audio frequency literary composition in terminal unit program request Part, or it is the video file of user's program request.Described index file specifically refers to HLS (HTTP Live Streaming, dynamic code rate adaptive technique) the m3u8 (index file) that comprised of Streaming Media. Described index file includes whole reproduction time information that described multimedia file to be played is corresponding List.The index file that described acquisition multimedia file to be played is corresponding specifically refers to download this multimedia The m3u8 index file that file is corresponding.
Such as, when user is at terminal unit order video, terminal unit is by downloading user's program request The m3u8 index file that video is corresponding, obtains the index file that the video of institute's program request is corresponding.
102, resolve described index file, obtain each matchmaker that described multimedia file to be played is corresponding The playing duration that body section file is the most corresponding.
Wherein, described media section file specifically refers to the TS (media that the Streaming Media of HLS is comprised Section file).Described playing duration can be several seconds, a few minutes or several hours, and the present invention is real Execute example not limit.
103, according to the playing duration that the section of each multimedia file is the most corresponding, described many matchmakers are obtained Total playing duration that body file is corresponding.
Wherein, total playing duration that the described multimedia file of described acquisition is corresponding, specifically refer to obtain The playing duration that each multimedia slices file taken is the most corresponding is added, thus obtains described many matchmakers Total playing duration that body file is corresponding.Such as, corresponding 3 multimedia slices of multimedia file to be played File, resolves the playing duration obtaining these 3 multimedia slices files corresponding and is respectively 5 seconds, 3 seconds With 6 seconds, now, playing duration the most corresponding for 3 multimedia slices files is added, thus It it is 14 seconds to total playing duration that this multimedia file to be played is corresponding.
The acquisition methods of a kind of multimedia file playing duration that the embodiment of the present invention provides, when needs obtain When taking the playing duration of certain multimedia file, first obtain the index that multimedia file to be played is corresponding File, then resolves described index file, obtains corresponding each of described multimedia file to be played many The playing duration that media section file is respectively corresponding, the most corresponding according to the section of each multimedia file Playing duration, obtains total playing duration that described multimedia file is corresponding.With at present by calling Android System plays device preset function interface getDuration () directly obtains terminal unit current system framework meter The total playing duration calculated is compared as total playing duration of multimedia file, due to the fact that it is to pass through Obtain the playing duration that each multimedia slices file is corresponding, each duration is added the total duration obtained As multimedia file total playing duration rather than directly obtain multimedia file total duration, from And the accuracy that the total playing duration of multimedia file obtains can be improved.
Embodiments provide the acquisition methods of another kind of multimedia file playing duration, such as Fig. 2 Shown in, described method includes:
201, the index file that multimedia file to be played is corresponding is obtained.
Wherein, described multimedia file to be played can be user's audio frequency literary composition in terminal unit program request Part, or it is the video file of user's program request.Described index file includes described many matchmakers to be played Whole reproduction time information lists that body file is corresponding.Described acquisition multimedia file to be played is corresponding Index file specifically refers to download m3u8 corresponding to this multimedia file (index file).
Such as, when user is at terminal unit On-demand audio file, terminal device is used by download The m3u8 index file that the audio file of family program request is corresponding, the audio file obtaining institute's program request is corresponding Index file.
For the embodiment of the present invention, step 201 specifically may include that first to detect and preset arranges broadcasting Whether address function is called, if called, then obtains the index literary composition that multimedia file to be played is corresponding Part.Wherein, the described broadcast address function that arranges specifically refers to setDataSource () function.Described pre- Install broadcast address function and specifically refer to the intrasystem function interface of terminal unit, be used for receiving accordingly User instruction.Described preset arrange that broadcast address function is whether called to be specifically referred to terminal unit and be The no request that have received user's free online multimedium file incoming corresponding index file address.For The embodiment of the present invention, when user is at terminal unit free online multimedium file, first system detects preset Whether function is called, and obtains, after confirming to call, the index file that multimedia file to be played is corresponding, Avoid and be also carried out index file when there is not index file corresponding to multimedia file and obtain operation, Such that it is able to avoid system resource waste.
For the embodiment of the present invention, the index file that described acquisition multimedia file to be played is corresponding is concrete May include that by preset system thread, obtain the index file that multimedia file to be played is corresponding. Described preset system thread individually opens after specifically referring to incoming multimedia index file address to be played A dynamic worker thread.Now step 201 complete procedure can be: detects preset setting and plays ground Whether location function is called, if system detects that the preset broadcast address function that arranges is called, the most incoming The index file address that multimedia file to be played is corresponding, and a preset system active line is activated individually Journey, downloads the m3u8 index file that multimedia file to be played is corresponding.For the embodiment of the present invention, The m3u8 index file that multimedia file to be played is corresponding is downloaded by system thread is activated individually, can To ensure to obtain whole reproduction time information lists that this multimedia file is corresponding exactly, thus improve The accuracy that multimedia file total playing duration obtains.
202, resolve the preset label information of described index file, obtain described multimedia to be played literary composition The playing duration of each multimedia slices file correspondence respectively that part is corresponding.
Wherein, described playing duration can be several seconds, a few minutes or several hours, and the present invention implements Example does not limits.The preset label information of described index file specifically refers to for identifying many matchmakers to be played The fileinfo of each multimedia slices file correspondence respectively that body file is corresponding.Such as, described preset Label information may be used for identifying playing duration corresponding to each multimedia slices file, downloading ground Location, file size etc., the present invention does not limits.
For the embodiment of the present invention, step 202 specifically may include that the expansion resolving described index file Exhibition label information, obtains each multimedia slices file corresponding to described multimedia file to be played respectively Corresponding playing duration.
Wherein, described extension tag information specifically refers to EXTINF label information, is described to be played The identification information of the playing duration of each multimedia slices file that multimedia file is corresponding.
Such as, the m3u8 playlist of the multimedia file to be played that system intialization thread is downloaded is as follows Shown in:
#EXTM3U
#EXT-X-TARGETDURATION:15
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:12,
http://media.example.com/segment0.ts
#EXTINF:13,
http://media.example.com/segment1.ts
#EXTINF:5,
http://media.example.com/segment2.ts
#EXT-X-ENDLIST
Wherein, corresponding 3 the multimedia slices files of this multimedia file, by resolving each multimedia Section EXTINF corresponding to file, obtains each many matchmakers that described multimedia file to be played is corresponding The playing duration that body section file is corresponding respectively is 12 seconds, 13 seconds and 5 seconds, it is achieved thereby that obtain The playing duration of each multimedia slices file.
For the embodiment of the present invention, when needing the playing duration obtaining multimedia file to be played, logical Cross extension tag information EXTINF resolved in index file, obtain multimedia file to be played corresponding The respectively corresponding playing duration of each multimedia slices file, thus obtain multimedia file to be played Total duration, can be avoided by calling Android system player preset function interface getDuration () Total playing duration that directly acquisition terminal unit current system framework calculates is as multimedia file During total playing duration, due to the multimedia system framework of the Android system of different terminal equipment manufacturer customization The identical multimedia file that implementation is different and causes obtains on the terminal unit of different manufacturers The problem that total playing duration of taking is different, such that it is able to improve when always playing of multimedia file to be played The long accuracy obtained.
203, according to the playing duration that the section of each multimedia file is the most corresponding, described many matchmakers are obtained Total playing duration that body file is corresponding.
Wherein, total playing duration that the described multimedia file of described acquisition is corresponding, specifically refer to obtain The playing duration that each multimedia slices file taken is the most corresponding is added, thus obtains described multimedia Total playing duration that file is corresponding.
Such as, corresponding 5 the multimedia slices files of multimedia file to be played, resolve and obtain these 5 The playing duration that multimedia slices file is corresponding is respectively 2 seconds, 10 seconds, 7 seconds, 22 seconds and 18 seconds, Now, playing duration the most corresponding for 5 multimedia slices files is added, thus treats described in obtaining The total playing duration playing multimedia file corresponding is 59 seconds.
For the embodiment of the present invention, concrete application scenarios can be as follows, but is not limited to this, bag Include: when user is in terminal unit player program request entertainment video, first system detects preset setting Whether broadcast address function setDataSource () is called, if preset function be called, the most incoming should The index file address that entertainment video is corresponding, is then activated individually a preset system thread, and downloading should M3u8 index file that video is corresponding also resolves the preset label information of m3u8 index file, wherein The broadcasting the most corresponding including all identifying each video segment file corresponding to this entertainment video file Extension tag information EXTINF of duration, resolves whole extension tag information EXTINF, obtains Full detail with EXTINF label: #EXTINF:12, #EXTINF:20, #EXTINF:15, The playing duration of the video segment file that EXTINF:6, i.e. this entertainment video are corresponding be respectively 12 seconds, 20 seconds, 15 seconds, 6 seconds, the most all video segment playing duration were added the joy obtaining the program request of user institute Total playing duration of happy video is 53 seconds.The player of terminal unit is in display playing progress bar When being worth the total duration with multimedia file greatly, use each many matchmakers corresponding by definition multimedia file Playing duration that body section file is corresponding respectively and total duration of calculating rather than pass through player Directly obtain total playing duration that terminal unit current system framework calculates, thus improve multimedia The accuracy that the total playing duration of file obtains.
The acquisition methods of the another kind of multimedia file playing duration that the embodiment of the present invention provides, works as needs When obtaining the playing duration of certain multimedia file, first obtain the rope that multimedia file to be played is corresponding Quotation part, then resolves described index file, obtains corresponding each of described multimedia file to be played The playing duration that multimedia slices file is the most corresponding, according to each multimedia file section correspondence respectively Playing duration, obtain total playing duration that described multimedia file is corresponding.With at present by calling peace Tall and erect system plays device preset function interface getDuration () directly obtains terminal unit current system framework The total playing duration calculated is compared as total playing duration of multimedia file, due to the fact that it is logical Cross and obtain the playing duration that each multimedia slices file is corresponding, by each duration be added obtain total time Total duration of long total playing duration as multimedia file rather than directly acquisition multimedia file, Such that it is able to improve the accuracy that the total playing duration of multimedia file obtains.
Further, as implementing of method described in Fig. 1, one is embodiments provided Device, as it is shown on figure 3, described device includes: acquiring unit 31, resolution unit 32.
Acquiring unit 31, for obtaining the index file that multimedia file to be played is corresponding;
Resolution unit 32, for resolving the described index file that described acquiring unit obtains, obtains described The playing duration of each multimedia slices file correspondence respectively that multimedia file to be played is corresponding;
Described acquiring unit 31, when being additionally operable to according to the broadcasting that the section of each multimedia file is the most corresponding Long, obtain total playing duration that described multimedia file is corresponding.
It should be noted that the acquisition of a kind of multimedia file playing duration of embodiment of the present invention offer Other of each functional unit involved by device describe accordingly, and the correspondence being referred to method shown in Fig. 1 is retouched State, do not repeat them here.
The acquisition device of a kind of multimedia file playing duration that the embodiment of the present invention provides, when needs obtain When taking the playing duration of certain multimedia file, first obtain the index that multimedia file to be played is corresponding File, then resolves the described index file that described acquiring unit obtains, obtains described many matchmakers to be played The playing duration of each multimedia slices file correspondence respectively that body file is corresponding, according to each multimedia The playing duration that file section is the most corresponding, obtains total playing duration that described multimedia file is corresponding. With current when obtaining multimedia file playing duration, it is common that pre-by calling Android system player Put function interface getDuration () and directly obtain total broadcasting that terminal unit current system framework calculates Duration is compared as total playing duration of multimedia file, and the present invention is to obtain multimedia slices file to divide Not corresponding playing duration rather than total duration that directly acquisition multimedia file is play, thus improve The accuracy that multimedia file total playing duration obtains.
Further, as implementing of method shown in Fig. 2, the embodiment of the present invention provides another kind The acquisition device of multimedia file playing duration, as shown in Figure 4, described device may include that acquisition Unit 41, resolution unit 42.
Acquiring unit 41, for obtaining the index file that multimedia file to be played is corresponding;
Resolution unit 42, for resolving the described index file that described acquiring unit obtains, obtains described The playing duration of each multimedia slices file correspondence respectively that multimedia file to be played is corresponding;
Described acquiring unit 41, when being additionally operable to according to the broadcasting that the section of each multimedia file is the most corresponding Long, obtain total playing duration that described multimedia file is corresponding.
Further, described resolution unit 42, specifically for resolving the preset label of described index file Information, obtains each multimedia slices file corresponding to described multimedia file to be played correspondence respectively Playing duration.
Further, described resolution unit 42, specifically it is additionally operable to resolve the extension mark of described index file Label information, obtains each multimedia slices file corresponding to described multimedia file to be played correspondence respectively Playing duration.
Further, described acquiring unit 41 includes:
Detection module 4101, is used for detecting and preset arranges whether broadcast address function is called;
Acquisition module 4102, is adjusted if detecting the preset broadcast address function that arranges for described detection module With, then obtain the index file address that multimedia file to be played is corresponding.
Further, described acquiring unit 41, specifically for by preset system thread, obtain and wait to broadcast Put the index file that multimedia file is corresponding.
It should be noted that the acquisition dress of the another kind of multimedia duration of embodiment of the present invention offer Other of each functional unit involved by putting describe accordingly, are referred to the corresponding description of method shown in Fig. 2, Do not repeat them here.
The acquisition device of the another kind of multimedia file playing duration that the embodiment of the present invention provides, first obtains Take the index file that multimedia file to be played is corresponding, then resolve described index file, obtain described The playing duration of each multimedia slices file correspondence respectively that multimedia file to be played is corresponding, according to The playing duration that the section of each multimedia file is respectively corresponding, obtains corresponding total of described multimedia file Playing duration.With straight by calling Android system player preset function interface getDuration () at present Obtain and take total as multimedia file of total playing duration that terminal unit current system framework calculates Playing duration is compared, and due to the fact that when being by obtaining broadcasting corresponding to each multimedia slices file Long, each duration is added total duration of obtaining as total playing duration of multimedia file rather than Directly obtain total duration of multimedia file, obtain such that it is able to improve the total playing duration of multimedia file Accuracy.
Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can To be or to may not be physical location, i.e. may be located at a place, or can also be distributed to On multiple NEs.Some or all of module therein can be selected according to the actual needs real The purpose of existing the present embodiment scheme.Those of ordinary skill in the art are not paying the feelings of performing creative labour Under condition, i.e. it is appreciated that and implements.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive each Embodiment can add the mode of required general hardware platform by software and realize, naturally it is also possible to logical Cross hardware.Based on such understanding, prior art is made tribute by technique scheme the most in other words The part offered can embody with the form of software product, and this computer software product can be stored in In computer-readable recording medium, such as ROM/RAM, magnetic disc, CD etc., use including some instructions So that a computer equipment (can be personal computer, server, or the network equipment etc.) Perform the method described in some part of each embodiment or embodiment.
Last it is noted that above example is only in order to illustrate technical scheme, rather than right It limits;Although the present invention being described in detail with reference to previous embodiment, this area common Skilled artisans appreciate that the technical scheme described in foregoing embodiments still can be repaiied by it Change, or wherein portion of techniques feature is carried out equivalent;And these amendments or replacement, not The essence making appropriate technical solution departs from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the acquisition methods of a multimedia file playing duration, it is characterised in that including:
Obtain the index file that multimedia file to be played is corresponding;
Resolve described index file, obtain each multimedia slices that described multimedia file to be played is corresponding The playing duration that file is the most corresponding;
According to the playing duration that the section of each multimedia file is the most corresponding, obtain described multimedia file pair The total playing duration answered.
The acquisition methods of multimedia file playing duration the most according to claim 1, it is characterised in that The described index file of described parsing, obtains each multimedia slices that described multimedia file to be played is corresponding The playing duration that file is corresponding respectively includes:
Resolve the preset label information of described index file, obtain described multimedia file to be played corresponding The playing duration that each multimedia slices file is the most corresponding.
The acquisition methods of multimedia file playing duration the most according to claim 2, it is characterised in that The preset label information of the described index file of described parsing, obtains described multimedia file to be played corresponding The playing duration that each multimedia slices file is corresponding respectively includes:
Resolve the extension tag information of described index file, obtain described multimedia file to be played corresponding The playing duration that each multimedia slices file is the most corresponding.
The acquisition methods of multimedia file playing duration the most according to claim 1, it is characterised in that The index file that described acquisition multimedia file to be played is corresponding includes:
Detect and preset arrange whether broadcast address function is called;
The most then obtain the index file that multimedia file to be played is corresponding.
The acquisition methods of the multimedia file playing duration described in 1 or 4 the most as requested, it is characterised in that The index file that described acquisition multimedia file to be played is corresponding includes:
By preset system thread, obtain the index file that multimedia file to be played is corresponding.
6. the acquisition device of a multimedia file playing duration, it is characterised in that including:
Acquiring unit, for obtaining the index file that multimedia file to be played is corresponding;
Resolution unit, for resolve described acquiring unit obtain described index file, obtain described in wait to broadcast Put the playing duration that each multimedia slices file corresponding to multimedia file is the most corresponding;
Described acquiring unit, is additionally operable to the playing duration the most corresponding according to the section of each multimedia file, Obtain total playing duration that described multimedia file is corresponding.
The acquisition device of multimedia file playing duration the most according to claim 6, it is characterised in that
Described resolution unit, specifically for resolving the preset label information of described index file, obtains described The playing duration of each multimedia slices file correspondence respectively that multimedia file to be played is corresponding.
The acquisition device of multimedia file playing duration the most according to claim 7, it is characterised in that
Described resolution unit, is specifically additionally operable to resolve the extension tag information of described index file, obtains institute State the playing duration that each multimedia slices file corresponding to multimedia file to be played is the most corresponding.
The acquisition device of multimedia file playing duration the most according to claim 6, it is characterised in that Described acquiring unit includes:
Detection module, is used for detecting and preset arranges whether broadcast address function is called;
Acquisition module, if being called, then for the preset broadcast address function that arranges of described detection module detection Obtain the index file that multimedia file to be played is corresponding.
10., according to the acquisition device of the multimedia file playing duration described in claim 6 or 9, it is special Levy and be,
Described acquiring unit, specifically for by preset system thread, obtains multimedia file pair to be played The index file answered.
CN201610269545.1A 2016-04-27 2016-04-27 Acquisition method and device of multimedia file playing duration Pending CN105912705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610269545.1A CN105912705A (en) 2016-04-27 2016-04-27 Acquisition method and device of multimedia file playing duration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610269545.1A CN105912705A (en) 2016-04-27 2016-04-27 Acquisition method and device of multimedia file playing duration

Publications (1)

Publication Number Publication Date
CN105912705A true CN105912705A (en) 2016-08-31

Family

ID=56751847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610269545.1A Pending CN105912705A (en) 2016-04-27 2016-04-27 Acquisition method and device of multimedia file playing duration

Country Status (1)

Country Link
CN (1) CN105912705A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040222A (en) * 2021-12-24 2022-02-11 湖南快乐阳光互动娱乐传媒有限公司 Multimedia file tamper-proof playing method, processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916414A (en) * 2012-12-31 2014-07-09 华为技术有限公司 Transmission rate configuration method, terminal device, server and system
CN103974100A (en) * 2014-05-20 2014-08-06 北京速能数码网络技术有限公司 Media data playing method and device
CN104410902A (en) * 2014-12-04 2015-03-11 华为技术有限公司 Playing method and terminal for live program, as well as generation method and equipment for index document
CN104702563A (en) * 2013-12-06 2015-06-10 乐视网信息技术(北京)股份有限公司 Method and device for acquiring streaming media play time

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916414A (en) * 2012-12-31 2014-07-09 华为技术有限公司 Transmission rate configuration method, terminal device, server and system
CN104702563A (en) * 2013-12-06 2015-06-10 乐视网信息技术(北京)股份有限公司 Method and device for acquiring streaming media play time
CN103974100A (en) * 2014-05-20 2014-08-06 北京速能数码网络技术有限公司 Media data playing method and device
CN104410902A (en) * 2014-12-04 2015-03-11 华为技术有限公司 Playing method and terminal for live program, as well as generation method and equipment for index document

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114040222A (en) * 2021-12-24 2022-02-11 湖南快乐阳光互动娱乐传媒有限公司 Multimedia file tamper-proof playing method, processing method and device

Similar Documents

Publication Publication Date Title
CN103385008B (en) Content delivery method and system
CN102577420B (en) For being able to access that the method and apparatus that the client of radio network and Internet receives application
CN101616166B (en) Method and device for downloading multimedia content in Internet at high speed
CN104735473B (en) A kind of detection method and device of video render
CN105516739A (en) Video live broadcasting method and system, transcoding server and webpage client
US8275586B2 (en) Enabling end-to-end testing of applications across networks
CN103051976B (en) A kind of CDN distributes HLS content and method, system and equipment
CN105898607A (en) Network video playback method, device and system
CN106131610A (en) The online broadcasting method of video, equipment and device
US20020194612A1 (en) Multimedia presentation
US20100185765A1 (en) Content information providing and reproducing method and apparatus
CN107426629A (en) A kind of streaming media file processing method and live broadcast system
CN104602138A (en) Method and device for supporting HLS protocol by streaming media server
CN106658226A (en) Play method and apparatus
CN106993238A (en) Audio and video playing method and device, audio frequency and video live broadcasting method and system based on Html5
JP6290451B2 (en) Software upgrade method and apparatus, and device
CN103414959B (en) A kind of method and apparatus for accelerating Internet video broadcasting speed
CN105227673B (en) Data download method, client, server and the system of anti-abduction
CN107040615B (en) Downloading method of media fragment, terminal and computer readable storage medium
CN103763638B (en) Video resource obtaining method and device
CN106303754A (en) A kind of audio data play method and device
US20160073137A1 (en) Transmission apparatus, transmission method, reception apparatus, and reception method
WO2017016285A1 (en) Method and device for implementing download of multimedia file
CN104768076B (en) Video broadcasting method and device
CN110113298A (en) Data transmission method, device, signal server and computer-readable medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160831

WD01 Invention patent application deemed withdrawn after publication