CN105100876A - Streaming media playing method and device - Google Patents

Streaming media playing method and device Download PDF

Info

Publication number
CN105100876A
CN105100876A CN201510543389.9A CN201510543389A CN105100876A CN 105100876 A CN105100876 A CN 105100876A CN 201510543389 A CN201510543389 A CN 201510543389A CN 105100876 A CN105100876 A CN 105100876A
Authority
CN
China
Prior art keywords
video
displaying video
current displaying
rate
current
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
CN201510543389.9A
Other languages
Chinese (zh)
Other versions
CN105100876B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201510543389.9A priority Critical patent/CN105100876B/en
Publication of CN105100876A publication Critical patent/CN105100876A/en
Application granted granted Critical
Publication of CN105100876B publication Critical patent/CN105100876B/en
Active 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/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/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/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • H04N21/26216Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the channel capacity, e.g. network bandwidth
    • 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

Abstract

The invention discloses a streaming media playing method and device in an embodiment. The method comprises: obtaining the cached data volume of a video played at present; reducing the frame rate of the video played at present and prolonging the playing time of each frame of image when the cached data volume of the video played at present is lower than a preset lower threshold and the downloading rate of the video played at present is smaller than the original code rate of the video; and recovering the frame rate of the video played at present to be the original frame rate of the video if the cached data volume of a video played at present is greater than a preset upper threshold, when detecting that the video has been completely cached already or when the downloading rate of the video played at present is not smaller than the original code rate of the video. The streaming media playing method is adopted to solve the problem of unsmooth playing of a streaming media video in case of network instability and to enable a user to obtain better watching experience.

Description

