CN106162311A - A kind of method playing Internet video and terminal unit - Google Patents

A kind of method playing Internet video and terminal unit Download PDF

Info

Publication number
CN106162311A
CN106162311A CN201610579270.1A CN201610579270A CN106162311A CN 106162311 A CN106162311 A CN 106162311A CN 201610579270 A CN201610579270 A CN 201610579270A CN 106162311 A CN106162311 A CN 106162311A
Authority
CN
China
Prior art keywords
data segment
data
internal memory
internet video
downloaded
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
CN201610579270.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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201610579270.1A priority Critical patent/CN106162311A/en
Publication of CN106162311A publication Critical patent/CN106162311A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of method playing Internet video and terminal unit, play problem long between sowing time for solving existing network video.Method includes: after receiving play instruction, file header data segment according to the Internet video play indicated by play instruction and end-of-file data segment, get the metadata of Internet video, and in the internal memory of video player cache file head data segment and end-of-file data segment, wherein, the parameter information of log file head data segment and the parameter information of end-of-file data segment in internal memory, parameter information includes characterized data segment positional information in Internet video and data amount information;When playing Internet video, according to the parameter information of the data segment cached in internal memory, find file header data segment, and according to metadata, played file head data segment, due to without re-downloading file header data segment, it is greatly accelerated rising of Internet video and broadcasts speed, improve Consumer's Experience.

Description

