CN113439435A - Video playing method and device, storage medium and electronic equipment - Google Patents

Video playing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113439435A
CN113439435A CN201980092365.2A CN201980092365A CN113439435A CN 113439435 A CN113439435 A CN 113439435A CN 201980092365 A CN201980092365 A CN 201980092365A CN 113439435 A CN113439435 A CN 113439435A
Authority
CN
China
Prior art keywords
video
video file
playing
multimedia
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201980092365.2A
Other languages
Chinese (zh)
Inventor
帅朝春
张寅祥
陆天洋
吴建文
戴堃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN113439435A publication Critical patent/CN113439435A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • H04M1/73Battery saving arrangements
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The application discloses a video playing method, which comprises the following steps: when the electronic equipment plays a video, the current residual electric quantity of the electronic equipment is obtained, whether the residual electric quantity is smaller than the preset electric quantity or not is judged, if yes, the priority of an application program related to the video is reduced, a video file is obtained and processed, and the video is played according to the processed video file. The application also provides a video playing device, a storage medium and an electronic device.

Description

Video playing method and device, storage medium and electronic equipment Technical Field
The present application belongs to the technical field of electronic devices, and in particular, to a video playing method, apparatus, storage medium, and electronic device.
Background
With the development of terminal technology, terminals have begun to change from simply providing telephony devices to a platform for running general-purpose software. The platform no longer aims at providing call management, but provides an operating environment including various application software such as call management, game and entertainment, office events, mobile payment and the like, and with a great deal of popularization, the platform has been deeply developed to the aspects of life and work of people.
At present, when a user watches videos on electronic equipment, devices with high resource consumption, such as an image processor and a loudspeaker, are in a working state, so that a large amount of electricity is consumed in video playing, for example, when the electronic equipment watches videos in a low-electricity state, the equipment is shut down, and the use of the user is affected.
Disclosure of Invention
The application provides a video playing method, a video playing device, a storage medium and an electronic device, which can reduce the electric quantity consumed by the electronic device during video playing.
In a first aspect, an embodiment of the present application provides a video playing method, including:
when the electronic equipment plays a video, acquiring the current residual electric quantity of the electronic equipment;
judging whether the residual electric quantity is smaller than a preset electric quantity or not;
if so, reducing the priority of a target application program associated with the video, wherein the electronic equipment comprises a plurality of application programs, and the electronic equipment schedules equipment resources according to the priority corresponding to the application programs when the application programs are operated;
and acquiring a video file, processing the video file, and playing the video according to the processed video file.
In a second aspect, an embodiment of the present application provides a video playing apparatus, including: the device comprises a first acquisition module, a judgment module, a first processing module and a second processing module;
the first obtaining module is used for obtaining the current residual electric quantity of the electronic equipment when the electronic equipment plays a video;
the judging module is used for judging whether the residual electric quantity is smaller than a preset electric quantity or not;
the first processing module is configured to, when the determining module determines that the video is the video source, reduce the priority of a target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priorities corresponding to the applications when running the applications;
and the second processing module is used for acquiring and processing the video file and playing the video according to the processed video file.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the video playing method described above.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
when the electronic equipment plays a video, acquiring the current residual electric quantity of the electronic equipment;
judging whether the residual electric quantity is smaller than a preset electric quantity or not;
if so, reducing the priority of a target application program associated with the video, wherein the electronic equipment comprises a plurality of application programs, and the electronic equipment schedules equipment resources according to the priority corresponding to the application programs when the application programs are operated;
and acquiring a video file, processing the video file, and playing the video according to the processed video file.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present application.
Fig. 2 is another schematic flow chart of a video playing method according to an embodiment of the present application.
Fig. 3 is a scene schematic diagram of a video playing method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a video playing apparatus according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a video playing apparatus according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 8 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
In the prior art, an electronic device can run a plurality of applications, and the electronic device can prioritize the applications according to a standby grouping function, so that the applications call different scheduling of device resources such as a CPU or a network. However, the priority level applied in this way is fixed, the application programs in the same layer are not in sequence, and the way of scheduling the device resources is not intelligent and accurate enough.
An execution main body of the video playing method may be the video playing device provided in the embodiment of the present application, or an electronic device integrated with the video playing device, where the video playing device may be implemented in a hardware or software manner.
The embodiments of the present application will be described from the perspective of a video playback device, which may be specifically integrated in an electronic device. The video playing method comprises the following steps: when the electronic equipment plays a video, acquiring the current residual electric quantity of the electronic equipment;
judging whether the residual electric quantity is smaller than a preset electric quantity or not;
if so, reducing the priority of a target application program associated with the video, wherein the electronic equipment comprises a plurality of application programs, and the electronic equipment schedules equipment resources according to the priority corresponding to the application programs when the application programs are operated;
and acquiring a video file, processing the video file, and playing the video according to the processed video file.
In an embodiment, acquiring a video file and processing the video file, and playing the video according to the processed video file includes:
acquiring a history record of playing a multimedia file by the electronic equipment in a preset time period, wherein the multimedia file comprises a plurality of multimedia forms;
selecting a target multimedia form from the plurality of multimedia forms according to the history;
and processing the video file according to the target multimedia form and playing the video according to the processed video file.
In one embodiment, the multimedia format includes a picture format, and when the target multimedia format is the picture format, processing a video file according to the target multimedia format and playing the video according to the processed video file includes:
performing frame extraction processing on the video file for multiple times to obtain a picture set;
and playing the pictures in the picture set at preset time intervals.
In one embodiment, the multimedia format includes an audio format, and when the target multimedia format is the audio format, processing a video file according to the target multimedia format and playing the video according to the processed video file includes:
stopping playing the video stream of the video file and closing the screen of the electronic equipment;
and playing the audio stream of the video file.
In one embodiment, the multimedia format includes a video format, and when the target multimedia format is the video format, processing a video file according to the target multimedia format and playing the video according to the processed video file includes:
performing power saving processing on the video file, wherein the power saving processing comprises at least one of reducing the video resolution, reducing the video frame number and reducing the screen brightness;
and playing the video according to the video file after the power saving processing.
In one embodiment, prior to lowering the priority of the target application associated with the video, the method further comprises:
acquiring the use frequency of the target application program in the electronic equipment;
and allocating the priority of the target application program according to the use frequency.
In one embodiment, reducing the priority of a target application associated with the video comprises:
determining a target priority corresponding to the target application program according to the residual electric quantity;
adjusting the priority of the target application to the target priority.
Referring to fig. 1, fig. 1 is a schematic flowchart of a video playing method according to an embodiment of the present disclosure. The video playing method provided by the embodiment of the application is applied to the electronic equipment, and the specific flow can be as follows:
step 101, when the electronic device plays a video, acquiring the current remaining power of the electronic device.
In the use process of the electronic device, the video playing application program needs to decode the video and play the sound, so the power consumption of the video playing application program is higher than that of other application programs. In practical use, the video playing method provided by the mobile phone can reduce the power consumption of the electronic equipment during video playing, so that the cruising ability of the mobile phone is improved. Firstly, when the video is played on the electronic equipment, the current residual electric quantity of the electronic equipment is acquired in real time.
The initial power of the electronic device is known in advance, and the electronic device may consume a certain power by running a plurality of programs installed on the electronic device or using hardware, and the electronic device may obtain the remaining power of the electronic device according to a plurality of modes, for example: in practical application, a fuel gauge is arranged inside the power supply and used for indicating the residual power of the power supply and the time that the power supply can continuously supply power under specific working conditions, wherein the fuel gauge mainly uses a voltage testing method, a battery modeling method, a coulometer and the like, and the detection method is not specifically limited herein.
Step 102, determining whether the remaining power is less than a preset power, if yes, executing step 103.
In the embodiment of the application, a remaining power value is preset, after the current remaining power of the electronic device is obtained, the remaining power value is compared with the preset power value, and if the remaining power value is smaller than the preset power value, step 103 may be further executed to reduce power consumption of video playing.
In an embodiment, considering that the viewing experience of the user may be reduced when the video is continuously played by performing subsequent operations, after determining that the remaining power is less than the preset power, a prompt message may be generated, and the user selects whether to enter the low power consumption mode according to the prompt message, that is, continuously performs step 103, and if the user selects no, stops the current process and continuously plays the video. Optionally, after the user selects no and closes the prompt message, the pop-up may be performed every other preset time period, for example, 5 minutes, so as to continue to remind the user.
And 103, reducing the priority of the target application program associated with the video, wherein the electronic equipment comprises a plurality of application programs, and the electronic equipment schedules equipment resources according to the priority corresponding to the application programs when the application programs are operated.
The priority of the application program is associated with device resource scheduling of the electronic device. The electronic device is preset with a plurality of priority groups, and the system has different limits on the scheduling of device resources according to the application programs in each priority group.
For example, the electronic device is an android 9.0-based device, and the android 9.0 is newly added with an application standby grouping function, so that the system restricts an application from calling device resources such as a CPU or a network according to the use condition of the application by a user, where the application standby grouping function includes the following groups, respectively: active (being used), working (being used with a high frequency), frequently used (often but not daily), infrequent, and occasional, where applications in different groups call device resources with different priorities.
In an embodiment, the application program associated with the video is an application program used when the video is played, and when the application program is used to play the video, if the current remaining power is less than the preset power, the priority of the application program may be reduced, for example, the application program may be transferred from a common packet to a few packets, so as to limit the permission of the application program for calling the device resource.
In an embodiment, some more important applications may also be preset as the preset applications, and then before adjusting the priority, it is determined whether the application is the preset application, and if not, the step of decreasing the priority is continuously performed. Therefore, the priority setting of the application program which is important for the user can be prevented from being changed, and information data and the like are prevented from being missed. The preset application program may be added by the user or automatically set by the system, which is not further limited in this application.
And 104, acquiring and processing the video file, and playing the video according to the processed video file.
In one embodiment, the video file may be processed according to the habit of the user using the electronic device, and then the video may be played according to the processed video file. For example, a user watches more pictures in the process of using the electronic device, a video file can be converted into a picture, and then the picture is played; or the user can convert the video file into an audio file and then play the audio file if the user listens more music in the process of using the electronic equipment; for example, if a user watches more videos in the process of using the electronic device, the video file can be converted into a format which saves more electric quantity and played.
The method comprises the steps of acquiring a history record of the electronic equipment used by a user in a preset time period, then determining user preferences, and processing a video file according to the user preferences. The history of the user using the electronic device is to determine the preference of the user, so the history may be selected from the history in a longer period of time, for example, twenty days or thirty days, or may be set by the user, which is not further limited in this application.
As can be seen from the above, the video playing method provided in the embodiment of the present application can obtain the current remaining power of the electronic device when the electronic device plays a video, determine whether the remaining power is smaller than the preset power, and if so, reduce the priority of the target application program associated with the video, where the electronic device includes a plurality of application programs, and when the electronic device runs the application programs, the electronic device schedules device resources according to the priority corresponding to the application program, obtains a video file and processes the video file, and plays the video according to the processed video file. According to the embodiment of the application, when the electronic equipment plays the video, the priority of the application program corresponding to the video can be reduced, and the video file is played after being processed, so that the electric quantity consumption of the electronic equipment is reduced, and the cruising ability is improved.
The cleaning method of the present application will be further described below on the basis of the method described in the above embodiment. Referring to fig. 2, fig. 2 is another schematic flow chart of a video playing method according to an embodiment of the present application, where the video playing method includes:
step 201, acquiring the use frequency of an application program in the electronic device.
For example, the usage frequency of all the applications of the electronic device in a preset time period is obtained, and the usage frequency may be an operation frequency or a start frequency of the applications.
In step 202, the priority of the application program is allocated according to the use frequency.
In one embodiment, an electronic device includes power management functionality that can prioritize its resource requests based on frequency of use or last time of use of an application. The priority grouping, a total of five groups, will be divided into one of five priority groupings by the system according to the usage of each application, and each grouping has different restrictions on the scheduling of device resources. The higher the application activity, i.e. the higher the frequency of use, the higher the priority of the packet, and accordingly the easier it is to acquire the device resources.
In one embodiment, the application priority packets may include 5, active, work, common, rarely, and infrequently used packets, respectively. Alternatively, applications that have not been used at the last time after installation may be divided into a special group of "never" and subject to very strict system constraints.
Step 203, when the electronic device plays the video, the current remaining power of the electronic device is obtained.
The initial power of the electronic device is known in advance, and the electronic device may consume a certain power by running a plurality of programs installed on the electronic device or using hardware, and the electronic device may obtain the remaining power of the electronic device according to a plurality of modes, for example: and directly taking the residual capacity of the power supply on the electronic equipment as the residual capacity of the electronic equipment.
In step 204, it is determined whether the remaining power is less than the predetermined power, and if so, step 205 is executed.
In the embodiment of the present application, a remaining power value is preset, after the current remaining power of the electronic device is obtained, the remaining power is compared with the preset power, and if the remaining power is smaller than the preset power, step 205 may be further performed to reduce power consumption of video playing.
And step 205, reducing the priority of the application program associated with the video, wherein the priority of the application program is associated with the equipment resource scheduling of the electronic equipment.
In an embodiment, the application program associated with the video is an application program used when the video is played, and when the application program is used to play the video, if the current remaining power is less than the preset power, the priority of the application program may be reduced, for example, the application program may be transferred from a common packet to a few packets, so as to limit the permission of the application program for calling the device resource.
In an embodiment, the priority of the application program may be reduced according to the current remaining power, for example, the preset power is 20%, if the current remaining power is 10% to 20%, the priority of the application program is reduced by one priority, and if the current remaining power is 0% to 10%, the priority of the application program is reduced by two priorities. I.e., reducing the priority of the application associated with the video, including:
determining a target priority corresponding to the application program according to the residual electric quantity;
adjusting the priority of the application to the target priority.
In one embodiment, the priority of the application program can be only adjusted down but not up. For example, as shown in fig. 3, fig. 3 is a schematic view of a scenario of a method for adjusting a priority of an application according to an embodiment of the present application. The electronic equipment comprises a first priority, a second priority and a third priority, wherein the first priority is higher than the second priority, the second priority is higher than the third priority, and the application programs are divided into the following priority according to the use frequency of the application programs: the application program a and the application program b belong to a first priority level, the application program c and the application program d belong to a second priority level, and the application program e and the application program f belong to a third priority level. When the electronic equipment plays the video, the used application program is the application program b, when the residual electric quantity of the electronic equipment is smaller than the preset electric quantity, the priority of the application program b is reduced from the first priority to the second priority, and the priorities of the other application programs are not changed. Therefore, the electronic equipment allocates the equipment resources to the electronic equipment according to the priority adjusted by the application program.
Step 206, acquiring a history record of playing a multimedia file by the electronic device within a preset time period, wherein the multimedia file includes a plurality of multimedia forms.
In an embodiment, the video file can be processed according to the preference habit of the user, for example, the user can watch more pictures in the process of using the electronic device, the video file can be converted into pictures, and then the pictures are played; or the user can convert the video file into an audio file and then play the audio file if the user listens more music in the process of using the electronic equipment; for example, if a user watches more videos in the process of using the electronic device, the video file can be converted into a format which saves more electric quantity and played. Therefore, the embodiment of the application can acquire the history record of the multimedia file played by the electronic device in the preset time period, wherein the multimedia file can include three types, namely a picture type, an audio type and a video type.
Step 207, selecting a target multimedia form from the plurality of multimedia forms according to the history.
In an embodiment, the target multimedia form may be determined according to the usage time of the three multimedia forms in a preset time period, for example, in the last twenty days, the total time of the user watching pictures is 3 hours, the total time of the user listening to audio is 8 hours, and the total time of the user watching videos is 6 hours, the target multimedia form may be determined to be the audio form.
And 208, processing the video file according to the target multimedia form and playing the video according to the processed video file.
In an embodiment, when the target multimedia format is the picture format, the video file may be subjected to frame extraction for multiple times to obtain a picture set, and pictures in the picture set are played at preset time intervals. Specifically, the key frames in the video file, such as the frames in the movie showing the subtitles, may be determined first, then the key frames are extracted to obtain the picture set, and then the picture set is played in a slideshow manner, such as playing one picture every 5 seconds.
In an embodiment, when the target multimedia format is the audio format, the playing of the video stream of the video file may be stopped, the screen of the electronic device may be closed, and the audio stream of the video file may be played. For example, the decoding of the video data stream of the video file is prohibited, the decoding of the audio data stream of the video file is performed, the decoded audio data stream is output to the audio path, and when the output of the video data stream is closed, only the audio data stream is output, which may reduce the consumption of resources.
In an embodiment, when the target multimedia format is the video format, power saving processing may be performed on the video file, where the power saving processing includes at least one of reducing the video resolution, reducing the video frame number, and reducing screen brightness, and the video is played according to the video file after the power saving processing.
As can be seen from the above, the video playing method provided in the embodiment of the present application can obtain the use frequency of an application program in an electronic device, allocate the priority of the application program according to the use frequency, obtain the current remaining power of the electronic device when the electronic device plays a video, determine whether the remaining power is smaller than a preset power, and if so, reduce the priority of the application program associated with the video, where the priority of the application program is associated with device resource scheduling of the electronic device, obtain a history record of the electronic device playing a multimedia file within a preset time period, where the multimedia file includes a plurality of multimedia forms, select a target multimedia form from the plurality of multimedia forms according to the history record, process the video file according to the target multimedia form, and play the video according to the processed video file. According to the embodiment of the application, when the electronic equipment plays the video, the priority of the application program corresponding to the video can be reduced, and the video file is played after being processed, so that the electric quantity consumption of the electronic equipment is reduced, and the cruising ability is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a video playing device according to an embodiment of the present disclosure. The video playing apparatus 300 includes a first obtaining module 301, a determining module 302, a first processing module 303, and a second processing module 304;
the first obtaining module 301 is configured to obtain a current remaining power of the electronic device when the electronic device plays a video;
the determining module 302 is configured to determine whether the remaining power is less than a preset power;
the first processing module 303 is configured to, when the determining module 302 determines that the video is a video, lower a priority of a target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priorities corresponding to the applications when running the applications;
the second processing module 304 is configured to acquire a video file, process the video file, and play the video according to the processed video file.
In an embodiment, please refer to fig. 5, fig. 5 is a schematic view illustrating another structure of a video playing apparatus according to an embodiment of the present application, wherein the second processing module 304 may include: obtaining a sub-module 3041, selecting a sub-module 3042, and processing a sub-module 3043;
the obtaining submodule 3041 is configured to obtain a history record of playing, by the electronic device, a multimedia file in a preset time period, where the multimedia file includes multiple multimedia forms;
the selecting submodule 3042 is configured to select a target multimedia format from the plurality of multimedia formats according to the history;
the processing submodule 3043 is configured to process the video file according to the target multimedia format and play the video according to the processed video file.
In an embodiment, the multimedia format includes a picture format, and when the target multimedia format is the picture format, the processing sub-module 3043 is specifically configured to perform frame extraction processing on the video file multiple times to obtain a picture set, and play pictures in the picture set at preset time intervals.
In an embodiment, the multimedia format includes an audio format, and when the target multimedia format is the audio format, the processing sub-module 3043 is specifically configured to stop playing the video stream of the video file, close the screen of the electronic device, and play the audio stream of the video file.
In an embodiment, the multimedia format includes a video format, and when the target multimedia format is the video format, the processing sub-module 3043 is specifically configured to perform power saving processing on the video file, where the power saving processing includes at least one of reducing the resolution of the video, reducing the number of frames of the video, and reducing the screen brightness, and play the video according to the video file after the power saving processing.
In an embodiment, as illustrated in fig. 6, the apparatus may further include: a second acquisition module 305 and a distribution module 306;
the second obtaining module 305 is configured to obtain a frequency of use of a target application associated with the video in the electronic device before the first processing module 303 lowers a priority of the target application;
the allocating module 306 is configured to allocate the priority of the target application according to the usage frequency.
As can be seen from the above, the video playing apparatus in the embodiment of the application can obtain the current remaining power of the electronic device when the electronic device plays a video, determine whether the remaining power is smaller than the preset power, and if so, reduce the priority of the target application program associated with the video, where the electronic device includes a plurality of application programs, and when the electronic device runs the application programs, the electronic device schedules device resources according to the priority corresponding to the application program, obtains and processes a video file, and plays the video according to the processed video file. According to the embodiment of the application, when the electronic equipment plays the video, the priority of the application program corresponding to the video can be reduced, and the video file is played after being processed, so that the electric quantity consumption of the electronic equipment is reduced, and the cruising ability is improved.
In the embodiment of the present application, the video playing apparatus and the video playing method in the above embodiments belong to the same concept, and any method provided in the embodiment of the video playing method may be run on the video playing apparatus, and a specific implementation process thereof is described in detail in the embodiment of the video playing method, and is not described herein again.
The term "module" as used herein may be considered a software object executing on the computing system. The different components, modules, engines, and services described herein may be considered as implementation objects on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the video playing method.
The embodiment of the application also provides an electronic device, such as a tablet computer, a mobile phone and the like. The processor in the electronic device loads instructions corresponding to processes of one or more application programs into the memory according to the following steps, and the processor runs the application programs stored in the memory, so that various functions are realized:
when the electronic equipment plays a video, acquiring the current residual electric quantity of the electronic equipment;
judging whether the residual electric quantity is smaller than a preset electric quantity or not;
if so, reducing the priority of a target application program associated with the video, wherein the electronic equipment comprises a plurality of application programs, and the electronic equipment schedules equipment resources according to the priority corresponding to the application programs when the application programs are operated;
and acquiring a video file, processing the video file, and playing the video according to the processed video file.
In an embodiment, a video file is obtained and processed, and when the video is played according to the processed video file, the processor is configured to execute the following steps:
acquiring a history record of playing a multimedia file by the electronic equipment in a preset time period, wherein the multimedia file comprises a plurality of multimedia forms;
selecting a target multimedia form from the plurality of multimedia forms according to the history;
and processing the video file according to the target multimedia form and playing the video according to the processed video file.
In an embodiment, the multimedia format includes a picture format, and when the target multimedia format is the picture format, the processor is configured to process a video file according to the target multimedia format and play the video according to the processed video file, and execute the following steps:
performing frame extraction processing on the video file for multiple times to obtain a picture set;
and playing the pictures in the picture set at preset time intervals.
In an embodiment, the multimedia format includes an audio format, and when the target multimedia format is the audio format, the processor is configured to process a video file according to the target multimedia format and play the video according to the processed video file, and execute the following steps:
stopping playing the video stream of the video file and closing the screen of the electronic equipment;
and playing the audio stream of the video file.
In an embodiment, the multimedia format includes a video format, and when the target multimedia format is the video format, the processor is configured to process a video file according to the target multimedia format and play the video according to the processed video file, and execute the following steps:
performing power saving processing on the video file, wherein the power saving processing comprises at least one of reducing the video resolution, reducing the video frame number and reducing the screen brightness;
and playing the video according to the video file after the power saving processing.
In one embodiment, prior to reducing the priority of the target application associated with the video, the processor is further configured to:
acquiring the use frequency of the target application program in the electronic equipment;
and allocating the priority of the target application program according to the use frequency.
In one embodiment, when the priority of the target application associated with the video is lowered, the processor is configured to perform the steps of:
determining a target priority corresponding to the target application program according to the residual electric quantity;
adjusting the priority of the target application to the target priority.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 7, the electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 400 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 400 by running or loading a computer program stored in the memory 402 and calling data stored in the memory 402, and processes the data, thereby monitoring the electronic device 400 as a whole.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions, as follows:
when the electronic equipment plays a video, acquiring the current residual electric quantity of the electronic equipment;
judging whether the residual electric quantity is smaller than a preset electric quantity or not;
if so, lowering the priority of an application program associated with the video, wherein the priority of the application program is associated with equipment resource scheduling of the electronic equipment;
and processing the video file and playing the video according to the processed video file.
Referring to fig. 8, in some embodiments, the electronic device 400 may further include: a display 403, radio frequency circuitry 404, audio circuitry 405, and a power supply 406. The display 403, the rf circuit 404, the audio circuit 405, and the power source 406 are electrically connected to the processor 401.
The display 403 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 403 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices through wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 405 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone.
The power supply 406 may be used to power various components of the electronic device 400. In some embodiments, power supply 406 may be logically coupled to processor 401 via a power management system, such that functions to manage charging, discharging, and power consumption management are performed via the power management system.
Although not shown in fig. 8, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the video playing method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process for implementing the video playing method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, the computer program can be stored in a computer readable storage medium, such as a memory of the electronic device, and executed by at least one processor in the electronic device, and the process of executing the computer program can include the process of the embodiment of the video playing method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
For the video playing device in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The video playing method, the video playing device, the storage medium and the electronic device provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, 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 application.

