CN105392066B - A kind of video broadcasting method and device - Google Patents

A kind of video broadcasting method and device Download PDF

Info

Publication number
CN105392066B
CN105392066B CN201510746565.9A CN201510746565A CN105392066B CN 105392066 B CN105392066 B CN 105392066B CN 201510746565 A CN201510746565 A CN 201510746565A CN 105392066 B CN105392066 B CN 105392066B
Authority
CN
China
Prior art keywords
electric quantity
terminal
video
playing
preset
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.)
Active
Application number
CN201510746565.9A
Other languages
Chinese (zh)
Other versions
CN105392066A (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 kind of video broadcasting method and device;The embodiment of the present invention is used after terminal receives the first play instruction of video, estimate the first electricity needed for the terminal plays video, then, obtain the second current electricity of the terminal, and judge whether the terminal occurs not enough power supply during the video is played according to the electricity of first electricity and the second electricity difference, if so, then playing the video, and the terminal is forbidden to trigger not enough power supply prompting during the video is played;The program can forbid terminal to trigger not enough power supply prompting during video is played in the case of terminal power deficiency, avoid terminal plays video process due to there is the problem of not enough power supply prompting causes video breaks.

Description

Video playing method and device
Technical Field
The invention relates to the technical field of terminals, in particular to a video playing method and device.
Background
With the continuous development of internet technology and multimedia technology, it has become a habit of many people to watch videos through mobile phones.
At present, a user can play a video online through a browser or client software in a mobile phone, or play a downloaded video through a video player. However, since video playing is an extremely power-consuming operation, when the mobile phone plays at a low power, often, when the mobile phone plays at a low power, a reminding frame with insufficient power is automatically popped up and the video playing is suspended without waiting for the video playing system, and this power reminding mode brings a lot of trouble to the user, especially when a highlight is played but is forced to be interrupted (i.e., the video is interrupted), at this time, the reminding frame will disappear only when the user performs a relevant operation on the mobile phone or charges the mobile phone in time, and the user can continue to watch the video, which seriously affects the user's viewing feeling.
Disclosure of Invention
The embodiment of the invention provides a video playing method and device, which can solve the technical problem that the video is interrupted in the video playing process due to insufficient electric quantity of the conventional terminal.
The embodiment of the invention provides a video playing method, which comprises the following steps:
after a terminal receives a first playing instruction of a video, estimating a first electric quantity required by the terminal for playing the video;
acquiring a current second electric quantity of the terminal;
judging whether the terminal has insufficient electric quantity in the process of playing the video according to the electric quantity difference between the first electric quantity and the second electric quantity;
and if so, playing the video, and forbidding the terminal to trigger the power shortage prompt in the process of playing the video.
In the video playing method of the present invention, the step of determining whether the terminal has insufficient electric quantity during playing the video according to the electric quantity difference between the first electric quantity and the second electric quantity specifically includes:
judging whether the electric quantity difference between the first electric quantity and the second electric quantity is smaller than a first preset electric quantity threshold value or not;
if so, judging that the electric quantity of the terminal is insufficient in the process of playing the video;
if not, judging that the electric quantity of the terminal is not insufficient in the process of playing the video.
In the video playing method of the present invention, the step of playing the video and prohibiting the terminal from triggering the power shortage prompt in the process of playing the video specifically includes:
prompting a user that the electric quantity is insufficient in the process of playing the video by the terminal;
acquiring a prompt prohibition instruction;
and playing the video according to the prompt prohibition instruction, and prohibiting the terminal from triggering the power shortage prompt in the process of playing the video.
In the video playing method of the present invention, the method further includes:
when the video playing of the terminal is detected to be finished, acquiring a current third electric quantity of the terminal;
judging whether the electric quantity value of the third electric quantity is smaller than a first preset electric quantity threshold value or not;
and if so, prompting the user that the current electric quantity of the terminal is insufficient.
In the video playing method of the present invention, after acquiring the current second electric quantity of the terminal, before determining whether the electric quantity difference between the first electric quantity and the second electric quantity is smaller than a first preset electric quantity threshold, the method further includes:
judging whether the electric quantity difference is smaller than a second preset electric quantity threshold value, wherein the second preset electric quantity threshold value is smaller than a first preset electric quantity threshold value;
if not, executing a step of judging whether the electric quantity difference between the first electric quantity and the second electric quantity is smaller than a first preset electric quantity threshold value;
and if so, prompting the user that the electric quantity is insufficient and forced shutdown occurs in the process of playing the video by the terminal.
In the video playing method of the present invention, after prompting the user that the terminal will have insufficient power and forced shutdown in the process of playing the video, the video playing method further includes:
after waiting for a preset time, detecting whether the electric quantity of the terminal is increased;
if so, playing the video;
if not, detecting whether the power consumption of the terminal is reduced or not, or detecting whether the power required by the video after being played is reduced or not;
if the terminal electric quantity consumption is reduced or the electric quantity required by playing the video is reduced, returning to the step of judging whether the electric quantity difference is smaller than a second preset electric quantity threshold value;
and if the power consumption of the terminal is reduced or the power required by playing the video is not reduced, playing the video according to a second playing instruction.
An embodiment of the present invention further provides a video playing device, including:
the terminal comprises an estimation module, a display module and a display module, wherein the estimation module is used for estimating a first electric quantity required by the terminal for playing a video after the terminal receives a first playing instruction of the video;
the first acquisition module is used for acquiring the current second electric quantity of the terminal;
the first judging module is used for judging whether the electric quantity is insufficient in the process of playing the video by the terminal according to the electric quantity difference between the first electric quantity and the second electric quantity;
and the playing module is used for playing the video and forbidding the terminal to trigger the electric quantity shortage prompt in the process of playing the video when the first judgment module judges that the video is yes.
In the video playing device of the present invention, the first determining module is specifically configured to:
judging whether the electric quantity difference between the first electric quantity and the second electric quantity is smaller than a first preset electric quantity threshold value or not;
if so, judging that the electric quantity of the terminal is insufficient in the process of playing the video;
if not, judging that the electric quantity of the terminal is not insufficient in the process of playing the video.
In the video playback device of the present invention, the playback module specifically includes: the prompting submodule, the obtaining submodule and the playing submodule;
the prompting submodule is used for prompting a user that the electric quantity is insufficient in the process of playing the video by the terminal;
the acquisition submodule is used for acquiring a prompt prohibition instruction;
and the playing submodule is used for playing the video according to the prompt forbidding instruction and forbidding the terminal to trigger the power shortage prompt in the process of playing the video.
The video playback apparatus of the present invention includes: the device comprises a second acquisition module, a second judgment module and a first prompt module;
the second obtaining module is configured to obtain a current third electric quantity of the terminal when it is detected that the terminal finishes playing the video;
the second judging module is used for judging whether the electric quantity value of the third electric quantity is smaller than a first preset electric quantity threshold value;
the first prompting module is used for prompting a user that the current electric quantity of the terminal is insufficient.
The video playback apparatus of the present invention further includes: a third judging module and a second prompting module;
the third determining module is configured to determine whether the power difference is smaller than a second preset power threshold value after the first obtaining module obtains the second power and before the first determining module determines whether the power difference is smaller than the first preset power threshold value, where the second preset power threshold value is smaller than the first preset power threshold value;
the second prompting module is used for prompting a user that the terminal has insufficient electric quantity and is forced to be shut down in the process of playing the video under the condition that the third judging module judges that the terminal is in the state of yes;
the first judging module is specifically configured to judge whether an electric quantity difference between the first electric quantity and the second electric quantity is smaller than a first preset electric quantity threshold value or not under the condition that the third judging module judges that the electric quantity difference is not smaller than the first preset electric quantity threshold value.
The embodiment of the invention provides a video playing method and a video playing device, wherein the video playing method estimates a first electric quantity required by a terminal for playing a video after the terminal receives a first playing instruction of the video, then acquires a current second electric quantity of the terminal, judges whether the terminal has insufficient electric quantity in the process of playing the video according to the electric quantity difference between the first electric quantity and the second electric quantity, plays the video if the terminal has insufficient electric quantity, and forbids the terminal to trigger an insufficient electric quantity prompt in the process of playing the video; according to the scheme, under the condition that the electric quantity of the terminal is insufficient, the terminal is forbidden to trigger the insufficient electric quantity prompt in the video playing process, the problem that the video is interrupted due to the insufficient electric quantity prompt in the video playing process of the terminal is avoided, at the moment, the user does not need to operate to eliminate the insufficient electric quantity prompt, and the complexity of user operation in the video playing process is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a video playing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a first video playing device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a second video playing device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a third video playback device according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a fourth video playback device according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a video playing method and device. The details will be described below separately.
The first embodiment,
The present embodiment will be described from the perspective of a video playback apparatus, which may be specifically integrated in a terminal or other devices.
Referring to fig. 1, the present embodiment provides a video playing method, which may include:
step 101, after a terminal receives a first playing instruction of a video, estimating a first electric quantity required by the terminal to play the video.
Specifically, after a first playing instruction of a video triggered by a user through a terminal display screen is received, estimating a first electric quantity required by playing the video; for example, after a user clicks on a video on a mobile phone to play, the mobile phone will estimate the amount of power needed to play the video.
And 102, acquiring the current second electric quantity of the terminal.
Specifically, there are various ways to obtain the current power, such as by detecting the power stored in the battery to obtain the current second power of the terminal, or obtaining the current power of the terminal from the terminal power detection process.
In practical application, the terminal carries the electric quantity detection process and displays the detection result on a terminal interface, for example, the electric quantity is displayed at the upper right corner of a mobile phone; in addition, the method of the embodiment can also manage the current electric quantity of the terminal in the APP from other electric quantities.
Step 103, determining whether the terminal has insufficient electric quantity during playing the video according to the electric quantity difference between the first electric quantity and the second electric quantity, if yes, executing step 104, and if not, executing step 105.
In this embodiment, there are various ways to determine the insufficient electric quantity according to the electric quantity difference, for example, comparing the electric quantity difference with a preset electric quantity value, if the electric quantity difference is smaller than the preset electric quantity value, it indicates that the electric quantity is insufficient, and if the electric quantity difference is larger than the preset electric quantity value, it indicates that the electric quantity is sufficient; that is, step 103 may specifically include:
judging whether the electric quantity difference between the first electric quantity and the second electric quantity is smaller than a first preset electric quantity threshold value or not;
if so, judging that the electric quantity of the terminal is insufficient in the process of playing the video;
if not, judging that the electric quantity of the terminal is not insufficient in the process of playing the video.
In this embodiment, the first preset electric quantity threshold may be an electric quantity threshold when the terminal needs to perform the electric quantity shortage prompt, or an electric quantity threshold when the terminal is forcibly powered off, for example, twenty percent of the total electric quantity of the terminal, that is, when the electric quantity of the terminal is twenty percent of the total electric quantity, the electric quantity shortage prompt is performed, and twenty percent of the electric quantity of the terminal is the preset electric quantity threshold. Preferably, to increase the video playing speed, the first electric quantity and the second electric quantity of the terminal in this embodiment may both be represented by a percentage of the current electric quantity to the total electric quantity, at this time, the electric quantity difference is a percentage difference, the first preset electric quantity threshold is also a percentage value, for example, the first electric quantity is 35% of the total electric quantity, the second electric quantity required for playing the video is 20% of the total electric quantity, at this time, the electric quantity difference is 15%, the electric quantity difference is compared with the first preset electric quantity threshold 20%, and is smaller than the first preset electric quantity threshold 20%, and it is determined that the electric quantity of the terminal is insufficient in the process of playing the video. .
And 104, playing the video and prohibiting the terminal from triggering the power shortage prompt in the process of playing the video.
Specifically, under the condition that the electric quantity is judged to be insufficient, the video can be played by switching to a video playing interface, and the terminal is forbidden to trigger the electric quantity insufficiency prompt in the process of playing the video. In this embodiment, there may be various ways to prohibit triggering the power shortage notification, for example, the terminal may be prohibited from triggering the power shortage notification by temporarily closing the power shortage notification process.
In order to enable a user to know the video playing condition of the terminal before playing, the method of the embodiment can prompt the user after judging that the electric quantity of the terminal is insufficient in the video playing process; that is, step 104 may specifically include:
prompting a user that the electric quantity is insufficient in the process of playing the video by the terminal;
acquiring a prompt prohibition instruction;
and playing the video according to the prompt prohibition instruction, and prohibiting the terminal from triggering the power shortage prompt in the process of playing the video.
In this embodiment, the terminal is prompted to play the video, and there are various ways of the power shortage in the video playing process, for example, a prompt interface can be displayed to prompt, and "the power shortage will be caused in the video playing process" is displayed on the prompt interface. That is, the step of "prompting the user that the power shortage will occur in the process of playing the video by the terminal" may include: displaying a prompt interface for prompting a user that the power shortage occurs in the process of playing the video by the terminal;
in this embodiment, there are various ways to acquire the prompt static instruction, for example, an interface may be generated, and an instruction acquisition interface is arranged on the interface, so that a prompt prohibition instruction may be acquired through the instruction acquisition interface subsequently; that is, when the prompt interface includes the instruction obtaining interface, the step "obtaining the prompt prohibition instruction" may include: and receiving a prompt prohibition instruction triggered by the user through the instruction acquisition interface.
The instruction obtaining interface may be represented in various forms, for example, in the form of an icon, or in the form of an input box, and the number of the instruction obtaining interfaces may be set according to the requirement of the actual application, which is not described herein again.
Step 105, playing the video.
And when the situation that the electric quantity is insufficient in the process of playing the video is judged, the terminal plays the video.
Preferably, in order to enable the user to know whether the electric quantity is sufficient after the terminal has played the video, the present embodiment may perform the electric quantity shortage prompt after the terminal has played the video, that is, the method of the present embodiment may further include:
when the video playing of the terminal is detected to be finished, acquiring the current third electric quantity of the terminal;
judging whether the electric quantity value of the third electric quantity is smaller than a first preset electric quantity threshold value or not;
and if so, prompting the user that the current electric quantity of the terminal is insufficient.
In order to enable a user to freely select to prohibit the insufficient electric quantity prompt in the playing process and then perform the insufficient electric quantity prompt after the playing is finished, the user experience is improved; preferably, in the method of this embodiment, the user may be prompted to select whether to perform the power shortage prompt after the video playing is completed, while or after the power shortage occurs in the process of prompting the user that the video is played by the terminal; for example, after the power shortage is judged, a prompt interface is displayed for prompting a user that the power shortage will occur in the process of playing the video by the terminal, and the user selects whether to perform power shortage prompt after the video is played, wherein the prompt interface can be provided with a first instruction acquisition interface and a second instruction acquisition interface for the user to select whether to perform power shortage prompt after the video is played, if the user triggers the first instruction acquisition interface, the user indicates that the user selects to perform power shortage prompt after the video is played and forbids to trigger power shortage prompt in the playing process, and at this moment, the terminal receives a play prohibition instruction; if the user triggers the second instruction acquisition interface, the user indicates that the user selects not to perform the insufficient electric quantity reminding after the video playing is finished, at the moment, the terminal receives the playing instruction, normally plays the video according to the playing instruction, and the insufficient electric quantity reminding is not forbidden in the playing process.
As can be seen from the above, in the video playing method of this embodiment, after the terminal receives the first playing instruction of the video, the first electric quantity required by the terminal to play the video is estimated, then the current second electric quantity of the terminal is obtained, and whether the electric quantity is insufficient in the process of playing the video by the terminal is determined according to the electric quantity difference between the first electric quantity and the second electric quantity, if yes, the video is played, and the terminal is prohibited from triggering the electric quantity insufficiency prompt in the process of playing the video; according to the scheme, under the condition that the electric quantity of the terminal is insufficient, the terminal is forbidden to trigger the insufficient electric quantity prompt in the video playing process, the problem that the video is interrupted due to the insufficient electric quantity prompt in the video playing process of the terminal is avoided, at the moment, the user does not need to operate to eliminate the insufficient electric quantity prompt, and the complexity of user operation in the video playing process is reduced.
Example II,
On the basis of the method described in the first embodiment, this embodiment will be further described from the perspective of a video playback device, which may be specifically integrated in a terminal or other devices.
Referring to fig. 2, the present embodiment provides a video playing method, which may include:
in step 201, after a terminal receives a first playing instruction of a video, a first electric quantity required by the terminal to play the video is estimated.
Specifically, a first playing instruction triggered by a user through a playing interface in a terminal video display interface is received, and then a first electric quantity required by the terminal for playing the video is estimated.
Step 202, obtaining the current second electric quantity of the terminal.
There are various ways to specifically acquire the second electric quantity, and the specific description refers to the above description of step 102.
Step 203, determining whether the difference between the first electric quantity and the second electric quantity is smaller than a second preset electric quantity threshold, if not, executing step 204, and if so, executing step 208.
Specifically, the second preset electric quantity threshold may be an electric quantity value that needs to be reached when the terminal is forcibly powered off, at this time, if the electric quantity difference value is smaller than the second preset electric quantity threshold, it indicates that the terminal is forcibly powered off in the process of playing the video, and if the electric quantity difference value is larger than the second preset electric quantity threshold, it indicates that the terminal is not forcibly powered off in the process of playing the video.
Step 204, determining whether the power difference is smaller than a first preset power threshold, wherein the first preset power threshold is larger than a second preset power threshold, if yes, performing step 205, and if not, performing step 212.
Specifically, after it is determined that the terminal does not have forced shutdown during video playing, it is further determined whether the terminal has insufficient electric quantity during video playing, and therefore, in step 204, it is determined whether the electric quantity difference is smaller than a first preset electric quantity threshold, where the first preset electric quantity threshold is an electric quantity value for triggering the terminal to prompt that the electric quantity is insufficient, such as twenty percent of the total electric quantity.
Step 205, prompting the user that the power shortage will occur in the process of playing the video by the terminal.
Specifically, a prompt interface can be generated to prompt the user terminal that the electric quantity is insufficient in the process of playing the video, and certainly, in this embodiment, the user can also be prompted to select whether to perform the electric quantity insufficiency prompt after the playing is completed in the prompt interface, at this time, interface buttons "Y" and "N" can be set on the prompt interface, when the user clicks the button "Y", the terminal triggers to generate a prompt prohibition instruction, when the user clicks the button "N", the terminal triggers to generate a normal playing instruction, and then the terminal can normally play the video.
In step 206, a prompt disable instruction is obtained.
Specifically, a prompt prohibition instruction triggered by the instruction acquisition interface of the user through the prompt interface is received, for example, when the prompt interface is used to prompt the user that the terminal plays the video, the power is insufficient and whether the terminal prompts the terminal after playing is completed, the user triggers and generates the prompt prohibition instruction through a button "Y" on the prompt interface.
And step 207, playing the video according to the prompt prohibition instruction, prohibiting the terminal from triggering the power shortage prompt in the process of playing the video, and ending.
Specifically, the terminal can play the video according to the prompt prohibition instruction and prohibit the terminal from triggering the power shortage prompt in the video playing process by setting the terminal.
Preferably, after the step 201 is executed and before the process is ended, the method of this embodiment may further include:
when the video playing of the terminal is detected, acquiring the current third electric quantity of the terminal;
judging whether the electric quantity value of the third electric quantity is smaller than a first preset electric quantity threshold value or not;
if so, prompting the user terminal that the current electric quantity is insufficient;
if not, the flow is ended.
And step 208, prompting a user that the terminal has insufficient electric quantity and is forced to be shut down in the process of playing the video.
Specifically, when the electric quantity difference is smaller than the second preset electric quantity threshold, it indicates that the terminal is forced to be powered off in the process of playing the video, and at this time, it is necessary to prompt the user that the electric quantity is insufficient and the terminal is forced to be powered off in the process of playing the video, for example, through an interface, "the electric quantity of the playing video is insufficient, and if the video is played, the terminal is forced to be powered off". In addition, the method of the embodiment may also prompt the user to adopt a preset policy to solve the power shortage, such as prompting "please charge in time or close other applications", and the like.
Step 209, after waiting for a preset duration, detects whether the power of the terminal is increased, if not, step 210 is executed, and if so, step 212 is executed.
Specifically, after waiting for the preset time period S, it is detected whether the electric quantity of the terminal increases, if the electric quantity increases, it indicates that the user is charging the terminal, at this time, the video may be normally played, and if the electric quantity does not increase, it indicates that the user is not charging the terminal, at this time, the video may not be played, or step 210 may be continuously performed.
Step 210, detecting whether the power consumption of the terminal is reduced or not, or whether the power required for playing the video is reduced or not, if yes, returning to step 203, and if not, executing step 211.
After detecting that the user does not charge the terminal, the method can further continue to detect whether the power consumption of the terminal is reduced, if the power consumption is reduced, it indicates that the user reduces the power consumption state of the terminal, such as closing other power-consuming applications, and at this time, the method can return to step 203 to judge whether the power is insufficient again; if the power consumption is not reduced, the power consumption state of the terminal is not changed by the user, and the video can be played or not played at the moment.
In this embodiment, after detecting that the user does not charge the terminal, it may further continue to detect whether the electric quantity required by the video playing is reduced, and if the electric quantity is reduced, it indicates that the user has reduced the video playing time, such as dragging the video playing progress, and then return to step 203 to re-determine whether the electric quantity is insufficient; if not, it indicates that the user has not changed the video playing time, and at this time, the video can be rotated to play or not played.
And step 211, playing the video according to the second playing instruction, or refusing to play the video according to the refusing playing instruction.
Between steps 210 and 211, it may further include: displaying a selection interface for a user to select whether to play the video, wherein the selection interface may include: a plurality of instruction fetch interfaces; such as buttons "Y" and "N"; at this time, the method of this embodiment may receive a second play instruction triggered by the user through the instruction acquisition interface corresponding to the selection interface (for example, when the user clicks the button "Y," the terminal receives the second play instruction), or receive a play rejection instruction triggered by the user through the instruction acquisition interface corresponding to the selection interface (for example, when the user clicks the button "N," the terminal receives the play rejection instruction);
step 212, the video is played normally.
The normal playing of the video in this embodiment means: the video is played according to the preset mode of the original terminal, and if the electric quantity is insufficient in the playing process, the terminal is triggered to prompt the insufficient electric quantity.
As can be seen from the above, in this embodiment, after the terminal receives the first playing instruction of the video, the first electric quantity required by the terminal to play the video is estimated, then the current second electric quantity of the terminal is obtained, and whether the electric quantity is insufficient during the playing of the video by the terminal is determined according to the electric quantity difference between the first electric quantity and the second electric quantity, if yes, the video is played, and the terminal is prohibited from triggering the electric quantity insufficiency prompt during the playing of the video; according to the scheme, under the condition that the electric quantity of the terminal is insufficient, the terminal is forbidden to trigger the insufficient electric quantity prompt in the video playing process, the problem that the video is interrupted due to the insufficient electric quantity prompt in the video playing process of the terminal is avoided, at the moment, the user does not need to operate to eliminate the insufficient electric quantity prompt, and the complexity of user operation in the video playing process is reduced. In addition, the embodiment can also identify whether the terminal is forced to be powered off in the playing process before the video, and prompt the corresponding solution strategy and prompt the experience of the user.
Example III,
In order to better implement the above solution, the embodiment of the present invention further provides a video playing device, which may be integrated in a terminal.
For example, the video playing apparatus may be integrated in the terminal in the form of hardware or software, such as in the form of a terminal application.
As shown in fig. 3, the video playing apparatus of the present embodiment may include: an estimation module 301, a first obtaining module 302, a first judging module 303 and a playing module 304; wherein,
the estimation module 301 is configured to estimate, after a terminal receives a first play instruction of a video, a first electric quantity required by the terminal to play the video;
a first obtaining module 302, configured to obtain a current second electric quantity of the terminal;
a first judging module 303, configured to judge whether the terminal has insufficient electric quantity in the process of playing the video according to an electric quantity difference between the first electric quantity and the second electric quantity;
the playing module 304 is configured to play the video and prohibit the terminal from triggering an electric quantity shortage prompt in the process of playing the video when the first determining module 303 determines that the video is yes.
Preferably, the first determining module 303 may be specifically configured to:
judging whether the electric quantity difference between the first electric quantity and the second electric quantity is smaller than a first preset electric quantity threshold value or not;
if so, judging that the electric quantity of the terminal is insufficient in the process of playing the video;
if not, judging that the electric quantity of the terminal is not insufficient in the process of playing the video.
Preferably, referring to fig. 4, the playing module 304 in this embodiment may include: a prompt submodule 3041, an acquisition submodule 3042, and a play submodule 3043;
a prompt submodule 3041, configured to prompt a user that the power of the terminal is insufficient in the process of playing the video;
an obtaining submodule 3042 for obtaining a prompt prohibition instruction;
the playing submodule 3043 is configured to play the video according to the prompt prohibition instruction, and prohibit the terminal from triggering an electric quantity shortage prompt in the process of playing the video.
Preferably, referring to fig. 5, on the basis of the video playing apparatus described above, the video playing apparatus of this embodiment may further include: a second obtaining module 305, a second judging module 306 and a first prompting module 307;
a second obtaining module 305, configured to obtain a current third electric quantity of the terminal when it is detected that the terminal has finished playing the video;
a second determining module 306, configured to determine whether an electric quantity value of the third electric quantity is smaller than a first preset electric quantity threshold;
the first prompting module 307 is configured to prompt the user that the current electric quantity of the terminal is insufficient when the second determining module 306 determines that the current electric quantity is insufficient.
Preferably, referring to fig. 6, on the basis of the video playing apparatus, the present embodiment may further include: a third judging module 308 and a second prompting module 309;
a third determining module 308, configured to determine whether the power difference is smaller than a second preset power threshold after the first obtaining module obtains the second power and before the first determining determines whether the power difference is smaller than the first preset power threshold, where the second preset power threshold is smaller than the first preset power threshold;
the second prompting module 309, configured to prompt the user that the power of the terminal is insufficient and the terminal is forced to be powered off in the process of playing the video if the third determining module determines that the terminal is powered off;
the first determining module 303 is specifically configured to determine whether an electric quantity difference between the first electric quantity and the second electric quantity is smaller than a first preset electric quantity threshold value when the third determining module 308 determines that the electric quantity difference is not smaller than the first preset electric quantity threshold value.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the estimation module 301 in the video playing apparatus in this embodiment estimates a first electric quantity required by the terminal to play the video after the terminal receives a first playing instruction of the video, then the first obtaining module 302 obtains a current second electric quantity of the terminal, the first determining module 303 determines whether the electric quantity of the terminal is insufficient during playing the video according to an electric quantity difference between the first electric quantity and the second electric quantity, and the playing module 304 plays the video when the first determining module 303 determines that the electric quantity is insufficient, and prohibits the terminal from triggering an electric quantity insufficiency prompt during playing the video; according to the scheme, under the condition that the electric quantity of the terminal is insufficient, the terminal is forbidden to trigger the insufficient electric quantity prompt in the video playing process, the problem that the video is interrupted due to the insufficient electric quantity prompt in the video playing process of the terminal is avoided, at the moment, the user does not need to operate to eliminate the insufficient electric quantity prompt, and the complexity of user operation in the video playing process is reduced.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The video playing method and device provided by the embodiment of the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying a specific example, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (6)

1. A video playback method, comprising:
after a terminal receives a first playing instruction of a video, estimating a first electric quantity required by the terminal for playing the video;
acquiring a current second electric quantity of the terminal, a first preset electric quantity threshold value and a second preset electric quantity threshold value, wherein the first preset electric quantity threshold value is an electric quantity value when the terminal is triggered to perform electric quantity shortage prompting, the second preset electric quantity threshold value is an electric quantity value which is required to be reached by forced shutdown of the terminal, and the second preset electric quantity threshold value is smaller than the first preset electric quantity threshold value;
judging whether the electric quantity difference between the first electric quantity and the second electric quantity is smaller than a second preset electric quantity threshold value or not;
if the electric quantity difference is not smaller than the second preset electric quantity threshold value, judging whether the electric quantity difference is smaller than the first preset electric quantity threshold value; if the electric quantity difference is smaller than the first preset electric quantity threshold value, prompting a user that the electric quantity is insufficient in the process of playing the video by the terminal, acquiring a prompting prohibition instruction, playing the video according to the prompting prohibition instruction, and prohibiting the terminal from triggering an electric quantity insufficiency prompt in the process of playing the video;
if the electric quantity difference is smaller than the second preset electric quantity threshold value, prompting a user that the electric quantity is insufficient and forced shutdown occurs in the process of playing the video by the terminal;
after waiting for a preset time, detecting whether the electric quantity of the terminal is increased;
if the electric quantity of the terminal is increased, the video is played;
if the electric quantity of the terminal is not increased, detecting whether the electric quantity consumption of the terminal is reduced or not, or detecting whether the electric quantity required by playing the video is reduced or not;
if the power consumption of the terminal is reduced or the power required by playing the video is reduced, returning to the step of judging whether the power difference is smaller than a second preset power threshold value;
and if the power consumption of the terminal is not reduced and the power required by playing the video is not reduced, displaying a selection interface, receiving a second playing instruction triggered by a user through a corresponding instruction acquisition interface in the selection interface, and playing the video according to the second playing instruction.
2. The video playback method of claim 1, further comprising:
when the video playing of the terminal is detected to be finished, acquiring a current third electric quantity of the terminal;
judging whether the electric quantity value of the third electric quantity is smaller than the first preset electric quantity threshold value or not;
and if so, prompting the user that the current electric quantity of the terminal is insufficient.
3. A video playback apparatus, comprising:
the terminal comprises an estimation module, a display module and a display module, wherein the estimation module is used for estimating a first electric quantity required by the terminal for playing a video after the terminal receives a first playing instruction of the video;
the terminal comprises a first acquisition module, a first preset electric quantity threshold and a second preset electric quantity threshold, wherein the first acquisition module is used for acquiring a current second electric quantity of the terminal, the first preset electric quantity threshold is an electric quantity value when the terminal is triggered to carry out electric quantity shortage prompting, the second preset electric quantity threshold is an electric quantity value which is required to be reached by forced shutdown of the terminal, and the second preset electric quantity threshold is smaller than the first preset electric quantity threshold;
the third judging module is used for judging whether the electric quantity difference between the first electric quantity and the second electric quantity is smaller than a second preset electric quantity threshold value or not;
the first judging module is used for judging whether the electric quantity difference is smaller than the first preset electric quantity threshold value or not under the condition that the judging result of the third judging module is negative;
the playing module is used for prompting a user that the electric quantity is insufficient in the process of playing the video by the terminal when the first judgment module judges that the electric quantity is insufficient, acquiring a prompting prohibition instruction, playing the video according to the prompting prohibition instruction, and prohibiting the terminal from triggering an electric quantity insufficiency prompt in the process of playing the video;
the second prompting module is used for prompting a user that the terminal has insufficient electric quantity and is forced to be shut down in the process of playing the video under the condition that the third judging module judges that the terminal is in the state of yes;
the first acquisition module is further used for detecting whether the electric quantity of the terminal is increased or not after waiting for a preset time length; if the electric quantity of the terminal is increased, controlling the playing module to play the video; if the electric quantity of the terminal is not increased, detecting whether the electric quantity consumption of the terminal is reduced or not, or detecting whether the electric quantity required by playing the video is reduced or not; if the power consumption of the terminal is reduced or the power required by playing the video is reduced, controlling the third judging module to judge whether the power difference is smaller than a second preset power threshold value; and if the power consumption of the terminal is not reduced and the power required by playing the video is not reduced, displaying a selection interface, receiving a second playing instruction triggered by a user through a corresponding instruction acquisition interface in the selection interface, and controlling the playing module to play the video according to the second playing instruction.
4. The video playback device of claim 3, wherein the playback module specifically comprises: the prompting submodule, the obtaining submodule and the playing submodule;
the prompting submodule is used for prompting a user that the electric quantity is insufficient in the process of playing the video by the terminal;
the acquisition submodule is used for acquiring a prompt prohibition instruction;
and the playing submodule is used for playing the video according to the prompt forbidding instruction and forbidding the terminal to trigger the power shortage prompt in the process of playing the video.
5. The video playback apparatus according to claim 3 or 4, further comprising: the device comprises a second acquisition module, a second judgment module and a first prompt module;
the second obtaining module is configured to obtain a current third electric quantity of the terminal when it is detected that the terminal finishes playing the video;
the second judging module is configured to judge whether an electric quantity value of the third electric quantity is smaller than the first preset electric quantity threshold;
and the first prompting module is used for prompting the user that the current electric quantity of the terminal is insufficient when the second judging module judges that the current electric quantity of the terminal is insufficient.
6. A computer-readable storage medium storing a computer program for video playback, wherein the computer program causes a computer to perform the method of claim 1.
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 CN105392066A (en) 2016-03-09
CN105392066B true 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)

Families Citing this family (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
CN108419131B (en) * 2017-09-21 2020-05-19 荆书光 Device for preventing children myopia
CN107613385B (en) * 2017-09-21 2018-05-01 高雪亚 A kind of platform for preventing child myopia

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN104618560A (en) * 2013-11-05 2015-05-13 中兴通讯股份有限公司 Incoming call notification processing method and apparatus for mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1687815B1 (en) * 2003-11-18 2008-05-21 Koninklijke Philips Electronics N.V. Calculating required energy
CN103902010A (en) * 2012-12-26 2014-07-02 联想(北京)有限公司 Method for reducing power consumption and electronic equipment
EP3010157B1 (en) * 2014-05-30 2019-03-20 Huawei Technologies Co., Ltd. Method for detecting electric quantity of device, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN104618560A (en) * 2013-11-05 2015-05-13 中兴通讯股份有限公司 Incoming call notification processing method and apparatus for mobile terminal

Also Published As

Publication number Publication date
CN105392066A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN106028124B (en) Video playing method and device and electronic equipment
CN107391062A (en) Method and device for adjusting screen display and mobile terminal thereof
CN105163028B (en) A kind of control method and device of dual camera
CN105260117B (en) Application program control method and device
US9431059B2 (en) Information processing method and electronic device thereof
CN105392066B (en) A kind of video broadcasting method and device
CN106998494B (en) Video recording method and related device
EP2787423A1 (en) Standby operation control method and device
CN103634686A (en) Method and device for previewing video
CN103702155A (en) TV control method and device
CN104539843A (en) Terminal shooting method
CN108121631B (en) Screen abnormal state reminding method and device
US10231005B2 (en) Operation instructing method and apparatus for remote controller of intelligent television
CN106020510A (en) Control method and device of terminal
CN107509110A (en) A kind of loop play method and device of video file
CN106572374A (en) Multi-video playing control method and terminal
CN111405346A (en) Video stream playing control method, device and storage medium
CN106303655A (en) A kind of media content play cuing method and device
US10015307B2 (en) Electronic device and usage control method
CN109165064A (en) New message display method and device, storage medium and terminal
CN106162334A (en) The method to set up of TV timed power on/off and device
WO2018018685A1 (en) Screen control method, and terminal
CN106998495A (en) A kind of video broadcasting method and device
CN113806000A (en) Display method and device and electronic equipment
US20240094893A1 (en) Method and apparatus for prompting battery level

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