CN105392066A - Video playing method and apparatus - Google Patents

Video playing method and apparatus Download PDF

Info

Publication number
CN105392066A
CN105392066A CN201510746565.9A CN201510746565A CN105392066A CN 105392066 A CN105392066 A CN 105392066A CN 201510746565 A CN201510746565 A CN 201510746565A CN 105392066 A CN105392066 A CN 105392066A
Authority
CN
China
Prior art keywords
electricity
video
terminal
prompting
broadcasting
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
CN201510746565.9A
Other languages
Chinese (zh)
Other versions
CN105392066B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510746565.9A priority Critical patent/CN105392066B/en
Publication of CN105392066A publication Critical patent/CN105392066A/en
Application granted granted Critical
Publication of CN105392066B publication Critical patent/CN105392066B/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/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4882Data services, e.g. news ticker for displaying messages, e.g. warnings, reminders
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The embodiment of the invention discloses a video playing method and apparatus. According to the embodiment of the invention, after a terminal receives a first playing instruction of a video, a first electric quantity needed for playing the video by the terminal is estimated; a current second electric quantity of the terminal is obtained; whether an insufficient electricity phenomenon will occur when the terminal is playing the video is determined according to a difference between the first electric quantity and the second electric quantity; if so, the video is played and the terminal is inhibited from triggering an insufficient electricity prompting unit during the video playing process. According to the scheme, the terminal is inhibited from triggering an insufficient electricity prompting unit during the video playing process, so that a problem that the video is interrupted because of occurrence of insufficient electricity prompting during the video playing process of the terminal can be solved.

Description