Claims (20)

  1. A video playback method, wherein the method comprises the steps of:
    when the electronic equipment plays a video, acquiring the current residual electric quantity of the electronic equipment;
    judging whether the residual electric quantity is smaller than a preset electric quantity or not;
    if so, reducing the priority of a target application program associated with the video, wherein the electronic equipment comprises a plurality of application programs, and the electronic equipment schedules equipment resources according to the priority corresponding to the application programs when the application programs are operated;
    and acquiring a video file, processing the video file, and playing the video according to the processed video file.
  2. The video playing method according to claim 1, wherein the acquiring and processing a video file, and playing the video according to the processed video file comprises:
    acquiring a history record of playing a multimedia file by the electronic equipment in a preset time period, wherein the multimedia file comprises a plurality of multimedia forms;
    selecting a target multimedia form from the plurality of multimedia forms according to the history;
    and processing the video file according to the target multimedia form and playing the video according to the processed video file.
  3. The video playing method according to claim 2, wherein the multimedia format includes a picture format, and when the target multimedia format is the picture format, processing a video file according to the target multimedia format and playing the video according to the processed video file includes:
    performing frame extraction processing on the video file for multiple times to obtain a picture set;
    and playing the pictures in the picture set at preset time intervals.
  4. The video playing method according to claim 2, wherein the multimedia format includes an audio format, and when the target multimedia format is the audio format, processing a video file according to the target multimedia format and playing the video according to the processed video file comprises:
    stopping playing the video stream of the video file and closing the screen of the electronic equipment;
    and playing the audio stream of the video file.
  5. The video playing method according to claim 2, wherein the multimedia format includes a video format, and when the target multimedia format is the video format, processing a video file according to the target multimedia format and playing the video according to the processed video file includes:
    performing power saving processing on the video file, wherein the power saving processing comprises at least one of reducing the video resolution, reducing the video frame number and reducing the screen brightness;
    and playing the video according to the video file after the power saving processing.
  6. The video playback method of claim 1, wherein prior to lowering the priority of the target application associated with the video, the method further comprises:
    acquiring the use frequency of the target application program in the electronic equipment;
    and allocating the priority of the target application program according to the use frequency.
  7. The video playback method of claim 6, wherein deprioritizing a target application associated with the video comprises:
    determining a target priority corresponding to the target application program according to the residual electric quantity;
    adjusting the priority of the target application to the target priority.
  8. A video playback apparatus, wherein the apparatus comprises: the device comprises a first acquisition module, a judgment module, a first processing module and a second processing module;
    the first obtaining module is used for obtaining the current residual electric quantity of the electronic equipment when the electronic equipment plays a video;
    the judging module is used for judging whether the residual electric quantity is smaller than a preset electric quantity or not;
    the first processing module is configured to, when the determining module determines that the video is the video source, reduce the priority of a target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priorities corresponding to the applications when running the applications;
    and the second processing module is used for acquiring and processing the video file and playing the video according to the processed video file.
  9. The video playback device of claim 8, wherein the second processing module comprises: acquiring a submodule, selecting a submodule and processing the submodule;
    the obtaining submodule is used for obtaining a history record of playing a multimedia file by the electronic equipment in a preset time period, wherein the multimedia file comprises a plurality of multimedia forms;
    the selection submodule is used for selecting a target multimedia form from the plurality of multimedia forms according to the historical records;
    and the processing submodule is used for processing the video file according to the target multimedia form and playing the video according to the processed video file.
  10. The video playback device of claim 9, wherein the multimedia form comprises a picture form;
    and when the target multimedia form is the picture form, the processing submodule is specifically configured to perform frame extraction processing on the video file for multiple times to obtain a picture set, and play pictures in the picture set at preset time intervals.
  11. The video playback device of claim 9, wherein the multimedia form comprises an audio form;
    and when the target multimedia form is the audio form, the processing sub-module is specifically configured to stop playing the video stream of the video file, close the screen of the electronic device, and play the audio stream of the video file.
  12. The video playback device of claim 8, wherein the device further comprises: a second acquisition module and a distribution module;
    the second obtaining module is used for obtaining the use frequency of a target application program in the electronic equipment before the first processing module reduces the priority of the target application program associated with the video;
    the allocation module is used for allocating the priority of the target application program according to the use frequency.
  13. A storage medium having stored thereon a computer program, wherein the computer program, when run on a computer, causes the computer to execute a video playback method according to any one of claims 1 to 7.
  14. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions, wherein the instructions in the memory are loaded by the processor for performing the steps of:
    when the electronic equipment plays a video, acquiring the current residual electric quantity of the electronic equipment;
    judging whether the residual electric quantity is smaller than a preset electric quantity or not;
    if so, reducing the priority of a target application program associated with the video, wherein the electronic equipment comprises a plurality of application programs, and the electronic equipment schedules equipment resources according to the priority corresponding to the application programs when the application programs are operated;
    and acquiring a video file, processing the video file, and playing the video according to the processed video file.
  15. The electronic device of claim 14, wherein a video file is obtained and processed, and when the video is played according to the processed video file, the processor is configured to perform the following steps:
    acquiring a history record of playing a multimedia file by the electronic equipment in a preset time period, wherein the multimedia file comprises a plurality of multimedia forms;
    selecting a target multimedia form from the plurality of multimedia forms according to the history;
    and processing the video file according to the target multimedia form and playing the video according to the processed video file.
  16. The electronic device of claim 15, wherein the multimedia form comprises a picture form, and when the target multimedia form is the picture form, a video file is processed according to the target multimedia form, and the video is played according to the processed video file, the processor is configured to perform the following steps:
    performing frame extraction processing on the video file for multiple times to obtain a picture set;
    and playing the pictures in the picture set at preset time intervals.
  17. The electronic device of claim 15, wherein the multimedia form comprises an audio form, and when the target multimedia form is the audio form, a video file is processed according to the target multimedia form, and the video is played according to the processed video file, the processor is configured to perform the following steps:
    stopping playing the video stream of the video file and closing the screen of the electronic equipment;
    and playing the audio stream of the video file.
  18. The electronic device of claim 15, wherein the multimedia form comprises a video form, and when the target multimedia form is the video form, a video file is processed according to the target multimedia form, and the video is played according to the processed video file, the processor is configured to perform the following steps:
    performing power saving processing on the video file, wherein the power saving processing comprises at least one of reducing the video resolution, reducing the video frame number and reducing the screen brightness;
    and playing the video according to the video file after the power saving processing.
  19. The electronic device of claim 14, wherein prior to de-prioritizing a target application associated with the video, the processor is further configured to:
    acquiring the use frequency of the target application program in the electronic equipment;
    and allocating the priority of the target application program according to the use frequency.
  20. The electronic device of claim 19, wherein, in lowering the priority of a target application associated with the video, the processor is configured to:
    determining a target priority corresponding to the target application program according to the residual electric quantity;
    adjusting the priority of the target application to the target priority.
