CN106331766A - Video file playing method and apparatus - Google Patents

Video file playing method and apparatus Download PDF

Info

Publication number
CN106331766A
CN106331766A CN201610791427.7A CN201610791427A CN106331766A CN 106331766 A CN106331766 A CN 106331766A CN 201610791427 A CN201610791427 A CN 201610791427A CN 106331766 A CN106331766 A CN 106331766A
Authority
CN
China
Prior art keywords
video file
player
value
buffer value
play
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610791427.7A
Other languages
Chinese (zh)
Other versions
CN106331766B (en
Inventor
洪珂
姜宇鹏
李俊明
林新建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201610791427.7A priority Critical patent/CN106331766B/en
Publication of CN106331766A publication Critical patent/CN106331766A/en
Application granted granted Critical
Publication of CN106331766B publication Critical patent/CN106331766B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2401Monitoring of the client buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/23805Controlling the feeding rate to the network, e.g. by controlling the video pump
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • 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
    • 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

Landscapes

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

Abstract

The present invention discloses a video file playing method and apparatus. The method comprises steps of scanning a current buffering value of a video player in a process in which the video player plays a video file; determining whether the current buffering value is greater than a preset buffering threshold; if it is determined that the current buffering value is greater than the buffering threshold, obtaining a jumping time length, wherein the jumping time length is obtained according to the current buffering value and a first play buffering value; and continuing to play a video file by jumping for the jumping time length from a frame freezing moment, wherein the frame freezing moment is a moment at which data in a buffer of the video player is finished playing. The method resolves a technical problem of delay accumulation caused by network congestion and frame freezing.

Description

The playing method and device of video file
Technical field
The present invention relates to video playback field, in particular to the playing method and device of a kind of video file.
Background technology
Flash Player (a kind of player) is now widely used for the video playback of page end, and it is short and pithy, energy Enough uses in various browsers, operating system and mobile device, powerful, compatible high.Connection more than 1,300,000,000 because of It is assembled with Adobe Flash Player (a Multimedia Program player) on the desktop computer of special net and mobile device.
The existing web player realized based on Flash technology to video file or data stream according to the mode play frame by frame Processing, this processing mode is applied under live broadcast service scene, can bring problems with:
In live watching process, network occurs congested, and player end can be caused cannot to obtain up-to-date live data streams, After so player buffering (buffer) finishes, live generation card;After subsequent network situation is recovered, player is from card Point continues to play, and by Yanzhong when being persistently added to live between blocking immediately, causes continuing to increase of live time delay.
For above-mentioned problem, effective solution is the most not yet proposed.
Summary of the invention
Embodiments provide the playing method and device of a kind of video file, at least to solve due to network congestion Technical problem with the time delay accumulation that card causes.
An aspect according to embodiments of the present invention, it is provided that the player method of a kind of video file, including: broadcast at video During putting device playing video file, scan the Current buffer value of described video player;Judge that described Current buffer value is No more than buffer threshold set in advance;If judging, described Current buffer value is more than described buffer threshold, then when acquisition redirects Long, wherein, described in redirect duration and be worth to according to described Current buffer value and the first play buffering;Immediately carve from card described in redirecting Redirecting duration and continue to play described video file, wherein, the buffering for playing described video player carved immediately by described card The moment of data in district.
Further, described acquisition redirects duration and includes: the described first play buffering value that acquisition pre-sets, wherein, Described first play buffering value can change with the change of current network state;Described Current buffer value and described first are play The difference of buffer value redirects duration as described.
Further, during described video player playing video file, scan working as of described video player Front buffer value includes: video player described in the Current buffer value of video player described in periodic scanning, cycle incremental scan The Current buffer value of video player described in Current buffer value or self adaptation intermittent scanning.
Further, the Current buffer value of video player described in described self adaptation intermittent scanning includes: detection is repeatedly pressed Scan the result of the Current buffer value of described video player according to predetermined period, obtain multiple scanning result;Detect the plurality of Scanning result is the most stable within the specific limits;If detecting the plurality of scanning result the most within the specific limits, then increase Described predetermined period;If detecting, the plurality of scanning result fluctuates outside described certain limit, then reduce described predetermined period.
Further, described immediately carve from card redirect described in redirect duration and continue to play described video file and include: from Described card immediately carve start to abandon described in redirect the video file corresponding to duration and continue to play described video file;Or from Described card is immediately carved and is started to accelerate to redirect the video file corresponding to duration described in broadcasting.
Further, before described video player playing video file, described method also includes: receive described video File;Whether the length of the video file that detection receives meets the second play buffering value pre-set;If detecting reception To the length of described video file meet described second play buffering value, then commence play out described video file;If detecting The length of the described video file received is unsatisfactory for described second play buffering value, then continue to described video file until The length of the described video file received meets described second play buffering value.
Another aspect according to embodiments of the present invention, additionally provides the playing device of a kind of video file, including: scanning is single Unit, for during video player playing video file, scans the Current buffer value of described video player;Judge single Unit, is used for judging that whether described Current buffer value is more than buffer threshold set in advance;Acquiring unit, for judge described Current buffer value more than described buffer threshold time, obtain redirect duration, wherein, described in redirect duration according to described Current buffer value It is worth to the first play buffering;First broadcast unit, for immediately carve from card redirect described in redirect duration and continue broadcasting institute Stating video file, wherein, the moment of data in the relief area for playing described video player carved immediately by described card.
Further, described acquiring unit includes: acquisition module, for obtaining described first play buffering pre-set Value, wherein, described first play buffering value can change with the change of current network state;Computing module, for working as described The difference of front buffer value and described first play buffering value redirects duration as described.
Further, described scanning element includes: the first scan module, working as video player described in periodic scanning Front buffer value, the second scan module, for Current buffer value or the 3rd scanning of video player described in cycle incremental scan Module, for the Current buffer value of video player described in self adaptation intermittent scanning.
Further, described 3rd scan module includes: the first detection sub-module, for detection repeatedly according to predetermined period Scan the result of the Current buffer value of described video player, obtain multiple scanning result;Second detection sub-module, detection is described Multiple scanning results are the most stable within the specific limits;Increase submodule, for detecting that the plurality of scanning result is stable Time within the specific limits, increase described predetermined period;Reduce submodule, for detecting that the plurality of scanning result is described Outside certain limit, fluctuation is to reduce described predetermined period.
Further, described first broadcast unit includes: the first playing module, starts to abandon for immediately carving from described card The described video file redirected corresponding to duration continues to play described video file;Or the second playing module, for from institute State card immediately carve start accelerate play described in redirect the video file corresponding to duration.
Further, described device also includes: first receives unit, at described video player playing video file Before, described video file is received;3rd detector unit, for detecting whether the length of the video file received meets in advance The the second play buffering value arranged;Second broadcast unit, for meeting in the length detecting the described video file received During described second play buffering value, then commence play out described video file;Second receives unit, for receiving detecting When the length of described video file is unsatisfactory for described second play buffering value, continue to described video file until receiving The length of described video file meets described second play buffering value.
In embodiments of the present invention, use during video player playing video file, scan described video and broadcast Put the mode of the Current buffer value of device, by judging whether described Current buffer value is more than buffer threshold set in advance, if sentencing Break and described Current buffer value more than described buffer threshold, then obtain and redirect duration, reached immediately to carve from card to redirect described jumping Turn duration and continue to play the purpose of described video file, it is achieved thereby that reduce the technique effect of live time delay, and then solve Technical problem due to the time delay accumulation that network congestion and Ka Dun cause.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this Bright schematic description and description is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the player method of a kind of optional video file according to embodiments of the present invention;
Fig. 2 is the schematic diagram of the playing device of a kind of optional video file according to embodiments of the present invention;
Fig. 3 is the playing device operational flow diagram of a kind of optional video file according to embodiments of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with in the embodiment of the present invention Accompanying drawing, is clearly and completely described the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only The embodiment of a present invention part rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under not making creative work premise, all should belong to the model of present invention protection Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " it is etc. for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that so use Data can exchange in the appropriate case, in order to embodiments of the invention described herein can with except here diagram or Order beyond those described is implemented.Additionally, term " includes " and " having " and their any deformation, it is intended that cover Cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment are not necessarily limited to Those steps clearly listed or unit, but can include the most clearly listing or for these processes, method, product Or intrinsic other step of equipment or unit.
According to embodiments of the present invention, it is provided that the embodiment of the method for the broadcasting of a kind of optional video file, explanation is needed , can hold in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing OK, and, although show logical order in flow charts, but in some cases, can be to be different from order herein Step shown or described by execution.
Fig. 1 is the flow chart of the player method of a kind of optional video file according to embodiments of the present invention, such as Fig. 1 institute Showing, the method comprises the steps:
Step S102, during video player playing video file, the Current buffer value of scan video player;
Step S104, it is judged that whether Current buffer value is more than buffer threshold set in advance;
Step S106, if judging, Current buffer value more than buffer threshold, then obtains and redirects duration, wherein, redirect duration It is worth to according to Current buffer value and the first play buffering;
Step S108, immediately carves from card and redirects duration to continue playing video file, and wherein, card is carved immediately as playing The moment of data in the relief area of complete video player.
In embodiments of the present invention, use during video player playing video file, scan video player The mode of Current buffer value, by judge Current buffer value whether more than buffer threshold set in advance, if judging current Buffer value be more than buffer threshold, then obtain redirect duration, reached immediately to carve from card redirect duration continue broadcasting video The purpose of file, it is achieved thereby that reduce the technique effect of live time delay, and then solves owing to network congestion and Ka Dun cause Time delay accumulation technical problem.
Alternatively, acquisition redirects duration and includes: obtaining the first play buffering value pre-set, wherein, the first broadcasting is slow Punching value can change with the change of current network state;Using the difference of Current buffer value and the first play buffering value as when redirecting Long.
During player carries out network direct broadcasting, player can arrange one dynamically according to the state of current network The play buffering value of individual player, makes player have a suitable caching, ensures the smoothness of network direct broadcasting, subtract the most as far as possible The time delay of little player, such as: when network state is preferable, the play buffering value of player is less;When network state is bad, broadcast The play buffering value putting device is bigger.When player needs to carry out redirecting broadcasting, deduct broadcasting by player Current buffer value What the play buffering of device calculated player redirects duration, and the buffer value after i.e. player redirects is broadcast equal to player Slowing down punching, network direct broadcasting can be normally carried out.
Alternatively, during video player playing video file, the Current buffer value bag of scan video player Include: the Current buffer value of periodic scanning video player, the Current buffer value of cycle incremental scan video player or adaptive Answer the Current buffer value of intermittent scanning video player.
Scanning to player Current buffer value can use various ways, and conventional has three kinds: periodic scanning, the most default One scan period, every a cycle, the buffer value of player is carried out single pass;Cycle incremental scan, i.e. presets one The individual preliminary sweep cycle, and it is incremental according to certain rule to arrange the scan period, each scan period, the buffering to player Value carries out single pass;Self adaptation intermittent scanning, i.e. scan period adaptive change, every a cycle, player is delayed Punching value carries out single pass.
Alternatively, the Current buffer value of self adaptation intermittent scanning video player includes: detection is repeatedly according to predetermined period The result of the Current buffer value of scan video player, obtains multiple scanning result;Detect whether multiple scanning result is stablized In certain limit;If detecting multiple scanning result the most within the specific limits, then increase predetermined period;If detecting multiple sweeping Retouch result to fluctuate outside certain limit, then reduce predetermined period.
Self adaptation intermittent scanning be according to the default cycle, the Current buffer value of player is taken multiple scan after, root According to the situation of change of the buffer value that Multiple-Scan obtains, the scan period is adjusted, such as: Multiple-Scan result is stable necessarily In the range of, change is little, then increase the scan period;Multiple-Scan result fluctuates outside certain limit, changes greatly, then reduce and sweep Retouch the cycle.
Alternatively, immediately carve from card and redirect duration and include to continue playing video file: immediately carve from card and start to lose Abandon and redirect the video file corresponding to duration to continue playing video file;Or immediately carve from card and start to accelerate broadcasting when redirecting Video file corresponding to length.
Working as network recovery, player to carry out redirecting broadcasting, the when of reducing broadcast time-delay, can use two kinds of differences Mode: mode one, redirects duration according to player according to above-mentioned, from the moment of card, appearance when discarding and redirect The video file answered, then proceedes to play, and the now time delay of player is the broadcast time-delay of player;Mode two, player Accelerate broadcasting speed, according to the size of Current buffer, 2 times, 4 times, 8 times and 16 times that broadcasting speed is normal speed can be set Deng, until the Current buffer value of player is equal with the play buffering of player value, player recovers normal broadcasting speed.
Alternatively, before video player playing video file, method also includes: receive video file;Detection receives To the length of video file whether meet the second play buffering value pre-set;If detecting the video file that receives Length meets the second play buffering value, then commence play out video file;If detecting, the length of the video file received is discontented with Foot the second play buffering value, then continue to video file until the length of the video file received meets the second play buffering Value.
Network direct broadcasting whether smoothness is fundamentally to be determined by network state, and in order to allow the network direct broadcasting can be smooth Carrying out, can preset a play buffering at player, proceeding by network direct broadcasting when, player first receives video literary composition Part, wouldn't play, and detects whether the video file received meets the player plays buffer value preset, when detecting in real time When the video file lengths received is more than the play buffering value of player, proceed by network direct broadcasting;The video literary composition received Part length less than the play buffering value of player, then continuing to accept video file, making network direct broadcasting in such a way although adopting There is certain time delay, but can be in the case of low delay, it is ensured that the flow process degree of network direct broadcasting.
Fig. 2 is the schematic diagram of the playing device of a kind of optional video file according to embodiments of the present invention, such as Fig. 2 institute Showing, this device includes:
Scanning element 10, for during video player playing video file, scan video player current Buffer value;
Judging unit 20, is used for judging that whether Current buffer value is more than buffer threshold set in advance;
Acquiring unit 30, for when judging Current buffer value more than buffer threshold, obtains and redirects duration, wherein, jumps Turn duration to be worth to according to Current buffer value and the first play buffering
First broadcast unit 40, redirects duration to continue playing video file for immediately carving from card, wherein, blocks and time Moment is the moment of data in the relief area playing video player.
In embodiments of the present invention, use during video player playing video file, scan video player The mode of Current buffer value, by judge Current buffer value whether more than buffer threshold set in advance, if judging current Buffer value be more than buffer threshold, then obtain redirect duration, reached immediately to carve from card redirect duration continue broadcasting video The purpose of file, it is achieved thereby that reduce the technique effect of live time delay, and then solves owing to network congestion and Ka Dun cause Time delay accumulation technical problem.
Alternatively, acquiring unit includes: acquisition module, for obtaining the first play buffering value pre-set, wherein, the One play buffering value can change with the change of current network state;Computing module, for playing Current buffer value and first The difference of buffer value is as redirecting duration.
During player carries out network direct broadcasting, player can arrange one dynamically according to the state of current network The play buffering value of individual player, makes player have a suitable caching, ensures the smoothness of network direct broadcasting, subtract the most as far as possible The time delay of little player, such as: when network state is preferable, the play buffering value of player is less;When network state is bad, broadcast The play buffering value putting device is bigger.When player needs to carry out redirecting broadcasting, deduct broadcasting by player Current buffer value What the play buffering of device calculated player redirects duration, and the buffer value after i.e. player redirects is broadcast equal to player Slowing down punching, network direct broadcasting can be normally carried out.
Alternatively, scanning element includes: the first scan module, for periodic scanning video player Current buffer value, Second scan module, for Current buffer value or the 3rd scan module of cycle incremental scan video player, for adaptive Answer the Current buffer value of intermittent scanning video player.
Scanning to player Current buffer value can use various ways, and conventional has three kinds: periodic scanning, the most default One scan period, every a cycle, the buffer value of player is carried out single pass;Cycle incremental scan, i.e. presets one The individual preliminary sweep cycle, and it is incremental according to certain rule to arrange the scan period, each scan period, the buffering to player Value carries out single pass;Self adaptation intermittent scanning, i.e. scan period adaptive change, every a cycle, player is delayed Punching value carries out single pass.
Alternatively, the 3rd scan module includes: the first detection sub-module, repeatedly regards according to predetermined period scanning for detection Frequently the result of the Current buffer value of player, obtains multiple scanning result;Second detection sub-module, detecting multiple scanning result is No stable the most within the specific limits;Increase submodule, for when detecting that multiple scanning result is the most within the specific limits, increase Predetermined period;Reducing submodule, being used for detecting that multiple scanning result fluctuates outside certain limit is to reduce predetermined period.
Self adaptation intermittent scanning be according to the default cycle, the Current buffer value of player is taken multiple scan after, root According to the situation of change of the buffer value that Multiple-Scan obtains, the scan period is adjusted, such as: Multiple-Scan result is stable necessarily In the range of, change is little, then increase the scan period;Multiple-Scan result fluctuates outside certain limit, changes greatly, then reduce and sweep Retouch the cycle.
Alternatively, the first broadcast unit includes: the first playing module, redirects duration institute for immediately carving to start to abandon from card Corresponding video file continues playing video file;Or the second playing module, starts to accelerate to play for immediately carving from card Redirect the video file corresponding to duration.
Working as network recovery, player to carry out redirecting broadcasting, the when of reducing broadcast time-delay, can use two kinds of differences Mode: mode one, redirects duration according to player according to above-mentioned, from the moment of card, appearance when discarding and redirect The video file answered, then proceedes to play, and the now time delay of player is the broadcast time-delay of player;Mode two, player Accelerate broadcasting speed, according to the size of Current buffer, 2 times, 4 times, 8 times and 16 times that broadcasting speed is normal speed can be set Deng, until the Current buffer value of player is equal with the play buffering of player value, player recovers normal broadcasting speed.
Alternatively, device also includes: first receives unit, for before video player playing video file, receives Video file;3rd detector unit, whether the length of video file received for detection meets second pre-set is broadcast Put buffer value;Second broadcast unit, is used for when the length detecting the video file received meets the second play buffering value, Then commence play out video file;Second receives unit, for being unsatisfactory for second in the length detecting the video file received During play buffering value, continue to video file until the length of the video file received meets the second play buffering value.
Network direct broadcasting whether smoothness is fundamentally to be determined by network state, and in order to allow the network direct broadcasting can be smooth Carrying out, can preset a play buffering at player, player is proceeding by network direct broadcasting when, and player first receives Video screen file is as buffering, and wouldn't play, and detects whether the video file received meets default broadcasting in real time simultaneously Put device play buffering value, when the play buffering value that the video file lengths received is more than player being detected, proceed by Network direct broadcasting;The video file lengths received less than the play buffering value of player, then continues to accept video screen file, uses Although such mode makes network direct broadcasting have certain time delay, but can be in the case of low delay, it is ensured that network direct broadcasting Flow process degree.
Fig. 3 is the playing device operational flow diagram of a kind of optional video file according to embodiments of the present invention, such as Fig. 3 institute Show, below in conjunction with specific embodiment, the workflow of this video file playing device be described in detail:
1. request is play.Opening player, player carries out network connection and asks network direct broadcasting.
2. parameter initial setting up.After network connects, player carries out the initial setting up of parameter, wherein, the broadcasting of player Buffer length 3 seconds, player buffering threshold values 10 seconds, the player buffering detection cycle 500 milliseconds.
3. start to accept live TV stream.After 10:00:00 player parameter is provided with, player starts to receive live fluxion According to, i.e. start to accept the video file of network direct broadcasting, now, player only accepts video file, and carrying out caching wouldn't play.
The most whether fill up player plays buffer value.During player receives video file, player is to currently Whether the buffer value of video file judges more than player plays buffer value.
5. commence play out.If the buffer value of current video file is more than player plays buffer value, then player starts Play, otherwise continue to video file, until whether the buffer value of video file is more than player plays buffer value, player Commence play out.
6. detection Current buffer value.In playing process, player is broadcast according to player buffering detection cycle timing probe Put device Current buffer value.
7. whether Current buffer is more than buffer threshold.After player detects Current buffer value, it is judged that player currently delays Whether punching value, more than player buffer threshold, if player Current buffer value is less than player buffer threshold, then continues according to spy The survey cycle detects;If whether player Current buffer value is more than player buffer threshold, then player redirects.
8. perform function jump strategy.When 10:01:00, network state is deteriorated, and card, now player plays occurs Buffer culture, buffer culture finishes, and live card occur, and during 10:02:00, network state improves, and player moment receives Video file between video file during pausing to network card, i.e. 10:01:00 to 10:02:00, this video file lengths Being 1 minute, buffer threshold values 10 seconds more than the player of player initial setting up, now, player judges that Current buffer value is big In player buffer threshold, player performs to redirect;Owing to network state is deteriorated before, the play buffering length of player is by 3 Second becomes 5 seconds, therefore, redirects value and deducts the play buffering of player for Current buffer value, within i.e. 1 minute, deduct 5 seconds, and redirecting value is 55 seconds, player redirected 55 seconds, commences play out from 10:01:55.
9. find forward key frame to play from the place of redirecting.So far, player was by redirecting, by 1 minute of generation originally Time delay, shortens to 5 seconds.During follow-up network direct broadcasting, player continues detecting periodically current player buffering, if full Foot redirects condition, then perform jump strategy, until live end or closedown player.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents, can be passed through other Mode realizes.Wherein, device embodiment described above is only schematically, the division of the most described unit, Ke Yiwei A kind of logic function divides, actual can have when realizing other dividing mode, the most multiple unit or assembly can in conjunction with or Person is desirably integrated into another system, or some features can be ignored, or does not performs.Another point, shown or discussed is mutual Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, unit or module or communication link Connect, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to multiple On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to two or more unit are integrated in a unit.Above-mentioned integrated list Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part that in other words prior art contributed or this technical scheme completely or partially can be with the form of software product Embodying, this computer software product is stored in a storage medium, including some instructions with so that a computer Equipment (can be for personal computer, server or the network equipment etc.) perform the whole of method described in each embodiment of the present invention or Part steps.And aforesaid storage medium includes: USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can store program code Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (12)

1. the player method of a video file, it is characterised in that including:
During video player playing video file, scan the Current buffer value of described video player;
Judge that whether described Current buffer value is more than buffer threshold set in advance;
If judging, described Current buffer value more than described buffer threshold, then obtains and redirects duration, wherein, described in redirect duration root It is worth to according to described Current buffer value and the first play buffering;Immediately carve from card and redirect duration described in redirecting and continue to play described Video file, wherein, the moment of data in the relief area for playing described video player carved immediately by described card.
Method the most according to claim 1, it is characterised in that described acquisition redirects duration and includes:
Obtaining the described first play buffering value pre-set, wherein, described first play buffering value can be with current network state Change and change;
The difference of described Current buffer value and described first play buffering value is redirected duration as described.
Method the most according to claim 1, it is characterised in that in the process of described video player playing video file In, the Current buffer value scanning described video player includes:
The Current buffer value of video player described in the Current buffer value of video player described in periodic scanning, cycle incremental scan Or the Current buffer value of video player described in self adaptation intermittent scanning.
Method the most according to claim 3, it is characterised in that working as of video player described in described self adaptation intermittent scanning Front buffer value includes:
Detection repeatedly scans the result of the Current buffer value of described video player according to predetermined period, obtains multiple scanning knot Really;
Detect the plurality of scanning result the most stable within the specific limits;
If detecting the plurality of scanning result the most within the specific limits, then increase described predetermined period;
If detecting, the plurality of scanning result fluctuates outside described certain limit, then reduce described predetermined period.
Method the most according to claim 1, it is characterised in that described immediately carve from card redirect described in redirect duration and continue Play described video file to include:
Immediately carve from described card and redirect the video file corresponding to duration described in starting to abandon and continue to play described video file; Or
Immediately carve from described card and start to accelerate to redirect the video file corresponding to duration described in broadcasting.
Method the most according to claim 1, it is characterised in that before described video player playing video file, institute Method of stating also includes:
Receive described video file;
Whether the length of the video file that detection receives meets the second play buffering value pre-set;If detecting and receiving The length of described video file meet described second play buffering value, then commence play out described video file;
If detecting, the length of the described video file received is unsatisfactory for described second play buffering value, then continue to described Video file is until the length of the described video file received meets described second play buffering value.
7. the playing device of a video file, it is characterised in that including:
Scanning element, for during video player playing video file, scans the current slow of described video player Punching value;
Judging unit, is used for judging that whether described Current buffer value is more than buffer threshold set in advance;
Acquiring unit, for when judging described Current buffer value more than described buffer threshold, obtains and redirects duration, wherein, The described duration that redirects is worth to according to described Current buffer value and the first play buffering;
First broadcast unit, for immediately carve from card redirect described in redirect duration and continue to play described video file, wherein, institute State card and immediately carve the moment of data in the relief area being to play described video player.
Device the most according to claim 7, it is characterised in that described acquiring unit includes:
Acquisition module, for obtaining the described first play buffering value that pre-sets, wherein, described first play buffering value can be with The change of current network state and change;
Computing module, for redirecting duration using the difference of described Current buffer value and described first play buffering value as described.
Device the most according to claim 7, it is characterised in that described scanning element includes:
First scan module, for Current buffer value, second scan module of video player described in periodic scanning, for the cycle The Current buffer value of video player described in incremental scan or the 3rd scan module, for video described in self adaptation intermittent scanning The Current buffer value of player.
Device the most according to claim 9, it is characterised in that described 3rd scan module includes:
First detection sub-module, repeatedly scans the knot of the Current buffer value of described video player for detection according to predetermined period Really, multiple scanning result is obtained;
Second detection sub-module, detects the plurality of scanning result the most stable within the specific limits;
Increase submodule, for when detecting that the plurality of scanning result is the most within the specific limits, increase described default week Phase;
Reducing submodule, being used for detecting that the plurality of scanning result fluctuates outside described certain limit is to reduce described pre- If the cycle.
11. devices according to claim 7, it is characterised in that described first broadcast unit includes:
First playing module, for immediately carve from described card start to abandon described in redirect the video file corresponding to duration and continue Play described video file;Or
Second playing module, starts to accelerate to redirect the video file corresponding to duration described in broadcasting for immediately carving from described card.
12. devices according to claim 7, it is characterised in that described device also includes:
First receives unit, for before described video player playing video file, receives described video file;
3rd detector unit, for the most satisfied second play buffering pre-set of length of the video file that detection receives Value;
Second broadcast unit, for meeting described second play buffering value in the length detecting the described video file received Time, then commence play out described video file;
Second receives unit, for being unsatisfactory for described second play buffering in the length detecting the described video file received During value, continue to described video file until the length of the described video file received meets described second play buffering Value.
CN201610791427.7A 2016-08-31 2016-08-31 The playing method and device of video file Expired - Fee Related CN106331766B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610791427.7A CN106331766B (en) 2016-08-31 2016-08-31 The playing method and device of video file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610791427.7A CN106331766B (en) 2016-08-31 2016-08-31 The playing method and device of video file

Publications (2)

Publication Number Publication Date
CN106331766A true CN106331766A (en) 2017-01-11
CN106331766B CN106331766B (en) 2019-08-13

Family

ID=57789371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610791427.7A Expired - Fee Related CN106331766B (en) 2016-08-31 2016-08-31 The playing method and device of video file

Country Status (1)

Country Link
CN (1) CN106331766B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135405A (en) * 2017-04-28 2017-09-05 武汉斗鱼网络科技有限公司 The player method and device of a kind of Online Video
CN107592567A (en) * 2017-08-25 2018-01-16 触景无限科技(北京)有限公司 Eliminate the method and device of video cardton
CN107846621A (en) * 2017-09-28 2018-03-27 北京京东尚科信息技术有限公司 Delay process method, system and electronic equipment
CN109327662A (en) * 2017-07-31 2019-02-12 合网络技术(北京)有限公司 Video-splicing method and device
CN112752109A (en) * 2019-10-30 2021-05-04 上海哔哩哔哩科技有限公司 Video playing control method and system
CN112887795A (en) * 2021-01-26 2021-06-01 脸萌有限公司 Video playing method, device, equipment and medium
CN114885209A (en) * 2022-04-08 2022-08-09 车智互联(北京)科技有限公司 Live data processing method, computing device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7133362B2 (en) * 2001-11-14 2006-11-07 Microsoft Corporation Intelligent buffering process for network conference video
US20140010517A1 (en) * 2012-07-09 2014-01-09 Sensr.Net, Inc. Reduced Latency Video Streaming
CN104363411A (en) * 2014-10-20 2015-02-18 福建星网锐捷安防科技有限公司 Video playing method and video playing device in video monitoring system
CN105072480A (en) * 2015-07-29 2015-11-18 无锡天脉聚源传媒科技有限公司 Video live broadcast method and device
CN105430475A (en) * 2015-11-04 2016-03-23 北京奇虎科技有限公司 Buffering method and device of video data
CN105872576A (en) * 2016-04-25 2016-08-17 乐视控股(北京)有限公司 Video playing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7133362B2 (en) * 2001-11-14 2006-11-07 Microsoft Corporation Intelligent buffering process for network conference video
US20140010517A1 (en) * 2012-07-09 2014-01-09 Sensr.Net, Inc. Reduced Latency Video Streaming
CN104363411A (en) * 2014-10-20 2015-02-18 福建星网锐捷安防科技有限公司 Video playing method and video playing device in video monitoring system
CN105072480A (en) * 2015-07-29 2015-11-18 无锡天脉聚源传媒科技有限公司 Video live broadcast method and device
CN105430475A (en) * 2015-11-04 2016-03-23 北京奇虎科技有限公司 Buffering method and device of video data
CN105872576A (en) * 2016-04-25 2016-08-17 乐视控股(北京)有限公司 Video playing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135405A (en) * 2017-04-28 2017-09-05 武汉斗鱼网络科技有限公司 The player method and device of a kind of Online Video
CN107135405B (en) * 2017-04-28 2020-02-07 武汉斗鱼网络科技有限公司 Online video playing method and device
CN109327662A (en) * 2017-07-31 2019-02-12 合网络技术(北京)有限公司 Video-splicing method and device
CN109327662B (en) * 2017-07-31 2021-02-05 阿里巴巴(中国)有限公司 Video splicing method and device
CN107592567A (en) * 2017-08-25 2018-01-16 触景无限科技(北京)有限公司 Eliminate the method and device of video cardton
CN107846621A (en) * 2017-09-28 2018-03-27 北京京东尚科信息技术有限公司 Delay process method, system and electronic equipment
CN112752109A (en) * 2019-10-30 2021-05-04 上海哔哩哔哩科技有限公司 Video playing control method and system
CN112752109B (en) * 2019-10-30 2022-05-17 上海哔哩哔哩科技有限公司 Video playing control method and system
US11863841B2 (en) 2019-10-30 2024-01-02 Shanghai Bilibili Technology Co., Ltd. Video playing control method and system
CN112887795A (en) * 2021-01-26 2021-06-01 脸萌有限公司 Video playing method, device, equipment and medium
CN114885209A (en) * 2022-04-08 2022-08-09 车智互联(北京)科技有限公司 Live data processing method, computing device and readable storage medium

Also Published As

Publication number Publication date
CN106331766B (en) 2019-08-13

Similar Documents

Publication Publication Date Title
CN106331766A (en) Video file playing method and apparatus
US10991009B2 (en) Methods and apparatus for context-specific content delivery
CN103024456A (en) Online video playing method and video playing server
US11197035B2 (en) Video analysis method and system
CN103856812B (en) A kind of video broadcasting method and device
CN104735542B (en) A kind of video broadcasting method and device
CN107241640B (en) A kind of method that mobile device and television equipment are played simultaneously
WO2016054916A1 (en) Video content recommending and evaluating methods and devices
EP3193509B1 (en) Video advertisement filtering method, device and equipment
CN105472443A (en) Direct broadcast source control method and system
CN105657469A (en) Online crowd funding method, platform and system based on network video broadcast
CN101365134B (en) Frame specifying method
CN108810572A (en) A kind of video broadcasting method and device
CN101345838A (en) TV program navigation method, apparatus and system
CN105142000A (en) Information pushing method and system based on television playing content
CN103702202A (en) Method and device for realizing fast playing during channel switching
CN101763434A (en) Method for wet-page script indication execution control of embedded browser, terminal and system
CN109714622A (en) A kind of video data handling procedure, device and electronic equipment
CN110198494A (en) A kind of video broadcasting method, device, equipment and storage medium
CN108337553A (en) A kind of multi-medium data pre-download method
CN109587525A (en) Service push method and system, set-top box, business service platform and storage medium
CN106921865A (en) Method for processing video frequency and device
US11451879B2 (en) Controlling playout of advertisement content during video-on-demand video streaming on an end-user terminal
CN108153882A (en) A kind of data processing method and device
CN107786903A (en) video interactive method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190813