A kind of video broadcasting method and device
Technical field
The present invention relates to field of terminal technology, be specifically related to a kind of video broadcasting method and device.
Background technology
Along with the development of Internet technology and multimedia technology, the habits and customs of a lot of people are become by mobile phone viewing video.
At present, user by the browser in mobile phone or the online displaying video of client software, or can play the video downloaded by video player.But, due to the operation that video playback is a unusual power consumption, when playing when mobile phone is at low electricity, often not etc. the complete system of video playback will an automatic spring electricity deficiency prompting frame and suspend this video playback, this electricity alerting pattern brings very large puzzlement to user, particularly when be played to wonderful be but forced to interrupt (i.e. video breaks) when, now, user is only in the enterprising line correlation operation of mobile phone or when charging the phone in time, this prompting frame just can disappear, user could continue to watch video, have a strong impact on the viewing sense of user.
Summary of the invention
The embodiment of the present invention provides a kind of video broadcasting method and device, can solve existing terminal not enough due to electricity, can cause the technical problem occurring video breaks in displaying video process.
The embodiment of the present invention provides a kind of video broadcasting method, comprising:
After terminal receives the first play instruction of video, estimate the first electricity described in described terminal plays needed for video;
Obtain the second electricity that described terminal is current;
Electricity difference according to described first electricity and described second electricity judges described terminal is playing in described video process whether there will be electricity deficiency;
If so, then play described video, and forbid that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
In video broadcasting method of the present invention, the described difference of the electricity according to described first electricity and described second electricity judges that described terminal specifically comprises playing the step that whether there will be electricity deficiency in described video process:
Judge whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold;
If so, then judge that described terminal there will be electricity deficiency in the described video process of broadcasting;
If not, then judge that described terminal can not occur that electricity is not enough in the described video process of broadcasting.
In video broadcasting method of the present invention, the described video of described broadcasting, and forbid that described terminal triggers the not enough step pointed out of electricity and specifically comprises in this video process of broadcasting:
Electricity deficiency is there will be in video process described in terminal plays described in prompting user;
Obtain prompting inhibit command;
Play described video according to described prompting inhibit command, and forbid that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
In video broadcasting method of the present invention, also comprise:
When the complete described video of described terminal plays being detected, obtain the 3rd electricity that described terminal is current;
Judge whether the charge value of described 3rd electricity is less than first and presets power threshold;
If so, point out the electricity that described in user, terminal is current not enough.
In video broadcasting method of the present invention, after obtaining the second current electricity of described terminal, before judging whether the electricity difference of described first electricity and described second electricity is less than the first default power threshold, also comprise:
Judge whether described electricity difference is less than second and presets power threshold, described second presets power threshold is less than the first default power threshold;
If not, then perform the electricity difference judging described first electricity and described second electricity and whether be less than the step that first presets power threshold;
If so, terminal described in user is then pointed out to there will be electricity deficiency and forced shutdown in the described video process of broadcasting.
In video broadcasting method of the present invention, after terminal described in prompting user there will be electricity deficiency and forced shutdown in the described video process of broadcasting, described video broadcasting method also comprises:
After wait preset duration, whether the electricity detecting described terminal increases;
If so, described video is then play;
If not, then detect described terminal power consumption and whether reduce, or whether the detection electricity played needed for described video reduces;
If described terminal power consumption reduces or the electricity played needed for described video reduces, then return execution and judge whether electricity difference is less than the step that second presets power threshold;
If described terminal power consumption reduces or the electricity played needed for described video does not reduce, then play described video according to the second play instruction.
The embodiment of the present invention additionally provides a kind of video play device, comprising:
Estimation block, for receive video in terminal the first play instruction after, estimate the first electricity described in described terminal plays needed for video;
First acquisition module, for obtaining the second current electricity of described terminal;
For the electricity difference according to described first electricity and described second electricity, first judge module, judges described terminal is playing in described video process whether there will be electricity deficiency;
Playing module, for when the first judge module is judged as YES, plays described video, and forbids that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
At video play device of the present invention, described first judge module specifically for:
Judge whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold;
If so, then judge that described terminal there will be electricity deficiency in the described video process of broadcasting;
If not, then judge that described terminal can not occur that electricity is not enough in the described video process of broadcasting.
At video play device of the present invention, described playing module specifically comprises: prompting submodule, acquisition submodule and broadcasting submodule;
Described prompting submodule, there will be electricity deficiency for pointing out in video process described in terminal plays described in user;
Described acquisition submodule, for obtaining prompting inhibit command;
Described broadcasting submodule, for playing described video according to described prompting inhibit command, and forbids that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
At video play device of the present invention, comprising: the second acquisition module, the second judge module and the first reminding module;
Described second acquisition module, for when the complete described video of described terminal plays being detected, obtains the 3rd electricity that described terminal is current;
Described second judge module, for judging whether the charge value of described 3rd electricity is less than first and presets power threshold;
Described first reminding module is not enough for the electricity of pointing out terminal described in user current.
At video play device of the present invention, also comprise: the 3rd judge module and the second reminding module;
Described 3rd judge module, after obtaining the second electricity at the first acquisition module, described first judges whether electricity difference is less than first and presets before power threshold, judge whether described electricity difference is less than second and presets power threshold, described second presets power threshold is less than the first default power threshold;
Described second reminding module, for when the 3rd judge module is judged as YES, terminal described in prompting user there will be electricity deficiency and forced shutdown in the described video process of broadcasting;
Wherein, described first judge module, specifically for when the 3rd judge module is judged as NO, judges whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold.
Embodiments provide a kind of video broadcasting method and device, the video broadcasting method of the embodiment of the present invention is after terminal receives the first play instruction of video, estimate the first electricity needed for this video of this terminal plays, then, obtain the second electricity that this terminal is current, and judge this terminal is playing in described video process whether there will be electricity deficiency according to the electricity difference of this first electricity and the second electricity, if, then play this video, and forbid that this terminal triggers the prompting of electricity deficiency in this video process of broadcasting; The program can when terminal power deficiency, forbid that terminal triggers the prompting of electricity deficiency in displaying video process, avoid terminal plays video process owing to occurring that the prompting of electricity deficiency causes the problem of video breaks, now, carry out operation without the need to user and eliminate the prompting of electricity deficiency, reduce the complexity of user operation in video display process.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those skilled 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 a kind of video broadcasting method that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of a kind of video broadcasting method that Fig. 2 provides for the embodiment of the present invention two;
The structural representation of the first video play device that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the second video play device that Fig. 4 provides for the embodiment of the present invention three;
The structural representation of the third video play device that Fig. 5 provides for the embodiment of the present invention three;
The structural representation of the 4th kind of video play device that Fig. 6 provides for the embodiment of the present invention three.
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 skilled in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of video broadcasting method and device.To be described in detail respectively below.
Embodiment one,
Angle from video play device is described by the present embodiment, and this video play device specifically can be integrated in the equipment such as terminal.
Refer to Fig. 1, present embodiments provide a kind of video broadcasting method, can comprise:
Step 101, after terminal receives the first play instruction of video, estimates the first electricity needed for this video of this terminal plays.
Particularly, after the first play instruction receiving the video that user is triggered by terminal display screen, the first electricity needed for this video is play in estimation; Such as click after certain video plays on mobile phone user, mobile phone will estimate the electricity play needed for this video.
Step 102, obtains the second electricity that this terminal is current.
Particularly, the mode obtaining current electricity has multiple, as by the electricity detecting battery storage, to obtain the second current electricity of terminal, or from terminal power detection procedure, obtains the current electricity of terminal.
In actual applications, terminal all can carry electric power detection process, and is presented on terminal interface by testing result, such as, at the upper right corner of mobile phone display electricity; In addition, the present embodiment method can also terminal is current from other managing electric quantities APP electricity.
Step 103, the electricity difference according to the first electricity and the second electricity judges this terminal is playing in this video process whether there will be electricity deficiency, if so, then performs step 104, if not, then performs step 105.
In the present embodiment, judge that the mode of electricity deficiency has according to electricity difference multiple, such as electricity difference is compared with default charge value, if be less than, then show that electricity is not enough, if be greater than, show that electricity is sufficient; Also namely, step 103 specifically can comprise:
Judge whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold;
If so, then judge that this terminal there will be electricity deficiency in this video process of broadcasting;
If not, then judge that this terminal can not occur that electricity is not enough in this video process of broadcasting.
In the present embodiment, the first default power threshold can need to carry out power threshold when electricity deficiency is pointed out for terminal, or power threshold during forced shutdown, 20 percent etc. of the total electricity of such as terminal, also namely carry out the prompting of electricity deficiency when terminal power is 20 percent of total electricity, 20 percent of this terminal power is default power threshold.Preferably, for accelerating video playout speed, the percentage that the present embodiment terminal first electricity and the second electricity all can account for total electricity by current electric quantity represents, now electricity difference is the difference of percentage, first default power threshold is also percent value, such as the first electricity is 35% of total electricity, the second electricity needed for displaying video is 20% of total electricity, now electricity difference is 15%, it is compared with the first default power threshold 20%, it is less than first and presets power threshold 20%, judges that terminal there will be electricity deficiency in this video process of broadcasting.。
Step 104, plays this video, and forbids that this terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
Particularly, when judging electricity deficiency, video playback interface can be switched to and play this video, and forbid that this terminal triggers the prompting of electricity deficiency in this video process of broadcasting.Forbid in the present embodiment that the mode triggering the prompting of electricity deficiency can have multiple, such as, can forbid that terminal triggers electricity deficiency prompting etc. by the not enough prompting process of temporary close electricity.
In order to the situation that user can be allowed to know terminal plays video before being played, the present embodiment method can after judging that terminal there will be electricity deficiency in displaying video process, prompting user; Also namely step 104 can specifically comprise:
Electricity deficiency is there will be in video process described in this terminal plays of prompting user;
Obtain prompting inhibit command;
Play described video according to this prompting inhibit command, and forbid that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
Point out the mode that there will be electricity deficiency in video process described in this terminal plays of user to have multiple in the present embodiment, such as can show a prompting interface and point out, display on prompting interface " is play in this video process and can be caused electricity deficiency ".Also namely step " is pointed out in video process described in this terminal plays of user and be there will be electricity deficiency " and can comprise: show for pointing out the prompting that there will be electricity deficiency in video process described in terminal plays described in user interface;
The mode that the present embodiment obtains prompting still command has multiple, such as, can generate an interface, interface arranges instruction and obtains interface, and follow-up like this this instruction acquisition interface that can pass through obtains prompting inhibit command; When also namely comprising instruction acquisition interface at above-mentioned prompting interface, step " obtains prompting inhibit command " and can comprise: receive user obtains interface triggering prompting inhibit command by described instruction.
Wherein, this instruction is obtained interface and can be represented by various ways, such as, can be the form of icon, or, also can be the form of input frame, etc. instruction obtain the quantity of interface and can arrange according to the demand of practical application, do not repeat them here.
Step 105, plays this video.
When judging to there will not be electricity not enough in displaying video process, then this video of terminal plays.
Whether preferably, sufficient in order to make user after the complete video of terminal plays can know electricity, the present embodiment can carry out the prompting of electricity deficiency after playing video, and also namely the present embodiment method can also comprise:
When complete this video of terminal plays being detected, obtain the 3rd electricity that this terminal is current;
Judge whether the charge value of the 3rd electricity is less than first and presets power threshold;
If so, the electricity that reminding subscriber terminal is current is not enough.
For making user can forbid that in playing process the prompting of electricity deficiency is carried out in the prompting of electricity deficiency again after playing by unrestricted choice, promote Consumer's Experience, preferably, while the present embodiment method there will be electricity deficiency in video process described in terminal plays described in prompting user or user can also be pointed out afterwards to select whether to carry out the prompting of electricity deficiency again after described video playback completes, such as, after judging electricity deficiency, show a prompting interface, electricity deficiency is there will be for pointing out in video process described in terminal plays described in user, and user selects whether to carry out the prompting of electricity deficiency again after described video playback completes, wherein, this prompting interface can be arranged the first instruction and obtain interface and the second instruction acquisition interface, select after described video playback completes, whether carry out the prompting of electricity deficiency again for user, if user triggers the first instruction and obtains interface, then show that user selects after video playback completes, carry out electricity deficiency again and reminds and forbid triggering the prompting of electricity deficiency in playing process, now terminal receives and forbids play instruction, if user triggers the second instruction and obtains interface, then show that user selects after video playback completes, no longer carry out electricity deficiency and reminds, now, terminal receives play instruction, and according to this video of play instruction normal play, in playing process, do not forbid the prompting of electricity deficiency.
As from the foregoing, the video broadcasting method of the present embodiment is after terminal receives the first play instruction of video, estimate the first electricity needed for this video of this terminal plays, then, obtain the second electricity that this terminal is current, and judge this terminal is playing in described video process whether there will be electricity deficiency according to the electricity difference of this first electricity and the second electricity, if, then play this video, and forbid that this terminal triggers the prompting of electricity deficiency in this video process of broadcasting; The program can when terminal power deficiency, forbid that terminal triggers the prompting of electricity deficiency in displaying video process, avoid terminal plays video process owing to occurring that the prompting of electricity deficiency causes the problem of video breaks, now, carry out operation without the need to user and eliminate the prompting of electricity deficiency, reduce the complexity of user operation in video display process.
Embodiment two,
On the basis of method described in embodiment one, the angle from video play device is described by the present embodiment further, and this video play device specifically can be integrated in the equipment such as terminal.
Refer to Fig. 2, present embodiments provide a kind of video broadcasting method, can comprise:
Step 201, after terminal receives the first play instruction of video, estimates the first electricity needed for this video of this terminal plays.
Particularly, receive the first play instruction that user is triggered by the playback interface in terminal video display interface, then, estimate the first electricity needed for this video of this terminal plays.
Step 202, obtains the second electricity that this terminal is current.
The second electricity mode that obtains particularly has multiple, specifically describes with reference to the above-mentioned description to step 102.
Step 203, judges whether the electricity difference of the first electricity and the second electricity is less than second and presets power threshold, if not, performs step 204, if so, then performs step 208.
Particularly, the charge value that second default power threshold can reach needed for terminal forced shutdown, now, if electricity difference is less than second preset power threshold, show that terminal there will be forced shutdown in the process of displaying video, if be greater than second to preset power threshold, show that terminal there will not be forced shutdown in the process of displaying video.
Step 204, judges whether this electricity difference is less than first and presets power threshold, and wherein, first presets power threshold is greater than the second default power threshold, if so, performs step 205, if not, then performs 212.
Particularly, after judging to there will not be forced shutdown in terminal plays video process, also need to judge whether terminal there will be electricity deficiency in displaying video process, therefore, step 204 needs to judge whether electricity difference is less than first and presets power threshold, first to preset power threshold be the charge value of triggering terminal when carrying out the prompting of electricity deficiency for this, 20 percent etc. of such as total electricity.
Step 205, there will be electricity deficiency in this terminal plays video process of prompting user.
Particularly, a prompting interface prompt user terminal can be generated in displaying video process, there will be electricity deficiency, certainly, in this prompting interface, user can also be pointed out in the present embodiment to select after finishing playing, whether carry out the prompting of electricity deficiency more simultaneously, now point out on interface and interface button " Y " and " N " can be set, as user's button click " Y ", terminal triggers and generates prompting inhibit command, as user's button click " N ", terminal triggers and generates normal play instruction, and terminal can this video of normal play afterwards.
Step 206, obtains prompting inhibit command.
Particularly, receive user obtains interface triggering prompting inhibit command by the instruction at prompting interface, such as adopt in this terminal plays video process of prompting interface prompt user there will be electricity not enough and whether after finishing playing when pointing out, user is triggered by the button " Y " on prompting interface and generates prompting inhibit command.
Step 207, according to this prompting inhibit command displaying video, and forbids that this terminal triggers the prompting of electricity deficiency in this video process of broadcasting, terminates.
Particularly, terminal can according to prompting inhibit command displaying video, and be passed through to arrange terminal, to forbid that this terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
Preferably, after execution of step 201, before flow process terminates, the present embodiment method can also comprise:
When sense terminals plays video, obtain the 3rd electricity that this terminal is current;
Judge whether the charge value of the 3rd electricity is less than first and presets power threshold;
If so, the electricity that reminding subscriber terminal is current is not enough;
If not, then process ends.
Step 208, this terminal of prompting user there will be electricity deficiency and forced shutdown in this video process of broadcasting.
Particularly, be less than second in electricity difference and preset power threshold, show that terminal there will be forced shutdown in the process of displaying video, now need to there will be electricity deficiency and forced shutdown in this video process of this terminal plays of prompting user, as by an interface, show on the surface " displaying video electricity is not enough, if play this video council to cause forced shutdown ".In addition, the present embodiment method can also point out user to adopt preset strategy to solve electricity deficiency, such as points out " please charge in time or close other application programs " etc.
Step 209, after wait preset duration, whether the electricity detecting this terminal increases, and if not, then performs step 210, if so, then performs step 212.
Particularly, after wait preset duration S, detect whether the electricity of terminal increases, if electricity increases, show that user is charging to terminal, now, can this video of normal play, if electricity does not increase, show that user is charging to terminal, now can not play this video, or can continue to perform step 210.
Step 210, whether sense terminals electric quantity consumption reduces, or whether the minimizing electricity played needed for video reduces, and if so, returns step 203, if not, performs step 211.
After detecting that user is not to terminal charge, sense terminals electric quantity consumption can also be continued whether reduce, if electric quantity consumption reduces, show that user decreases terminal power consumption state, such as close the application program etc. of other power consumptions, whether now can returning step 203, to rejudge electricity not enough; If electric quantity consumption does not reduce, show that user does not change terminal power consumption state, now can displaying video or not displaying video.
The present embodiment is not after detection user gives terminal charge, can also continue to detect the electricity played needed for video whether to reduce, if decreased, show that user decreases and change the video playback time, such as drag video playback progress etc., whether now can returning step 203, to rejudge electricity not enough; As not do not reduced, showing that user does not change the video playback time, now can rotate displaying video or not displaying video.
Step 211, plays this video according to the second play instruction, or plays this video according to refusal play instruction refusal.
Between step 210 and 211, can also comprise: interface is selected in display, select whether displaying video for user, this selection interface can comprise: multiple instruction obtains interface; Such as button " Y " and " N "; Now, the present embodiment method can receive instruction corresponding in user by selecting interface and obtain the second play instruction of interface triggering (such as time user's button click " Y ", terminal receives the second play instruction), or receive the refusal play instruction (such as time user's button click " N ", terminal receives refusal play instruction) that instruction corresponding in user by selecting interface obtains interface triggering;
Step 212, this video of normal play.
In the present embodiment, this video of normal play refers to: carry out displaying video according to original terminal predetermined manner, time not enough if there is electricity in playing process, triggering terminal can carry out the prompting of electricity deficiency.
As from the foregoing, the present embodiment adopts after terminal receives the first play instruction of video, estimate the first electricity needed for this video of this terminal plays, then, obtain the second electricity that this terminal is current, and judge this terminal is playing in described video process whether there will be electricity deficiency according to the electricity difference of this first electricity and the second electricity, if, then play this video, and forbid that this terminal triggers the prompting of electricity deficiency in this video process of broadcasting; The program can when terminal power deficiency, forbid that terminal triggers the prompting of electricity deficiency in displaying video process, avoid terminal plays video process owing to occurring that the prompting of electricity deficiency causes the problem of video breaks, now, carry out operation without the need to user and eliminate the prompting of electricity deficiency, reduce the complexity of user operation in video display process.In addition, whether the present embodiment can also understand forced shutdown by identification terminal before video in playing process, and pointed out corresponding resolution policy, the experience of prompting user.
Embodiment three,
In order to implement above scheme better, the embodiment of the present invention additionally provides a kind of video play device, and this video play device can be in the terminal integrated.
Such as, this video play device can the form of hardware or software in the terminal integrated, be such as integrated in terminal with the form of terminal applies.
As shown in Figure 3, the present embodiment video play device can comprise: estimation block 301, first acquisition module 302, first judge module 303 and playing module 304; Wherein,
Estimation block 301, for receive video in terminal the first play instruction after, estimate the first electricity described in described terminal plays needed for video;
First acquisition module 302, for obtaining the second current electricity of described terminal;
For the electricity difference according to described first electricity and described second electricity, first judge module 303, judges described terminal is playing in described video process whether there will be electricity deficiency;
Playing module 304, for when the first judge module 303 is judged as YES, plays described video, and forbids that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
Preferably, the first judge module 303 can be specifically for:
Judge whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold;
If so, then judge that described terminal there will be electricity deficiency in the described video process of broadcasting;
If not, then judge that described terminal can not occur that electricity is not enough in the described video process of broadcasting.
Preferably, with reference to figure 4, in the present embodiment, playing module 304 can comprise: prompting submodule 3041, acquisition submodule 3042 and broadcasting submodule 3043;
Prompting submodule 3041, there will be electricity deficiency for pointing out in video process described in terminal plays described in user;
Obtain submodule 3042, for obtaining prompting inhibit command;
Playing submodule 3043, for playing described video according to described prompting inhibit command, and forbidding that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
Preferably, with reference to figure 5, on the basis of the video play device of above-mentioned introduction, the present embodiment video play device can also comprise: the second acquisition module 305, second judge module 306 and the first reminding module 307;
Second acquisition module 305, for when the complete described video of described terminal plays being detected, obtains the 3rd electricity that described terminal is current;
Second judge module 306, for judging whether the charge value of described 3rd electricity is less than first and presets power threshold;
First reminding module 307, for when the second judge module 306 is judged as YES, the electricity that described in prompting user, terminal is current is not enough.
Preferably, with reference to figure 6, on the basis of above-mentioned video play device, the present embodiment can also comprise: the 3rd judge module 308 and the second reminding module 309;
3rd judge module 308, after obtaining the second electricity at the first acquisition module, described first judges whether electricity difference is less than first and presets before power threshold, judge whether described electricity difference is less than second and presets power threshold, described second presets power threshold is less than the first default power threshold;
Second reminding module 309, for when the 3rd judge module is judged as YES, terminal described in prompting user there will be electricity deficiency and forced shutdown in the described video process of broadcasting;
Wherein, the first judge module 303, specifically for when the 3rd judge module 308 is judged as NO, judges whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold.
During concrete enforcement, above modules can realize as independently entity, and can carry out combination in any yet, realize as same or several entities, the concrete enforcement of above modules see embodiment of the method above, can not repeat them here.
As from the foregoing, estimation block 301 in the video play device of the present embodiment is after terminal receives the first play instruction of video, the first electricity described in estimation terminal plays needed for video, then, the second current electricity of terminal is obtained by the first acquisition module 302, judge terminal is playing in described video process whether there will be electricity deficiency by the first judge module 303 according to the electricity difference of the first electricity and described second electricity, by playing module 304 when the first judge module 303 is judged as YES, play this video, and forbid that this terminal triggers the prompting of electricity deficiency in this video process of broadcasting, the program can when terminal power deficiency, forbid that terminal triggers the prompting of electricity deficiency in displaying video process, avoid terminal plays video process owing to occurring that the prompting of electricity deficiency causes the problem of video breaks, now, carry out operation without the need to user and eliminate the prompting of electricity deficiency, reduce the complexity of user operation in video display process.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: read-only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), disk or CD etc.
A kind of video broadcasting method provided the embodiment of the present invention above and device are described in detail, apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for those skilled in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (11)

1. a video broadcasting method, is characterized in that, comprising:
After terminal receives the first play instruction of video, estimate the first electricity described in described terminal plays needed for video;
Obtain the second electricity that described terminal is current;
Electricity difference according to described first electricity and described second electricity judges described terminal is playing in described video process whether there will be electricity deficiency;
If so, then play described video, and forbid that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
2. video broadcasting method as claimed in claim 1, is characterized in that, describedly judges that described terminal specifically comprises playing the step that whether there will be electricity deficiency in described video process according to described first electricity and the electricity of described second electricity are poor:
Judge whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold;
If so, then judge that described terminal there will be electricity deficiency in the described video process of broadcasting;
If not, then judge that described terminal can not occur that electricity is not enough in the described video process of broadcasting.
3. video broadcasting method as claimed in claim 2, is characterized in that, the described video of described broadcasting, and forbids that described terminal triggers the not enough step pointed out of electricity and specifically comprises in this video process of broadcasting:
Electricity deficiency is there will be in video process described in terminal plays described in prompting user;
Obtain prompting inhibit command;
Play described video according to described prompting inhibit command, and forbid that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
4. video broadcasting method as claimed in claim 2, is characterized in that, also comprise:
When the complete described video of described terminal plays being detected, obtain the 3rd electricity that described terminal is current;
Judge whether the charge value of described 3rd electricity is less than first and presets power threshold;
If so, point out the electricity that described in user, terminal is current not enough.
5. video broadcasting method as claimed in claim 2, is characterized in that, after obtaining the second current electricity of described terminal, before judging whether the electricity difference of described first electricity and described second electricity is less than the first default power threshold, also comprises:
Judge whether described electricity difference is less than second and presets power threshold, described second presets power threshold is less than the first default power threshold;
If not, then perform the electricity difference judging described first electricity and described second electricity and whether be less than the step that first presets power threshold;
If so, terminal described in user is then pointed out to there will be electricity deficiency and forced shutdown in the described video process of broadcasting.
6. video broadcasting method as claimed in claim 5, is characterized in that, after terminal described in prompting user there will be electricity deficiency and forced shutdown in the described video process of broadcasting, described video broadcasting method also comprises:
After wait preset duration, whether the electricity detecting described terminal increases;
If so, described video is then play;
If not, then detect described terminal power consumption and whether reduce, or whether the detection electricity played needed for described video reduces;
If described terminal power consumption reduces or the electricity played needed for described video reduces, then return execution and judge whether electricity difference is less than the step that second presets power threshold;
If described terminal power consumption reduces or the electricity played needed for described video does not reduce, then play described video according to the second play instruction.
7. a video play device, is characterized in that, comprising:
Estimation block, for receive video in terminal the first play instruction after, estimate the first electricity described in described terminal plays needed for video;
First acquisition module, for obtaining the second current electricity of described terminal;
For the electricity difference according to described first electricity and described second electricity, first judge module, judges described terminal is playing in described video process whether there will be electricity deficiency;
Playing module, for when the first judge module is judged as YES, plays described video, and forbids that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
8. video play device as claimed in claim 7, is characterized in that, described first judge module specifically for:
Judge whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold;
If so, then judge that described terminal there will be electricity deficiency in the described video process of broadcasting;
If not, then judge that described terminal can not occur that electricity is not enough in the described video process of broadcasting.
9. video play device as claimed in claim 8, it is characterized in that, described playing module specifically comprises: prompting submodule, acquisition submodule and broadcasting submodule;
Described prompting submodule, there will be electricity deficiency for pointing out in video process described in terminal plays described in user;
Described acquisition submodule, for obtaining prompting inhibit command;
Described broadcasting submodule, for playing described video according to described prompting inhibit command, and forbids that described terminal triggers the prompting of electricity deficiency in this video process of broadcasting.
10. video play device as claimed in claim 8, is characterized in that, also comprise: the second acquisition module, the second judge module and the first reminding module;
Described second acquisition module, for when the complete described video of described terminal plays being detected, obtains the 3rd electricity that described terminal is current;
Described second judge module, for judging whether the charge value of described 3rd electricity is less than first and presets power threshold;
Described first reminding module, for when the second judge module is judged as YES, the electricity that described in prompting user, terminal is current is not enough.
11. video play devices as claimed in claim 8, is characterized in that, also comprise: the 3rd judge module and the second reminding module;
Described 3rd judge module, after obtaining the second electricity at the first acquisition module, described first judges whether electricity difference is less than first and presets before power threshold, judge whether described electricity difference is less than second and presets power threshold, described second presets power threshold is less than the first default power threshold;
Described second reminding module, for when the 3rd judge module is judged as YES, terminal described in prompting user there will be electricity deficiency and forced shutdown in the described video process of broadcasting;
Wherein, described first judge module, specifically for when the 3rd judge module is judged as NO, judges whether the electricity difference of described first electricity and described second electricity is less than first and presets power threshold.
CN201510746565.9A 2015-11-04 2015-11-04 A kind of video broadcasting method and device Active CN105392066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510746565.9A CN105392066B (en) 2015-11-04 2015-11-04 A kind of video broadcasting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510746565.9A CN105392066B (en) 2015-11-04 2015-11-04 A kind of video broadcasting method and device

Publications (2)

Publication Number Publication Date
CN105392066A true CN105392066A (en) 2016-03-09
CN105392066B CN105392066B (en) 2018-01-26

Family

ID=55423823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510746565.9A Active CN105392066B (en) 2015-11-04 2015-11-04 A kind of video broadcasting method and device

Country Status (1)

Country Link
CN (1) CN105392066B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131302A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Audio play control method
CN108419131A (en) * 2017-09-21 2018-08-17 程盼盼 Prevent the device of child myopia
CN108419127A (en) * 2017-09-21 2018-08-17 程盼盼 A method of preventing child myopia

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882994A (en) * 2003-11-18 2006-12-20 皇家飞利浦电子股份有限公司 Calculating required energy
CN101170659A (en) * 2006-10-27 2008-04-30 Lg电子株式会社 Broadcast receiver and method of controlling the same
CN101378138A (en) * 2008-09-28 2009-03-04 深圳华为通信技术有限公司 Method for improving battery use efficiency and equipment using battery to supply power
CN103685136A (en) * 2012-08-30 2014-03-26 腾讯科技(深圳)有限公司 Pop-up window intercepting method and device
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
CN104618560A (en) * 2013-11-05 2015-05-13 中兴通讯股份有限公司 Incoming call notification processing method and apparatus for mobile terminal
CN104641245A (en) * 2014-05-30 2015-05-20 华为技术有限公司 Method for detecting electric quantity of equipment, equipment, and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1882994A (en) * 2003-11-18 2006-12-20 皇家飞利浦电子股份有限公司 Calculating required energy
CN101170659A (en) * 2006-10-27 2008-04-30 Lg电子株式会社 Broadcast receiver and method of controlling the same
CN101378138A (en) * 2008-09-28 2009-03-04 深圳华为通信技术有限公司 Method for improving battery use efficiency and equipment using battery to supply power
CN103685136A (en) * 2012-08-30 2014-03-26 腾讯科技(深圳)有限公司 Pop-up window intercepting method and device
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
CN104618560A (en) * 2013-11-05 2015-05-13 中兴通讯股份有限公司 Incoming call notification processing method and apparatus for mobile terminal
CN104641245A (en) * 2014-05-30 2015-05-20 华为技术有限公司 Method for detecting electric quantity of equipment, equipment, and system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131302A (en) * 2016-06-15 2016-11-16 乐视控股(北京)有限公司 Audio play control method
CN108419131A (en) * 2017-09-21 2018-08-17 程盼盼 Prevent the device of child myopia
CN108419127A (en) * 2017-09-21 2018-08-17 程盼盼 A method of preventing child myopia
CN108419131B (en) * 2017-09-21 2020-05-19 荆书光 Device for preventing children myopia
CN108419127B (en) * 2017-09-21 2020-07-21 苗娟 Method for preventing myopia of children

Also Published As

Publication number Publication date
CN105392066B (en) 2018-01-26

Similar Documents

Publication Publication Date Title
CN105556417B (en) For controlling the electronic equipment and its method of electric power
CN103634686A (en) Method and device for previewing video
CN106507445B (en) Wireless fidelity Wi-Fi scanning method and mobile terminal
CN110784736B (en) Virtual article presenting method and device for live broadcast room, electronic equipment and storage medium
CN103631934A (en) Garbage-file detecting method and device
CN104156171A (en) Method and device for preventing touch key misoperations in landscape screen state of mobile terminal
CN106375552A (en) Incoming call interaction method and terminal
EP3142357A1 (en) Operation instruction method and device for remote controller of smart television
CN103823546A (en) Information control method and electronic equipment
CN104572322A (en) Method for operating terminal screen
CN108536370B (en) Input interface switching method and device and electronic equipment
CN105392066A (en) Video playing method and apparatus
CN108337549B (en) Video playing method and device
CN105515942A (en) Method for playing voice message automatically and electronic equipment
CN103399959A (en) Display method of interactive control of webpage and terminal
CN103428559A (en) Data display method, mobile terminal and play device
CN104850206B (en) Battery charging mode according to user selects
CN104750358A (en) Terminal
CN105005607A (en) Page information loading method and page information loading device
CN104469519A (en) Video playing method and device
CN103888608A (en) Information processing method and electronic device
CN104750359A (en) Control method for dynamic information play window
US10015307B2 (en) Electronic device and usage control method
CN103634673A (en) Advertising insertion method and player
CN103500122B (en) A kind of method for broadcasting multimedia file and electronic equipment

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
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: Guangdong Opel Mobile Communications Co., Ltd.

CP01 Change in the name or title of a patent holder