CN201980092365.2A 2019-04-12 2019-04-12 Video playing method and device, storage medium and electronic equipment Pending CN113439435A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/082483 WO2020206688A1 (en) 2019-04-12 2019-04-12 Video playback method and apparatus, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN113439435A true CN113439435A (en) 2021-09-24

Family

ID=72750927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980092365.2A Pending CN113439435A (en) 2019-04-12 2019-04-12 Video playing method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN113439435A (en)
WO (1) WO2020206688A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112423003A (en) * 2020-11-05 2021-02-26 深圳Tcl新技术有限公司 Live program playing method and device, intelligent refrigerator and storage medium
CN114640890B (en) * 2020-12-15 2024-05-17 北京神州数码云科信息技术有限公司 Video data dynamic loading method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312880A (en) * 2012-03-15 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Terminal and application program data loading method
CN106303007A (en) * 2016-08-08 2017-01-04 乐视控股(北京)有限公司 Video broadcasting method, playing device and playback terminal
CN106791002A (en) * 2016-11-28 2017-05-31 滁州昭阳电信通讯设备科技有限公司 The control method and mobile terminal of a kind of video playback

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120079398A (en) * 2011-01-04 2012-07-12 삼성전자주식회사 Apparatus and method for reducing power consumption in portable terminal
CN103916622B (en) * 2013-01-06 2020-06-23 联想(北京)有限公司 Call mode switching method and device
US8972760B1 (en) * 2013-12-20 2015-03-03 Futurewei Technologies, Inc. Method and apparatus for reducing power consumption in a mobile electronic device using a second launcher
CN109445918B (en) * 2018-10-17 2021-06-18 Oppo广东移动通信有限公司 Task scheduling method, device, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312880A (en) * 2012-03-15 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Terminal and application program data loading method
CN106303007A (en) * 2016-08-08 2017-01-04 乐视控股(北京)有限公司 Video broadcasting method, playing device and playback terminal
CN106791002A (en) * 2016-11-28 2017-05-31 滁州昭阳电信通讯设备科技有限公司 The control method and mobile terminal of a kind of video playback

