CN105898536A - Video play method and device - Google Patents

Video play method and device Download PDF

Info

Publication number
CN105898536A
CN105898536A CN201610284532.1A CN201610284532A CN105898536A CN 105898536 A CN105898536 A CN 105898536A CN 201610284532 A CN201610284532 A CN 201610284532A CN 105898536 A CN105898536 A CN 105898536A
Authority
CN
China
Prior art keywords
video
capacity
extension
screen buffer
buffer
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
CN201610284532.1A
Other languages
Chinese (zh)
Inventor
曹先进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Original Assignee
LeTV Holding Beijing Co Ltd
LeTV Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LeTV Holding Beijing Co Ltd, LeTV Information Technology Beijing Co Ltd filed Critical LeTV Holding Beijing Co Ltd
Priority to CN201610284532.1A priority Critical patent/CN105898536A/en
Publication of CN105898536A publication Critical patent/CN105898536A/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/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)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video play method and device. The method comprises the steps: firstly obtaining the play state of a video, expanding a video buffering region when the play state of the video is a discontinuous state, and storing a video file read from a server in the expanded video buffering region in a video buffering process. According to the invention, the method can expand the video buffering region when the video play is discontinuous, and stores the video file in the expanded video buffering region. Compared with the prior art, the method can store more video files through the expanded video buffering region, and achieves the alleviation of the discontinuous playing of pictures after the video play is recovered.

Description

A kind of video broadcasting method and device
Technical field
The present embodiments relate to Internet technical field, particularly relate to a kind of video broadcasting method and device.
Background technology
At present, viewing video becomes a kind of conventional entertainment way.User can pass through multiple terminal equipment, such as mobile phone, puts down Plate computer and intelligent television etc. access the Internet, obtain video file, and realize video playback according to video file.
It addition, affected by network jitter, video in playing process it sometimes appear that the phenomenon paused of picture card.This In the case of, experiencing to improve viewing, user generally suspends video playback, and within the time period suspended, terminal unit enters Row video buffer.Described video buffer refers to terminal unit to be continued to access the Internet, reads video file, and will read To video file store to screen buffer.After recovering video playback, terminal unit reads described screen buffer The video file of middle storage is also play, to alleviate picture Caton phenomenon.
But, inventor finds in the research process of the application, when using prior art to carry out video playback, if video The space of relief area is less, then can only store the video file of relatively low capacity in buffering course, after recovering video playback, The video file of storage is play after terminating occurs that picture card pauses the most again.
Summary of the invention
For overcoming problem present in correlation technique, the embodiment of the present invention provides a kind of video broadcasting method and device.
In order to solve above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
First aspect according to embodiments of the present invention, it is provided that a kind of video broadcasting method, including:
In video display process, obtaining the broadcast state of described video, wherein, the broadcast state of described video includes: Smooth and easy state and Ka Dun state;
If the broadcast state of described video is card state, extend the screen buffer of described video;
During described video buffer, the video file read from server is stored the described video to extension In relief area.
Preferably, the screen buffer of the described video of described extension includes:
Obtain extension multiple m required during this screen buffer extending described video;
Described screen buffer is extended, so that the capacity after the extension of described screen buffer is for expanding according to described extension multiple m M times of raw capacity before exhibition.
Preferably, the screen buffer of the described video of described extension includes:
Obtain described video and card is occurring immediately, described video is not play the capacity of part, and, obtain current net Speed and video playback speed;
According to described video is not play capacity, current network speed and video playout speed partly, calculate described video and exist In the case of smooth and easy broadcasting, need the video capacity of buffering;
According to the described video capacity needing buffering, extend described screen buffer, so that the described video buffer after Kuo Zhan The capacity in district is not less than the described video capacity needing buffering.
Preferably, this required extension multiple m when extending the screen buffer of described video of described acquisition, including:
Obtain the internal memory service condition that terminal unit is current;
According to the mapping relations between default internal memory service condition and extension multiple, and current interior of described terminal unit Deposit service condition, obtain this required extension multiple m.
Preferably, the broadcast state of described acquisition video, including:
In described video display process, if in default first time period, there is n above interruption in described video Phenomenon, it is determined that the broadcast state of described video is card state, and wherein, n is default integer;
Or, in described video display process, if video breaks occurs, and when the time interrupted exceedes default second Between section, it is determined that the broadcast state of described video is a card state.
Preferably, the screen buffer of the described video of described extension, including:
Obtain the first address of the screen buffer before extension;
Obtain the blank relief area in relief area, and search destination buffer from described blank relief area, wherein, described The address of destination buffer is nearest with described first address, and the capacity of described destination buffer is capacity to be extended, by institute State destination buffer as screen buffer;
Wherein, the capacity of the screen buffer before setting extension as raw capacity, the capacity of the screen buffer after extension is Capacity after extension, after described extension difference between capacity and raw capacity be described in capacity to be extended.
Preferably, also include:
After this video playback terminates, the capacity of described screen buffer is adjusted the raw capacity to extension;
Or, after the screen buffer extending described video, however, it is determined that the broadcast state of described video is smooth and easy state, Then the capacity of described screen buffer is adjusted the raw capacity to extension.
Second aspect according to embodiments of the present invention, it is provided that a kind of video play device, including:
Broadcast state acquisition module, in video display process, obtains the broadcast state of described video, wherein, institute The broadcast state stating video includes: smooth and easy state and Ka Dun state;
Relief area expansion module, if the broadcast state for described video is card state, the video extending described video delays Rush district;
Memory module, for during described video buffer, stores the video file read from server to expansion In described screen buffer after exhibition.
Preferably, described relief area expansion module includes:
Extension multiple acquiring unit, extension multiple m required during for obtaining this screen buffer extending described video;
First expanding element, for extending described screen buffer according to described extension multiple m, so that described video buffer Capacity after district's extension is m times of the raw capacity before extension.
Preferably, described relief area expansion module includes:
Parameter acquiring unit, is used for obtaining described video and card is occurring immediately, do not play the capacity of part in described video, Further, current network speed and video playback speed are obtained;
Computing unit, is used for according to capacity, current network speed and the video playout speed not playing part in described video, Calculate described video in the case of smooth and easy broadcasting, need the video capacity of buffering;
Second expanding element, for according to the described video capacity needing buffering, extending described screen buffer, so that expanding The capacity of the described screen buffer after exhibition is not less than the described video capacity needing buffering.
Preferably, described extension multiple acquiring unit includes:
First obtains subelement, for obtaining the internal memory service condition that terminal unit is current;
Second obtains subelement, the mapping relations between internal memory service condition and the extension multiple preset for basis, and The internal memory service condition that described terminal unit is current, obtains this required extension multiple m.
Preferably, described broadcast state acquisition module includes:
First broadcast state acquiring unit, in described video display process, if in default first time period, There is n above disruption in described video, it is determined that the broadcast state of described video is card state, wherein, n For default integer;
Or, the second broadcast state acquiring unit, in described video display process, if video breaks occurs, and The time interrupted exceedes the second default time period, it is determined that the broadcast state of described video is card state.
1 preferably, and described relief area expansion module includes:
Address acquisition unit, the first address of the screen buffer before obtaining extension;
Destination buffer acquiring unit, for obtaining the blank relief area in relief area, and looks into from described blank relief area Looking for destination buffer, wherein, the address of described destination buffer is nearest with described first address, and described destination buffer Capacity be capacity to be extended, using described destination buffer as screen buffer;
Wherein, the capacity of the screen buffer before setting extension as raw capacity, the capacity of the screen buffer after extension is Capacity after extension, after described extension difference between capacity and raw capacity be described in capacity to be extended.
Preferably, also include:
First adjusting module, for after this video playback terminates, adjusts the capacity of described screen buffer to extension Front raw capacity;
Or, the second adjusting module, for after the screen buffer extending described video, however, it is determined that broadcasting of described video The state of putting is smooth and easy state, then the capacity of described screen buffer adjusts the raw capacity to extension.
The technical scheme that embodiments of the invention provide can include following beneficial effect:
Disclosure one video broadcasting method and device.In the method, first obtain the broadcast state of video, if institute The broadcast state stating video is card state, then extend the screen buffer of described video, and during video buffer, The video file read from server is stored in the screen buffer to extension.
By video broadcasting method disclosed in the present application and device, it is possible in the case of card occurs in video playback, extension In the screen buffer of video, and screen buffer video file stored to extension, for prior art, In the application, by the screen buffer after extension, it is possible to store the video file of more multicapacity, thus at video recovery After broadcasting, alleviate the phenomenon that picture card pauses.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, can not Limit the present invention.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the present invention Example, and for explaining the principle of the present invention together with description.
Fig. 1 is the workflow schematic diagram according to a kind of video broadcasting method shown in the present invention one exemplary embodiment;
Fig. 2 is according in a kind of video broadcasting method shown in the present invention one exemplary embodiment, extending video relief area Workflow schematic diagram;
Fig. 3 is the structural representation according to a kind of video play device shown in the present invention one exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to attached During figure, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary is implemented Embodiment described in example does not represent all embodiments consistent with the present invention.On the contrary, they be only with such as The example of the apparatus and method that some aspects that described in detail in appended claims, the present invention are consistent.
Disclosure one video broadcasting method and device, to solve in prior art, video occurs in playing process The problem that picture card pauses.
The open a kind of video broadcasting method of embodiments herein one.Workflow schematic diagram shown in Figure 1, described Video broadcasting method comprises the following steps:
Step S11, in video display process, obtain the broadcast state of described video, wherein, the broadcasting of described video State includes: smooth and easy state and Ka Dun state.
If the broadcast state of the described video of step S12 is card state, extend the screen buffer of described video.
If the broadcast state of described video is card state, the viewing that can affect user is experienced, and therefore, user is the most right Terminal unit operates, and makes video pause play.Within the time suspended, terminal unit still can be read from server Take video file, and the video file read is stored to screen buffer.In this case, in order to regarding Frequently the more video file of storage in relief area, in scheme disclosed in the present application, needs the video extending described video to delay Rush district.
Step S13, during described video buffer, the video file read from server is stored to extension after Described screen buffer in.
The open a kind of video broadcasting method of the first embodiment of the application, in the method, first obtains the broadcast state of video, If the broadcast state of described video is card state, then extend the screen buffer of described video, and in video buffer process In, the video file read from server is stored in the screen buffer to extension.
By video broadcasting method disclosed in the present application, it is possible in the case of card occurs in video playback, extending video In screen buffer, and screen buffer video file stored to extension, for prior art, this Shen In please, by the screen buffer after extension, it is possible to store the video file of more multicapacity, thus play at video recovery Afterwards, the phenomenon that picture card pauses is alleviated.
In video broadcasting method disclosed in the present application, disclosing when the broadcast state of video is for card state, extension is described The step of the screen buffer of video.This step can be accomplished in several ways.
In in one way in which, the screen buffer of the described video of described extension includes:
First, extension multiple m required during this screen buffer extending described video is obtained;
Then, extend described screen buffer according to described extension multiple m, so that the appearance after the extension of described screen buffer Amount is m times of the raw capacity before extension.
Such as, if this required extension multiple m is 2, in this case, according to described extension multiple m extension After screen buffer, the screen buffer after extension is 2 times of the raw capacity of extension money.
In a further mode of operation, the screen buffer of the described video of described extension includes: by the capacity of described screen buffer Extend to the capacity preset.
In this case, need in advance the capacity of the screen buffer after extension to be configured, thus after expansion, make The capacity of described screen buffer reaches described default capacity.
Further, in a further mode of operation, schematic flow sheet shown in Figure 2, regarding of the described video of described extension Frequently relief area comprises the following steps:
Step S21, obtain described video occur card immediately, described video is not play part capacity, and, obtain Take current network speed and video playback speed.
Step S22, according to described video is not play part capacity, current network speed and video playback speed, calculate Described video, in the case of smooth and easy broadcasting, needs the video capacity of buffering.
Owing to, in video display process, terminal unit remains able to read video file, therefore, this step from server In Zhou, need to combine each factors such as not playing capacity, current network speed and video playout speed partly in described video, If calculating the smooth and easy broadcasting of video, need the video capacity of buffering.
Step S23, the video capacity buffered according to described needs, extend described screen buffer, so that the institute after Kuo Zhan State the capacity of screen buffer not less than the described video capacity needing buffering.Under normal circumstances, the video buffer after extension The capacity in district is generally equal to the described video capacity needing buffering.
Such as, if in the step s 21, determining that the capacity not playing part in video is 10MB, current network speed is 1MB/S, Video playout speed is 2MB/S.In this case, the capacity that can arrange the screen buffer after extension is 6MB.Work as video Suspend play after, extension rear video relief area in storage video file be 6MB, when recover video broadcasting after, due to Video playout speed is 2MB/S, therefore, through the time of 3 seconds, can be play by the video file that store when suspending and play Complete, but, within this time period of 3 seconds, owing to current network speed is 1MB/S, then in playing process, video delays Rushing the video file that can store again 3MB in district, the most remaining video file not buffered is 1MB.And play this 3MB The video file of video file be time-consumingly 1.5 seconds, in the time of 1.5 seconds, 1.5MB can be stored in screen buffer Video file, more than the described remaining video file not buffered.Understand in conjunction with said process, if by screen buffer Capacity extension be 6MB, the smooth and easy broadcasting of video can be realized.
Operation by step S21 to step S23, it is possible to realize the extension to screen buffer, and, pass through the party Formula carries out the extension of screen buffer, it is possible to ensure the smooth and easy broadcasting of video.
If it addition, in video broadcasting method disclosed in the present application, extending the appearance of described screen buffer according to extension multiple m Amount, can pre-set extension multiple m.In this case, need in advance described extension multiple m is configured and is stored, When screen buffer is extended by needs, according to setting in advance, determine described extension multiple m.In the method, Owing to extension multiple m pre-sets and stores, therefore can be to extend multiple m described in quick obtaining.
In a further mode of operation, this required extension multiple m when extending the screen buffer of described video of described acquisition, Comprise the following steps:
First, the internal memory service condition that terminal unit is current is obtained;
Then, according to the mapping relations between default internal memory service condition and extension multiple, and described terminal unit is worked as Front internal memory service condition, obtains this required extension multiple m.
In this approach, need to preset the mapping relations between internal memory service condition and extension multiple.Close in this mapping In system, be normally set up memory usage higher in the case of, corresponding extension multiple m is less, and described internal memory use In the case of rate is relatively low, corresponding extension multiple m is bigger.
By the way, it is possible to according to the internal memory service condition of terminal unit, extending video relief area flexibly.Wherein, If the memory usage of terminal unit is higher, then in terminal unit, other programs may need to take more cushion space, In this case, in mapping relations, the extension multiple m setting its correspondence is less, so that the extension of screen buffer Amplitude is less, it is possible to reserve more cushion space for other programs.If the memory usage of terminal unit is relatively low, then terminal The cushion space that in equipment, other programs take may be less, in this case, in mapping relations, sets its correspondence Extension multiple m is relatively big, so that the extended amplitude of screen buffer is bigger.
Further, in video broadcasting method disclosed in the present application, need to obtain the broadcast state of video, in order to according to institute The broadcast state stating video determines the need for extending video relief area.In the application, video can be obtained by multiple method Broadcast state.
In in one way in which, the broadcast state of described acquisition video includes:
In described video display process, if in default first time period, there is n above interruption in described video Phenomenon, it is determined that the broadcast state of described video is card state, and wherein, n is default integer.
Such as, if the first time period preset is 10 minutes, n is 3, then in video display process, and 10 minutes Within video occur for 3 times or interrupt more times, it is determined that the broadcast state of video is a card state.
Accordingly, in this case, if there is not disruption in described video, although or video disruption occurs, But in default first time period, the number of times of video breaks is less than n time, it is determined that the broadcast state of video is smooth and easy State.
Or, in a further mode of operation, the broadcast state of described acquisition video includes:
In described video display process, if there is video breaks, and the time interrupted exceedes the second default time period, Then determine that the broadcast state of described video is for blocking a state.
Such as, can set for the second time period as 1 minute, then in video display process, if the time of video breaks exceedes 1 minute, it is determined that the broadcast state of described video is card state.
Accordingly, in this case, if there is not disruption in described video, although or video disruption occurs, But the time of video breaks is not less than described the second default time period, then can determine that the broadcast state of video is smooth and easy State.
By scheme disclosed above, it is possible to obtain the broadcast state of video, in order to the follow-up broadcasting shape according to described video State, it is determined whether extending video relief area.
Further, in video broadcasting method disclosed in the present application, the screen buffer of the described video of described extension includes:
First, the first address of the screen buffer before extension is obtained;
Then, obtain the blank relief area in relief area, and from described blank relief area, search destination buffer, wherein, The address of described destination buffer is nearest with described first address, and the capacity of described destination buffer is capacity to be extended, Using described destination buffer as screen buffer.
Wherein, the capacity of the screen buffer before setting extension as raw capacity, the capacity of the screen buffer after extension is Capacity after extension, after described extension difference between capacity and raw capacity be described in capacity to be extended.
Such as, if before extension, the capacity of screen buffer is 10MB, and the capacity of the screen buffer after extension is 30MB, The most described raw capacity is 10MB, and after described extension, capacity is 30MB, described in capacity to be extended be 20MB.Obtaining institute After stating the first address, in whole relief area, inquire about closest with described first address, and capacity is the relief area of 20MB Territory is as destination buffer, and this destination buffer is expanded to screen buffer.
In this case, if there is not occupied buffer area between the screen buffer before Kuo Zhan and destination buffer, The end address of the screen buffer before the most described extension is the start address of described destination buffer, consequently facilitating realize right The storage of video file.
It addition, in another kind of extended mode, it is also possible to according to raw capacity and extension procurement of reserve capacity capacity to be extended, so After arbitrarily choose in blank relief area capacity be described in the buffer area of capacity to be extended, as destination buffer, And using described destination buffer as screen buffer, thus realize the extension to screen buffer.
Further, video broadcasting method disclosed in the present application also includes:
After this video playback terminates, the capacity of described screen buffer is adjusted the raw capacity to extension.
Or, video broadcasting method disclosed in the present application also includes: after the screen buffer extending described video, if really The broadcast state of fixed described video is smooth and easy state, then the capacity of described screen buffer adjusts the original appearance to extension Amount.
Behind extending video relief area, in the video file storage read from server screen buffer after expansion, In this case, in terminal unit, the capacity of the video file of storage is relatively big, thus the video in removing screen buffer During file, more time can be expended, even can affect the response speed of terminal unit in reset procedure.Therefore, this Shen In video broadcasting method disclosed in please, after this video playback terminates, perform to adjust the capacity of described screen buffer The operation of the raw capacity to extension, in order to during video playback next time, still use the screen buffer of raw capacity to enter The buffering of row video, or, when video broadcasting condition is smooth and easy state, during the capacity of described screen buffer is adjusted Raw capacity before extension, it is to avoid store the video file of larger capacity in screen buffer, reduces follow-up removing video The time spent by video file in relief area.
Accordingly, the open a kind of video play device of the second embodiment of the application, structural representation shown in Figure 3, Described video play device includes: broadcast state acquisition module 100, relief area expansion module 200 and memory module 300.
Wherein, described broadcast state acquisition module 100, in video display process, obtain the broadcasting of described video State, wherein, the broadcast state of described video includes: smooth and easy state and Ka Dun state;
Described relief area expansion module 200, if the broadcast state for described video is card state, extends described video Screen buffer;
Described memory module 300, is used for during described video buffer, the video file that will read from server Store in the described screen buffer to extension.
By video play device disclosed in the present application, it is possible in the case of card occurs in video playback, extending video In screen buffer, and screen buffer video file stored to extension, for prior art, this Shen In please, by the screen buffer after extension, it is possible to store the video file of more multicapacity, thus play at video recovery Afterwards, the phenomenon that picture card pauses is alleviated.
It addition, in video play device disclosed in the present application, when the broadcast state of video is for card state, by institute State relief area expansion module and extend the screen buffer of described video.Wherein, described relief area expansion module can be multiple shape Formula.
Wherein in a kind of form, described relief area expansion module includes: extension multiple acquiring unit and the first expanding element.
Wherein, described extension multiple acquiring unit, required during for obtaining this screen buffer extending described video Extension multiple m;
Described first expanding element, for extending described screen buffer according to described extension multiple m, so that described video Capacity after the extension of relief area is m times of the raw capacity before extension.
Such as, if this required extension multiple m is 2, in this case, according to described extension multiple m extension After screen buffer, the screen buffer after extension is 2 times of the raw capacity of extension money.
In another form, described relief area expansion module includes: parameter acquiring unit, computing unit and the second extension Unit.
Parameter acquiring unit, is used for obtaining described video and card is occurring immediately, do not play the capacity of part in described video, Further, current network speed and video playback speed are obtained;
Computing unit, is used for according to capacity, current network speed and the video playout speed not playing part in described video, Calculate described video in the case of smooth and easy broadcasting, need the video capacity of buffering;
Second expanding element, for according to the described video capacity needing buffering, extending described screen buffer, so that expanding The capacity of the described screen buffer after exhibition is not less than the described video capacity needing buffering.
Owing to, in video display process, terminal unit remains able to read video file from server, therefore, described Computing unit need to combine described video is not play part capacity, current network speed and video playout speed etc. each because of Element, if calculating the smooth and easy broadcasting of video, needs the video capacity of buffering.
Such as, however, it is determined that the capacity not playing part in video is 10MB, and current network speed is 1MB/S, video playback speed Degree is 2MB/S.In this case, the capacity that can arrange the screen buffer after extension is 6MB.After video pause is play, In extension rear video relief area, the video file of storage is 6MB, when after the broadcasting recovering video, due to video playout speed For 2MB/S, therefore, through the time of 3 seconds, the video file stored can be played when suspending and play, but, In this time period of 3 seconds, owing to current network speed is 1MB/S, then in playing process, screen buffer can be deposited again The video file of storage 3MB, the most remaining video file not buffered is 1MB.And play the video file of this 3MB Video file be time-consumingly 1.5 seconds, in the time of 1.5 seconds, the video file of 1.5MB can be stored in screen buffer, More than the described remaining video file not buffered.Understand in conjunction with said process, if by the capacity extension of screen buffer being 6MB, can realize the smooth and easy broadcasting of video.
By parameter acquiring unit, computing unit and the second expanding element, it is possible to realize the extension to screen buffer, and And, carried out the extension of screen buffer by above three unit, it is possible to ensure the smooth and easy broadcasting of video.
If in video broadcasting method disclosed in the present application, extend the capacity of described screen buffer according to extension multiple m, can Pre-set extension multiple m.In this case, described extension multiple m is carried out by described extension multiple acquiring unit in advance Arrange and store, when screen buffer is extended by needs, according to setting in advance, determine described extension multiple m.
It addition, in another form, described extension multiple acquiring unit includes:
First obtains subelement, for obtaining the internal memory service condition that terminal unit is current;
Second obtains subelement, the mapping relations between internal memory service condition and the extension multiple preset for basis, and The internal memory service condition that described terminal unit is current, obtains this required extension multiple m.
Obtain subelement and second by first and obtain subelement, it is possible to according to the internal memory service condition of terminal unit, flexibly Extending video relief area.Wherein, if the memory usage of terminal unit is higher, then in terminal unit, other programs may Needing to take more cushion space, in this case, in mapping relations, the extension multiple m setting its correspondence is less, So that the extended amplitude of screen buffer is less, it is possible to reserve more cushion space for other programs.If terminal unit Memory usage is relatively low, then the cushion space that in terminal unit, other programs take may be less, in this case, is reflecting Penetrating in relation, the extension multiple m setting its correspondence is relatively big, so that the extended amplitude of screen buffer is bigger.
Further, in video play device disclosed in the present application, need to obtain video by broadcast state acquisition module Broadcast state, wherein, described broadcast state acquisition module includes:
First broadcast state acquiring unit, in described video display process, if in default first time period, There is n above disruption in described video, it is determined that the broadcast state of described video is card state, wherein, n For default integer.
Or, described broadcast state acquisition module includes: the second broadcast state acquiring unit, in described video playback During, if there is video breaks, and the time interrupted exceedes the second default time period, it is determined that broadcasting of described video State of putting is for card state.
Further, described relief area expansion module includes:
Address acquisition unit, the first address of the screen buffer before obtaining extension;
Destination buffer acquiring unit, for obtaining the blank relief area in relief area, and looks into from described blank relief area Looking for destination buffer, wherein, the address of described destination buffer is nearest with described first address, and described destination buffer Capacity be capacity to be extended, using described destination buffer as screen buffer;
Wherein, the capacity of the screen buffer before setting extension as raw capacity, the capacity of the screen buffer after extension is Capacity after extension, after described extension difference between capacity and raw capacity be described in capacity to be extended.
Such as, if before extension, the capacity of screen buffer is 10MB, and the capacity of the screen buffer after extension is 30MB, The most described raw capacity is 10MB, and after described extension, capacity is 30MB, described in capacity to be extended be 20MB.Obtaining institute After stating the first address, in whole relief area, inquire about closest with described first address, and capacity is the relief area of 20MB Territory is as destination buffer, and this destination buffer is expanded to screen buffer.
In this case, if there is not occupied buffer area between the screen buffer before Kuo Zhan and destination buffer, The end address of the screen buffer before the most described extension is the start address of described destination buffer, consequently facilitating realize right The storage of video file.
It addition, described relief area expansion module can also be according to raw capacity and extension procurement of reserve capacity capacity to be extended, then Blank relief area is arbitrarily chosen capacity be described in the buffer area of capacity to be extended, as destination buffer, and Using described destination buffer as screen buffer, thus realize the extension to screen buffer.
Further, video play device disclosed in the present application also includes:
First adjusting module, for after this video playback terminates, adjusts the capacity of described screen buffer to extension Front raw capacity;
Or, the second adjusting module, for after the screen buffer extending described video, however, it is determined that broadcasting of described video The state of putting is smooth and easy state, then the capacity of described screen buffer adjusts the raw capacity to extension.
Behind extending video relief area, in the video file storage read from server screen buffer after expansion, In this case, in terminal unit, the capacity of the video file of storage is relatively big, thus the video in removing screen buffer During file, more time can be expended, even can affect the response speed of terminal unit in reset procedure.
Therefore, in video play device disclosed in the present application, after this video playback terminates, adjust by described first The capacity of described screen buffer is adjusted the operation of the raw capacity to extension by module, in order to during video playback next time, Still the screen buffer using raw capacity carries out the buffering of video, or, when video broadcasting condition is smooth and easy state, Raw capacity before extending in the capacity of described screen buffer being adjusted by described second adjusting module, it is to avoid at video Relief area stores the video file of larger capacity, reduce spent by the video file in follow-up removing screen buffer time Between.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method Embodiment is described in detail, explanation will be not set forth in detail herein.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other of the present invention Embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes Or adaptations is followed the general principle of the present invention and includes that the embodiment of the present invention is undocumented in the art Common knowledge or conventional techniques means.Description and embodiments is considered only as exemplary, the true scope of the present invention and essence God is pointed out by claim below.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and Various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (14)

1. a video broadcasting method, it is characterised in that including:
In video display process, obtaining the broadcast state of described video, wherein, the broadcast state of described video includes: Smooth and easy state and Ka Dun state;
If the broadcast state of described video is card state, extend the screen buffer of described video;
During described video buffer, the video file read from server is stored the described video to extension In relief area.
Video broadcasting method the most according to claim 1, it is characterised in that the video of the described video of described extension delays Rush district to include:
Obtain extension multiple m required during this screen buffer extending described video;
Described screen buffer is extended, so that the capacity after the extension of described screen buffer is for expanding according to described extension multiple m M times of raw capacity before exhibition.
Video broadcasting method the most according to claim 1, it is characterised in that the video of the described video of described extension delays Rush district to include:
Obtain described video and card is occurring immediately, described video is not play the capacity of part, and, obtain current net Speed and video playback speed;
According to described video is not play capacity, current network speed and video playout speed partly, calculate described video and exist In the case of smooth and easy broadcasting, need the video capacity of buffering;
According to the described video capacity needing buffering, extend described screen buffer, so that the described video buffer after Kuo Zhan The capacity in district is not less than the described video capacity needing buffering.
Video broadcasting method the most according to claim 2, it is characterised in that this described video of extension of described acquisition Screen buffer time required extension multiple m, including:
Obtain the internal memory service condition that terminal unit is current;
According to the mapping relations between default internal memory service condition and extension multiple, and current interior of described terminal unit Deposit service condition, obtain this required extension multiple m.
Video broadcasting method the most according to claim 1, it is characterised in that the broadcast state of described acquisition video, Including:
In described video display process, if in default first time period, there is n above interruption in described video Phenomenon, it is determined that the broadcast state of described video is card state, and wherein, n is default integer;
Or,
In described video display process, if there is video breaks, and the time interrupted exceedes the second default time period, Then determine that the broadcast state of described video is for blocking a state.
Video broadcasting method the most according to claim 1, it is characterised in that the video of the described video of described extension delays Rush district, including:
Obtain the first address of the screen buffer before extension;
Obtain the blank relief area in relief area, and search destination buffer from described blank relief area, wherein, described The address of destination buffer is nearest with described first address, and the capacity of described destination buffer is capacity to be extended, by institute State destination buffer as screen buffer;
Wherein, the capacity of the screen buffer before setting extension as raw capacity, the capacity of the screen buffer after extension is Capacity after extension, after described extension difference between capacity and raw capacity be described in capacity to be extended.
7. according to the video broadcasting method described in any one of claim 1 to 6, it is characterised in that also include:
After this video playback terminates, the capacity of described screen buffer is adjusted the raw capacity to extension;
Or,
After the screen buffer extending described video, however, it is determined that the broadcast state of described video is smooth and easy state, then by institute The capacity stating screen buffer adjusts the raw capacity to extension.
8. a video play device, it is characterised in that including:
Broadcast state acquisition module, in video display process, obtains the broadcast state of described video, wherein, institute The broadcast state stating video includes: smooth and easy state and Ka Dun state;
Relief area expansion module, if the broadcast state for described video is card state, the video extending described video delays Rush district;
Memory module, for during described video buffer, stores the video file read from server to expansion In described screen buffer after exhibition.
Video play device the most according to claim 8, it is characterised in that described relief area expansion module includes:
Extension multiple acquiring unit, extension multiple m required during for obtaining this screen buffer extending described video;
First expanding element, for extending described screen buffer according to described extension multiple m, so that described video buffer Capacity after district's extension is m times of the raw capacity before extension.
Video play device the most according to claim 8, it is characterised in that described relief area expansion module includes:
Parameter acquiring unit, is used for obtaining described video and card is occurring immediately, do not play the capacity of part in described video, Further, current network speed and video playback speed are obtained;
Computing unit, is used for according to capacity, current network speed and the video playout speed not playing part in described video, Calculate described video in the case of smooth and easy broadcasting, need the video capacity of buffering;
Second expanding element, for according to the described video capacity needing buffering, extending described screen buffer, so that expanding The capacity of the described screen buffer after exhibition is not less than the described video capacity needing buffering.
11. video play devices according to claim 9, it is characterised in that described extension multiple acquiring unit bag Include:
First obtains subelement, for obtaining the internal memory service condition that terminal unit is current;
Second obtains subelement, the mapping relations between internal memory service condition and the extension multiple preset for basis, and The internal memory service condition that described terminal unit is current, obtains this required extension multiple m.
12. video play devices according to claim 8, it is characterised in that described broadcast state acquisition module bag Include:
First broadcast state acquiring unit, in described video display process, if in default first time period, There is n above disruption in described video, it is determined that the broadcast state of described video is card state, wherein, n For default integer;
Or,
Second broadcast state acquiring unit, in described video display process, if video breaks occurs, and interrupt Time exceedes the second default time period, it is determined that the broadcast state of described video is card state.
13. video play devices according to claim 8, it is characterised in that described relief area expansion module includes:
Address acquisition unit, the first address of the screen buffer before obtaining extension;
Destination buffer acquiring unit, for obtaining the blank relief area in relief area, and looks into from described blank relief area Looking for destination buffer, wherein, the address of described destination buffer is nearest with described first address, and described destination buffer Capacity be capacity to be extended, using described destination buffer as screen buffer;
Wherein, the capacity of the screen buffer before setting extension as raw capacity, the capacity of the screen buffer after extension is Capacity after extension, after described extension difference between capacity and raw capacity be described in capacity to be extended.
14. according to Claim 8 to the video play device described in 13 any one, it is characterised in that also include:
First adjusting module, for after this video playback terminates, adjusts the capacity of described screen buffer to extension Front raw capacity;
Or,
Second adjusting module, for after the screen buffer extending described video, however, it is determined that the broadcast state of described video For smooth and easy state, then the capacity of described screen buffer is adjusted the raw capacity to extension.
CN201610284532.1A 2016-04-29 2016-04-29 Video play method and device Pending CN105898536A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610284532.1A CN105898536A (en) 2016-04-29 2016-04-29 Video play method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610284532.1A CN105898536A (en) 2016-04-29 2016-04-29 Video play method and device

Publications (1)

Publication Number Publication Date
CN105898536A true CN105898536A (en) 2016-08-24

Family

ID=56701927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610284532.1A Pending CN105898536A (en) 2016-04-29 2016-04-29 Video play method and device

Country Status (1)

Country Link
CN (1) CN105898536A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658049A (en) * 2016-12-31 2017-05-10 深圳市优必选科技有限公司 Video playing buffer method and system
CN106937392A (en) * 2017-04-28 2017-07-07 北京邮电大学 The scheduling method for wireless resource of user experience quality in a kind of business based on DASH
CN109525887A (en) * 2018-12-27 2019-03-26 长沙理工大学 A kind of self-regulation playback method, system and the device of Online Video
CN110519619A (en) * 2019-09-19 2019-11-29 湖南快乐阳光互动娱乐传媒有限公司 A kind of variable playback method and system broadcast based on speed
CN112040302A (en) * 2019-06-03 2020-12-04 阿里巴巴集团控股有限公司 Video buffering method and device, electronic equipment and computer readable storage medium
CN112671742A (en) * 2020-12-17 2021-04-16 北京百度网讯科技有限公司 Audio card pause processing method and device, electronic equipment and storage medium
CN113271496A (en) * 2021-07-15 2021-08-17 全时云商务服务股份有限公司 Video smooth playing method and system in network live broadcast and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583025A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Streaming media playing method and device
CN102724584A (en) * 2012-06-18 2012-10-10 Tcl集团股份有限公司 Method and device for playing network videos online and smart television
JP2013500634A (en) * 2009-07-24 2013-01-07 ネットフリックス・インコーポレイテッド Adaptive streaming for digital content distribution
CN103051955A (en) * 2012-12-21 2013-04-17 华为技术有限公司 Method and device for playing streaming media
CN103379379A (en) * 2012-04-13 2013-10-30 腾讯科技(深圳)有限公司 Streaming media buffer play method and apparatus
CN103916716A (en) * 2013-01-08 2014-07-09 北京信威通信技术股份有限公司 Code rate smoothing method of video live transmission through wireless network
CN104639977A (en) * 2015-02-05 2015-05-20 小米科技有限责任公司 Program playing method and device
CN105376607A (en) * 2015-10-29 2016-03-02 深圳云聚汇数码有限公司 Live video method and device in network jittering environment
CN105430475A (en) * 2015-11-04 2016-03-23 北京奇虎科技有限公司 Buffering method and device of video data
CN105430478A (en) * 2015-11-27 2016-03-23 青岛海信电器股份有限公司 Network video buffer play method and device, and television

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583025A (en) * 2009-06-11 2009-11-18 中兴通讯股份有限公司 Streaming media playing method and device
JP2013500634A (en) * 2009-07-24 2013-01-07 ネットフリックス・インコーポレイテッド Adaptive streaming for digital content distribution
CN103379379A (en) * 2012-04-13 2013-10-30 腾讯科技(深圳)有限公司 Streaming media buffer play method and apparatus
CN102724584A (en) * 2012-06-18 2012-10-10 Tcl集团股份有限公司 Method and device for playing network videos online and smart television
CN103051955A (en) * 2012-12-21 2013-04-17 华为技术有限公司 Method and device for playing streaming media
CN103916716A (en) * 2013-01-08 2014-07-09 北京信威通信技术股份有限公司 Code rate smoothing method of video live transmission through wireless network
CN104639977A (en) * 2015-02-05 2015-05-20 小米科技有限责任公司 Program playing method and device
CN105376607A (en) * 2015-10-29 2016-03-02 深圳云聚汇数码有限公司 Live video method and device in network jittering environment
CN105430475A (en) * 2015-11-04 2016-03-23 北京奇虎科技有限公司 Buffering method and device of video data
CN105430478A (en) * 2015-11-27 2016-03-23 青岛海信电器股份有限公司 Network video buffer play method and device, and television

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658049A (en) * 2016-12-31 2017-05-10 深圳市优必选科技有限公司 Video playing buffer method and system
CN106658049B (en) * 2016-12-31 2019-08-30 深圳市优必选科技有限公司 A kind of video playing way to play for time and system
CN106937392A (en) * 2017-04-28 2017-07-07 北京邮电大学 The scheduling method for wireless resource of user experience quality in a kind of business based on DASH
CN106937392B (en) * 2017-04-28 2020-04-14 北京邮电大学 Wireless resource scheduling method based on user experience quality in DASH service
CN109525887A (en) * 2018-12-27 2019-03-26 长沙理工大学 A kind of self-regulation playback method, system and the device of Online Video
CN112040302A (en) * 2019-06-03 2020-12-04 阿里巴巴集团控股有限公司 Video buffering method and device, electronic equipment and computer readable storage medium
CN110519619A (en) * 2019-09-19 2019-11-29 湖南快乐阳光互动娱乐传媒有限公司 A kind of variable playback method and system broadcast based on speed
CN112671742A (en) * 2020-12-17 2021-04-16 北京百度网讯科技有限公司 Audio card pause processing method and device, electronic equipment and storage medium
CN113271496A (en) * 2021-07-15 2021-08-17 全时云商务服务股份有限公司 Video smooth playing method and system in network live broadcast and readable storage medium
CN113271496B (en) * 2021-07-15 2021-10-01 全时云商务服务股份有限公司 Video smooth playing method and system in network live broadcast and readable storage medium

Similar Documents

Publication Publication Date Title
CN105898536A (en) Video play method and device
CN105338394B (en) The processing method and system of caption data
JP2018026816A (en) Video recording method and system
CN104427284B (en) Process the method and apparatus of sport video
CN105100876A (en) Streaming media playing method and device
CN108566561A (en) Video broadcasting method, device and storage medium
CN105828146A (en) Video image interception method, terminal and server
KR101782453B1 (en) Method, device and system for controlling video play
CN108810572A (en) A kind of video broadcasting method and device
CN105338259A (en) Video merging method and device
CN108174227B (en) Virtual article display method and device and storage medium
CN105915985A (en) Method for performing watch-back in live broadcasting and device thereof
US20150251092A1 (en) Multi-tenancy for cloud gaming servers
CN104506957A (en) Method and device for displaying subtitles
CN106851337A (en) Video buffer control method and device
CN101583027B (en) Method for caching image data in real time and movable terminal
JP2008141608A (en) Image display processing apparatus, and processing method thereof
CN106385613A (en) Method and device for controlling playing of bullet screens
CN104486553B (en) A kind of distant view photograph image pickup method and terminal
CN102868913B (en) A kind of remote synchronization virtual monitor method and system
CN109922230A (en) Synchronous broadcast method, control method for playing back and the device of dynamic content
CN105578264B (en) The processing method and processing device of animated menu based on smart television
CN108882004B (en) Video recording method, device, equipment and storage medium
CN109144354B (en) Method and equipment for rotating player view layer
CN109688423A (en) A kind of system and method for quick broadcasting video

Legal Events

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

Application publication date: 20160824