A kind of player method of Streaming Media and device
Technical field
The present invention relates to video playback field, particularly a kind of player method of Streaming Media and device.
Background technology
Online Video is generally play all in the streaming media, namely provides lasting data flow at server end, terminal receive, this video flowing of buffer memory, and while buffer memory by this video display to user.But data transmission network is normally unstable, if substantially do not have network in regular hour length, or the downloading rate of video flowing is very low, then will cause the minimizing of buffer data size in terminal, when this situation maintains the long period, the exhaustion of buffer data size will be caused.
When the exhaustion of terminal buffers data volume, because countless certificate can be broadcast, the card of whole playing process will be caused to pause, this viewing that can reduce user is to a great extent experienced.
Summary of the invention
The object of the embodiment of the present invention is the player method and the device that provide a kind of Streaming Media, plays the problem of card in order to solve the streaming media video when unstable networks.
For achieving the above object, the embodiment of the invention discloses a kind of player method of Streaming Media, being applied to terminal, described method comprises step:
Obtain the buffer data size of current displaying video, judge whether this buffer data size is less than default lower threshold D1;
If so, the downloading rate of current displaying video is obtained;
Judge whether the downloading rate of current displaying video is less than the original code check of this video;
If so, the playback rate of current displaying video is reduced.
Preferably, the playback rate of the current displaying video of described reduction comprises:
The frame per second original according to the original code check of the downloading rate of current displaying video, this video, this video, determines the playback rate of the current displaying video after reducing.
Preferably, before the playback rate of the current displaying video of described reduction, also comprise:
Judge whether buffer memory completes current displaying video;
When current displaying video buffer memory completes, keep the playback rate of current displaying video constant.
Preferably, described method also comprises:
Obtain the buffer data size of current displaying video, judge whether this buffer data size is greater than default upper limit threshold D2;
If so, then the playback rate of current displaying video is improved.
Preferably, described method also comprises:
Judge whether the downloading rate of current displaying video is less than the original code check of this video;
If not, then the playback rate of current displaying video is improved.
The embodiment of the invention also discloses a kind of playing device of Streaming Media, be applied to terminal, described device comprises:
First obtains judge module, for obtaining the buffer data size of current displaying video, judges whether this buffer data size is less than default lower threshold D1;
Second obtains judge module, for when first obtains judge module judged result for being, obtains the downloading rate of current displaying video; Judge whether the downloading rate of current displaying video is less than the original code check of this video;
Adjusting module, for when second obtains judge module judged result for being, reduces the playback rate of current displaying video.
Preferably, described adjusting module, specifically for the frame per second that the original code check of the downloading rate according to current displaying video, this video, this video are original, determines the playback rate of the current displaying video after reducing.
Preferably, described device also comprises:
Buffer memory completes Executive Module, for judging whether buffer memory completes current displaying video;
Described adjusting module, also for complete when described buffer memory Executive Module judge that current displaying video buffer memory completes time, keep the playback rate of current displaying video constant.
Preferably, described first obtains judge module, also for obtaining the buffer data size of current displaying video, judges whether this buffer data size is greater than default upper limit threshold D2;
Described adjusting module, also for when described first acquisition judge module judges that buffer data size is greater than default upper limit threshold D2, improves the playback rate of current displaying video.
Preferably, described second obtains judge module, also for judging whether the downloading rate of current displaying video is less than the original code check of this video;
Described adjusting module, also for when described second obtain judge module judge that the downloading rate of current displaying video is not less than this video original code check time, improve the playback rate of current displaying video.
Embodiments provide a kind of player method and device of Streaming Media, in the method, terminal obtains the buffer data size of current displaying video, judge whether this buffer data size is less than default lower threshold D1, if be less than this lower threshold, then obtain the downloading rate of current displaying video, and judge whether the downloading rate of current displaying video is less than the original video code stream rate of this video, if so, reduce the playback rate of current displaying video.Owing to obtaining the buffer data size of this current displaying video in the embodiment of the present invention for current displaying video, and be less than default lower threshold at this buffer data size, and the downloading rate of this current displaying video is when being less than the original code check of this video, reduce the playback rate of this current displaying video, thus the buffer memory of this video can be increased to a certain extent, avoid buffer memory to occur exhausted, ensure the continuity of video playback.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the player method of a kind of Streaming Media that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of the player method of a kind of Streaming Media that Fig. 2 provides for the embodiment of the present invention two;
The schematic flow sheet of the player method of a kind of Streaming Media that Fig. 3 provides for the embodiment of the present invention three;
The schematic flow sheet of the player method of a kind of Streaming Media that Fig. 4 provides for the embodiment of the present invention four;
The structural representation of the playing device of a kind of Streaming Media that Fig. 5 provides for the embodiment of the present invention five.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of player method and device of Streaming Media, in the method, terminal obtains the buffer data size of current displaying video, judge whether this buffer data size is less than default lower threshold D1, if be less than this lower threshold, then obtain the downloading rate of current displaying video, and judge whether the downloading rate of current displaying video is less than the original video code stream rate of this video, if so, reduce the playback rate of current displaying video.Owing to obtaining the buffer data size of this current displaying video in the embodiment of the present invention for current displaying video, and be less than default lower threshold at this buffer data size, and the downloading rate of this current displaying video is when being less than the original code check of this video, reduce the playback rate of this current displaying video, thus the buffer memory of this video can be increased to a certain extent, avoid buffer memory to occur exhausted, ensure the continuity of video playback.
Below by specific embodiment, the present invention is described in detail.
The schematic flow sheet of the player method of a kind of Streaming Media that Fig. 1 provides for the embodiment of the present invention one, the method is applied to terminal, comprises the steps:
S101: the buffer data size obtaining current displaying video.
According to the time interval every one section of setting, the buffer data size of a current video can be obtained; If the time interval of this setting is shorter, at the end of the buffer data size that also can be understood as terminal Real-time Obtaining current video or the flow process provided whenever the embodiment of the present invention one, obtain the buffer data size of a current video.
This terminal can be the electronic equipments such as smart mobile phone, panel computer, notebook/desktop computer in embodiments of the present invention.
S102: judge whether the buffer data size of current displaying video is less than default lower threshold D1, if so, performs S103, if not, then keeps the playback rate of current displaying video constant.
This lower threshold can be in the terminal pre-configured, and lower threshold that can be different for dissimilar video configuration, when carrying out streaming media playing, the lower threshold that terminal can be corresponding according to the type selecting of video.
Terminal also can provide a D1 value to arrange interface, makes user arrange D1 value voluntarily according to the use habit of oneself.Arranging interface can provide data input frame to input D1 numerical value for user, and data selection hurdle also can be provided to provide selectable D1 value to user.
Or terminal also can obtain this lower threshold preset from server.Identical lower threshold can be set for dissimilar video in server, or different lower thresholds.When terminal carries out streaming media playing, obtain lower threshold corresponding to this Streaming Media from server; The lower threshold arranged for dissimilar video also can be sent to terminal by server, so that terminal is when carrying out streaming media playing, can judge accordingly according to the lower threshold preset received from server.
Such as, no matter can arrange different D1 values for different video type in terminal or server, video type can be distinguished with video format.Such as, for the video of MP4 form, determine that the lower threshold that it is preset is 1MB; For the video of MKV form, determine that the lower threshold that it is preset is 10MB.
Can different D1 values be set for different terminal resources.Such as, when video download is carried out in terminal to server request, the bandwidth information of oneself institute's access network is also sent to server; After server receives the bandwidth information of this terminal, the predetermined lower threshold value D1 corresponding with this bandwidth information is sent to this terminal, to do the judgement of this terminal follow-up; Or, when there being terminal to server request video to download, server is before its transmission of video resource, the look-up table of the network bandwidth first terminal local of default latest edition preserved and the corresponding relation of corresponding lower threshold sends to terminal, after terminal obtains this look-up table, corresponding lower threshold is searched, as the use of follow-up judgement voluntarily according to the accessed network bandwidth.Such as, the D1 value that the 100MB broadband network that server is arranged in this look-up table is corresponding can be less than D1 value corresponding to 20MB broadband network, to save the memory space of data cached shared terminal.
S103: the downloading rate obtaining current displaying video.
S104: judge whether the downloading rate of current displaying video is less than the original code check of this video; If so, perform S105, if not, then keep the playback rate of current displaying video constant.
When the original code check of video refers to that video normal frame rate is play, the video bits number of transmission per second.Such as, for MPEG1 format video, original code check is 1150kbps, namely during normal play one section of MPEG1 format video, and the data volume of consumption 1150kb per second.
S105: the playback rate reducing current displaying video.
The playback rate reducing current displaying video can be the frame per second reducing current displaying video, namely reduces the frame number of exploded view picture per second, extends the displaying time of every two field picture.
In embodiments of the present invention when reducing the playback rate of this current displaying video, this playback rate can be reduced to the arbitrary value low compared with current playing rate.
The playback rate reducing current displaying video comprises: the frame per second original according to the original code check of the downloading rate of current displaying video, this video, this video, determines the frame per second of the current displaying video after reducing.The frame per second that wherein video is original refers to frame per second during this video normal play.
Such as, the original code check of certain video is V1, the original frame per second of video is F, if the downloading rate recording current displaying video is V2 and V2<V1, current video play frame rate can be defined as (V2/V1) * F, at this moment can ensure that the buffer memory total amount of current displaying video does not occur negative growth.Such as, for MPEG1 format video, original code check is 1150kbps, the original frame per second of video is 25fps, if the downloading rate recording current displaying video is 920kbps, current video play frame rate can be defined as (920kbps/1150kbps) * 25fps=20fps, at this moment can ensure that the buffer memory total amount of current displaying video does not occur negative growth.
The method reducing the frame per second of current displaying video also comprises: the frame per second original according to the original code check of the downloading rate of current displaying video, the data volume of current cache data field, default lower threshold D1, this video, this video, determines the frame per second of the current displaying video after reducing.
Such as, the original code check of certain video is V1, the original frame per second of video is F, if the downloading rate recording current displaying video is V2 and V2<V1, current cache data volume is D0 and D0<D1, default lower threshold are D1, current video play frame rate can be defined as (V2/V1) * (D0/D1) * F, then be less than in the time period of D1 at D0, data cached total amount can be made to be increase state.Such as, for MPEG1 format video, original code check is 1150kbps, the original frame per second of video is 25fps, if the downloading rate recording current displaying video is 920kbps, current cache data volume is 4MB, default buffer memory lower threshold is 5MB, then current video play frame rate can be defined as (920kbps*/1150kbps) * (4MB/5MB) * 25fps=16fps, and data cached total amount at this moment can be made to be increase state.
Owing to obtaining the buffer data size of this video in the embodiment of the present invention for current displaying video, and this buffer data size is less than default lower threshold, and the downloading rate of this current displaying video is when being less than the original video code stream rate of this video, reduce the frame per second of this video, thus the buffer data size of this video can be increased to a certain extent, ensure the continuity of video playback.
In the process of streaming media playing, when this Streaming Media buffer memory complete, due to the broadcasting of this Streaming Media, its buffer data size also can constantly reduce, when this buffer data size is less than default lower threshold, because current cache completes, the downloading rate of this video is 0, also meet and be less than the original code check of this video, even if now do not reduce the playback rate of current displaying video, also there will not be the problem that card pauses.Therefore in embodiments of the present invention in order to when video cache completes, reduce the frequent operation of the playback rate reducing displaying video, before the playback rate of the current displaying video of described reduction, also comprise:
Judge whether buffer memory completes current displaying video;
When current displaying video buffer memory completes, keep the playback rate of current displaying video constant.
Judge that the current displaying video step whether buffer memory completes belongs to prior art, Ke Yiwei: whether its interface receiving described current displaying video of terminal judges sends the complete information of download to it, if so, then judges that current displaying video buffer memory completes.Wherein, these data can be returned after the data of the current displaying video that this interface sends to server, when the data that this interface returns are 0, can judge that current displaying video buffer memory completes.Concrete, speed in order to avoid the transfer of data caused due to other reason is 0 erroneous judgement causing becoming that terminal completes buffer memory, described terminal also according to the data volume of the total amount of data of current displaying video and the described current displaying video downloaded, can judge whether buffer memory completes.In embodiments of the present invention concrete implementation is not repeated.
The schematic flow sheet of the player method of a kind of Streaming Media that Fig. 2 provides for the embodiment of the present invention two, comprises the steps:
S201: the buffer data size obtaining current displaying video.
S202: judge that whether buffer memory completes current displaying video, if so, performs S204, if not, performs S203.
S203: judge whether the buffer data size of current displaying video is less than default lower threshold D1, if so, performs S205, if not, then performs S204.
S204: keep the playback rate of current displaying video constant.
The frame per second of current displaying video is judged, if be the original frame per second of video, does not then adjust; If be less than the frame per second that video is original, then the frame per second of current displaying video is adjusted to the original frame per second of video.No longer perform other institutes in the embodiment of the present invention afterwards in steps.
S205: the downloading rate obtaining current displaying video.
S206: judge whether the downloading rate of current displaying video is less than the original code check of this video; If so, perform S207, if not, then perform S204.
S207: the playback rate reducing current displaying video.
Wherein step S202 can perform any position between step S201 and step S207, as long as can ensure to realize the video judgement whether buffer memory completes before the playback rate reducing current displaying video.
The buffer data size of video can be increased to a certain extent by the above-mentioned execution mode of the embodiment of the present invention.Obtain the buffer data size of current displaying video, if this buffer data size acquires a certain degree, even if the playback rate improving current video is described, this video also there will not be buffer data size exhaustion to occur the problem that card pauses, and therefore described method also comprises in embodiments of the present invention:
Obtain the buffer data size of current displaying video, judge whether this buffer data size is greater than default upper limit threshold D2;
If so, the playback rate of current displaying video is improved.
Improve the playback rate of current displaying video, can be that the playback rate of this video is risen to the high any number of more current playback rate, preferably, can be that the playback rate of this video is risen to its original playback rate, namely play with original code check.
This upper limit threshold can be in the terminal pre-configured, and upper limit threshold that can be different for dissimilar video configuration, when carrying out streaming media playing, the upper limit threshold that terminal can be corresponding according to the type selecting of video.
Terminal also can provide a D2 value to arrange interface, makes user can arrange D2 value voluntarily according to the use habit of oneself.Arranging interface can provide data input frame to input D2 numerical value for user, and data selection hurdle also can be provided to provide selectable D2 value to user.
Or terminal also can obtain this upper limit threshold preset from server.Identical upper limit threshold can be set for dissimilar video in server, or different upper limit thresholds.When terminal carries out streaming media playing, obtain upper limit threshold corresponding to this Streaming Media from server; The upper limit threshold arranged for dissimilar video also can be sent to terminal by server, so that terminal is when carrying out streaming media playing, can judge accordingly according to the upper limit threshold preset received from server.
Such as, no matter can arrange different D2 values for different video format type in terminal or server, video type can be distinguished with video format.Such as, for the video of MP4 form, determine that the upper limit threshold that it is preset is 10MB; For the video of MKV form, determine that the upper limit threshold that it is preset is 100MB.
Can different D2 values be set for different terminal resources.Such as, when video download is carried out in terminal to server request, the bandwidth information of oneself institute's access network is also sent to server; After server receives the bandwidth information of this terminal, the predetermined upper threshold value D2 corresponding with this bandwidth information is sent to this terminal, to do the judgement of this terminal follow-up; Or, when there being terminal to server request video to download, server is before its transmission of video resource, the look-up table of the network bandwidth first terminal local of default latest edition preserved and the corresponding relation of corresponding upper limit threshold sends to terminal, after terminal obtains this look-up table, corresponding upper limit threshold is searched, as the use of follow-up judgement voluntarily according to the accessed network bandwidth.Such as, the D2 value that the 100MB broadband network that server is arranged in this look-up table is corresponding can be less than D2 value corresponding to 20MB broadband network, to save the memory space of data cached shared terminal.
The schematic flow sheet of the player method of a kind of Streaming Media that Fig. 3 provides for the embodiment of the present invention three, comprises the steps:
S301: the buffer data size obtaining current displaying video.
S302: judge whether the buffer data size of current displaying video is less than default lower threshold D1, if so, performs S303, if not, then keeps the playback rate of current displaying video constant.
S303: the downloading rate obtaining current displaying video.
S304: judge whether the downloading rate of current displaying video is less than the original code check of this video, if so, performs S305, if not, then keeps the playback rate of current displaying video constant.
S305: the playback rate reducing current displaying video.
S306: judge whether the buffer data size of current displaying video is greater than default upper limit threshold D2, if so, performs S307, if not, then keeps the playback rate of current displaying video constant.
S307: the playback rate improving current displaying video.
The buffer data size of video can be increased to a certain extent by the above-mentioned execution mode of the embodiment of the present invention three.
If the downloading rate of current displaying video increases, and be increased to the original code check being not less than video, even if the playback rate improving current video is described, this video also there will not be buffer data size exhaustion to occur the problem that card pauses, and therefore described method also comprises in embodiments of the present invention: judge whether the downloading rate of current displaying video is less than the original video code stream rate of this video;
If not, the playback rate of current displaying video is improved.
Improve the playback rate of current displaying video, can be that the playback rate of this video is risen to the high any number of more current playback rate, preferably, can be that the playback rate of this video is risen to its original playback rate, namely play with original code check.
The schematic flow sheet of the player method of a kind of Streaming Media that Fig. 4 provides for the embodiment of the present invention four, comprises the steps:
S401: the buffer data size obtaining current displaying video.
S402: judge whether the buffer data size of current displaying video is less than default lower threshold D1, if so, performs S403, if not, then keeps the playback rate of current displaying video constant.
S403: the downloading rate obtaining current displaying video.
S404: judge whether the downloading rate of current displaying video is less than the original code check of this video, if so, performs S405, if not, then keeps the playback rate of current displaying video constant.
S405: the playback rate reducing current displaying video.
S406: judge whether the downloading rate of current displaying video is less than the original code check of this video, as no, perform S407, if so, then keeps the playback rate of current displaying video constant.
S407: the playback rate improving current displaying video.
Due in the embodiment of the present invention when reduce current displaying video playback rate after, in order to the viewing improving user is experienced, the buffer data size downloading rate of this video is obtained for current displaying video, and the lower threshold being less than the original code check of this video and presetting is greater than at this buffer data size of downloading rate, and the downloading rate of this current displaying video is when being less than the original video code stream rate of this video, reduce the playback rate frame per second improving this current displaying video, thus the buffer memory of this video can be increased to a certain extent, ensure that the continuity of video playback improves Consumer's Experience.
The structural representation of the playing device of a kind of Streaming Media that Fig. 5 provides for the embodiment of the present invention, comprises the first acquisition judge module 501, second and obtains judge module 502, adjusting module 504.
Wherein, first obtains judge module 501, for obtaining the buffer data size of current displaying video, judges whether this buffer data size is less than default lower threshold D1;
Second obtains judge module 502, for when first obtains judge module judged result for being, obtains the downloading rate of current displaying video; Judge whether the downloading rate of current displaying video is less than the original code check of this video;
Adjusting module 504, for when second obtains judge module judged result for being, reduces the playback rate of current displaying video.
Further, described adjusting module 504, specifically for the frame per second that the original code check of the downloading rate according to current displaying video, this video, this video are original, determines the playback rate of the current displaying video after reducing.
Described device also comprises:
Buffer memory completes Executive Module 503, for judging whether buffer memory completes current displaying video;
Described adjusting module 504, also for complete when described buffer memory Executive Module judge that current displaying video buffer memory completes time, keep the playback rate of current displaying video constant.
Described first obtains judge module 501, also for obtaining the buffer data size of current displaying video, judges whether this buffer data size is greater than default upper limit threshold D2;
Described adjusting module 504, also for when described first acquisition judge module judges that buffer data size is greater than default upper limit threshold D2, improves the playback rate of current displaying video.
Described second obtains judge module 502, also for judging whether the downloading rate of current displaying video is less than the original code check of this video;
Described adjusting module 504, also for when described second obtain judge module judge that the downloading rate of current displaying video is not less than this video original code check time, improve the playback rate of current displaying video.
Embodiments provide a kind of player method and device of Streaming Media, in the method, terminal obtains the buffer data size of current displaying video, judge whether this buffer data size is less than default lower threshold D1, if be less than this lower threshold, then obtain the downloading rate of current displaying video, and judge whether the downloading rate of current displaying video is less than the original video code stream rate of this video, if so, reduce the playback rate of current displaying video.Owing to obtaining the buffer data size of this current displaying video in the embodiment of the present invention for current displaying video, and be less than default lower threshold at this buffer data size, and the downloading rate of this current displaying video is when being less than the original code check of this video, reduce the playback rate of this current displaying video, thus the buffer memory of this video can be increased to a certain extent, avoid buffer memory to occur exhausted, ensure the continuity of video playback.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or mobile device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or mobile device.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the mobile device comprising described key element and also there is other identical element.
One of ordinary skill in the art will appreciate that all or part of step realized in said method execution mode is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a player method for Streaming Media, is characterized in that, is applied to terminal, and described method comprises step:
Obtain the buffer data size of current displaying video, judge whether this buffer data size is less than default lower threshold D1;
If so, the downloading rate of current displaying video is obtained;
Judge whether the downloading rate of current displaying video is less than the original code check of this video;
If so, the playback rate of current displaying video is reduced.
2. method according to claim 1, is characterized in that, the playback rate of the current displaying video of described reduction comprises:
The frame per second original according to the original code check of the downloading rate of current displaying video, this video, this video, determines the playback rate of the current displaying video after reducing.
3. method according to claim 1, is characterized in that, before the playback rate of the current displaying video of described reduction, also comprises:
Judge whether buffer memory completes current displaying video;
When current displaying video buffer memory completes, keep the playback rate of current displaying video constant.
4. method according to claim 1, is characterized in that, described method also comprises:
Obtain the buffer data size of current displaying video, judge whether this buffer data size is greater than default upper limit threshold D2;
If so, then the playback rate of current displaying video is improved.
5. method according to claim 1, is characterized in that, described method also comprises:
Judge whether the downloading rate of current displaying video is less than the original code check of this video;
If not, then the playback rate of current displaying video is improved.
6. a playing device for Streaming Media, is characterized in that, is applied to terminal, and described device comprises:
First obtains judge module, for obtaining the buffer data size of current displaying video, judges whether this buffer data size is less than default lower threshold D1;
Second obtains judge module, for when first obtains judge module judged result for being, obtains the downloading rate of current displaying video; Judge whether the downloading rate of current displaying video is less than the original code check of this video;
Adjusting module, for when second obtains judge module judged result for being, reduces the playback rate of current displaying video.
7. device as claimed in claim 6, is characterized in that, described adjusting module, specifically for the frame per second that the original code check of the downloading rate according to current displaying video, this video, this video are original, determines the playback rate of the current displaying video after reducing.
8. device as claimed in claim 6, it is characterized in that, described device also comprises:
Buffer memory completes Executive Module, for judging whether buffer memory completes current displaying video;
Described adjusting module, also for complete when described buffer memory Executive Module judge that current displaying video buffer memory completes time, keep the playback rate of current displaying video constant.
9. device as claimed in claim 6, is characterized in that, described first obtains judge module, also for obtaining the buffer data size of current displaying video, judges whether this buffer data size is greater than default upper limit threshold D2;
Described adjusting module, also for when described first acquisition judge module judges that buffer data size is greater than default upper limit threshold D2, improves the playback rate of current displaying video.
10. device as claimed in claim 6, is characterized in that, described second obtains judge module, also for judging whether the downloading rate of current displaying video is less than the original code check of this video;
Described adjusting module, also for when described second obtain judge module judge that the downloading rate of current displaying video is not less than this video original code check time, improve the playback rate of current displaying video.
CN201510543389.9A 2015-08-28 2015-08-28 A kind of playback method and device of Streaming Media Active CN105100876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510543389.9A CN105100876B (en) 2015-08-28 2015-08-28 A kind of playback method and device of Streaming Media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510543389.9A CN105100876B (en) 2015-08-28 2015-08-28 A kind of playback method and device of Streaming Media

Publications (2)

Publication Number Publication Date
CN105100876A true CN105100876A (en) 2015-11-25
CN105100876B CN105100876B (en) 2019-04-12

Family

ID=54580268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510543389.9A Active CN105100876B (en) 2015-08-28 2015-08-28 A kind of playback method and device of Streaming Media

Country Status (1)

Country Link
CN (1) CN105100876B (en)

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550523A (en) * 2015-12-28 2016-05-04 上海携程商务有限公司 Data processing method
CN105812902A (en) * 2016-03-17 2016-07-27 联发科技(新加坡)私人有限公司 Data play method, device and system
CN105959734A (en) * 2016-05-05 2016-09-21 苏州花坞信息科技有限公司 On-line video playing method for avoiding stuttering videos
CN106412676A (en) * 2016-10-21 2017-02-15 乐视控股(北京)有限公司 Video code stream switching method and device, and electronic device
CN106412664A (en) * 2016-10-08 2017-02-15 广东欧珀移动通信有限公司 Multimedia synchronous play method, device and system, and terminal
CN107087210A (en) * 2017-03-30 2017-08-22 青岛海信电器股份有限公司 The method and terminal of video broadcasting condition are judged based on cache-time
CN107205160A (en) * 2017-06-27 2017-09-26 青岛海信电器股份有限公司 A kind of player method and device of the video issued for server
CN107347065A (en) * 2017-06-29 2017-11-14 上海鋆创信息技术有限公司 A kind of data push method and device, a kind of terminal and storage medium
CN107396171A (en) * 2017-07-24 2017-11-24 广州酷狗计算机科技有限公司 Live network broadcast method, device and storage medium
CN107454458A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 A kind of video data caching method, equipment and storage medium
WO2018001114A1 (en) * 2016-06-28 2018-01-04 阿里巴巴集团控股有限公司 Method and device for processing data
CN108668146A (en) * 2017-03-27 2018-10-16 华为技术有限公司 A kind of method and apparatus of adjustment streaming media bit rate
CN108810656A (en) * 2018-06-12 2018-11-13 深圳国微视安科技有限公司 A kind of the debounce processing method and processing system of real-time live broadcast TS streams
CN109194975A (en) * 2018-11-02 2019-01-11 深圳市云威物联科技有限公司 Audio-video live streaming chases after stream method and device
CN109561347A (en) * 2017-09-27 2019-04-02 中国移动通信集团山东有限公司 A kind of internet video play quality determination method and system
CN110062249A (en) * 2019-05-13 2019-07-26 东莞康佳电子有限公司 A method of promoting high-definition intelligent picture quality of television fluency
CN110324710A (en) * 2018-03-30 2019-10-11 深圳Tcl新技术有限公司 A kind of method, apparatus and storage medium calculating video code rate
CN110662109A (en) * 2019-09-29 2020-01-07 咪咕动漫有限公司 Video playing method, electronic equipment and computer readable storage medium
CN110771173A (en) * 2018-07-31 2020-02-07 深圳市大疆创新科技有限公司 Video display control method, device, and computer-readable storage medium
CN111294634A (en) * 2020-02-27 2020-06-16 腾讯科技(深圳)有限公司 Live broadcast method, device, system, equipment and computer readable storage medium
CN111372125A (en) * 2020-03-18 2020-07-03 浩云科技股份有限公司 Video cache processing method and device of decoder and storage medium
CN113891155A (en) * 2021-09-29 2022-01-04 百果园技术(新加坡)有限公司 Video playing gear determining method, video playing method and related device
CN115022667A (en) * 2022-06-28 2022-09-06 武汉斗鱼鱼乐网络科技有限公司 Live broadcast control method and related equipment
CN115361585A (en) * 2022-08-19 2022-11-18 广州市百果园信息技术有限公司 Video playing pause prediction method, device, equipment and storage medium
CN117376609A (en) * 2023-09-21 2024-01-09 北京国际云转播科技有限公司 Video synchronization method and device and video playing equipment
CN117615166A (en) * 2023-11-23 2024-02-27 北京流金岁月传媒科技股份有限公司 Network code stream recovery method, system, medium and FPGA chip

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665751B1 (en) * 1999-04-17 2003-12-16 International Business Machines Corporation Streaming media player varying a play speed from an original to a maximum allowable slowdown proportionally in accordance with a buffer state
CN1937778A (en) * 2005-09-20 2007-03-28 腾讯科技(深圳)有限公司 Flow media playing method, system and device
US20100299443A1 (en) * 2007-09-25 2010-11-25 Maowei Hu Method, System and Device for Playing Streaming Media
CN103051955A (en) * 2012-12-21 2013-04-17 华为技术有限公司 Method and device for playing streaming media
CN103731720A (en) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 Method and device for caching multimedia data of smart television

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665751B1 (en) * 1999-04-17 2003-12-16 International Business Machines Corporation Streaming media player varying a play speed from an original to a maximum allowable slowdown proportionally in accordance with a buffer state
CN1937778A (en) * 2005-09-20 2007-03-28 腾讯科技(深圳)有限公司 Flow media playing method, system and device
US20100299443A1 (en) * 2007-09-25 2010-11-25 Maowei Hu Method, System and Device for Playing Streaming Media
CN103051955A (en) * 2012-12-21 2013-04-17 华为技术有限公司 Method and device for playing streaming media
CN103731720A (en) * 2013-11-25 2014-04-16 乐视致新电子科技(天津)有限公司 Method and device for caching multimedia data of smart television

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105550523A (en) * 2015-12-28 2016-05-04 上海携程商务有限公司 Data processing method
CN105812902A (en) * 2016-03-17 2016-07-27 联发科技(新加坡)私人有限公司 Data play method, device and system
US10147440B2 (en) 2016-03-17 2018-12-04 Mediatek Singapore Pte. Ltd. Method for playing data and apparatus and system thereof
CN105959734A (en) * 2016-05-05 2016-09-21 苏州花坞信息科技有限公司 On-line video playing method for avoiding stuttering videos
CN105959734B (en) * 2016-05-05 2019-04-26 广州珠江在线多媒体信息有限公司 A kind of anti-sticking disconnected Online Video playback method
WO2018001114A1 (en) * 2016-06-28 2018-01-04 阿里巴巴集团控股有限公司 Method and device for processing data
US10694220B2 (en) 2016-06-28 2020-06-23 Alibaba Group Holding Limited Method and device for processing data
CN106412664A (en) * 2016-10-08 2017-02-15 广东欧珀移动通信有限公司 Multimedia synchronous play method, device and system, and terminal
CN106412664B (en) * 2016-10-08 2019-08-13 Oppo广东移动通信有限公司 Multimedia synchronous plays method, apparatus, terminal and system
CN106412676A (en) * 2016-10-21 2017-02-15 乐视控股(北京)有限公司 Video code stream switching method and device, and electronic device
CN108668146B (en) * 2017-03-27 2021-07-16 华为技术有限公司 Method and equipment for adjusting streaming media code rate
CN108668146A (en) * 2017-03-27 2018-10-16 华为技术有限公司 A kind of method and apparatus of adjustment streaming media bit rate
CN107087210A (en) * 2017-03-30 2017-08-22 青岛海信电器股份有限公司 The method and terminal of video broadcasting condition are judged based on cache-time
CN107087210B (en) * 2017-03-30 2020-04-14 青岛海信电器股份有限公司 Method and terminal for judging video playing state based on cache time
CN107205160A (en) * 2017-06-27 2017-09-26 青岛海信电器股份有限公司 A kind of player method and device of the video issued for server
CN107347065A (en) * 2017-06-29 2017-11-14 上海鋆创信息技术有限公司 A kind of data push method and device, a kind of terminal and storage medium
CN107396171A (en) * 2017-07-24 2017-11-24 广州酷狗计算机科技有限公司 Live network broadcast method, device and storage medium
CN107454458A (en) * 2017-08-30 2017-12-08 努比亚技术有限公司 A kind of video data caching method, equipment and storage medium
CN109561347B (en) * 2017-09-27 2022-01-25 中国移动通信集团山东有限公司 Internet video playing quality judgment method and system
CN109561347A (en) * 2017-09-27 2019-04-02 中国移动通信集团山东有限公司 A kind of internet video play quality determination method and system
CN110324710A (en) * 2018-03-30 2019-10-11 深圳Tcl新技术有限公司 A kind of method, apparatus and storage medium calculating video code rate
CN108810656A (en) * 2018-06-12 2018-11-13 深圳国微视安科技有限公司 A kind of the debounce processing method and processing system of real-time live broadcast TS streams
CN110771173A (en) * 2018-07-31 2020-02-07 深圳市大疆创新科技有限公司 Video display control method, device, and computer-readable storage medium
CN109194975B (en) * 2018-11-02 2021-04-20 深圳市云威物联科技有限公司 Audio and video live broadcast stream following method and device
CN109194975A (en) * 2018-11-02 2019-01-11 深圳市云威物联科技有限公司 Audio-video live streaming chases after stream method and device
CN110062249A (en) * 2019-05-13 2019-07-26 东莞康佳电子有限公司 A method of promoting high-definition intelligent picture quality of television fluency
CN110662109A (en) * 2019-09-29 2020-01-07 咪咕动漫有限公司 Video playing method, electronic equipment and computer readable storage medium
CN111294634A (en) * 2020-02-27 2020-06-16 腾讯科技(深圳)有限公司 Live broadcast method, device, system, equipment and computer readable storage medium
CN111294634B (en) * 2020-02-27 2022-02-18 腾讯科技(深圳)有限公司 Live broadcast method, device, system, equipment and computer readable storage medium
CN111372125A (en) * 2020-03-18 2020-07-03 浩云科技股份有限公司 Video cache processing method and device of decoder and storage medium
CN113891155A (en) * 2021-09-29 2022-01-04 百果园技术(新加坡)有限公司 Video playing gear determining method, video playing method and related device
CN113891155B (en) * 2021-09-29 2024-04-05 百果园技术(新加坡)有限公司 Video playing gear determining method, video playing method and related devices
CN115022667A (en) * 2022-06-28 2022-09-06 武汉斗鱼鱼乐网络科技有限公司 Live broadcast control method and related equipment
CN115361585A (en) * 2022-08-19 2022-11-18 广州市百果园信息技术有限公司 Video playing pause prediction method, device, equipment and storage medium
CN115361585B (en) * 2022-08-19 2023-11-07 广州市百果园信息技术有限公司 Video playing and clamping prediction method, device, equipment and storage medium
CN117376609A (en) * 2023-09-21 2024-01-09 北京国际云转播科技有限公司 Video synchronization method and device and video playing equipment
CN117615166A (en) * 2023-11-23 2024-02-27 北京流金岁月传媒科技股份有限公司 Network code stream recovery method, system, medium and FPGA chip

Also Published As

Publication number Publication date
CN105100876B (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN105100876A (en) Streaming media playing method and device
US9510043B2 (en) Pre-buffering audio streams
KR20120049604A (en) Method and apparatus for managing memory of a mobile device
CN106791898B (en) Live video loading method and device
CN104244083A (en) Online video downloading method and electronic device
KR20150065069A (en) Display apparatus, method for displaying image thereof and computer-readable recording medium
CN105393544A (en) Dynamic track switching in media streaming
CN106791930B (en) Video processing method and device
CN106062662A (en) System and method for providing power-saving static image display refresh in a DRAM memory system
CN105553939A (en) Method and device for determining blockage of streaming media
JP6043825B2 (en) Information processing apparatus, information processing method, information processing program, and distribution apparatus
CN103294782A (en) Data display method and device
CN111538678A (en) Data buffering method, device and computer readable storage medium
US10782888B2 (en) Method and device for improving file system write bandwidth through hard disk track management
CN108259998A (en) Player and control method for playing back, device, electronic equipment and play system
US8648870B1 (en) Method and apparatus for performing frame buffer rendering of rich internet content on display devices
CN110740374B (en) Multimedia data processing method and device, computer equipment and storage medium
TW201445987A (en) Transmitting information based on reading speed
CN110636372B (en) Video decoding method, video playing device, electronic equipment and storage medium
US20080058973A1 (en) Music playback system and music playback machine
CN104202309A (en) Data transmission control method and apparatus
WO2023083213A1 (en) Data decoding method and apparatus, electronic device and readable storage medium
CN101594477B (en) Processing system of ultralong caption rendering
JP2014056404A (en) Communication system, and terminal device
KR101879439B1 (en) Method for video service using adaptive bitrate

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant