CN104023264A - Method and device for playing video - Google Patents

Method and device for playing video Download PDF

Info

Publication number
CN104023264A
CN104023264A CN201410289349.1A CN201410289349A CN104023264A CN 104023264 A CN104023264 A CN 104023264A CN 201410289349 A CN201410289349 A CN 201410289349A CN 104023264 A CN104023264 A CN 104023264A
Authority
CN
China
Prior art keywords
video file
video
code stream
target video
demand
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
CN201410289349.1A
Other languages
Chinese (zh)
Other versions
CN104023264B (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 CN201410289349.1A priority Critical patent/CN104023264B/en
Publication of CN104023264A publication Critical patent/CN104023264A/en
Application granted granted Critical
Publication of CN104023264B publication Critical patent/CN104023264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention discloses a method and device for playing a video. The method for playing the video comprises the steps: when the target video is played online, determining the relationship between the loading rate of the currently played video file and the loading rate requirements on the code stream of the video file; if the loading rate of the currently played video file is less than the minimum requirements on the code stream of the video file and the time of duration reaches a preset first time threshold, then detecting whether a video file meeting the first switching requirement exists or not in the target video; according to detection results, switching to the corresponding playing mode and playing the target video. According to the technical scheme provided by the embodiment of the invention, during the online playing of the target video, whether to switch to another playing mode is determined according to the current network environment, and if necessary, in accordance with the switch strategy, the corresponding video file is switched and played, the degree of the playing fluency of the video is ensured to the larger extent and the user experience is enhanced.

Description

A kind of video broadcasting method and device
Technical field
The present invention relates to video playback technical field, particularly a kind of video broadcasting method and device.
Background technology
Now, people's rhythm of life is more and more faster, after busy work and life, on computer, mobile phone or panel computer, with video player, looks at video, has become a kind of mode of the pastime of lying fallow.
Existing video player, when playing video file, is play according to user-selected broadcast mode, such as, user selects offline mode, according to offline mode, plays; In online displaying video process, user selects SD, according to the code stream of SD video file, plays.
Place one's entire reliance upon user's the selection of this player method,, in primary video playing process, which kind of broadcast mode user has selected to use this broadcast mode always.Have so certain problem, user-selected broadcast mode is not necessarily applicable to current network environment.Such as user select super clear, unstable when network environment, while being not enough to meet the minimum loading speed of the corresponding code stream of super clear video file, be easy to occur video Caton phenomenon.In fact, most users is when seeing video, and what more focus on is the smooth degree of video playback, if always there is video Caton phenomenon in seeing video process, can affect to a great extent user and experience.
Summary of the invention
For addressing the above problem, the embodiment of the invention discloses a kind of video broadcasting method and device.Technical scheme is as follows:
A video broadcasting method, comprising:
Online broadcasting in target video process, judges the loading speed of video file of current broadcasting and the relation that the loading speed of this video file code stream requires;
If the loading speed of the video file of current broadcasting reaches default very first time threshold value lower than minimum loading speed requirement and the duration of this video file code stream, detect described target video and whether exist and meet the first video file that switches demand, describedly meet the first video file that switches demand and be: and code stream identical with the video file content of current broadcasting is lower than the video file of the code stream of the video file of current broadcasting;
According to testing result, switch to corresponding broadcast mode and play this target video.
In a kind of embodiment of the present invention, described according to testing result, switch to corresponding broadcast mode and play this target video, comprising:
If testing result is: have the video file that meets the first switching demand, switch to the described video file that meets the first switching demand and play.
In a kind of embodiment of the present invention, described according to testing result, switch to corresponding broadcast mode and play this target video, comprising:
If testing result is: do not have the video file that meets the first switching demand, detect the local off-line files corresponding with target video that whether have;
If there is corresponding off-line files, switch to offline mode, with offline mode, play this target video.
In a kind of embodiment of the present invention, also comprise:
Receive after video playback instruction, read target video information;
According to described target video information inspection this locality, whether there is corresponding off-line files;
If there is corresponding off-line files, read the broadcast address of off-line files, with offline mode, play this target video, otherwise play with online mode.
In a kind of embodiment of the present invention, also comprise:
At off-line or play online in target video process,
If receive broadcast mode switching command, according to this instruction, switch to corresponding broadcast mode and play described target video.
In a kind of embodiment of the present invention, after the loading speed of video file of the current broadcasting of described judgement and the relation of the loading speed of this video file code stream requirement, also comprise:
If the loading speed of the video file of current broadcasting requires higher than the high loading rate of this video file code stream and the duration reaches the second default time threshold, detect described target video and whether exist and meet the second video file that switches demand, describedly meet the second video file that switches demand and be: and code stream identical with the video file content of current broadcasting is higher than the video file of the code stream of the video file of current broadcasting;
If existed, switch to the described video file that meets the second switching demand and play.
A video play device, comprising:
Loading speed is related to judge module, for the online target video process of playing, judges the loading speed of video file of current broadcasting and the relation that the loading speed of this video file code stream requires;
First switches demand video file detection module, for in the situation that the loading speed of the video file of current broadcasting requires lower than the minimum loading speed of this video file code stream and the duration reaches default very first time threshold value, detect described target video and whether exist and meet the first video file that switches demand, describedly meet the first video file that switches demand and be: and code stream identical with the video file content of current broadcasting is lower than the video file of the code stream of the video file of current broadcasting;
The first broadcast mode handover module, for according to the testing result of described the first switching demand video file detection module, switches to corresponding broadcast mode and plays this target video.
In a kind of embodiment of the present invention, described the first broadcast mode handover module, specifically for:
In the situation that testing result is: have the video file that meets the first switching demand, switch to the described video file that meets the first switching demand and play.
In a kind of embodiment of the present invention, described the first broadcast mode handover module, comprising:
Off-line files detection sub-module, in the situation that testing result be: do not exist and meet the first video file that switches demand, detect the local off-line files corresponding with target video that whether have;
Off-line files is play submodule, for having corresponding off-line files in the situation that off-line files detection sub-module detects, switches to offline mode, with offline mode, plays this target video file.
In a kind of embodiment of the present invention, also comprise:
Target video read module, for receiving after video playback instruction, reads target video information;
Whether off-line files detection module, have corresponding off-line files for the target video information inspection this locality of reading according to described target video read module;
File playing module, for having corresponding off-line files in the situation that described off-line files detection module detects, reads the broadcast address of off-line files, plays this target video, otherwise play with online mode with offline mode.
In a kind of embodiment of the present invention, also comprise:
Switching command respond module, at off-line or play online target video process, if receive broadcast mode switching command, switches to corresponding broadcast mode according to this instruction and plays described target video.
In a kind of embodiment of the present invention, also comprise:
Second switches demand video file detection module, for in the situation that described loading speed is related to that judge module judgment result is that: the loading speed of the video file of current broadcasting requires higher than the high loading rate of this video file code stream and the duration reaches the second default time threshold, detect described target video and whether exist and meet the second video file that switches demand, describedly meet the second video file that switches demand and be: and code stream identical with the video file content of current broadcasting is higher than the video file of the code stream of the video file of current broadcasting;
The second broadcast mode handover module, for having in the situation that described the second switching demand video file detection module detects the video file that meets the second switching demand, switches to the described video file that meets the second switching demand and plays.
The technical scheme that the embodiment of the present invention provides, in online displaying video process, judges whether to switch to other broadcast modes according to current network environment, if needed, according to switchover policy, is switched to corresponding video file and plays.Compared with prior art, guarantee largely the smooth degree of video playback, promoted user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Figure 1 shows that a kind of implementing procedure figure of video broadcasting method in the embodiment of the present invention;
Figure 2 shows that in the embodiment of the present invention, the first switching demand video file detects implementing procedure figure;
Figure 3 shows that the another kind of implementing procedure figure of video broadcasting method in the embodiment of the present invention;
Figure 4 shows that the another kind of implementing procedure figure of video broadcasting method in the embodiment of the present invention;
Figure 5 shows that a kind of structural representation of video play device in the embodiment of the present invention;
Figure 6 shows that the another kind of structural representation of video play device in the embodiment of the present invention;
Figure 7 shows that the another kind of structural representation of video play device in the embodiment of the present invention.
Embodiment
First a kind of video broadcasting method embodiment of the present invention being provided describes, and the method can comprise the following steps:
Online broadcasting in target video process, judges the loading speed of video file of current broadcasting and the relation that the loading speed of this video file code stream requires;
If the loading speed of the video file of current broadcasting reaches default very first time threshold value lower than minimum loading speed requirement and the duration of this video file code stream, detect described target video and whether exist and meet the first video file that switches demand, describedly meet the first video file that switches demand and be: and code stream identical with the video file content of current broadcasting is lower than the video file of the code stream of the video file of current broadcasting;
According to testing result, switch to corresponding broadcast mode and play this target video.
Internet era, video resource is more and more, after busy work and life, watches video, has become a kind of mode of the pastime of lying fallow.In the comparatively stable fixed location of network environment, be relatively applicable to watching online video, but not necessarily always stopping at certain place, user watches video, because along with the fast development of mobile terminal, for user provides the mode of watching more easily video.When user when riding public transportation means, wait for bus or etc. people need to kill time time, while having important race, may have the demand of watching video.
User is when watching video, what more focus on is the smooth degree of video playback, so play online in target video process, if network environment changes, especially during network environment variation, be not enough to meet the desired minimum loading speed of code stream of the video file of current broadcasting, and the duration reached default threshold value, will consider to switch to the demand that corresponding broadcast mode can meet smooth playing target video.If at this net environment, also with the code stream of the video file of current broadcasting, play always, easily there is video Caton phenomenon, affect user and experience.
The technical scheme that the embodiment of the present invention provides, in online displaying video process, judges whether to switch to other broadcast modes according to current network environment, if needed, according to switchover policy, is switched to corresponding video file and plays.The smooth degree that has guaranteed largely video playback, has promoted user's experience.
In order to make those skilled in the art understand better the technical scheme in the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Shown in Fig. 1, be a kind of implementing procedure figure of video broadcasting method of the present invention, it can comprise following basic step:
S110, plays in target video process online, judges the loading speed of video file of current broadcasting and the relation that the loading speed of this video file code stream requires;
So-called video, makes a general reference the various technology that a series of static images are caught, record, process, store, transmit or reappear in signal of telecommunication mode.The development of Internet technology impels all kinds of videos be present on network and can received and play by computer or mobile terminal.
So-called code stream, refers to the data traffic that video file is used within the unit interval, also referred to as code check, is the most important part of in Video coding, image quality being controlled.Under same resolution, the code stream of video file is higher, and compression ratio is less, and image quality is just better.Visible, the video file of high code stream definition when playing is high, also high to the requirement of network environment.
Can there is the video file of a plurality of different code streams in same target video, namely, low code stream, high code stream have thinks corresponding video file, and the loading speed of different video file code stream exists a speed range.Online broadcasting in target video process, variation along with current network environment, the loading speed of the video file of current broadcasting changes thereupon, when the loading speed of the video file of current broadcasting reaches the minimum speed limit that the loading speed of this video file code stream requires, can use this code stream video file to play; In the time can not reaching the minimum speed limit that the loading speed of this video file code stream requires, if use this code stream video file to play, there will be video Caton phenomenon.
So, play online in target video process, judge that the loading speed of video file of current broadcasting and the Relationship Comparison that the loading speed of this video file code stream requires are important, can further determine whether to carry out by judged result the switching of other broadcast modes.
S120, if the loading speed of the video file of current broadcasting reaches default very first time threshold value lower than minimum loading speed requirement and the duration of this video file code stream, detect described target video and whether have the video file that meets the first switching demand;
Describedly meet the first video file that switches demand and be: and code stream identical with the video file content of current broadcasting is lower than the video file of the code stream of the video file of current broadcasting.
A kind of judged result of step S110, the loading speed that is the video file of current broadcasting requires lower than the minimum loading speed of this video file code stream and the duration reaches default very first time threshold value, according to this judged result, can further detect described target video and whether have the video file that meets the first switching demand.
If network environment changes, the loading speed of the video file of current broadcasting also can change thereupon, if the loading speed of the video file of current broadcasting is lower than the minimum loading speed requirement of this video file code stream, show that current network environment has not reached the requirement of minimum loading speed of the video file code stream of current broadcasting, duration reaches default very first time threshold value, such as default very first time threshold value is 5 seconds, will detection trigger target video whether exist and meet the first step of switching the video file of demand.
Default very first time threshold value can arrange as the case may be, and the present invention is not construed as limiting this, and those skilled in the art can, according to the common practise of this area and common technology means, set in advance very first time threshold value.If what arrange is bigger than normal, video card is longer immediately, and user experiences not good; If what arrange is less than normal, network environment may be moment variation then take a turn for the better again, can cause too early performance objective video whether to have the detecting step of the video file of satisfied the first switching demand, thereby according to testing result, may be switched to the video file of the code stream lower than the code stream of the video file of current broadcasting, can not make full use of existing real network resource.
S130, according to testing result, switches to corresponding broadcast mode and plays this target video;
According to the testing result of step S120, switch to corresponding broadcast mode and play this target video.
Switch step is carried out on backstage, if the default very first time threshold value setting in step S200 is reasonable, from the user point of view, the target video of watching is being play always.
The technical scheme that the embodiment of the present invention provides, in online displaying video process, judges whether to switch to other broadcast modes according to current network environment, if needed, is switched to corresponding video file plays according to switchover policy.The smooth degree that has guaranteed largely video playback, has promoted user's experience.
Shown in Figure 2, be the implementing procedure figure that in step S120, the first switching demand video file detects, step S130a and step S131 are respectively the two kinds of situations whether described target video exists the testing result of the video file that meets the first switching demand that detect.
In a kind of embodiment of the present invention, if for there is the video file that meets the first switching demand in the testing result of step S120, exist the identical and code stream of video file content with current broadcasting lower than the video file of the code stream of the video file of current broadcasting, can perform step S130a.
S130a, switches to the described video file that meets the first switching demand and plays;
As previously mentioned, can there is the video file of a plurality of different code streams in same target video, when network environment poor, the loading speed of the video file of current broadcasting reaches default very first time during threshold value lower than the minimum loading speed of this video file code stream and duration, target video detected and have the video file that meets the first switching demand, exist the identical and code stream of video file content with current broadcasting lower than the video file of the code stream of the video file of current broadcasting, switch to the video file that meets the first switching demand and play.
Be understandable that, the height of code stream is relative concept, if there is the video file of two code streams lower than the code stream of the video file of current broadcasting in target video, can be according to order from high to low, the video file that is switched to code stream higher in these two code streams is play, namely, in the situation that network environment allows, play as far as possible the video file of high code stream, for user brings better viewing effect.
In another kind of embodiment of the present invention, if for there is not the video file that meets the first switching demand in the testing result of step S120, do not exist the identical and code stream of video file content with current broadcasting lower than the video file of the code stream of the video file of current broadcasting, can perform step S131 and step S132.
S131, detects the local off-line files corresponding with target video that whether have;
S132, if there is corresponding off-line files, switches to offline mode, with offline mode, plays this target video file.
As previously mentioned, can there is the video file of a plurality of different code streams in same target video, online broadcasting in target video process, when network environment poor, the loading speed of the video file of current broadcasting is lower than the minimum loading speed of this video file code stream, and the duration reaches default very first time during threshold value, the video file that target video does not exist the code stream lower than the code stream of the video file of current broadcasting detected, namely the video file of not low than the code stream of the video file of current broadcasting code stream can switch, can further detect the local off-line files corresponding with target video that whether have, if there is corresponding off-line files, switch to offline mode, with offline mode, play this target video.
Shown in Figure 3, in a kind of specific embodiment of the present invention, at step S110, play online in target video process, after judging the loading speed of video file of current broadcasting and the relation of the loading speed of this video file code stream requirement, can also comprise following two steps:
S140, if the loading speed of the video file of current broadcasting requires higher than the high loading rate of this video file code stream and the duration reaches the second default time threshold, detect described target video and whether exist and meet the second video file that switches demand;
Describedly meet the second video file that switches demand and be: and code stream identical with the video file content of current broadcasting is higher than the video file of the code stream of the video file of current broadcasting.
S150, if existed, switches to the described video file that meets the second switching demand and plays.
Internet era, network quality promotes gradually, the 4G epoch arrive, under 4G network, can quick data transfering, high-quality audio plays, video file etc.When user is in mobile status, when network environment is taken a turn for the better by difference, once the loading speed of the video file of current broadcasting is higher than the high loading rate requirement of this video file code stream, and the duration reaches the second default time threshold, the second default time threshold can be 10 seconds, detect described target video and whether have the video file that meets the second switching demand, if existed, switching to the described video file that meets the second switching demand plays, namely be switched to more identical than the video file content of current broadcasting, and code stream is higher than the video file of the code stream of the video file of current broadcasting.
Be understandable that, the second default time threshold can be identical with very first time threshold value, also can be different, and the present invention is not construed as limiting this, and those skilled in the art can, according to practical application request, set in advance the second time threshold.
Meet user to the Demand Base of fluency on, definition is also important for user, when so network environment being detected and can meet the video file of high code stream more, automatically switch to high code stream video file and play, the experience that can provide more smooth, watch more clearly video for user.
Shown in Figure 4, in a kind of specific embodiment of the present invention, can also comprise the following steps:
S210, receives after video playback instruction, reads target video information;
In actual applications, for network traffics limited users, more careful for the use of network traffics, also relatively mind whether be with online mode playing video file, so before playing target video online, can first carry out this step.
User sends play instruction to interested target video, and user clicks the link of corresponding video file, receives after this instruction, first reads target video relevant information, as video name, video id etc.
S220, checks the local corresponding off-line files that whether has;
According to the target video information reading, in this locality, as computer or mobile terminal, check and whether have corresponding off-line files.
Off-line files can be that user downloads in advance and be saved in local video file in the better situation of network environment, can also be that user synchronously downloads and be saved in local video file while watching target video online.
If local, preserve the off-line files corresponding with target video, perform step S230, if there is no corresponding off-line files, perform step S240.
S230, reads the broadcast address of off-line files, with offline mode, plays this target video;
If local, preserve the off-line files corresponding with target video, can read the broadcast address of this off-line files, with offline mode, play this target video.Can save more network traffics for user like this.
S240, plays with online mode;
If local, do not have to preserve the off-line files corresponding with target video, in the situation that network environment can be used, can play this target video with online mode, and then execution step S110.
Before playing target video, first in this locality, check whether there be the off-line files corresponding with target video, if had, preferentially select off-line files to play, for user has saved data traffic.
Certainly, at off-line or play online in target video process, if receive broadcast mode switching command, according to this instruction, switch to corresponding broadcast mode and play described target video.
Common audio/video player system can provide option to play target video by which kind of broadcast mode of user's active choice for use.General option is smoothness, high definition, super clear, local.Smoothness, high definition, super sorting be the video file of the different code streams of corresponding file destination not, the local corresponding local off-line files corresponding with target video of preserving.
For better understanding, with instantiation, describe:
First example, off-line is play in target video process, user thinks that the code stream of the local off-line files of preserving is not enough to meet the demand of oneself, and the network environment in own region of living in is better, user can initiatively select the video file of code stream corresponding to high definition, according to user-selected video file, plays online;
Second example, plays in target video process online, and user thinks that the code stream of current in progress video file can not meet the demand of oneself, can initiatively select a kind of video file of high code stream, according to user-selected video file, plays.
Different user is different for the quality requirement of video playback, provides option initiatively to select for user, and then is switched to user-selected video file continuation broadcasting, more meets user's actual use habit.
Corresponding to embodiment of the method above, the embodiment of the present invention also provides a kind of video play device, shown in Figure 5, and this device can comprise:
Loading speed is related to judge module 110, for the online target video process of playing, judges the loading speed of video file of current broadcasting and the relation that the loading speed of this video file code stream requires;
First switches demand video file detection module 120, for in the situation that the loading speed of the video file of current broadcasting requires lower than the minimum loading speed of this video file code stream and the duration reaches default very first time threshold value, detect described target video and whether exist and meet the first video file that switches demand, describedly meet the first video file that switches demand and be: and code stream identical with the video file content of current broadcasting is lower than the video file of the code stream of the video file of current broadcasting;
The first broadcast mode handover module 130, for according to the testing result of described the first switching demand video file detection module, switches to corresponding broadcast mode and plays this target video.
A kind of video play device that the embodiment of the present invention provides, in online displaying video process, judges whether to switch to other broadcast modes according to current network environment, if needed, is switched to corresponding video file plays according to switchover policy.The smooth degree that has guaranteed largely video playback, has promoted user's experience.
In a kind of embodiment of the present invention, described the first broadcast mode handover module 130, specifically for:
In the situation that testing result is: have the video file that meets the first switching demand, switch to the described video file that meets the first switching demand and play.
In another kind of embodiment of the present invention, described the first broadcast mode handover module 130, can comprise following two submodules:
Off-line files detection sub-module, in the situation that testing result be: do not exist and meet the first video file that switches demand, detect the local off-line files corresponding with target video that whether have;
Off-line files is play submodule, for having corresponding off-line files in the situation that off-line files detection sub-module detects, switches to offline mode, with offline mode, plays this target video file.
Shown in Figure 6, in another embodiment of the invention, can also comprise following three modules:
Target video read module 210, for receiving after video playback instruction, reads target video information;
Whether off-line files detection module 220, have corresponding off-line files for the target video information inspection this locality of reading according to described target video read module;
File playing module 230, for having corresponding off-line files in the situation that described off-line files detection module detects, reads the broadcast address of off-line files, plays this target video, otherwise play with online mode with offline mode.
In another embodiment of the invention, can also comprise:
Switching command respond module, at off-line or play online target video process, if receive broadcast mode switching command, switches to corresponding broadcast mode according to this instruction and plays described target video.
Shown in Figure 7, in another embodiment of the invention, can also comprise:
Second switches demand video file detection module 140, for in the situation that described loading speed is related to that judge module judgment result is that: the loading speed of the video file of current broadcasting requires higher than the high loading rate of this video file code stream and the duration reaches the second default time threshold, detect described target video and whether exist and meet the second video file that switches demand, describedly meet the second video file that switches demand and be: and code stream identical with the video file content of current broadcasting is higher than the video file of the code stream of the video file of current broadcasting;
The second broadcast mode handover module 150, for having in the situation that described the second switching demand video file detection module 140 detects the video file that meets the second switching demand, switches to the described video file that meets the second switching demand and plays.
It should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually referring to, each embodiment stresses is the difference with other embodiment.Especially, for device embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realizing in said method execution mode is to come the hardware that instruction is relevant to complete by program, described program can be stored in computer read/write memory medium, here alleged storage medium, 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 modifications of doing within the spirit and principles in the present invention, be equal to replacement, improvement etc., be all included in protection scope of the present invention.

Claims (12)

1. a video broadcasting method, is characterized in that, comprising:
Online broadcasting in target video process, judges the loading speed of video file of current broadcasting and the relation that the loading speed of this video file code stream requires;
If the loading speed of the video file of current broadcasting reaches default very first time threshold value lower than minimum loading speed requirement and the duration of this video file code stream, detect described target video and whether exist and meet the first video file that switches demand, describedly meet the first video file that switches demand and be: and code stream identical with the video file content of current broadcasting is lower than the video file of the code stream of the video file of current broadcasting;
According to testing result, switch to corresponding broadcast mode and play this target video.
2. method according to claim 1, is characterized in that, described according to testing result, switches to corresponding broadcast mode and plays this target video, comprising:
If testing result is: have the video file that meets the first switching demand, switch to the described video file that meets the first switching demand and play.
3. method according to claim 1, is characterized in that, described according to testing result, switches to corresponding broadcast mode and plays this target video, comprising:
If testing result is: do not have the video file that meets the first switching demand, detect the local off-line files corresponding with target video that whether have;
If there is corresponding off-line files, switch to offline mode, with offline mode, play this target video.
4. method according to claim 1, is characterized in that, also comprises:
Receive after video playback instruction, read target video information;
According to described target video information inspection this locality, whether there is corresponding off-line files;
If there is corresponding off-line files, read the broadcast address of off-line files, with offline mode, play this target video, otherwise play with online mode.
5. according to the method described in claim 1 to 4 any one, it is characterized in that, also comprise:
At off-line or play online in target video process,
If receive broadcast mode switching command, according to this instruction, switch to corresponding broadcast mode and play described target video.
6. method according to claim 1, is characterized in that, after the loading speed of video file of the current broadcasting of described judgement and the relation of the loading speed of this video file code stream requirement, also comprises:
If the loading speed of the video file of current broadcasting requires higher than the high loading rate of this video file code stream and the duration reaches the second default time threshold, detect described target video and whether exist and meet the second video file that switches demand, describedly meet the second video file that switches demand and be: and code stream identical with the video file content of current broadcasting is higher than the video file of the code stream of the video file of current broadcasting;
If existed, switch to the described video file that meets the second switching demand and play.
7. a video play device, is characterized in that, comprising:
Loading speed is related to judge module, for the online target video process of playing, judges the loading speed of video file of current broadcasting and the relation that the loading speed of this video file code stream requires;
First switches demand video file detection module, for in the situation that the loading speed of the video file of current broadcasting requires lower than the minimum loading speed of this video file code stream and the duration reaches default very first time threshold value, detect described target video and whether exist and meet the first video file that switches demand, describedly meet the first video file that switches demand and be: and code stream identical with the video file content of current broadcasting is lower than the video file of the code stream of the video file of current broadcasting;
The first broadcast mode handover module, for according to the testing result of described the first switching demand video file detection module, switches to corresponding broadcast mode and plays this target video.
8. device according to claim 7, is characterized in that, described the first broadcast mode handover module, specifically for:
In the situation that testing result is: have the video file that meets the first switching demand, switch to the described video file that meets the first switching demand and play.
9. device according to claim 7, is characterized in that, described the first broadcast mode handover module, comprising:
Off-line files detection sub-module, in the situation that testing result be: do not exist and meet the first video file that switches demand, detect the local off-line files corresponding with target video that whether have;
Off-line files is play submodule, for having corresponding off-line files in the situation that off-line files detection sub-module detects, switches to offline mode, with offline mode, plays this target video file.
10. device according to claim 7, is characterized in that, also comprises:
Target video read module, for receiving after video playback instruction, reads target video information;
Whether off-line files detection module, have corresponding off-line files for the target video information inspection this locality of reading according to described target video read module;
File playing module, for having corresponding off-line files in the situation that described off-line files detection module detects, reads the broadcast address of off-line files, plays this target video, otherwise play with online mode with offline mode.
11. according to the device described in claim 7 to 10 any one, it is characterized in that, also comprises:
Switching command respond module, at off-line or play online target video process, if receive broadcast mode switching command, switches to corresponding broadcast mode according to this instruction and plays described target video.
12. devices according to claim 7, is characterized in that, also comprise:
Second switches demand video file detection module, for in the situation that described loading speed is related to that judge module judgment result is that: the loading speed of the video file of current broadcasting requires higher than the high loading rate of this video file code stream and the duration reaches the second default time threshold, detect described target video and whether exist and meet the second video file that switches demand, describedly meet the second video file that switches demand and be: and code stream identical with the video file content of current broadcasting is higher than the video file of the code stream of the video file of current broadcasting;
The second broadcast mode handover module, for having in the situation that described the second switching demand video file detection module detects the video file that meets the second switching demand, switches to the described video file that meets the second switching demand and plays.
CN201410289349.1A 2014-06-24 2014-06-24 A kind of video broadcasting method and device Active CN104023264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410289349.1A CN104023264B (en) 2014-06-24 2014-06-24 A kind of video broadcasting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410289349.1A CN104023264B (en) 2014-06-24 2014-06-24 A kind of video broadcasting method and device

Publications (2)

Publication Number Publication Date
CN104023264A true CN104023264A (en) 2014-09-03
CN104023264B CN104023264B (en) 2018-08-07

Family

ID=51439800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410289349.1A Active CN104023264B (en) 2014-06-24 2014-06-24 A kind of video broadcasting method and device

Country Status (1)

Country Link
CN (1) CN104023264B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796956A (en) * 2015-04-23 2015-07-22 陆俊 Mobile terminal network switching method and mobile terminal
CN105025344A (en) * 2015-07-22 2015-11-04 无锡天脉聚源传媒科技有限公司 Inter-cut method and device
CN105160697A (en) * 2015-08-28 2015-12-16 联想(北京)有限公司 Information processing method and electronic device
CN105654446A (en) * 2016-02-02 2016-06-08 广东欧珀移动通信有限公司 Video definition adjustment method and device
CN105872611A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Pressure-bearing test method and device of cloud live broadcast system
CN106954085A (en) * 2017-03-02 2017-07-14 北京潘达互娱科技有限公司 Live network broadcast method and device
CN107277032A (en) * 2017-06-30 2017-10-20 广东欧珀移动通信有限公司 A kind of switching method of video definition, device, storage medium and terminal
CN107846626A (en) * 2017-11-01 2018-03-27 北京德为智慧科技有限公司 A kind of multi-medium play method and system
CN108668011A (en) * 2018-03-30 2018-10-16 联想(北京)有限公司 Output method, output equipment and electronic equipment
CN110198493A (en) * 2018-02-26 2019-09-03 腾讯科技(深圳)有限公司 Media data method for down loading, device, computer equipment, storage medium and system
CN115225914A (en) * 2021-04-16 2022-10-21 浙江创意声光电科技有限公司 Method, apparatus, control device and storage medium for playing show of shadow

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149005A (en) * 2011-04-29 2011-08-10 四川长虹电器股份有限公司 Self-adaptive method for controlling network video quality
CN102547389A (en) * 2012-01-16 2012-07-04 何建亿 Network-adaptive streaming media quality of service (QoS) control method
CN103281568A (en) * 2013-04-25 2013-09-04 网宿科技股份有限公司 Method and system for realizing direct playing of dynamic code rate by streaming media
EP2645647A1 (en) * 2012-03-29 2013-10-02 Orange Method for optimising the downstream rate of an asymmetric subscriber line, corresponding device, computer program product and storage medium
CN103686167A (en) * 2013-12-24 2014-03-26 广东威创视讯科技股份有限公司 Multi-stream broadcast method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102149005A (en) * 2011-04-29 2011-08-10 四川长虹电器股份有限公司 Self-adaptive method for controlling network video quality
CN102547389A (en) * 2012-01-16 2012-07-04 何建亿 Network-adaptive streaming media quality of service (QoS) control method
EP2645647A1 (en) * 2012-03-29 2013-10-02 Orange Method for optimising the downstream rate of an asymmetric subscriber line, corresponding device, computer program product and storage medium
CN103281568A (en) * 2013-04-25 2013-09-04 网宿科技股份有限公司 Method and system for realizing direct playing of dynamic code rate by streaming media
CN103686167A (en) * 2013-12-24 2014-03-26 广东威创视讯科技股份有限公司 Multi-stream broadcast method and device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796956A (en) * 2015-04-23 2015-07-22 陆俊 Mobile terminal network switching method and mobile terminal
CN105025344A (en) * 2015-07-22 2015-11-04 无锡天脉聚源传媒科技有限公司 Inter-cut method and device
CN105160697B (en) * 2015-08-28 2018-08-31 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN105160697A (en) * 2015-08-28 2015-12-16 联想(北京)有限公司 Information processing method and electronic device
CN105872611A (en) * 2015-12-07 2016-08-17 乐视云计算有限公司 Pressure-bearing test method and device of cloud live broadcast system
CN105654446A (en) * 2016-02-02 2016-06-08 广东欧珀移动通信有限公司 Video definition adjustment method and device
CN106954085A (en) * 2017-03-02 2017-07-14 北京潘达互娱科技有限公司 Live network broadcast method and device
CN107277032A (en) * 2017-06-30 2017-10-20 广东欧珀移动通信有限公司 A kind of switching method of video definition, device, storage medium and terminal
CN107277032B (en) * 2017-06-30 2020-04-10 Oppo广东移动通信有限公司 Video definition switching method and device, storage medium and terminal
CN107846626A (en) * 2017-11-01 2018-03-27 北京德为智慧科技有限公司 A kind of multi-medium play method and system
CN110198493A (en) * 2018-02-26 2019-09-03 腾讯科技(深圳)有限公司 Media data method for down loading, device, computer equipment, storage medium and system
CN108668011A (en) * 2018-03-30 2018-10-16 联想(北京)有限公司 Output method, output equipment and electronic equipment
CN108668011B (en) * 2018-03-30 2020-12-18 联想(北京)有限公司 Output method, output device and electronic device
CN115225914A (en) * 2021-04-16 2022-10-21 浙江创意声光电科技有限公司 Method, apparatus, control device and storage medium for playing show of shadow
CN115225914B (en) * 2021-04-16 2023-08-22 浙江创意声光电科技有限公司 Light show playing method, device, control equipment and storage medium

Also Published As

Publication number Publication date
CN104023264B (en) 2018-08-07

Similar Documents

Publication Publication Date Title
CN104023264A (en) Method and device for playing video
US20210211476A1 (en) Methods, systems, and media for recommending content based on network conditions
US20220248077A1 (en) Video projection method, apparatus and device, and storage medium
US20220286718A1 (en) Method for playing back live-streaming video, and device thereof
CN103997680B (en) The switching method and device of a kind of video code flow
CN104244048A (en) Video playing method and video client
CN103051937A (en) Video frequency broadcast and control method as well as device
CN110856031B (en) Media resource display system, method, equipment and storage medium
CN104519397A (en) Audio and video screen-projection playing method, set-top box and terminal device
CN104954879A (en) Video interaction content display method and device
CN103517143A (en) Method, device and terminal device for playing network video
CN103338405A (en) Screen capture application method, equipment and system
CN107071550B (en) Video data sharing method and device
US20230285854A1 (en) Live video-based interaction method and apparatus, device and storage medium
CN103763587A (en) Method and device for playing multimedia data
CN110662109B (en) Video playing method, electronic equipment and computer readable storage medium
US20230217049A1 (en) Intelligent download of content
CN107347149A (en) A kind of suspension display method, virtual reality device and storage medium
CN112399231A (en) Playing method
CN103702219A (en) Video playing control method and equipment
CN103517150A (en) Method and system for indicating loading of online video through blue-ray player
CN110971935A (en) Adaptive definition video playing method and storage medium
KR101879439B1 (en) Method for video service using adaptive bitrate
CN105898586A (en) Direct broadcast program watch-back method and system
US8554058B2 (en) Electronic device and method for playing multimedia files

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