A kind of method playing Internet video and terminal unit
Technical field
The present invention relates to communication technical field, particularly to a kind of method playing Internet video and terminal unit.
Background technology
Universal along with network technology and smart machine, video player has become must in intelligent television and smart mobile phone Few function, user can obtain the Streaming Media such as video, audio frequency by video player from the webserver, and at Intelligent electric Depending on or smart mobile phone on play, therefore, video player is widely applied in life.
In addition to network speed, the caching mechanism of downloading of video player is also to affect rising of video player to broadcast speed Key factor, and rising of video player is broadcast speed and is directly influenced Consumer's Experience.With Android 5.1 (Android 5.1) version As a example by the NuPlayer player of middle use, intelligent television passes through HTML (Hypertext Markup Language) (HyperText Transfer Protocol, is called for short HTTP) from network, the Internet video of download can be buffered in the NuCache of NuPlayer player, NuCache is the internal memory in NuPlayer player for data cached section, and its structure is as it is shown in figure 1, NuCacheOffset table Showing the original position of the data segment cached in NuCache, TotalSize represents the heap(ed) capacity of NuCache.
When video player need play MP4 form Internet video time, video player rise broadcast before, need first under Carry segment file head data and a segment file mantissa evidence of this Internet video, concrete: first to download one section of literary composition of this Internet video Part head data, owing in NuCache, the data of caching are all continuous print, after reading and analyze this document head data, need to delete The file header data cached, download a segment file mantissa evidence of this Internet video the most again, read and analyze this document tail, from And get the metadata (Metadata) of this Internet video.
When Internet video commences play out, if the data of caching are that the original position from this Internet video is opened in NuCache Begin, i.e. from 0 beginning, just can play as long as then amount of buffered data is enough;If the data of caching are not in NuCache Starting from the original position of this Internet video, such as, in NuCache, the data of caching are segment file mantissa evidences, owing to broadcasting Need the original position from this Internet video to start to read data when putting, then need to empty the data cached in NuCache, Again start to download data from the original position of this Internet video, so may result in the repeated downloads of data, extend network Rising between sowing time of video, thus reduce Consumer's Experience.
Summary of the invention
Embodiments provide a kind of method playing Internet video and terminal unit, be used for solving existing network and regard Frequency plays problem long between sowing time.
First aspect, it is provided that a kind of method playing Internet video, including:
After receiving play instruction, according to indicated by described play instruction play Internet video file header data segment and End-of-file data segment, gets the metadata of described Internet video, and caches described file header in the internal memory of video player Data segment and described end-of-file data segment, wherein, record parameter information and the institute of described file header data segment in described internal memory Stating the parameter information of end-of-file data segment, described parameter information includes characterized data segment position in described Internet video Information and data amount information;
When playing described Internet video, according to the parameter information of the data segment cached in described internal memory, find described File header data segment, and according to described metadata, play the described file header data segment found.
Second aspect, it is provided that a kind of computer-readable recording medium, wherein storage has executable program code, this journey Sequence code is in order to realize the method described in first aspect.
The third aspect, it is provided that a kind of terminal unit, including:
Processing module, after being used for receiving play instruction, according to the Internet video play indicated by described play instruction File header data segment and end-of-file data segment, get the metadata of described Internet video, and in the internal memory of video player Cache described file header data segment and described end-of-file data segment, wherein, described internal memory records described file header data segment Parameter information and the parameter information of described end-of-file data segment, described parameter information includes that characterized data segment is at described net Positional information in network video and data amount information;
Playing module, for when playing described Internet video, according to the parameter of the data segment cached in described internal memory Information, finds described file header data segment, and according to described metadata, plays the described file header data segment found.
In the method for embodiment of the present invention offer and terminal unit, after receiving play instruction, refer to according to described broadcasting The file header data segment of the indicated Internet video play of order and end-of-file data segment, get first number of described Internet video According to, and in the internal memory of video player, cache described file header data segment and described end-of-file data segment, and in described Deposit the middle parameter information recording described file header data segment and the parameter information of described end-of-file data segment, due to by video playback The memory virtual of device becomes multiple buffer area, and characterizes, by parameter information, the data segment that each buffer area is cached so that regard The internal memory of player can cache discontinuous data segment frequently, thus after having resolved the file header data segment of Internet video, Without deleting this document head data segment, so, when playing described Internet video, can be according to the data cached in described internal memory The parameter information of section, finds described file header data segment and plays, due to without re-downloading file header data segment, the most greatly Fast rising of Internet video broadcasts speed, improves Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the structural representation of the NuCache in NuPlayer player;
Fig. 2 is the schematic flow sheet of a kind of method playing Internet video in the embodiment of the present invention;
Fig. 3 A is the data structure schematic diagram of a kind of Internet video in the embodiment of the present invention;
Fig. 3 B is the data structure schematic diagram of the another kind of Internet video in the embodiment of the present invention;
Fig. 4 is the schematic diagram of a kind of terminal unit in the embodiment of the present invention.
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 the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is The 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 The every other embodiment obtained under not making creative work premise, broadly falls into the scope of protection of the invention.
Below in conjunction with Figure of description, the embodiment of the present invention is described in further detail.Should be appreciated that described herein Embodiment be merely to illustrate and explain the present invention, be not intended to limit the present invention.
In embodiment shown in Fig. 2, it is provided that a kind of method playing Internet video, described method includes:
S21, receive play instruction after, according to the file header data of Internet video play indicated by described play instruction Section and end-of-file data segment, get the metadata of described Internet video, and cache described literary composition in the internal memory of video player Part head data segment and described end-of-file data segment, wherein, record the parameter information of described file header data segment in described internal memory With the parameter information of described end-of-file data segment, described parameter information includes that characterized data segment (alternatively referred to as data block) exists Positional information in described Internet video and data amount information.
Concrete, after receiving play instruction, first download the literary composition of the indicated Internet video play of described play instruction Part head data segment and end-of-file data segment, to get the metadata play needed for described Internet video, and store file header number According to section and end-of-file data segment.
Wherein, the metadata of Internet video includes but not limited at least one in following information: video code model, sound Frequently coded format, plays total duration, bit rate, frame per second etc..Video player needs the metadata according to Internet video, to download The data segment of Internet video be decoded waiting and process, the Internet video downloaded with broadcasting.
Optionally, the data segment that the data segment characterized positional information in described Internet video can be characterized exists Position in all data segments of described Internet video, it is also possible to be that the initial data in characterized data segment is at described network Position in all data of video.
Illustrating, the positional information of described file header data segment can be that described file header data are in described Internet video All data segments in position, it is also possible to be all numbers in described Internet video of the initial data in described file header data Position according to.
In this step, according to file header data segment and the end-of-file data of Internet video, described network video can be got The metadata of frequency.
S22, when playing described Internet video, according to the parameter information of the data segment cached in described internal memory, find Described file header data, and according to described metadata, play described file header data.
In the embodiment of the present invention, after receiving play instruction, according to the network video play indicated by described play instruction The file header data segment of frequency and end-of-file data segment, get the metadata of described Internet video, and in video player Deposit middle caching described file header data segment and described end-of-file data segment, wherein, described internal memory records described file header number According to parameter information and the parameter information of described end-of-file data segment of section, multiple slow owing to the memory virtual of video player is become Deposit district, and characterize, by parameter information, the data segment that each buffer area is cached so that be permissible in the internal memory of video player Cache discontinuous data, thus after having resolved the file header data segment of Internet video, it is not necessary to delete this document head data segment, So, when playing described Internet video, can find described according to the parameter information of the data segment cached in described internal memory File header data segment is also play, owing to without re-downloading file header data segment, being greatly accelerated rising of Internet video and broadcasting speed, Improve Consumer's Experience.
In the embodiment of the present invention, described method also includes:
In the playing process of described Internet video, download described Internet video except described file header data segment and described Other data segments outside end-of-file data segment;
The data segment downloaded is buffered in described internal memory, and the ginseng of the data segment that record is downloaded in described internal memory Number information;
After playing the current data section of described Internet video, according to the position of each data segment of caching in described internal memory Information, finds the next data segment of current data section, and according to described metadata, plays described next data segment.
Concrete, during described Internet video is play, constantly download other data segments of described Internet video, so working as After front data segment plays, can directly play next data segment, improve the seriality play, thus improve user and watch body Test.
In force, the data segment downloaded is buffered in described internal memory, including the implementation that following two is possible:
If the data volume sum of the data segment that the data volume of the data segment that mode 1 is downloaded has cached with described internal memory is big In or the maximum amount of data that can cache equal to described internal memory, first from described internal memory, delete data start successively and lean on most Before data segment so that the data volume sum of data segment that the data volume of the data segment downloaded has cached with described internal memory is less than The maximum amount of data that described internal memory can cache;Again by the parameter information of the data segment downloaded with the data segment downloaded, slow Exist in described internal memory.
In which, the data volume sum of the data segment cached when newly downloaded data bin data amount and described internal memory surpasses When crossing the maximum amount of data that described internal memory can cache, first delete the data segment that the part cached in described internal memory has been play, Again newly downloaded data segment is cached in described internal memory.Due to the data segment the play position one in described Internet video As more forward than position in described Internet video of the data segment do not play, therefore, it can the position according to the data segment cached Confidence breath selects the data segment deleted, such as, from the data segment cached, delete the position in described Internet video successively Put the most forward data segment so that the data volume of data segment that cached of the data volume of the data segment downloaded and described internal memory it With the maximum amount of data that can cache less than described internal memory.
If the data volume sum of the data segment that the data volume of the data segment that mode 2 is downloaded has cached with described internal memory is big In or the maximum amount of data that can cache equal to described internal memory, first from described internal memory, delete all data segments play;Again By the parameter information of the data segment downloaded with the data segment downloaded, it is buffered in described internal memory.
In which, the data volume sum of the data segment cached when newly downloaded data bin data amount and described internal memory surpasses When crossing the maximum amount of data that described internal memory can cache, first delete the whole data segments play cached in described internal memory, Again newly downloaded data segment is cached in described internal memory.
In which, the data segment cached can be play the most and be marked in described internal memory, believe according to labelling Breath, from the data segment cached, deletes the data segment partly or entirely play.
Mode 3, described method also include:
After playing any data section of described Internet video, from described internal memory, delete described any data section.
In which, after playing the data segment cached in described internal memory, just deleting from described internal memory should every time Data segment, so that can cache newly downloaded data segment in described internal memory.
Based on any of the above-described embodiment, optionally, the internal memory of described video player caches in the form of a list and downloads Data segment and the parameter information of data segment downloaded, every record in described list includes a data segment downloaded Parameter information with this data segment.
Illustrating, a kind of possible way of realization of described list is as shown in table 1:
Wherein, NuCacheOffset1 represents the positional information of first data segment of caching in described internal memory, TotalSize1 represents the data volume of first data segment of caching in described internal memory;NuCacheOffset2 represents described internal memory The positional information of second data segment of middle caching, TotalSize2 represents the number of second data segment of caching in described internal memory According to amount;The rest may be inferred.
Based on any of the above-described embodiment, optionally, at the data form of Internet video in the embodiment of the present invention, can use The optional mode of the following two kinds:
Mode one, voice data and the mode of video data alternating sequence.
Embodiment shown in Fig. 3 A gives the data form of arbitrary Internet video, it is assumed that this Internet video is divided into M segment data, V1 represents the video data that first data segment that this Internet video comprises is corresponding, and A1 represents first data segment pair The voice data answered;V2 represents the video data that second data segment that this Internet video comprises is corresponding, and A2 represents the second number According to the voice data that section is corresponding, the rest may be inferred.
Mode two, voice data and video data tactic mode respectively.
Embodiment shown in Fig. 3 B gives the data form of arbitrary Internet video, it is assumed that this Internet video is divided into M segment data, V1~Vm represents the video data that each data segment that this Internet video comprises is corresponding respectively, A1~Am represents this respectively All voice datas that each data segment that Internet video comprises is corresponding.
In which, it is assumed that 1~50M is video data, and 51~70M is the voice data that this video data is corresponding, if adopting Play mechanism with existing, it is assumed that the maximum amount of data that internal memory can cache is 80M, first pass through HTTP and download 50M video from network Data buffer storage is in the internal memory of video player, in the 50M video data then downloaded by the internal memory of described video player Part (such as 1~20M) data copy to as described in video player broadcasting caching in be decoded wait process, due to broadcasting regard Frequently also need to voice data time, so needing first to remove the data downloaded in internal memory, then by HTTP from network download 51~ The voice data of 70M, and regard described in the voice data (being assumed to be 51~60M) corresponding with the video data of 1~20M is copied to Frequently the broadcasting caching of player is decoded waiting and processes, thus can play this partial video.Continue to play 21~50M During Internet video, owing to the internal memory of the most described video player not had the video data of 1~50M, need to remove The voice data of 51~70M and again download from network 21~50M video data, thus add caching number of times and video is broadcast The buffer time put.The scheme provided according to the embodiment of the present invention, owing to can cache discontinuous data in internal memory, then may be used Video data and the voice data of 51~70M by 1~50M are buffered in internal memory, and identify each data segment affiliated Positional information in Internet video and data amount information, it is assumed that the video data of 1~50M is first data block in internal memory, The voice data of 51~70M delays for second data block in internal memory, so, after playing the video data of 1~20M, elder generation Inquiry data block belonging to 21~50M from internal memory, after determining that the data block belonging to 21~50M is first data block, then First data block reads the video data of 21~50M, owing to need not re-download data, decreases caching number of times Buffer time with video playback.
Below as a example by NuPlayer player, in a kind of video player that the embodiment of the present invention is provided, is play network The method of video is described in detail.
NuCache in NuPlayer player is considered as a list (NuCacheList), can cache discontinuous Data segment, NuCache is configured with two parameters of NuCacheOffset (original position) and TotalSize (total size), come Characterize the different pieces of information section cached.NuCache can cache the data segment started with different Offset (original position), its In, NuCacheOffsetN characterizes the initial data all data in described Internet video in the n-th data segment cached The positional information of section, TotalSizeN characterizes the total size of data volume that the n-th data segment cached is corresponding.
After receiving play instruction, and Internet video rises before broadcasting, and is downloaded the net needing to play from network by HTTP The file header data segment of network video and end-of-file data segment, to read the Metadata of described Internet video, and in NuCache Cache file head data segment and end-of-file data segment.
Concrete, when instantly carrying file header data segment, this document head data segment is buffered in NuCacheList In NuCacheList (1) corresponding for NuCacheOffset1 with TotalSize1, and by NuCacheOffset1 labelling this article The positional information of part head data segment, and by the data volume of TotalSize1 labelling this document head data segment;Analyze file After head data segment, download end-of-file data segment, and this document tail data segment is buffered in NuCacheList In NuCacheList (2) corresponding for NuCacheOffset2 with TotalSize2, and by NuCacheOffset2 labelling this article The positional information of part tail data segment, and by the data volume of TotalSize2 labelling this document tail data segment.
Internet video plays sowing time, because being buffered in NuCache when reading file header data segment before NuCacheList (1) suffers, and therefore, directly reads this document head data segment from NuCache, owing to can directly make With, therefore need not empty NuCache and re-download this document head data segment, so under network bandwidth certain condition, significantly Accelerate rising of network file and broadcast speed, improve Consumer's Experience.
Said method handling process can realize with software program, and this software program can be stored in storage medium, when When the software program of storage is called, perform said method step.
Based on same inventive concept, in the embodiment shown in Fig. 4, it is provided that a kind of terminal unit, due to this terminal unit The method that the principle of solution problem provides to the embodiment shown in Fig. 2 is similar, the therefore enforcement side of may refer to of this terminal unit The enforcement of method, repeats no more in place of repetition.Described terminal unit includes:
Processing module 41, after being used for receiving play instruction, according to the Internet video play indicated by described play instruction File header data segment and end-of-file data segment, get the metadata of described Internet video, and at the internal memory of video player Middle caching described file header data segment and described end-of-file data segment, wherein, record described file header data in described internal memory The parameter information of section and the parameter information of described end-of-file data segment, described parameter information includes that characterized data segment is described Positional information in Internet video and data amount information;
Playing module 42, for when playing described Internet video, according to the ginseng of the data segment cached in described internal memory Number information, finds described file header data segment, and according to described metadata, plays described file header data segment.
In the embodiment of the present invention, owing to the memory virtual of video player is become multiple buffer area, and pass through parameter information Characterize the data segment that each buffer area is cached so that the internal memory of video player can cache discontinuous data segment, Thus after having resolved the file header data segment of Internet video, it is not necessary to delete this document head data segment, so, play described net During network video, described file header data segment can be found also according to the parameter information of the data segment cached in described internal memory Play, owing to without re-downloading file header data segment, being greatly accelerated rising of Internet video and broadcasting speed, improve user's body Test.
In a kind of possible embodiment, described processing module is additionally operable to:
In the playing process of described Internet video, download described Internet video except described file header data segment and described Other data segments outside end-of-file data segment;The data segment downloaded is buffered in described internal memory, and remembers in described internal memory The parameter information of the data segment that record is downloaded;
Accordingly, described playing module is additionally operable to: after the current data section of described Internet video plays, according to described The positional information of each data segment of caching in internal memory, finds the next data segment of current data section, and according to described unit number According to, play described next data segment.
As a kind of possible embodiment, described processing module specifically for:
If the data volume sum of the data segment that the data volume of the data segment downloaded and described internal memory have cached more than or etc. In the maximum amount of data that described internal memory can cache, first from described internal memory, delete the number that data start is the most forward successively According to section, so that the data volume sum of data segment that cached of the data volume of the data segment downloaded and described internal memory is less than in described Deposit the maximum amount of data that can cache;Again by the parameter information of the data segment downloaded with the data segment downloaded, it is buffered in institute State in internal memory;Or
If the data volume sum of the data segment that the data volume of the data segment downloaded and described internal memory have cached more than or etc. In the maximum amount of data that described internal memory can cache, first from described internal memory, delete all data segments play;Again by under The data segment carried and the parameter information of the data segment downloaded, be buffered in described internal memory.
As alternatively possible embodiment, described processing module specifically for:
After described playing module plays any data section of described Internet video, from described internal memory, delete described appointing One data segment.
Based on any of the above-described embodiment, in a kind of possible embodiment, under described internal memory caches in the form of a list The data segment carried and the parameter information of the data segment downloaded, every record in described list includes the data downloaded Section and the parameter information of this data segment.
In the present embodiment, processing module 41 and playing module 42 are to present with the form of functional module.Here " mould Block " can refer to ASIC (application-specific integrated circuit, ASIC), circuit, Perform one or more software or the processor of firmware program and memorizer, integrated logic circuit, and/or other can provide State the device of function.In a simple embodiment, those skilled in the art is it is contemplated that processing module 41 can be passed through The processor of computer equipment, memorizer and input interface realize, and playing module 42 can be by the process of computer equipment Device and memorizer realize.
The terminal unit that the embodiment of the present invention provides can be that mobile phone, panel computer, notebook computer etc. have network video Frequently the equipment of playing function.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the reality in terms of the present invention can use complete hardware embodiment, complete software implementation or combine software and hardware Execute the form of example.And, the present invention can use at one or more computers wherein including computer usable program code The upper computer program product implemented of usable storage medium (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of product.
The present invention is with reference to method, equipment (system) and the flow process of computer program according to embodiments of the present invention Figure and/or block diagram describe.It should be understood that can the most first-class by computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided Instruction arrives the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce A raw machine so that the instruction performed by the processor of computer or other programmable data processing device is produced for real The device of the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame now.
These computer program instructions may be alternatively stored in and computer or other programmable data processing device can be guided with spy Determine in the computer-readable memory that mode works so that the instruction being stored in this computer-readable memory produces and includes referring to Make the manufacture of device, this command device realize at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function specified in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that at meter Perform sequence of operations step on calculation machine or other programmable devices to produce computer implemented process, thus at computer or The instruction performed on other programmable devices provides for realizing at one flow process of flow chart or multiple flow process and/or block diagram one The step of the function specified in individual square frame or multiple square frame.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and amendment to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and the modification essence without deviating from the present invention to the present invention God and scope.So, if these amendments of the present invention and modification belong to the scope of the claims in the present invention and equivalent technologies thereof Within, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. the method playing Internet video, it is characterised in that described method includes:
After receiving play instruction, according to file header data segment and the file of the Internet video play indicated by described play instruction Tail data segment, gets the metadata of described Internet video, and caches described file header data in the internal memory of video player Section and described end-of-file data segment, wherein, record the parameter information of described file header data segment and described literary composition in described internal memory The parameter information of part tail data segment, described parameter information includes characterized data segment positional information in described Internet video And data amount information;
When playing described Internet video, according to the parameter information of the data segment cached in described internal memory, find described file Head data segment, and according to described metadata, play described file header data segment.
2. the method for claim 1, it is characterised in that described method also includes:
In the playing process of described Internet video, download described Internet video except described file header data segment and described file Other data segments outside tail data segment;
The data segment downloaded is buffered in described internal memory, and the parameter letter of the data segment that record is downloaded in described internal memory Breath;
After playing the current data section of described Internet video, according to the position letter of each data segment of caching in described internal memory Breath, finds the next data segment of current data section, and according to described metadata, plays described next data segment.
3. method as claimed in claim 2, it is characterised in that the data segment downloaded is buffered in described internal memory, including:
If the data volume sum of the data segment that the data volume of the data segment downloaded and described internal memory have cached is more than or equal to institute State the maximum amount of data that internal memory can cache, first from described internal memory, delete the data segment that data start is the most forward successively, So that the data volume sum of data segment that the data volume of the data segment downloaded and described internal memory have cached is less than described internal memory energy The maximum amount of data of enough cachings;Again by the parameter information of the data segment downloaded with the data segment downloaded, it is buffered in described interior In depositing;Or
If the data volume sum of the data segment that the data volume of the data segment downloaded and described internal memory have cached is more than or equal to institute State the maximum amount of data that internal memory can cache, first from described internal memory, delete all data segments play;To be downloaded again Data segment and the parameter information of the data segment downloaded, be buffered in described internal memory.
4. method as claimed in claim 2, it is characterised in that described method also includes:
After playing any data section of described Internet video, from described internal memory, delete described any data section.
5. the method as described in any one of Claims 1 to 4, it is characterised in that under described internal memory caches in the form of a list The data segment carried and the parameter information of the data segment downloaded, every record in described list includes the data downloaded Section and the parameter information of this data segment.
6. a terminal unit, it is characterised in that described equipment includes:
Processing module, after being used for receiving play instruction, according to the file of the Internet video play indicated by described play instruction Head data segment and end-of-file data segment, get the metadata of described Internet video, and cache in the internal memory of video player Described file header data segment and described end-of-file data segment, wherein, record the ginseng of described file header data segment in described internal memory Number information and the parameter information of described end-of-file data segment, described parameter information includes that characterized data segment is at described network video Positional information in Pin and data amount information;
Playing module, for when playing described Internet video, according to the parameter information of the data segment cached in described internal memory, Find described file header data segment, and according to described metadata, play described file header data segment.
7. terminal unit as claimed in claim 6, it is characterised in that described processing module is additionally operable to: in described Internet video Playing process in, download described Internet video in addition to described file header data segment and described end-of-file data segment other number According to section;The data segment downloaded is buffered in described internal memory, and the parameter of the data segment that record is downloaded in described internal memory Information;
Described playing module is additionally operable to: after the current data section of described Internet video plays, and caches according in described internal memory The positional information of each data segment, find the next data segment of current data section, and according to described metadata, play described Next data segment.
8. terminal unit as claimed in claim 7, it is characterised in that described processing module specifically for:
If the data volume sum of the data segment that the data volume of the data segment downloaded and described internal memory have cached is more than or equal to institute State the maximum amount of data that internal memory can cache, first from described internal memory, delete the data segment that data start is the most forward successively, So that the data volume sum of data segment that the data volume of the data segment downloaded and described internal memory have cached is less than described internal memory energy The maximum amount of data of enough cachings;Again by the parameter information of the data segment downloaded with the data segment downloaded, it is buffered in described interior In depositing;Or
If the data volume sum of the data segment that the data volume of the data segment downloaded and described internal memory have cached is more than or equal to institute State the maximum amount of data that internal memory can cache, first from described internal memory, delete all data segments play;To be downloaded again Data segment and the parameter information of the data segment downloaded, be buffered in described internal memory.
9. terminal unit as claimed in claim 7, it is characterised in that described processing module specifically for:
After described playing module plays any data section of described Internet video, from described internal memory, delete described arbitrary number According to section.
10. the terminal unit as described in any one of claim 6~9, it is characterised in that described internal memory caches in the form of a list The data segment downloaded and the parameter information of the data segment downloaded, every record in described list includes that one has been downloaded Data segment and the parameter information of this data segment.
CN201610579270.1A 2016-07-21 2016-07-21 A kind of method playing Internet video and terminal unit Pending CN106162311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610579270.1A CN106162311A (en) 2016-07-21 2016-07-21 A kind of method playing Internet video and terminal unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610579270.1A CN106162311A (en) 2016-07-21 2016-07-21 A kind of method playing Internet video and terminal unit

Publications (1)

Publication Number Publication Date
CN106162311A true CN106162311A (en) 2016-11-23

Family

ID=58059519

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610579270.1A Pending CN106162311A (en) 2016-07-21 2016-07-21 A kind of method playing Internet video and terminal unit

Country Status (1)

Country Link
CN (1) CN106162311A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757144A (en) * 2020-04-13 2020-10-09 湖南化工职业技术学院(湖南工业高级技工学校) Network computer multimedia video playing method and system
CN112839095A (en) * 2021-01-13 2021-05-25 深圳朝元科技有限公司 Method for realizing online playing based on RTOS (real time operating system) by using Http (hypertext transport protocol)
CN113242468A (en) * 2021-05-11 2021-08-10 深圳市逸马科技有限公司 Big data cloud platform-based education data flow control method and system
CN113365140A (en) * 2021-06-21 2021-09-07 北京百度网讯科技有限公司 MP4 online playing method, device, equipment, storage medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090119734A1 (en) * 2007-11-01 2009-05-07 Deshpande Sachin G Distributed Cache Algorithms and System for Time-Shifted, and Live, Peer-to-Peer Video Streaming
CN103067748A (en) * 2012-12-30 2013-04-24 乐视网信息技术(北京)股份有限公司 Streaming media video playing method
CN103517131A (en) * 2012-08-14 2014-01-15 Tcl集团股份有限公司 Method for playing segmental videos in gapless mode in television set and television set
CN105430478A (en) * 2015-11-27 2016-03-23 青岛海信电器股份有限公司 Network video buffer play method and device, and television
CN105681874A (en) * 2015-06-02 2016-06-15 深圳Tcl数字技术有限公司 Network video online playing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090119734A1 (en) * 2007-11-01 2009-05-07 Deshpande Sachin G Distributed Cache Algorithms and System for Time-Shifted, and Live, Peer-to-Peer Video Streaming
CN103517131A (en) * 2012-08-14 2014-01-15 Tcl集团股份有限公司 Method for playing segmental videos in gapless mode in television set and television set
CN103067748A (en) * 2012-12-30 2013-04-24 乐视网信息技术(北京)股份有限公司 Streaming media video playing method
CN105681874A (en) * 2015-06-02 2016-06-15 深圳Tcl数字技术有限公司 Network video online playing method and device
CN105430478A (en) * 2015-11-27 2016-03-23 青岛海信电器股份有限公司 Network video buffer play method and device, and television

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757144A (en) * 2020-04-13 2020-10-09 湖南化工职业技术学院(湖南工业高级技工学校) Network computer multimedia video playing method and system
CN112839095A (en) * 2021-01-13 2021-05-25 深圳朝元科技有限公司 Method for realizing online playing based on RTOS (real time operating system) by using Http (hypertext transport protocol)
CN113242468A (en) * 2021-05-11 2021-08-10 深圳市逸马科技有限公司 Big data cloud platform-based education data flow control method and system
CN113242468B (en) * 2021-05-11 2021-11-23 深圳市逸马科技有限公司 Big data cloud platform-based education data flow control method and system
CN113365140A (en) * 2021-06-21 2021-09-07 北京百度网讯科技有限公司 MP4 online playing method, device, equipment, storage medium and program product
US11683557B2 (en) 2021-06-21 2023-06-20 Beijing Baidu Netcom Science Technology Co., Ltd. Method for playing MP4 online, device, and storage medium

Similar Documents

Publication Publication Date Title
CN101447994B (en) Method for downloading and playing multimedia file and equipment thereof
CN106162311A (en) A kind of method playing Internet video and terminal unit
CN101127989A (en) A method for supporting hypertext transmission stream media service of mobile phone
US20170195387A1 (en) Method and Electronic Device for Increasing Start Play Speed
CN101909207A (en) Video playing method and device
EP3866481A1 (en) Audio/video switching method and apparatus, and computer device and readable storage medium
CN106776759A (en) The small documents pre-head method and system of distributed file system
CN105872721A (en) Processing method and device of play-starting speed
WO2018076664A1 (en) Voice broadcasting method and device
CN102364905A (en) Data representation method and apparatus, and mobile terminal
CN104902145B (en) A kind of player method and device of live stream video
CN112732650A (en) File fragmentation method and device
CN107197359A (en) Video file caching method and device
CN104601535B (en) Method for processing video frequency and system
CN106358062A (en) Browser video file playing processing method and equipment
CN103365977A (en) Storage processing method and device for data on nonvolatile storage medium
CN103956175A (en) Playing method and equipment of multi-media files
CN108769830A (en) A kind of method and relevant device of buffered video
US8648870B1 (en) Method and apparatus for performing frame buffer rendering of rich internet content on display devices
EP3989082A1 (en) Multimedia file storage and access method
US9983845B2 (en) Updating media files for increased resolution with optimized usage of storage
CN105824820A (en) Media file buffer memory method and device
CN114390319B (en) MP4 file reading and downloading method and device, electronic equipment and storage medium
CN102750287A (en) Method for including index information and download authentication server
CN110970059A (en) Multimedia information playing method and device and readable storage 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20161123

RJ01 Rejection of invention patent application after publication