Also Published As

Publication number Publication date
WO2020206688A1 (en) 2020-10-15

Similar Documents

Publication Publication Date Title
US11397590B2 (en) Method for preloading application, storage medium, and terminal
CN107861816B (en) Resource allocation method and device
US20210389973A1 (en) Electronic device and method for operating the same
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN109960539A (en) Application program preloads method, apparatus, storage medium and mobile terminal
US20140179377A1 (en) Mobile electronic device having program notification function and program notification method thereof
CN110221921A (en) EMS memory management process, terminal and computer readable storage medium
CN107483751B (en) Terminal device, electric quantity distribution method thereof and computer-readable storage medium
CN109947495A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN103513748A (en) Method for processing information, information processor and electronic device
CN107479953B (en) Process management method, device, storage medium and electronic equipment
CN109445918B (en) Task scheduling method, device, terminal and storage medium
US12015733B2 (en) Do-not-disturb method and terminal
CN113439435A (en) Video playing method and device, storage medium and electronic equipment
CN113760081B (en) Power consumption processing method based on service and terminal equipment
CN107832131B (en) Application program closing method and device, storage medium and electronic equipment
CN113157439B (en) Resource statistics method, device and terminal
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
CN112997152B (en) Application program priority adjustment method and device, storage medium and electronic equipment
CN113439263A (en) Application cleaning method and device, storage medium and electronic equipment
CN112997150B (en) Application management method and device, storage medium and electronic equipment
CN111355848B (en) Positioning control method and device of electronic equipment, storage medium and electronic equipment
CN110515736B (en) Method, device, terminal and storage medium for limiting background object
CN116700913A (en) Scheduling method, equipment and storage medium of embedded file system
CN112860352A (en) Application loading method and device, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination