[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2020206688A1 - Video playback method and apparatus, storage medium and electronic device - Google Patents

Video playback method and apparatus, storage medium and electronic device Download PDF

Info

Publication number
WO2020206688A1
WO2020206688A1 PCT/CN2019/082483 CN2019082483W WO2020206688A1 WO 2020206688 A1 WO2020206688 A1 WO 2020206688A1 CN 2019082483 W CN2019082483 W CN 2019082483W WO 2020206688 A1 WO2020206688 A1 WO 2020206688A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
electronic device
video file
file
multimedia
Prior art date
Application number
PCT/CN2019/082483
Other languages
French (fr)
Chinese (zh)
Inventor
帅朝春
张寅祥
陆天洋
吴建文
戴堃
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201980092365.2A priority Critical patent/CN113439435A/en
Priority to PCT/CN2019/082483 priority patent/WO2020206688A1/en
Publication of WO2020206688A1 publication Critical patent/WO2020206688A1/en

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

Definitions

  • This application provides a video playback method, device, storage medium, and electronic equipment, which can reduce the power consumed by the electronic equipment during video playback.
  • FIG. 1 is a schematic flowchart of a video playback method provided by an embodiment of the application.
  • the embodiments of the present application provide a video playback method.
  • the execution subject of the video playback method may be the video playback device provided in the embodiments of the present application, or an electronic device integrated with the video playback device, wherein the video playback device may use hardware or Realized by software.
  • the power saving processing includes at least one of reducing the video resolution, reducing the number of video frames, and reducing screen brightness;
  • Step 101 When the electronic device plays a video, obtain the current remaining power of the electronic device.
  • the video file can be processed according to the user’s preferences. For example, when the user watches a lot of pictures while using the electronic device, the video file can be converted into a picture and then played back; or the user is using If you listen to more music in the process of electronic equipment, you can convert the video file into an audio file, and then play the audio file; for example, if the user watches more videos while using the electronic device, you can convert the video file into more economical Power format and play. Therefore, the embodiment of the present application can obtain the historical record of the multimedia file played by the electronic device within the preset time period, where the multimedia file may include three types: picture format, audio format, and video format.
  • the apparatus may further include: a second acquisition module 305 and an allocation module 306;

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

Disclosed by the present application is a video playback method, comprising: when an electronic device plays back a video, acquiring the current remaining power of the electronic device, determining whether the remaining power is less than a preset power, and if so, decreasing the priority level of an application program associated with the video, acquiring a video file and processing the video file, and playing back the video according to the processed video file. Further provided by the present application are a video playback apparatus, a storage medium and an electronic device.

Description

视频播放方法、装置、存储介质及电子设备Video playback method, device, storage medium and electronic equipment 技术领域Technical field
本申请属于电子设备技术领域,尤其涉及一种视频播放方法、装置、存储介质及电子设备。This application belongs to the technical field of electronic equipment, and in particular relates to a video playback method, device, storage medium and electronic equipment.
背景技术Background technique
随着终端技术的发展,终端已经开始从以前简单地提供通话设备渐渐变成一个通用软件运行的平台。该平台不再以提供通话管理为主要目的,而是提供一个包括通话管理、游戏娱乐、办公记事、移动支付等各类应用软件在内的运行环境,随着大量的普及,已经深入至人们的生活、工作的方方面面。With the development of terminal technology, terminals have gradually evolved from simply providing call equipment to a platform for general software operation. The platform no longer provides call management as its main purpose, but provides an operating environment including call management, game entertainment, office notes, mobile payment and other application software. With a large number of popularization, it has penetrated into people's All aspects of life and work.
目前用户在电子设备上观看视频时,图像处理器、喇叭等消耗资源高的器件处于工作状态,导致视频播放会消耗大量的电量,例如当电子设备处于低电状态下观看视频时,将会造成设备关机,影响用户的使用。At present, when users watch videos on electronic devices, image processors, speakers, and other high-resource devices are in working condition, causing video playback to consume a lot of power. For example, when the electronic device is in a low-power state, it will cause The device shuts down, affecting the user's use.
发明内容Summary of the invention
本申请提供一种视频播放方法、装置、存储介质及电子设备,能够减少视频播放时电子设备所消耗的电量。This application provides a video playback method, device, storage medium, and electronic equipment, which can reduce the power consumed by the electronic equipment during video playback.
第一方面,本申请实施例提供一种视频播放方法,包括:In the first aspect, an embodiment of the present application provides a video playback method, including:
当电子设备播放视频时,获取所述电子设备当前的剩余电量;When the electronic device plays a video, obtain the current remaining power of the electronic device;
判断所述剩余电量是否小于预设电量;Determine whether the remaining power is less than a preset power;
若是,则降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;If yes, lower the priority of the target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priority corresponding to the application when running the application;
获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。Obtain a video file and process the video file, and play the video according to the processed video file.
第二方面,本申请实施例提供一种视频播放装置,包括:第一获取模块、判断模块、第一处理模块以及第二处理模块;In a second aspect, an embodiment of the present application provides a video playback device, including: a first acquisition module, a judgment module, a first processing module, and a second processing module;
所述第一获取模块,用于当电子设备播放视频时,获取所述电子设备当前的剩余电量;The first obtaining module is configured to obtain the current remaining power of the electronic device when the electronic device plays a video;
所述判断模块,用于判断所述剩余电量是否小于预设电量;The judgment module is used to judge whether the remaining power is less than a preset power;
所述第一处理模块,用于当所述判断模块判断为是时,降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;The first processing module is configured to reduce the priority of the target application program associated with the video when the judgment module determines that it is yes, wherein the electronic device includes multiple applications, and the electronic device is When running an application, schedule device resources according to the priority of the application;
所述第二处理模块,用于获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。The second processing module is configured to obtain a video file and process the video file, and play 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 above video playback method.
第四方面,本申请实施例提供一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,所述处理器加载所述存储器中的指令用于执行以下步骤:In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions in the memory to perform the following steps:
当电子设备播放视频时,获取所述电子设备当前的剩余电量;When the electronic device plays a video, obtain the current remaining power of the electronic device;
判断所述剩余电量是否小于预设电量;Determine whether the remaining power is less than a preset power;
若是,则降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;If yes, lower the priority of the target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priority corresponding to the application when running the application;
获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。Obtain a video file and process the video file, and play the video according to the processed video file.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1为本申请实施例提供的视频播放方法的一种流程示意图。FIG. 1 is a schematic flowchart of a video playback method provided by an embodiment of the application.
图2为本申请实施例提供的视频播放方法的另一流程示意图。FIG. 2 is a schematic diagram of another flow of a video playback method provided by an embodiment of the application.
图3为本申请实施例提供的视频播放方法的场景示意图。FIG. 3 is a schematic diagram of a scene of a video playback method provided by an embodiment of the application.
图4为本申请实施例提供的视频播放装置的结构示意图。FIG. 4 is a schematic structural diagram of a video playback device provided by an embodiment of the application.
图5为本申请实施例提供的视频播放装置的另一结构示意图。FIG. 5 is a schematic diagram of another structure of a video playback device provided by an embodiment of the application.
图6为本申请实施例提供的视频播放装置的又一结构示意图。FIG. 6 is a schematic diagram of another structure of a video playback device provided by an embodiment of the application.
图7为本申请实施例提供的电子设备的结构示意图。FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
图8为本申请实施例提供的电子设备的另一结构示意图。FIG. 8 is a schematic diagram of another structure of an electronic device provided by an embodiment of the application.
具体实施方式detailed description
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。Please refer to the drawings, in which the same component symbols represent the same components, and the principle of the present application is implemented in an appropriate computing environment for illustration. The following description is based on the exemplified specific embodiments of the present application, which should not be regarded as limiting other specific embodiments that are not described in detail herein.
在以下的说明中,本申请的具体实施例将参考由一部或多部计算机所执行的步骤及符号来说明,除非另有述明。因此,这些步骤及操作将有数次提到由计算机执行,本文所指的计算机执行包括了由代表了以一结构化型式中的数据的电子信号的计算机处理单元的操作。此操作转换该数据或将其维持在该计算机的内存系统中的位置处,其可重新配置或另外以本领域测试人员所熟知的方式来改变该计算机的运作。该数据所维持的数据结构为该内存的实体位置,其具有由该数据格式所定义的特定特性。但是,本申请原理以上述文字来说明,其并不代表为一种限制,本领域测试人员将可了解到以下所述的多种步骤及操作亦可实施在硬件当中。In the following description, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise stated. Therefore, these steps and operations will be mentioned several times as being executed by a computer. The computer execution referred to in this article includes the operation of a computer processing unit that represents an electronic signal of data in a structured form. This operation converts the data or maintains it in a position in the computer's memory system, which can be reconfigured or otherwise changed the operation of the computer in a manner well known to testers in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principle of this application is described in the above text, which does not represent a limitation. Testers in the field will understand that the various steps and operations described below can also be implemented in hardware.
本申请中的术语“第一”、“第二”和“第三”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是某些实施例还包括没有列出的步骤或模块,或某些实施例还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first", "second" and "third" in this application are used to distinguish different objects, rather than describing a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments It also includes other steps or modules inherent to these processes, methods, products, or equipment.
现有技术当中,电子设备当中能够运行多个应用程序,电子设备可以根据待机分组功能对这些应用程序划分优先级,使这些应用程序调用CPU或网络等设备资源的调度不同。然而这种方式应用的优先级级别是固定的,同一层级的应用程序没有顺序先后,其设备资源调度的方式不够智能和准确。In the prior art, an electronic device can run multiple application programs, and the electronic device can prioritize these application programs according to the standby grouping function, so that the scheduling of these application programs calling device resources such as CPU or network is different. However, the priority level of applications in this way is fixed, there is no order for applications at the same level, and the device resource scheduling method is not smart and accurate.
本申请实施例提供一种视频播放方法,该视频播放方法的执行主体可以是本申请实施例提供的视频播放装置,或者集成了该视频播放装置的电子设备,其中该视频播放装置可以采用硬件或者软件的方式实现。The embodiments of the present application provide a video playback method. The execution subject of the video playback method may be the video playback device provided in the embodiments of the present application, or an electronic device integrated with the video playback device, wherein the video playback device may use hardware or Realized by software.
本申请实施例将从视频播放装置的角度进行描述,该视频播放装置具体可以集成在电子设备中。该视频播放方法包括:当电子设备播放视频时,获取所 述电子设备当前的剩余电量;The embodiments of the present application will be described from the perspective of a video playback device, and the video playback device may be specifically integrated in an electronic device. The video playback method includes: obtaining the current remaining power of the electronic device when the electronic device plays the video;
判断所述剩余电量是否小于预设电量;Determine whether the remaining power is less than a preset power;
若是,则降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;If yes, lower the priority of the target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priority corresponding to the application when running the application;
获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。Obtain a video file and process the video file, and play the video according to the processed video file.
一实施例中,获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频,包括:In an embodiment, obtaining a video file and processing the video file, and playing the video according to the processed video file includes:
获取所述电子设备在预设时间段内播放多媒体文件的历史记录,其中,所述多媒体文件包括多个多媒体形式;Acquiring a historical record of the multimedia file played by the electronic device in a preset time period, where the multimedia file includes multiple multimedia forms;
根据所述历史记录从所述多个多媒体形式当中选取目标多媒体形式;Selecting a target multimedia form from the plurality of multimedia forms according to the historical record;
根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频。The video file is processed according to the target multimedia form and the video is played according to the processed video file.
一实施例中,所述多媒体形式包括图片形式,当所述目标多媒体形式为所述图片形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频,包括:In an embodiment, the multimedia format includes a picture format. 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 multiple frame extraction processing on the video file to obtain a picture set;
以预设时间间隔对所述图片集合中的图片进行播放。Playing the pictures in the picture set at a preset time interval.
一实施例中,所述多媒体形式包括音频形式,当所述目标多媒体形式为所述音频形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频,包括:In an embodiment, the multimedia format includes an audio format. 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 :
停止播放所述视频文件的视频流并关闭所述电子设备的屏幕;Stop playing the video stream of the video file and close the screen of the electronic device;
播放所述视频文件的音频流。Play the audio stream of the video file.
一实施例中,所述多媒体形式包括视频形式,当所述目标多媒体形式为所述视频形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频,包括:In an embodiment, the multimedia format includes a video format. When the target multimedia format is the video format, processing the 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, where the power saving processing includes at least one of reducing the video resolution, reducing the number of video frames, and reducing screen brightness;
根据所述省电处理后的视频文件播放所述视频。Playing the video according to the video file after the power saving processing.
一实施例中,在降低与所述视频关联的目标应用程序的优先级之前,所述方法还包括:In an embodiment, before reducing the priority of the target application associated with the video, the method further includes:
获取所述电子设备当中所述目标应用程序的使用频率;Acquiring the frequency of use of the target application in the electronic device;
根据所述使用频率分配所述目标应用程序的优先级。The priority of the target application is allocated according to the frequency of use.
一实施例中,降低与所述视频关联的目标应用程序的优先级,包括:In an embodiment, reducing the priority of the target application associated with the video includes:
根据所述剩余电量确定所述目标应用程序对应的目标优先级;Determining the target priority corresponding to the target application according to the remaining power;
将所述目标应用程序的优先级调整为所述目标优先级。The priority of the target application is adjusted to the target priority.
请参阅图1,图1为本申请实施例提供的视频播放方法的流程示意图。本申请实施例提供的视频播放方法应用于电子设备,具体流程可以如下:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a video playback method provided by an embodiment of the application. The video playback method provided in the embodiments of the application is applied to electronic equipment, and the specific process may be as follows:
步骤101,当电子设备播放视频时,获取电子设备当前的剩余电量。Step 101: When the electronic device plays a video, obtain the current remaining power of the electronic device.
在电子设备的使用过程中,视频播放类应用程序需要对视频解码并且需要播放声音,因此其耗电量要高于其他应用程序。在实际使用当中,本身请提供的视频播放方法可以降低电子设备在播放视频时的功耗,从而提升手机的续航能力。首先在电子设备播放视频时,实时获取电子设备当前的剩余电量。During the use of electronic devices, video playback applications need to decode videos and need to play sounds, so their power consumption is higher than other applications. In actual use, the video playback method provided by itself can reduce the power consumption of electronic devices when playing videos, thereby improving the battery life of the mobile phone. First, when the electronic device is playing a video, the current remaining power of the electronic device is obtained in real time.
其中,电子设备的初始电量是预知的,电子设备通过运行安装在电子设备上的多个程序或者使用硬件等方式消耗一定的电量,则电子设备可以根据多种方式获取电子设备的剩余电量,例如:直接将电子设备上电源的剩余电量作为电子设备的剩余电量,在实际应用中,在电源的内部设置有电量计,用于指示电源的剩余电量以及在特定工作条件下电源还能持续供电的时间,其中电量计主要运用的检测方式有电压测试法,电池建模法,库仑计等,此处不做具体限定。Among them, the initial power of the electronic device is predicted. The electronic device consumes a certain amount of power by running multiple programs installed on the electronic device or using hardware. The electronic device can obtain the remaining power of the electronic device in a variety of ways, such as : Directly use the remaining power of the power supply on the electronic device as the remaining power of the electronic device. In practical applications, there is a fuel gauge inside the power supply to indicate the remaining power of the power supply and the power supply can continue to supply power under specific working conditions Time, the main detection methods used by the fuel gauge include voltage test method, battery modeling method, coulomb meter, etc., which are not specifically limited here.
步骤102,判断剩余电量是否小于预设电量,若是,则执行步骤103。Step 102: Determine whether the remaining power is less than the preset power, and if so, perform step 103.
本申请实施例中预设一个剩余电量值,在获取到电子设备当前的剩余电量后,将剩余电量与该预设电量对比,若小于该预设电量,则可以进一步执行步骤103,以降低视频播放的功耗。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. If it is less than the preset power, step 103 can be further performed to reduce the video. Power consumption of playback.
在一实施例中,考虑到再进行后续操作以继续播放视频时可能会降低用户的观看体验,因此在确定剩余电量小于预设电量后,还可以生成一提示信息,由用户根据该提示信息选择是否进入低功耗模式,也即继续执行步骤103,若用户选择否,则停止当前流程并继续播放视频。可选的,还可以在用户选择否并关闭提示信息后,每隔一预设时间段比如5分钟就弹出一次,以继续提醒用 户。In one embodiment, considering that subsequent operations to continue playing the video may reduce the user’s viewing experience, after determining that the remaining power is less than the preset power, a prompt message may be generated, and the user can select according to the prompt information Whether to enter the low power consumption mode, that is, continue to perform step 103, if the user chooses no, stop the current process and continue to play the video. Optionally, after the user chooses No and closes the prompt message, it will pop up every preset time period, such as 5 minutes, to continue to remind the user.
步骤103,降低与视频关联的目标应用程序的优先级,其中,电子设备包括多个应用程序,电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源。Step 103: Lower the priority of the target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priority corresponding to the application when running the application.
其中,上述应用程序的优先级与电子设备的设备资源调度相关联。电子设备当中预设多个优先级分组,系统会针对每个优先级分组中的应用程序对设备资源的调度各有不同的限制。Wherein, the priority of the above-mentioned application program is associated with the device resource scheduling of the electronic device. A plurality of priority groups are preset in the electronic device, and the system will have different restrictions on the scheduling of device resources for the applications in each priority group.
比如,电子设备为基于安卓9.0的设备,安卓9.0新增了应用待机分组功能,让系统根据用户对应用的使用情况而限制应用调用CPU或网络等设备资源,应用待机分组功能中包含如下分组,分别为:活跃(正在被使用)、工作(使用频率很高)、常用(经常用但不是每天)、极少、偶尔使用,其中不同分组当中的应用程序调用设备资源的优先级也不相同。For example, the electronic device is a device based on Android 9.0. Android 9.0 has a new application standby grouping function, which allows the system to restrict the application from calling device resources such as CPU or network according to the user's use of the application. The application standby grouping function includes the following groups: They are: active (being used), work (high frequency of use), frequently used (frequently used but not every day), rarely, and occasionally used. Among them, applications in different groups have different priorities for calling device resources.
在一实施例中,上述与视频关联的应用程序即为播放该视频时所用到的应用程序,在使用该应用程序播放视频时,若当前剩余电量小于预设电量,则可以将该应用程序的优先级调低,比如将其从常用分组转移至极少分组,以限制该应用程序调用设备资源的权限。In one embodiment, the above-mentioned application associated with the video is the application used when playing the video. When the application is used to play the video, if the current remaining power is less than the preset power, the application’s Lower the priority, such as shifting it from frequently used groups to very few groups, to restrict the application's authority to call device resources.
在一实施例中,还可以预先设置一些比较重要的应用程序为预设应用程序,然后在调整优先级之前先判断该应用程序是否为预设应用程序,若否,则继续执行降低优先级的步骤。这样可以避免更改对用户较为重要的应用程序的优先级设置,从而造成错失信息数据等。其中,上述预设应用程序可以由用户自行添加也可以由系统自动设置,本申请对此不做进一步限定。In one embodiment, it is also possible to preset some more important applications as preset applications, and then determine whether the application is a preset application before adjusting the priority, if not, continue to execute the lower priority application step. In this way, you can avoid changing the priority settings of applications that are more important to users, resulting in missing information and data. Among them, the above-mentioned preset application program can be added by the user or automatically set by the system, which is not further limited in this application.
步骤104,获取视频文件并对视频文件进行处理,根据处理后的视频文件播放视频。Step 104: Obtain a video file and process the video file, and play the video according to the processed video file.
在一实施例中,可以根据用户使用电子设备的习惯来对视频文件进行处理,然后根据处理后的视频文件播放视频。比如,用户在使用电子设备的过程中观看图片比较多,可以将视频文件转换为图片,然后播放图片;或者用户在使用电子设备的过程中听音乐比较多,则可以将视频文件转换为音频文件,然后播放该音频文件;再比如用户在使用电子设备的过程中观看视频比较多,则可以将视频文件转化为更加节省电量的格式并进行播放。In an embodiment, the video file can be processed according to the user's habit of using the electronic device, and then the video is played according to the processed video file. For example, if users watch a lot of pictures while using electronic devices, they can convert video files into pictures and then play the pictures; or if users listen to more music while using electronic devices, they can convert video files into audio files. , And then play the audio file; for example, if the user watches more videos while using the electronic device, the video file can be converted into a more power-saving format and played.
其中,可以获取在预设时间段内用户使用电子设备的历史纪录,然后确定 用户喜好,并根据用户喜好对视频文件进行处理。上述用户使用电子设备的历史纪录是为了确定用户喜好,因此可以选取较长一段时间段内的历史纪录,比如二十天或三十天等,也可以由用户自行设定,本申请对此不做进一步限定。Among them, the historical record of the user's use of the electronic device within a preset time period can be obtained, and then the user's preferences can be determined, and the video files can be processed according to the user's preferences. The above-mentioned historical records of the user’s use of electronic equipment are to determine user preferences. Therefore, historical records within a relatively long period of time, such as twenty days or thirty days, can be selected, or they can be set by the user. This application does not Make further restrictions.
由上可知,本申请实施例提供的视频播放方法可以当电子设备播放视频时,获取电子设备当前的剩余电量,判断剩余电量是否小于预设电量,若是,则降低与视频关联的目标应用程序的优先级,其中,电子设备包括多个应用程序,电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源,获取视频文件并对视频文件进行处理,根据处理后的视频文件播放视频。本申请实施例可以在电子设备播放视频时,降低视频对应的应用程序的优先级,并且对视频文件进行处理后播放,从而降低电子设备电量的消耗,提升续航能力。It can be seen from the above that the video playback method provided by the embodiments of the present application can obtain the current remaining power of the electronic device when the electronic device plays a video, and determine whether the remaining power is less than the preset power, and if so, reduce the power of the target application associated with the video. Priority, where the electronic device includes multiple application programs. When the electronic device runs the application program, the electronic device schedules device resources according to the priority corresponding to the application program, obtains and processes the video file, and plays the video according to the processed video file. The embodiment of the present application can reduce the priority of the application program corresponding to the video when the electronic device plays the video, and process the video file before playing, thereby reducing the power consumption of the electronic device and improving the battery life.
下面将在上述实施例描述的方法基础上,对本申请的清理方法做进一步介绍。参阅图2,图2为本申请实施例提供的视频播放方法的另一流程示意图,该视频播放方法包括:On the basis of the method described in the foregoing embodiment, the cleaning method of the present application will be further introduced below. Referring to FIG. 2, FIG. 2 is a schematic diagram of another flow of a video playback method provided by an embodiment of the application. The video playback method includes:
步骤201,获取电子设备当中应用程序的使用频率。Step 201: Obtain the usage frequency of the application in the electronic device.
比如,获取电子设备在一预设时间段内所有应用程序的使用频率,该使用频率可以为运行频率,也可以为应用程序的启动频率。For example, to obtain the frequency of use of all applications of the electronic device in a preset time period, the frequency of use may be the running frequency or the starting frequency of the application.
步骤202,根据使用频率分配应用程序的优先级。Step 202: Allocate the priority of the application according to the frequency of use.
在一实施例中,电子设备包括电量管理功能,它能根据应用的使用频率或者最近一次使用时间,对其资源请求进行优先级排序。该优先级分组一共有五个分组,系统会根据每个应用的使用情况,将其划分至五个优先分组中的一个,而每个分组对设备资源的调度各有不同的限制。应用活跃度越高也即使用频率越高,所处分组的优先级就越高,也就相应地更容易获取设备资源。In one embodiment, the electronic device includes a power management function, which can prioritize its resource requests according to the frequency of use of the application or the time of last use. There are five priority groups in this priority group, and the system divides it into one of the five priority groups according to the usage of each application, and each group has different restrictions on the scheduling of device resources. The higher the application activity, that is, the higher the frequency of use, the higher the priority of the group in which it is located, and the easier it is to obtain device resources.
在一实施例中,应用程序优先级分组可以包括5个,分别为活跃、工作、常用、极少以及偶尔被使用分组。可选的,安装后一次都未被使用过的应用程序可以被划分至“从不”这一特殊群组,并受到十分严格的系统限制。In an embodiment, application priority groups may include 5 groups, which are active, working, frequently used, rarely used, and occasionally used groups. Optionally, applications that have not been used once after installation can be divided into the special group "Never" and are subject to very strict system restrictions.
步骤203,当电子设备播放视频时,获取电子设备当前的剩余电量。Step 203: When the electronic device plays a video, obtain the current remaining power of the electronic device.
其中,电子设备的初始电量是预知的,电子设备通过运行安装在电子设备上的多个程序或者使用硬件等方式消耗一定的电量,则电子设备可以根据多种方式获取电子设备的剩余电量,例如:直接将电子设备上电源的剩余电量作为电子设备的剩余电量。Among them, the initial power of the electronic device is predicted. The electronic device consumes a certain amount of power by running multiple programs installed on the electronic device or using hardware. The electronic device can obtain the remaining power of the electronic device in a variety of ways, such as : Directly use the remaining power of the power supply on the electronic device as the remaining power of the electronic device.
步骤204,判断剩余电量是否小于预设电量,若是,则执行步骤205。Step 204: Determine whether the remaining power is less than the preset power, and if so, proceed to step 205.
本申请实施例中预设一个剩余电量值,在获取到电子设备当前的剩余电量后,将剩余电量与该预设电量对比,若小于该预设电量,则可以进一步执行步骤205,以降低视频播放的功耗。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 is compared with the preset power. If it is less than the preset power, step 205 can be further performed to reduce the video Power consumption of playback.
步骤205,降低与视频关联的应用程序的优先级,其中,应用程序的优先级与电子设备的设备资源调度相关联。Step 205: Lower the priority of the application associated with the video, where the priority of the application is associated with the device resource scheduling of the electronic device.
在一实施例中,上述与视频关联的应用程序即为播放该视频时所用到的应用程序,在使用该应用程序播放视频时,若当前剩余电量小于预设电量,则可以将该应用程序的优先级调低,比如将其从常用分组转移至极少分组,以限制该应用程序调用设备资源的权限。In one embodiment, the above-mentioned application associated with the video is the application used when playing the video. When the application is used to play the video, if the current remaining power is less than the preset power, the application’s Lower the priority, such as shifting it from frequently used groups to very few groups, to restrict the application's authority to call device resources.
在一实施例中,可以根据当前剩余电量来降低应用程序的优先级,比如,上述预设电量为20%,若当前剩余电量为10%-20%时,将该应用程序降低一个优先级,若当前剩余电量为0-10%时,将该应用程序降低两个优先级。也即降低与所述视频关联的应用程序的优先级,包括:In one embodiment, the priority of the application can be lowered according to the current remaining power. For example, the above-mentioned preset power is 20%. If the current remaining power is 10%-20%, the priority of the application is lowered by one. If the current remaining power is 0-10%, the application will be lowered by two priorities. That is to reduce the priority of the application associated with the video, including:
根据所述剩余电量确定所述应用程序对应的目标优先级;Determining the target priority corresponding to the application program according to the remaining power;
将所述应用程序的优先级调整为所述目标优先级。The priority of the application program is adjusted to the target priority.
在一申请实施例中,应用程序的优先级只能调低不能调高。举例来说,如图3所示,图3为本申请实施例提供的应用程序的优先级调整方法的场景示意图。电子设备当中安装的应用程序包括应用程序a、应用程序b、应用程序c、应用程序d、应用程序e以及应用程序f,电子设备当中包括第一优先级、第二优先级以及第三优先级,其中第一优先级高于第二优先级,第二优先级高于第三优先级,根据上述应用程序的使用频率对其划分优先级为:应用程序a、应用程序b属于第一优先级,应用程序c、应用程序d属于第二优先级,应用程序e、应用程序f属于第三优先级。在电子设备播放视频时,所用到的应用程序为应用程序b,当电子设备的剩余电量小于预设电量时,将应用程序b的优先级从第一优先级降至第二优先级,其余应用程序的优先级均未发生变化。从而使电子设备根据上述应用程序调整后的优先级对其分配设备资源。In an application embodiment, the priority of the application can only be lowered but not higher. For example, as shown in FIG. 3, FIG. 3 is a schematic diagram of a scenario of a method for adjusting the priority of an application provided by an embodiment of the application. The applications installed in the electronic device include application a, application b, application c, application d, application e, and application f. The electronic device includes first priority, second priority, and third priority , Where the first priority is higher than the second priority, and the second priority is higher than the third priority. According to the frequency of use of the above application, the priority is divided into: application a and application b belong to the first priority , Application c and application d belong to the second priority, and application e and application f belong to the third priority. When the electronic device plays a video, the application used is application b. When the remaining power of the electronic device is less than the preset power, the priority of application b is reduced from the first priority to the second priority, and the remaining applications The priority of the program has not changed. Therefore, the electronic device allocates device resources to it according to the adjusted priority of the application program.
步骤206,获取电子设备在预设时间段内播放多媒体文件的历史记录,其中,多媒体文件包括多个多媒体形式。Step 206: Obtain a historical record of the multimedia file played by the electronic device within a preset time period, where the multimedia file includes multiple multimedia forms.
在一实施例中,可以根据用户的偏好习惯来对视频文件进行处理,比如, 用户在使用电子设备的过程中观看图片比较多,可以将视频文件转换为图片,然后播放图片;或者用户在使用电子设备的过程中听音乐比较多,则可以将视频文件转换为音频文件,然后播放该音频文件;再比如用户在使用电子设备的过程中观看视频比较多,则可以将视频文件转化为更加节省电量的格式并进行播放。因此本申请实施例可以获取电子设备在预设时间段内播放多媒体文件的历史记录,其中,多媒体文件可以包括图片形式、音频形式以及视频形式三种。In one embodiment, the video file can be processed according to the user’s preferences. For example, when the user watches a lot of pictures while using the electronic device, the video file can be converted into a picture and then played back; or the user is using If you listen to more music in the process of electronic equipment, you can convert the video file into an audio file, and then play the audio file; for example, if the user watches more videos while using the electronic device, you can convert the video file into more economical Power format and play. Therefore, the embodiment of the present application can obtain the historical record of the multimedia file played by the electronic device within the preset time period, where the multimedia file may include three types: picture format, audio format, and video format.
步骤207,根据历史记录从多个多媒体形式当中选取目标多媒体形式。Step 207: Select a target multimedia format from the multiple multimedia formats according to the historical record.
在一实施例中,可以根据在预设时间段内上述三种多媒体形式的使用时长,来确定目标多媒体形式,比如在过去二十天内,用户观看图片总时长为3个小时,用户听音频的总时长为8小时,用户观看视频的总时长为6小时,则可以确定目标多媒体形式为音频形式。In an embodiment, the target multimedia format can be determined according to the usage time of the above three multimedia formats within a preset time period. For example, in the past twenty days, the user has a total viewing time of 3 hours of pictures, and the user listens to audio. The total time is 8 hours, and the total time the user watches the video is 6 hours, it can be determined that the target multimedia form is an audio form.
步骤208,根据目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放视频。Step 208: Process the video file according to the target multimedia form and play the video according to the processed video file.
在一实施例中,当目标多媒体形式为所述图片形式时,可以对所述视频文件进行多次抽帧处理,以得到图片集合,以预设时间间隔对所述图片集合中的图片进行播放。具体的,可以先确定视频文件当中的关键帧,比如电影当中显示字幕的帧,然后提取上述关键帧,以得到图片集合,然后以幻灯片的方式进行播放,比如每个5秒播放一张图片。In an embodiment, when the target multimedia format is the picture format, the video file may be subjected to multiple frame extraction processing to obtain a picture set, and the pictures in the picture set are played at a preset time interval . Specifically, you can first determine the key frames in the video file, such as the frame that displays the subtitles in the movie, and then extract the above key frames to obtain the picture collection, and then play it in a slideshow, such as one picture every 5 seconds .
在一实施例中,当所述目标多媒体形式为所述音频形式时,可以停止播放所述视频文件的视频流并关闭所述电子设备的屏幕,播放所述视频文件的音频流。比如,禁止对视频文件的视频数据流进行解码,对视频文件的音频数据流进行解码并将解码后的音频数据流输出至音频通路,当关闭视频数据流输出时,仅输出音频数据流,此时会降低资源的消耗。In an embodiment, when the target multimedia format is the audio format, 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, it is forbidden to decode the video data stream of a video file, decode the audio data stream of the video file and output the decoded audio data stream to the audio channel. When the video data stream output is closed, only the audio data stream is output. Time will reduce resource consumption.
在一实施例中,当所述目标多媒体形式为所述视频形式时,可以对所述视频文件进行省电处理,所述省电处理包括降低所述视频分辨率、降低所述视频帧数、降低屏幕亮度中的至少一种,根据所述省电处理后的视频文件播放所述视频。In an embodiment, when the target multimedia format is the video format, power saving processing may be performed on the video file, and the power saving processing includes reducing the video resolution, reducing the number of video frames, At least one of reducing screen brightness, and playing the video according to the power-saving processed video file.
由上可知,本申请实施例提供的视频播放方法可以获取电子设备当中应用程序的使用频率,根据使用频率分配应用程序的优先级,当电子设备播放视频时,获取电子设备当前的剩余电量,判断剩余电量是否小于预设电量,若是, 则降低与视频关联的应用程序的优先级,其中,应用程序的优先级与电子设备的设备资源调度相关联,获取电子设备在预设时间段内播放多媒体文件的历史记录,其中,多媒体文件包括多个多媒体形式,根据历史记录从多个多媒体形式当中选取目标多媒体形式,根据目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放视频。本申请实施例可以在电子设备播放视频时,降低视频对应的应用程序的优先级,并且对视频文件进行处理后播放,从而降低电子设备电量的消耗,提升续航能力。It can be seen from the above that the video playback method provided by the embodiments of the present application can obtain the usage frequency of the application in the electronic device, and assign the priority of the application according to the usage frequency. When the electronic device plays the video, obtain the current remaining power of the electronic device and determine Whether the remaining power is less than the preset power, if so, the priority of the application associated with the video is lowered, where the priority of the application is associated with the device resource scheduling of the electronic device, and it is obtained that the electronic device plays multimedia within the preset time period The file history record, where the multimedia file includes multiple multimedia forms, the target multimedia form is selected from the multiple multimedia forms according to the historical record, the video file is processed according to the target multimedia form, and the video is played according to the processed video file. The embodiment of the present application can reduce the priority of the application program corresponding to the video when the electronic device plays the video, and process the video file before playing, thereby reducing the power consumption of the electronic device and improving the battery life.
请参阅图4,图4为本申请实施例提供的视频播放装置的一种结构示意图。其中该视频播放装置300包括第一获取模块301、判断模块302、第一处理模块303以及第二处理模块304;Please refer to FIG. 4, which is a schematic structural diagram of a video playback device provided by an embodiment of the application. The video playback device 300 includes a first acquisition module 301, a judgment module 302, a first processing module 303, and a second processing module 304;
所述第一获取模块301,用于当电子设备播放视频时,获取所述电子设备当前的剩余电量;The first obtaining module 301 is configured to obtain the current remaining power of the electronic device when the electronic device plays a video;
所述判断模块302,用于判断所述剩余电量是否小于预设电量;The judgment module 302 is used to judge whether the remaining power is less than a preset power;
所述第一处理模块303,用于当所述判断模块302判断为是时,降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;The first processing module 303 is configured to reduce the priority of the target application associated with the video when the judgment module 302 judges yes, wherein the electronic device includes multiple application programs, and the electronic When the device runs the application program, the device resource is scheduled according to the priority corresponding to the application program;
所述第二处理模块304,用于获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。The second processing module 304 is configured to obtain a video file and process the video file, and play the video according to the processed video file.
在一实施例中,请参阅图5,图5为本申请实施例提供的视频播放装置的另一种结构示意图,其中,所述第二处理模块304可以包括:获取子模块3041、选取子模块3042以及处理子模块3043;In an embodiment, please refer to FIG. 5. FIG. 5 is a schematic diagram of another structure of a video playback device provided by an embodiment of the application, wherein the second processing module 304 may include: an acquisition submodule 3041, a selection submodule 3042 and processing sub-module 3043;
所述获取子模块3041,用于获取所述电子设备在预设时间段内播放多媒体文件的历史记录,其中,所述多媒体文件包括多个多媒体形式;The acquiring submodule 3041 is configured to acquire the historical record of the multimedia file played by the electronic device within a preset time period, where the multimedia file includes multiple multimedia forms;
所述选取子模块3042,用于根据所述历史记录从所述多个多媒体形式当中选取目标多媒体形式;The selection submodule 3042 is configured to select a target multimedia format from among the multiple multimedia formats according to the historical record;
所述处理子模块3043,用于根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频。The processing sub-module 3043 is configured to process the video file according to the target multimedia form and play the video according to the processed video file.
在一实施例中,所述多媒体形式包括图片形式,当所述目标多媒体形式为所述图片形式时,所述处理子模块3043,具体用于对所述视频文件进行多次抽帧处理,以得到图片集合,以预设时间间隔对所述图片集合中的图片进行播 放。In an embodiment, the multimedia format includes a picture format. When the target multimedia format is the picture format, the processing submodule 3043 is specifically configured to perform multiple frame extraction processing on the video file to The picture set is obtained, and the pictures in the picture set are played at a preset time interval.
在一实施例中,所述多媒体形式包括音频形式,当所述目标多媒体形式为所述音频形式时,所述处理子模块3043,具体用于停止播放所述视频文件的视频流并关闭所述电子设备的屏幕,播放所述视频文件的音频流。In an embodiment, the multimedia format includes an audio format. When the target multimedia format is the audio format, the processing submodule 3043 is specifically configured to stop playing the video stream of the video file and close the The screen of the electronic device plays the audio stream of the video file.
在一实施例中,所述多媒体形式包括视频形式,当所述目标多媒体形式为所述视频形式时,所述处理子模块3043,具体用于对所述视频文件进行省电处理,所述省电处理包括降低所述视频分辨率、降低所述视频帧数、降低屏幕亮度中的至少一种,根据所述省电处理后的视频文件播放所述视频。In an embodiment, the multimedia format includes a video format. 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. The electrical processing includes at least one of reducing the resolution of the video, reducing the number of video frames, and reducing the brightness of the screen, and playing the video according to the power-saving processed video file.
在一实施例中,如图6所述,所述装置还可以包括:第二获取模块305和分配模块306;In an embodiment, as shown in FIG. 6, the apparatus may further include: a second acquisition module 305 and an allocation module 306;
所述第二获取模块305,用于在所述第一处理模块303降低与所述视频关联的目标应用程序的优先级之前,获取所述电子设备当中所述目标应用程序的使用频率;The second acquiring module 305 is configured to acquire the usage frequency of the target application in the electronic device before the first processing module 303 reduces the priority of the target application associated with the video;
所述分配模块306,用于根据所述使用频率分配所述目标应用程序的优先级。The allocation module 306 is configured to allocate the priority of the target application according to the frequency of use.
由上述可知,本申请实施例的视频播放装置可以当电子设备播放视频时,获取电子设备当前的剩余电量,判断剩余电量是否小于预设电量,若是,则降低与视频关联的目标应用程序的优先级,其中,电子设备包括多个应用程序,电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源,获取视频文件并对视频文件进行处理,根据处理后的视频文件播放视频。本申请实施例可以在电子设备播放视频时,降低视频对应的应用程序的优先级,并且对视频文件进行处理后播放,从而降低电子设备电量的消耗,提升续航能力。It can be seen from the foregoing that the video playback device of the embodiment of the present application can obtain the current remaining power of the electronic device when the electronic device plays a video, and determine whether the remaining power is less than the preset power, and if so, reduce the priority of the target application associated with the video. The electronic device includes multiple application programs. When the electronic device runs the application program, the electronic device schedules device resources according to the priority of the application program, acquires and processes the video file, and plays the video according to the processed video file. The embodiment of the present application can reduce the priority of the application program corresponding to the video when the electronic device plays the video, and process the video file before playing, thereby reducing the power consumption of the electronic device and improving the battery life.
本申请实施例中,视频播放装置与上文实施例中的视频播放方法属于同一构思,在视频播放装置上可以运行视频播放方法实施例中提供的任一方法,其具体实现过程详见视频播放方法的实施例,此处不再赘述。In the embodiments of this application, the video playback device belongs to the same concept as the video playback method in the above embodiments. Any method provided in the video playback method embodiment can be run on the video playback device. For the specific implementation process, see Video Play The embodiment of the method will not be repeated here.
本文所使用的术语“模块”可看作为在该运算系统上执行的软件对象。本文所述的不同组件、模块、引擎及服务可看作为在该运算系统上的实施对象。而本文所述的装置及方法可以以软件的方式进行实施,当然也可在硬件上进行实施,均在本申请保护范围之内。The term "module" used herein can be regarded as a software object executed on the operating system. The different components, modules, engines, and services described in this article can be regarded as implementation objects on the computing system. The devices and methods described herein can be implemented in the form of software, or of course, can also be implemented on hardware, and they are all within the protection scope of the present application.
本申请实施例还提供一种存储介质,其上存储有计算机程序,当所述计算 机程序在计算机上运行时,使得所述计算机执行上述的视频播放方法。An embodiment of the present application also 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 above-mentioned video playback method.
本申请实施例还提供一种电子设备,如平板电脑、手机等。电子设备中的处理器会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器中,并由处理器来运行存储在存储器中的应用程序,从而实现各种功能:The embodiment of the present application also provides an electronic device, such as a tablet computer, a mobile phone, and so on. The processor in the electronic device will load the instructions corresponding to the process of one or more application programs into the memory according to the following steps, and the processor will run the application programs stored in the memory to realize various functions:
当电子设备播放视频时,获取所述电子设备当前的剩余电量;When the electronic device plays a video, obtain the current remaining power of the electronic device;
判断所述剩余电量是否小于预设电量;Determine whether the remaining power is less than a preset power;
若是,则降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;If yes, lower the priority of the target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priority corresponding to the application when running the application;
获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。Obtain a video file and process the video file, and play the video according to the processed video file.
在一实施例中,获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频时,所述处理器用于执行以下步骤:In an embodiment, a video file is acquired and the video file is processed, and when the video is played according to the processed video file, the processor is configured to perform the following steps:
获取所述电子设备在预设时间段内播放多媒体文件的历史记录,其中,所述多媒体文件包括多个多媒体形式;Acquiring a historical record of the multimedia file played by the electronic device in a preset time period, where the multimedia file includes multiple multimedia forms;
根据所述历史记录从所述多个多媒体形式当中选取目标多媒体形式;Selecting a target multimedia form from the plurality of multimedia forms according to the historical record;
根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频。The video file is processed according to the target multimedia form and the video is played 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 video file is processed according to the target multimedia format and the video is played according to the processed video file , The processor is configured to execute the following steps:
对所述视频文件进行多次抽帧处理,以得到图片集合;Performing multiple frame extraction processing on the video file to obtain a picture set;
以预设时间间隔对所述图片集合中的图片进行播放。Playing the pictures in the picture set at a preset time interval.
在一实施例中,所述多媒体形式包括音频形式,当所述目标多媒体形式为所述音频形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频时,所述处理器用于执行以下步骤:In an embodiment, the multimedia format includes an audio format, and when the target multimedia format is the audio format, a video file is processed according to the target multimedia format and the video is played according to the processed video file , The processor is configured to execute the following steps:
停止播放所述视频文件的视频流并关闭所述电子设备的屏幕;Stop playing the video stream of the video file and close the screen of the electronic device;
播放所述视频文件的音频流。Play the audio stream of the video file.
在一实施例中,所述多媒体形式包括视频形式,当所述目标多媒体形式为 所述视频形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频时,所述处理器用于执行以下步骤:In an embodiment, the multimedia form includes a video form, and when the target multimedia form is the video form, when the 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 execute the following steps:
对所述视频文件进行省电处理,所述省电处理包括降低所述视频分辨率、降低所述视频帧数、降低屏幕亮度中的至少一种;Performing power saving processing on the video file, where the power saving processing includes at least one of reducing the video resolution, reducing the number of video frames, and reducing screen brightness;
根据所述省电处理后的视频文件播放所述视频。Playing the video according to the video file after the power saving processing.
在一实施例中,在降低与所述视频关联的目标应用程序的优先级之前,所述处理器还用于执行以下步骤:In an embodiment, before reducing the priority of the target application associated with the video, the processor is further configured to perform the following steps:
获取所述电子设备当中所述目标应用程序的使用频率;Acquiring the frequency of use of the target application in the electronic device;
根据所述使用频率分配所述目标应用程序的优先级。The priority of the target application is allocated according to the frequency of use.
在一实施例中,降低与所述视频关联的目标应用程序的优先级时,所述处理器用于执行以下步骤:In an embodiment, when reducing the priority of the target application associated with the video, the processor is configured to perform the following steps:
根据所述剩余电量确定所述目标应用程序对应的目标优先级;Determining the target priority corresponding to the target application according to the remaining power;
将所述目标应用程序的优先级调整为所述目标优先级。The priority of the target application is adjusted to the target priority.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
请参阅图7,电子设备400包括处理器401以及存储器402。其中,处理器401与存储器402电性连接。Please refer 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.
处理器400是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器402内的计算机程序,以及调用存储在存储器402内的数据,执行电子设备400的各种功能并处理数据,从而对电子设备400进行整体监控。The processor 400 is the control center of the electronic device 400. It uses various interfaces and lines to connect the various parts of the entire electronic device. It executes the electronic device by running or loading the computer program stored in the memory 402 and calling the data stored in the memory 402. Various functions of the device 400 and processing data, so as to monitor the electronic device 400 as a whole.
存储器402可用于存储软件程序以及模块,处理器401通过运行存储在存储器402的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器402可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器402可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一 个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器402还可以包括存储器控制器,以提供处理器401对存储器402的访问。The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the computer programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, a computer program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of electronic equipment, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
在本申请实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401运行存储在存储器402中的计算机程序,从而实现各种功能,如下:In the embodiment of the present application, the processor 401 in the electronic device 400 will load the instructions corresponding to the process of one or more computer programs into the memory 402 according to the following steps, and the processor 401 will run and store the instructions in the memory 402 In order to realize various functions in the computer program, as follows:
当电子设备播放视频时,获取所述电子设备当前的剩余电量;When the electronic device plays a video, obtain the current remaining power of the electronic device;
判断所述剩余电量是否小于预设电量;Determine whether the remaining power is less than a preset power;
若是,则降低与所述视频关联的应用程序的优先级,其中,所述应用程序的优先级与所述电子设备的设备资源调度相关联;If yes, lower the priority of the application associated with the video, wherein the priority of the application is associated with the device resource scheduling of the electronic device;
对视频文件进行处理并根据处理后的视频文件播放所述视频。The video file is processed and the video is played according to the processed video file.
请一并参阅图8,在一些实施方式中,电子设备400还可以包括:显示器403、射频电路404、音频电路405以及电源406。其中,其中,显示器403、射频电路404、音频电路405以及电源406分别与处理器401电性连接。Please also refer to FIG. 8. In some embodiments, the electronic device 400 may further include: a display 403, a radio frequency circuit 404, an audio circuit 405, and a power supply 406. Among them, the display 403, the radio frequency circuit 404, the audio circuit 405, and the power supply 406 are electrically connected to the processor 401, respectively.
显示器403可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器403可以包括显示面板,在一些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。The display 403 may be used to display information input by the user or information provided to the user, and various graphical user interfaces. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof. The display 403 may include a display panel. In some embodiments, the display panel may be configured in the form of a liquid crystal display (LCD), or an organic light-emitting diode (OLED).
射频电路404可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。The radio frequency circuit 404 may be used to transmit and receive radio frequency signals to establish wireless communication with network equipment or other electronic equipment through wireless communication, and to transmit and receive signals with the network equipment or other electronic equipment.
音频电路405可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 405 may be used to provide an audio interface between the user and the electronic device through a speaker or a microphone.
电源406可以用于给电子设备400的各个部件供电。在一些实施例中,电源406可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 406 can be used to power various components of the electronic device 400. In some embodiments, the power supply 406 may be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management can be managed through the power management system.
尽管图8中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 8, the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be repeated here.
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM)、或者随机存取记忆体(Random Access Memory,RAM)等。In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disc, a read only memory (Read Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,对本申请实施例的视频播放方法而言,本领域普通测试人员可以理解实现本申请实施例视频播放方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如视频播放方法的实施例的流程。其中,的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。It should be noted that for the video playback method of the embodiment of the present application, ordinary testers in the field can understand that all or part of the process of implementing the video playback method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program. The computer program may be stored in a computer readable storage medium, such as stored in the memory of an electronic device, and executed by at least one processor in the electronic device. The execution process may include such as the video playback method embodiment. Process. Among them, the storage medium can be magnetic disk, optical disk, read-only memory, random access memory, etc.
对本申请实施例的视频播放装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,存储介质譬如为只读存储器,磁盘或光盘等。For the video playback device of the embodiment of the present application, its various functional modules may be integrated into one processing chip, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk, or an optical disk.
以上对本申请实施例所提供的一种视频播放方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The above describes in detail a video playback method, device, storage medium, and electronic equipment provided by the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation of the present application. The description of the above embodiments is only It is used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation and the scope of application. In summary, this specification The content should not be construed as a limitation on this application.

Claims (20)

  1. 一种视频播放方法,其中,所述方法包括以下步骤:A video playback method, wherein the method includes the following steps:
    当电子设备播放视频时,获取所述电子设备当前的剩余电量;When the electronic device plays a video, obtain the current remaining power of the electronic device;
    判断所述剩余电量是否小于预设电量;Determine whether the remaining power is less than a preset power;
    若是,则降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;If yes, lower the priority of the target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priority corresponding to the application when running the application;
    获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。Obtain a video file and process the video file, and play the video according to the processed video file.
  2. 根据权利要求1所述的视频播放方法,其中,获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频,包括:The video playback method according to claim 1, wherein obtaining a video file and processing the video file, and playing the video according to the processed video file comprises:
    获取所述电子设备在预设时间段内播放多媒体文件的历史记录,其中,所述多媒体文件包括多个多媒体形式;Acquiring a historical record of the multimedia file played by the electronic device in a preset time period, where the multimedia file includes multiple multimedia forms;
    根据所述历史记录从所述多个多媒体形式当中选取目标多媒体形式;Selecting a target multimedia form from the plurality of multimedia forms according to the historical record;
    根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频。The video file is processed according to the target multimedia form and the video is played according to the processed video file.
  3. 根据权利要求2所述的视频播放方法,其中,所述多媒体形式包括图片形式,当所述目标多媒体形式为所述图片形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频,包括:The video playback method according to claim 2, wherein the multimedia format includes a picture format, and when the target multimedia format is the picture format, the video file is processed according to the target multimedia format and the processed The video file playing the video includes:
    对所述视频文件进行多次抽帧处理,以得到图片集合;Performing multiple frame extraction processing on the video file to obtain a picture set;
    以预设时间间隔对所述图片集合中的图片进行播放。Playing the pictures in the picture set at a preset time interval.
  4. 根据权利要求2所述的视频播放方法,其中,所述多媒体形式包括音频形式,当所述目标多媒体形式为所述音频形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频,包括:The video playback method according to claim 2, wherein the multimedia format includes an audio format, and when the target multimedia format is the audio format, the video file is processed according to the target multimedia format and the processed The video file playing the video includes:
    停止播放所述视频文件的视频流并关闭所述电子设备的屏幕;Stop playing the video stream of the video file and close the screen of the electronic device;
    播放所述视频文件的音频流。Play the audio stream of the video file.
  5. 根据权利要求2所述的视频播放方法,其中,所述多媒体形式包括视频形式,当所述目标多媒体形式为所述视频形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频,包括:The video playback method according to claim 2, wherein the multimedia form includes a video form, and when the target multimedia form is the video form, the video file is processed according to the target multimedia form and the processed The video file playing the video includes:
    对所述视频文件进行省电处理,所述省电处理包括降低所述视频分辨率、 降低所述视频帧数、降低屏幕亮度中的至少一种;Performing power saving processing on the video file, where the power saving processing includes at least one of reducing the video resolution, reducing the number of video frames, and reducing screen brightness;
    根据所述省电处理后的视频文件播放所述视频。Playing the video according to the video file after the power saving processing.
  6. 根据权利要求1所述的视频播放方法,其中,在降低与所述视频关联的目标应用程序的优先级之前,所述方法还包括:The video playback method according to claim 1, wherein, before reducing the priority of the target application associated with the video, the method further comprises:
    获取所述电子设备当中所述目标应用程序的使用频率;Acquiring the frequency of use of the target application in the electronic device;
    根据所述使用频率分配所述目标应用程序的优先级。The priority of the target application is allocated according to the frequency of use.
  7. 根据权利要求6所述的视频播放方法,其中,降低与所述视频关联的目标应用程序的优先级,包括:The video playback method according to claim 6, wherein reducing the priority of the target application associated with the video comprises:
    根据所述剩余电量确定所述目标应用程序对应的目标优先级;Determining the target priority corresponding to the target application according to the remaining power;
    将所述目标应用程序的优先级调整为所述目标优先级。The priority of the target application is adjusted to the target priority.
  8. 一种视频播放装置,其中,所述装置包括:第一获取模块、判断模块、第一处理模块以及第二处理模块;A video playback device, wherein the device includes: a first acquisition module, a judgment module, a first processing module, and a second processing module;
    所述第一获取模块,用于当电子设备播放视频时,获取所述电子设备当前的剩余电量;The first obtaining module is configured to obtain the current remaining power of the electronic device when the electronic device plays a video;
    所述判断模块,用于判断所述剩余电量是否小于预设电量;The judgment module is used to judge whether the remaining power is less than a preset power;
    所述第一处理模块,用于当所述判断模块判断为是时,降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;The first processing module is configured to reduce the priority of the target application program associated with the video when the judgment module determines that it is yes, wherein the electronic device includes multiple applications, and the electronic device is When running an application, schedule device resources according to the priority of the application;
    所述第二处理模块,用于获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。The second processing module is configured to obtain a video file and process the video file, and play the video according to the processed video file.
  9. 根据权利要求8所述的视频播放装置,其中,所述第二处理模块包括:获取子模块、选取子模块以及处理子模块;8. The video playback device according to claim 8, wherein the second processing module comprises: an acquisition sub-module, a selection sub-module, and a processing sub-module;
    所述获取子模块,用于获取所述电子设备在预设时间段内播放多媒体文件的历史记录,其中,所述多媒体文件包括多个多媒体形式;The acquisition sub-module is configured to acquire a historical record of the multimedia file played by the electronic device within a preset time period, where the multimedia file includes multiple multimedia forms;
    所述选取子模块,用于根据所述历史记录从所述多个多媒体形式当中选取目标多媒体形式;The selection sub-module is configured to select a target multimedia format from among the multiple multimedia formats according to the history record;
    所述处理子模块,用于根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频。The processing sub-module is configured to process the video file according to the target multimedia form and play the video according to the processed video file.
  10. 根据权利要求9所述的视频播放装置,其中,所述多媒体形式包括图片形式;The video playback device according to claim 9, wherein the multimedia form includes a picture form;
    当所述目标多媒体形式为所述图片形式时,所述处理子模块,具体用于对所述视频文件进行多次抽帧处理,以得到图片集合,以预设时间间隔对所述图片集合中的图片进行播放。When the target multimedia format is the picture format, the processing sub-module is specifically configured to perform frame extraction processing on the video file multiple times to obtain a picture set, and compare the pictures in the picture set at a preset time interval To play.
  11. 根据权利要求9所述的视频播放装置,其中,所述多媒体形式包括音频形式;The video playback device according to claim 9, wherein the multimedia form includes an audio form;
    当所述目标多媒体形式为所述音频形式时,所述处理子模块,具体用于停止播放所述视频文件的视频流并关闭所述电子设备的屏幕,播放所述视频文件的音频流。When the target multimedia format is the audio format, the processing submodule is specifically configured to stop playing the video stream of the video file and close the screen of the electronic device to play the audio stream of the video file.
  12. 根据权利要求8所述的视频播放装置,其中,所述装置还包括:第二获取模块和分配模块;The video playback device according to claim 8, wherein the device further comprises: a second acquisition module and a distribution module;
    所述第二获取模块,用于在所述第一处理模块降低与所述视频关联的目标应用程序的优先级之前,获取所述电子设备当中所述目标应用程序的使用频率;The second acquiring module is configured to acquire the frequency of use of the target application in the electronic device before the first processing module reduces the priority of the target application associated with the video;
    所述分配模块,用于根据所述使用频率分配所述目标应用程序的优先级。The allocation module is configured to allocate the priority of the target application according to the frequency of use.
  13. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1至7任一项所述的视频播放方法。A storage medium having a computer program stored thereon, wherein when the computer program runs on a computer, the computer is caused to execute the video playback method according to any one of claims 1 to 7.
  14. 一种电子设备,包括处理器和存储器,所述存储器存储有多条指令,其中,所述处理器加载所述存储器中的指令用于执行以下步骤:An electronic device includes a processor and a memory, the memory stores a plurality of instructions, wherein the processor loads the instructions in the memory to perform the following steps:
    当电子设备播放视频时,获取所述电子设备当前的剩余电量;When the electronic device plays a video, obtain the current remaining power of the electronic device;
    判断所述剩余电量是否小于预设电量;Determine whether the remaining power is less than a preset power;
    若是,则降低与所述视频关联的目标应用程序的优先级,其中,所述电子设备包括多个应用程序,所述电子设备在运行应用程序时根据应用程序对应的优先级调度设备资源;If yes, lower the priority of the target application associated with the video, where the electronic device includes multiple applications, and the electronic device schedules device resources according to the priority corresponding to the application when running the application;
    获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频。Obtain a video file and process the video file, and play the video according to the processed video file.
  15. 根据权利要求14所述的电子设备,其中,获取视频文件并对所述视频文件进行处理,根据处理后的视频文件播放所述视频时,所述处理器用于执行以下步骤:14. The electronic device according to claim 14, wherein the video file is acquired and the video file is processed, and when the video is played according to the processed video file, the processor is configured to perform the following steps:
    获取所述电子设备在预设时间段内播放多媒体文件的历史记录,其中,所述多媒体文件包括多个多媒体形式;Acquiring a historical record of the multimedia file played by the electronic device in a preset time period, where the multimedia file includes multiple multimedia forms;
    根据所述历史记录从所述多个多媒体形式当中选取目标多媒体形式;Selecting a target multimedia form from the plurality of multimedia forms according to the historical record;
    根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频。The video file is processed according to the target multimedia form and the video is played according to the processed video file.
  16. 根据权利要求15所述的电子设备,其中,所述多媒体形式包括图片形式,当所述目标多媒体形式为所述图片形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频时,所述处理器用于执行以下步骤:The electronic device according to claim 15, wherein the multimedia form includes a picture form, and when the target multimedia form is the picture form, the video file is processed according to the target multimedia form and the processed video When the file is playing the video, the processor is configured to execute the following steps:
    对所述视频文件进行多次抽帧处理,以得到图片集合;Performing multiple frame extraction processing on the video file to obtain a picture set;
    以预设时间间隔对所述图片集合中的图片进行播放。Playing the pictures in the picture set at a preset time interval.
  17. 根据权利要求15所述的电子设备,其中,所述多媒体形式包括音频形式,当所述目标多媒体形式为所述音频形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频时,所述处理器用于执行以下步骤:The electronic device according to claim 15, wherein the multimedia form comprises an audio form, and when the target multimedia form is the audio form, the video file is processed according to the target multimedia form and the processed video When the file is playing the video, the processor is configured to execute the following steps:
    停止播放所述视频文件的视频流并关闭所述电子设备的屏幕;Stop playing the video stream of the video file and close the screen of the electronic device;
    播放所述视频文件的音频流。Play the audio stream of the video file.
  18. 根据权利要求15所述的电子设备,其中,所述多媒体形式包括视频形式,当所述目标多媒体形式为所述视频形式时,根据所述目标多媒体形式对视频文件进行处理并根据处理后的视频文件播放所述视频时,所述处理器用于执行以下步骤:The electronic device according to claim 15, wherein the multimedia form comprises a video form, and when the target multimedia form is the video form, the video file is processed according to the target multimedia form and the video file is processed according to the processed video When the file is playing the video, the processor is configured to execute the following steps:
    对所述视频文件进行省电处理,所述省电处理包括降低所述视频分辨率、降低所述视频帧数、降低屏幕亮度中的至少一种;Performing power saving processing on the video file, where the power saving processing includes at least one of reducing the video resolution, reducing the number of video frames, and reducing screen brightness;
    根据所述省电处理后的视频文件播放所述视频。Playing the video according to the video file after the power saving processing.
  19. 根据权利要求14所述的电子设备,其中,在降低与所述视频关联的目标应用程序的优先级之前,所述处理器还用于执行以下步骤:The electronic device according to claim 14, wherein, before reducing the priority of the target application associated with the video, the processor is further configured to perform the following steps:
    获取所述电子设备当中所述目标应用程序的使用频率;Acquiring the frequency of use of the target application in the electronic device;
    根据所述使用频率分配所述目标应用程序的优先级。The priority of the target application is allocated according to the frequency of use.
  20. 根据权利要求19所述的电子设备,其中,降低与所述视频关联的目标应用程序的优先级时,所述处理器用于执行以下步骤:The electronic device according to claim 19, wherein the processor is configured to perform the following steps when reducing the priority of the target application associated with the video:
    根据所述剩余电量确定所述目标应用程序对应的目标优先级;Determining the target priority corresponding to the target application according to the remaining power;
    将所述目标应用程序的优先级调整为所述目标优先级。The priority of the target application is adjusted to the target priority.
PCT/CN2019/082483 2019-04-12 2019-04-12 Video playback method and apparatus, storage medium and electronic device WO2020206688A1 (en)

Priority Applications (2)

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

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
WO2020206688A1 true WO2020206688A1 (en) 2020-10-15

Family

ID=72750927

Family Applications (1)

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

Country Status (2)

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

Cited By (3)

* 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
CN114640890A (en) * 2020-12-15 2022-06-17 武汉斗鱼鱼乐网络科技有限公司 Video data dynamic loading method and device, electronic equipment and storage medium
US20220417311A1 (en) * 2021-06-24 2022-12-29 Orange Management of the http adaptive streaming of an item of digital content in screen saver mode

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2472498A2 (en) * 2011-01-04 2012-07-04 Samsung Electronics Co., Ltd. Method and apparatus for reducing power consumption in mobile terminal
CN103916622A (en) * 2013-01-06 2014-07-09 联想(北京)有限公司 Talking mode switching method and device
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
CN106912089A (en) * 2013-12-20 2017-06-30 华为技术有限公司 A kind of method and apparatus of the power consumption in reduction mobile electronic device
CN109445918A (en) * 2018-10-17 2019-03-08 Oppo广东移动通信有限公司 Method for scheduling task, device, terminal and storage medium

Family Cites Families (1)

* 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2472498A2 (en) * 2011-01-04 2012-07-04 Samsung Electronics Co., Ltd. Method and apparatus for reducing power consumption in mobile terminal
CN103916622A (en) * 2013-01-06 2014-07-09 联想(北京)有限公司 Talking mode switching method and device
CN106912089A (en) * 2013-12-20 2017-06-30 华为技术有限公司 A kind of method and apparatus of the power consumption in reduction mobile electronic device
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
CN109445918A (en) * 2018-10-17 2019-03-08 Oppo广东移动通信有限公司 Method for scheduling task, device, terminal and storage medium

Cited By (5)

* 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
CN114640890A (en) * 2020-12-15 2022-06-17 武汉斗鱼鱼乐网络科技有限公司 Video data dynamic loading method and device, electronic equipment and storage medium
CN114640890B (en) * 2020-12-15 2024-05-17 北京神州数码云科信息技术有限公司 Video data dynamic loading method and device, electronic equipment and storage medium
US20220417311A1 (en) * 2021-06-24 2022-12-29 Orange Management of the http adaptive streaming of an item of digital content in screen saver mode
US12028398B2 (en) * 2021-06-24 2024-07-02 Orange Management of the http adaptive streaming of an item of digital content in screen saver mode

Also Published As

Publication number Publication date
CN113439435A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
WO2018082412A1 (en) Electronic equipment control method, device and electronic equipment
CN109960539A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN107659828A (en) Video image quality adjustment method, device, terminal device and storage medium
US9798371B2 (en) Electronic device and content display method thereof
US20160323654A1 (en) Rendering advertisements in a client device for uninterrupted media content
WO2020206688A1 (en) Video playback method and apparatus, storage medium and electronic device
CN110876180B (en) Power consumption processing method and device, electronic equipment and computer readable medium
RU2619089C2 (en) Method and device for multiple videos reproduction
US8854390B2 (en) Information processing apparatus, information processing method, computer program, and information processing system
US11431182B2 (en) Resource statistics collection method and apparatus and terminal
US12015733B2 (en) Do-not-disturb method and terminal
CN105653418B (en) Terminal, terminal control method and terminal control device
WO2022001553A1 (en) Font adjustment method and apparatus, storage medium, and electronic device
WO2021008348A1 (en) Image display method and device, mobile terminal, and storage medium
CN106445449B (en) A kind of audio focal point control device and method
CN104615432B (en) Splash screen information processing method and client
CN109802994B (en) Message pushing method and system based on content distribution network
WO2020133408A1 (en) Application program priority level adjustment method and apparatus, and storage medium and electronic device
WO2020206690A1 (en) Application cleaning method and apparatus, storage medium and electronic device
US20220015062A1 (en) Automatically suspending or reducing portable device notifications when viewing audio/video programs
WO2023284498A1 (en) Video playing method and apparatus, and storage medium
CN117406906A (en) Screen processing method, device, electronic equipment and computer readable storage medium
CN117148950A (en) Screen display brightness adjusting method and device of intelligent terminal
CN108803857A (en) Application software energy consumption monitoring method, mobile terminal and readable storage medium storing program for executing
GB2611392A (en) Control method, control apparatus, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19924448

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19924448

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.03.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19924448

Country of ref document: EP

Kind code of ref document: A1