WO2017156929A1 - Method and device for controlling terminal - Google Patents

Method and device for controlling terminal Download PDF

Info

Publication number
WO2017156929A1
WO2017156929A1 PCT/CN2016/088930 CN2016088930W WO2017156929A1 WO 2017156929 A1 WO2017156929 A1 WO 2017156929A1 CN 2016088930 W CN2016088930 W CN 2016088930W WO 2017156929 A1 WO2017156929 A1 WO 2017156929A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
video
video frame
playing
condition
Prior art date
Application number
PCT/CN2016/088930
Other languages
French (fr)
Chinese (zh)
Inventor
李音
Original Assignee
乐视控股(北京)有限公司
乐视网信息技术(北京)股份有限公司
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 乐视控股(北京)有限公司, 乐视网信息技术(北京)股份有限公司 filed Critical 乐视控股(北京)有限公司
Publication of WO2017156929A1 publication Critical patent/WO2017156929A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44218Detecting physical presence or behaviour of the user, e.g. using sensors to detect if the user is leaving the room or changes his face expression during a TV program
    • 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/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42202Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] environmental sensors, e.g. for detecting temperature, luminosity, pressure, earthquakes
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4333Processing operations in response to a pause request
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Definitions

  • the embodiments of the present invention relate to the field of terminal technologies, and in particular, to a terminal control method and apparatus.
  • the embodiments of the present invention provide a terminal control method and apparatus.
  • a terminal control method including:
  • video data of the video when the terminal plays a video where the video data includes: video frame data and audio data;
  • the terminal When the terminal satisfies the video frame stop playing condition, the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data.
  • a terminal control apparatus including:
  • a video data acquiring unit configured to acquire video data of the video when the terminal plays a video, where the video data includes: video frame data and audio data;
  • a first play detecting unit configured to detect whether the terminal satisfies a video frame stop playing condition
  • Controlling the playing unit configured to control the terminal to stop playing the video frame data when the terminal satisfies the video frame stop playing condition, and control the terminal to continue playing the audio data.
  • the terminal control method provided by the embodiment of the invention acquires data in the video when the terminal plays the video, and detects whether the terminal satisfies the video stop playing condition. If the video stop playing condition is satisfied, then the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data in the video. In this way, when the video frame data in the video is not required to be played, only the audio data in the video is played, which can reduce the power consumption of the terminal and improve the battery life of the terminal.
  • FIG. 1 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 2 is a flow chart of step S120 of Figure 1;
  • FIG. 3 is still another flow chart of step S120 of Figure 1;
  • FIG. 4 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 5 is a flowchart of a terminal control method according to an exemplary embodiment
  • FIG. 6 is a schematic structural diagram of a terminal control apparatus according to an exemplary embodiment
  • Figure 7 is a schematic diagram of the first play detecting unit of Figure 6;
  • Figure 8 is another schematic diagram of the first play detecting unit of Figure 6;
  • FIG. 9 is a schematic structural diagram of a terminal control apparatus according to an exemplary embodiment.
  • FIG. 10 is a schematic structural diagram of a terminal control apparatus according to an exemplary embodiment.
  • the embodiment of the present invention first provides a terminal control method. As shown in FIG. 1 , the method may include the following steps:
  • step S110 when the terminal plays the video, the video data of the video is acquired.
  • the video data includes: video frame data and audio data.
  • the terminal may be a mobile phone, a tablet computer, etc.
  • the video is played by the mobile phone as an example for description.
  • Video data is mainly composed of two parts: video frame data and audio data.
  • the video frame data is the continuously played image picture viewed by the user; the audio data is the sound that the user can hear in the video.
  • the video frame data is the continuously played image picture viewed by the user; the audio data is the sound that the user can hear in the video.
  • step S120 it is detected whether the terminal satisfies the video frame stop playing condition.
  • the user may only want to hear the sound in the video and not want to see the image in the video. In this case, it is necessary to check whether the current terminal satisfies the video frame stop playing condition.
  • the terminal can detect some of the user by using the terminal.
  • the operation determines whether the video frame stops playing condition is met, for example, the user buckles the display side of the mobile phone to the desktop.
  • step S130 the control terminal stops playing the video frame data, and controls the terminal to continue playing the audio data.
  • the terminal can control the terminal to stop playing the video frame data, and control the terminal to continue playing the audio data.
  • Terminal broadcast only The audio data in the video is released, and the video frame data in the video is stopped. It can reduce the power consumption of the terminal and improve the battery life of the terminal.
  • step S140 the control terminal continues to play the video frame data and play the audio data.
  • control terminal continues to play the video frame data and play the audio data, so as to avoid affecting the user to normally watch the video played on the terminal.
  • the terminal control method provided in the embodiment of the present invention acquires data in the video when the terminal plays the video, and detects whether the terminal satisfies the video stop playing condition. If the video stop playing condition is satisfied, then the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data in the video. In this way, when the video frame data in the video is not required to be played, only the audio data in the video is played, which can reduce the power consumption of the terminal and improve the battery life of the terminal.
  • step S120 may further include the following steps:
  • step S121 it is determined whether the terminal is within the preset range of the target object.
  • the terminal As a mobile phone, for example, most mobile phones are smart phones, and the distance sensor is usually installed on the mobile phone. Through the distance sensor, the mobile phone can quickly detect the distance from the object in front of the screen.
  • the target object may be a person using the mobile phone, or other objects.
  • step S122 it is determined that the terminal satisfies the video frame stop playing condition.
  • step S123 it is determined that the terminal does not satisfy the video frame stop playing condition.
  • the mobile phone detects that the distance of the mobile phone screen from the desktop is small, almost zero, indicating that the user does not want to watch.
  • the image of the video played in the mobile phone at which time the video frame data in the video can be stopped.
  • the mobile phone detects that the user is far away from the screen of the mobile phone (for example, more than 5 meters), then the user cannot clearly view the image screen played in the mobile phone, and it is also determined that the terminal satisfies the condition that the video stops playing.
  • the terminal is within the preset range of the target object, such as in the range of 0.2 to 1 meter (the user can specify the range according to the required conditions, here is merely an exemplary example), indicating that the user is likely to be positive. Often watching the video played in the mobile phone, it can be determined that the terminal does not satisfy the video frame stop playing condition.
  • step S120 may further include the following steps:
  • step S124 it is determined whether the light intensity at the front end of the terminal is less than the preset light intensity.
  • step S125 it is determined that the terminal satisfies the video frame stop playing condition.
  • step S126 it is determined that the terminal does not satisfy the video frame stop playing condition.
  • the terminal As a mobile phone, for example, most mobile phones are smart phones, and a light intensity sensor is usually installed on the mobile phone.
  • the light intensity sensor can quickly detect the light intensity of the front end of the mobile phone screen.
  • the terminal front end refers to the front of the terminal display screen.
  • the phone If the light intensity sensor on the terminal detects that the current light intensity is below a certain threshold, for example, if the user buckles the side of the screen on the desktop, the phone will detect that the light intensity in front of the screen of the mobile phone is very high. Low, indicating that the user does not want to watch the image of the video played in the mobile phone, and then can stop playing the video frame data in the video.
  • a certain threshold for example, if the user buckles the side of the screen on the desktop
  • the embodiments provided by the present invention may be combined with each other, for example, whether the terminal is used within a preset range of the target object and whether the light intensity of the front end of the terminal is less than a preset light intensity, and the like. Or when one or several of the conditions are met, it is determined that the terminal satisfies the video frame stop playing condition.
  • the method may further include the following steps:
  • step S150 the current audio play parameters of the audio data are acquired in real time.
  • the current audio play parameters include information such as the play time of the audio play, the play content, and the like.
  • step S160 it is detected whether the terminal satisfies the video frame playing condition.
  • the video frame playing condition may be, whether the distance between the mobile phone and the target object is at an effective distance as described above. Within the range, or whether the light intensity reaches a certain intensity.
  • step S170 the video playing parameter corresponding to the current audio playing parameter is acquired.
  • step S180 the control terminal plays the video frame data corresponding to the video playing parameters in the video.
  • the video frame data in the video can be continuously played, and the video frame data is synchronously played with the currently played audio data, thereby avoiding the video frame data content and the audio data content. Not synchronized, causing users to not watch the video properly.
  • step S190 the control terminal continues to stop playing the video frame data, and controls the terminal to continue playing the audio data.
  • control terminal continues to stop playing the video frame data, and controls the terminal to continue playing the audio data.
  • the method may further include the following steps:
  • step S510 the control terminal turns off the screen display of the terminal.
  • the screen display can be turned off to further improve the endurance.
  • the terminal control method provided by the embodiment of the invention acquires data in the video when the terminal plays the video, and detects whether the terminal satisfies the video stop playing condition. If the video stop playing condition is satisfied, then the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data in the video. In this way, when the video frame data in the video is not required to be played, only the audio data in the video is played, which can reduce the power consumption of the terminal and improve the battery life of the terminal.
  • the video frame data can be timely synchronized to the current audio data, so that the video frame data and the audio data are played synchronously. It is also possible to turn off the screen display of the terminal when the video frame data in the video is stopped, further reducing the power consumption of the terminal and improving the endurance of the use.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation. Based on such understanding, the technical solution of the present invention is essentially The portion that contributes to the prior art can be embodied in the form of a software product stored in a storage medium, including instructions for causing a computer device (which can be a personal computer, a server, or Network devices, etc.) perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various types of media that can store program codes, such as a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
  • an embodiment of the present invention further provides a terminal control apparatus, where the apparatus is located in a terminal, as shown in FIG. 6, the apparatus includes: a video data acquiring unit 10, and a first play detection. Unit 20 and control playback unit 30, wherein
  • the video data acquiring unit 10 is configured to acquire video data of the video when the terminal plays a video, where the video data includes: video frame data and audio data;
  • the first play detecting unit 20 is configured to detect whether the terminal satisfies a video frame stop playing condition
  • the control playing unit 30 is configured to control the terminal to stop playing the video frame data when the terminal satisfies the video frame stop playing condition, and control the terminal to continue playing the audio data.
  • the first play detecting unit 20 includes:
  • the range determining module 21 is configured to determine whether the terminal is within a preset range of the target object
  • the first condition determining module 22 is configured to: when the terminal is not within the preset range of the target object, determine that the terminal satisfies the video frame stop playing condition;
  • the second condition determining module 23 is configured to determine, when the terminal is within the preset range of the target object, that the terminal does not satisfy the video frame stop playing condition.
  • the first play detecting unit 20 includes:
  • the light intensity determining module 24 is configured to determine whether the light intensity of the front end of the terminal is less than a preset light intensity
  • the third condition determining module 25 is configured to determine that the terminal satisfies the video frame stop playing condition when the light intensity of the front end of the terminal is less than the preset light intensity;
  • the fourth condition determining module 26 is configured to determine, when the light intensity of the front end of the terminal is not less than the preset light intensity, that the terminal does not satisfy the video frame stop playing condition.
  • the apparatus further includes: an audio play parameter acquisition unit 40, a second play detection unit 50, a video play parameter acquisition unit 60, and a video frame data playback control.
  • Unit 70 wherein
  • the audio play parameter obtaining unit 40 is configured to acquire current audio play parameters of the audio data in real time
  • a second play detecting unit 50 configured to detect whether the terminal satisfies a video frame playing condition
  • the video playing parameter obtaining unit 60 is configured to acquire a video playing parameter corresponding to the current audio playing parameter when the terminal satisfies the video frame playing condition;
  • the video frame data playing control unit 70 is configured to control the terminal to play video frame data corresponding to the video playing parameter in the video.
  • the apparatus further includes: a screen control display unit 80, wherein
  • the screen control display unit 80 is configured to control the terminal to close the screen display of the terminal.
  • the present invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations.
  • the invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
  • program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
  • the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
  • program modules can be located in both local and remote computer storage media including storage devices.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, the part of each implementation manner of the terminal control method provided by the embodiment shown in FIG. 1 to FIG. 5 can be implemented. Or all steps.

Abstract

The invention relates to a method and a device for controlling a terminal, the method comprising: when the terminal is playing back a video, acquiring video data of the video, the video data comprising: video frame data and audio data; detecting whether the terminal satisfies a condition to stop playing back video frames; when the terminal satisfies the condition to stop playing back video frames, controlling the terminal to stop playing back the video frame data, and controlling the terminal to continue playing back the audio data. In this way, when there is no need to play back the video frame data in the video, only the audio data in the video is played back, reducing the power consumption of the terminal, and increasing the battery life of the terminal.

Description

终端控制方法及装置Terminal control method and device
本申请要求于2016年3月14日提交中国专利局、申请号为2016101442164、发明名称为“终端控制方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, the entire disclosure of which is hereby incorporated by reference.
技术领域Technical field
本发明实施例涉及终端技术领域,尤其涉及一种终端控制方法及装置。The embodiments of the present invention relate to the field of terminal technologies, and in particular, to a terminal control method and apparatus.
背景技术Background technique
随着技术的不断发展,可供用户选择和使用的终端也越来越多,如手机、平板电脑及智能穿戴设备等,用户可以很方便的通过这些终端设备实现各种功能。然而,受限于智能终端电池容量的大小,使得很多终端的续航能力较弱。因此,在终端使用过程中如何提高终端的续航能力,成为当前亟待解决的问题。With the continuous development of technology, more and more terminals are available for users to select and use, such as mobile phones, tablet computers and smart wearable devices, etc., and users can conveniently implement various functions through these terminal devices. However, limited by the size of the smart terminal battery capacity, many terminals have weaker battery life. Therefore, how to improve the endurance of the terminal during the use of the terminal becomes a problem that needs to be solved urgently.
发明内容Summary of the invention
为克服相关技术中存在的问题,本发明实施例提供一种终端控制方法及装置。In order to overcome the problems in the related art, the embodiments of the present invention provide a terminal control method and apparatus.
根据本发明实施例的第一方面,提供一种终端控制方法,包括:According to a first aspect of the embodiments of the present invention, a terminal control method is provided, including:
在所述终端播放视频时,获取所述视频的视频数据,所述视频数据包括:视频帧数据和音频数据;Obtaining video data of the video when the terminal plays a video, where the video data includes: video frame data and audio data;
检测所述终端是否满足视频帧停止播放条件;Detecting whether the terminal satisfies a video frame stop playing condition;
当所述终端满足视频帧停止播放条件时,控制所述终端停止播放所述视频帧数据,并控制所述终端继续播放所述音频数据。When the terminal satisfies the video frame stop playing condition, the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data.
根据本发明实施例的第二方面,提供一种终端控制装置,包括:According to a second aspect of the embodiments of the present invention, a terminal control apparatus is provided, including:
视频数据获取单元,用于在所述终端播放视频时,获取所述视频的视频数据,所述视频数据包括:视频帧数据和音频数据;a video data acquiring unit, configured to acquire video data of the video when the terminal plays a video, where the video data includes: video frame data and audio data;
第一播放检测单元,用于检测所述终端是否满足视频帧停止播放条件; a first play detecting unit, configured to detect whether the terminal satisfies a video frame stop playing condition;
控制播放单元,用于在所述终端满足视频帧停止播放条件时,控制所述终端停止播放所述视频帧数据,并控制所述终端继续播放所述音频数据。Controlling the playing unit, configured to control the terminal to stop playing the video frame data when the terminal satisfies the video frame stop playing condition, and control the terminal to continue playing the audio data.
本发明实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:
本发明实施例提供的终端控制方法,在终端播放视频时,获取视频中的数据,并检测该终端是否满足视频停止播放条件。如果满足视频停止播放条件,那么控制该终端停止播放视频帧数据,并控制终端继续播放视频中的音频数据。这样在不需要播放视频中的视频帧数据时,只播放视频中的音频数据,可以减少终端的耗电量,提高终端的续航时间。The terminal control method provided by the embodiment of the invention acquires data in the video when the terminal plays the video, and detects whether the terminal satisfies the video stop playing condition. If the video stop playing condition is satisfied, then the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data in the video. In this way, when the video frame data in the video is not required to be played, only the audio data in the video is played, which can reduce the power consumption of the terminal and improve the battery life of the terminal.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本发明。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in the specification of FIG
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it will be apparent to those skilled in the art that In other words, other drawings can be obtained based on these drawings without paying for creative labor.
图1是根据一示例性实施例示出的一种终端控制方法的流程图;FIG. 1 is a flowchart of a terminal control method according to an exemplary embodiment;
图2是图1中步骤S120的流程图;Figure 2 is a flow chart of step S120 of Figure 1;
图3是图1中步骤S120的又一流程图;Figure 3 is still another flow chart of step S120 of Figure 1;
图4是根据一示例性实施例示出的一种终端控制方法的流程图;FIG. 4 is a flowchart of a terminal control method according to an exemplary embodiment;
图5是根据一示例性实施例示出的一种终端控制方法的流程图;FIG. 5 is a flowchart of a terminal control method according to an exemplary embodiment;
图6是根据一示例性实施例示出的一种终端控制装置的结构示意图;FIG. 6 is a schematic structural diagram of a terminal control apparatus according to an exemplary embodiment;
图7是图6中第一播放检测单元的示意图;Figure 7 is a schematic diagram of the first play detecting unit of Figure 6;
图8是图6中第一播放检测单元的又一示意图; Figure 8 is another schematic diagram of the first play detecting unit of Figure 6;
图9是根据一示例性实施例示出的一种终端控制装置的结构示意图;FIG. 9 is a schematic structural diagram of a terminal control apparatus according to an exemplary embodiment;
图10是根据一示例性实施例示出的一种终端控制装置的结构示意图。FIG. 10 is a schematic structural diagram of a terminal control apparatus according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
为了提高终端在使用过程中的续航能力问题,本发明实施例首先提供了一种终端控制方法,如图1所示,该方法可以包括如下步骤:In order to improve the endurance of the terminal in use, the embodiment of the present invention first provides a terminal control method. As shown in FIG. 1 , the method may include the following steps:
在步骤S110中,在终端播放视频时,获取视频的视频数据。In step S110, when the terminal plays the video, the video data of the video is acquired.
其中,视频数据包括:视频帧数据和音频数据。The video data includes: video frame data and audio data.
该终端可以是手机、平板电脑等,实施例中以手机播放视频为例进行说明。视频数据主要由两部分组成:视频帧数据和音频数据。视频帧数据就是用户观看到的连续播放的图像画面;音频数据是视频中用户可以听到的声音。通常情况下,在用户通过手机播放视频时,不但可以观看终端上播放视频的图像画面,还可以听到视频中的声音。The terminal may be a mobile phone, a tablet computer, etc. In the embodiment, the video is played by the mobile phone as an example for description. Video data is mainly composed of two parts: video frame data and audio data. The video frame data is the continuously played image picture viewed by the user; the audio data is the sound that the user can hear in the video. Normally, when a user plays a video through a mobile phone, not only can the image of the video played on the terminal be viewed, but also the sound in the video can be heard.
在步骤S120中,检测终端是否满足视频帧停止播放条件。In step S120, it is detected whether the terminal satisfies the video frame stop playing condition.
在某些情况下,用户可能只想听到视频中的声音,而不想看到视频中的图像画面,这种情况下就需要检查当前终端是否满足视频帧停止播放条件。In some cases, the user may only want to hear the sound in the video and not want to see the image in the video. In this case, it is necessary to check whether the current terminal satisfies the video frame stop playing condition.
示例性的,在用户的终端中播放某视频讲座时,由于视频画面中只有演讲者一个人在讲,用户觉得没必要观看,只需收听即可,那么这时终端可用通过检测用户的某些操作来判断是否满足视频帧停止播放条件,如用户将手机的显示屏一侧扣在桌面等。Exemplarily, when a video lecture is played in the user's terminal, since only one speaker is speaking in the video screen, the user feels that it is unnecessary to watch, and only needs to listen, then the terminal can detect some of the user by using the terminal. The operation determines whether the video frame stops playing condition is met, for example, the user buckles the display side of the mobile phone to the desktop.
当终端满足视频帧停止播放条件时,在步骤S130中,控制终端停止播放视频帧数据,并控制终端继续播放音频数据。When the terminal satisfies the video frame stop playing condition, in step S130, the control terminal stops playing the video frame data, and controls the terminal to continue playing the audio data.
如果终端检测到了用户对终端的某些操作,满足视频帧停止播放条件时,就可以控制终端停止播放视频帧数据,并控制终端继续播放音频数据。即终端只播 放视频中的音频数据,停止播放视频中的视频帧数据。可以很好的减少终端的电量消耗,提高终端的续航时间。If the terminal detects some operations of the user on the terminal and satisfies the condition that the video frame stops playing, the terminal can control the terminal to stop playing the video frame data, and control the terminal to continue playing the audio data. Terminal broadcast only The audio data in the video is released, and the video frame data in the video is stopped. It can reduce the power consumption of the terminal and improve the battery life of the terminal.
当终端不满足视频帧停止播放条件时,在步骤S140中,控制终端继续播放视频帧数据及播放音频数据。When the terminal does not satisfy the video frame stop playing condition, in step S140, the control terminal continues to play the video frame data and play the audio data.
如果终端不满足视频帧停止播放条件,那么控制终端继续播放视频帧数据及播放音频数据,避免影响用户正常观看终端上播放的视频。If the terminal does not satisfy the video frame stop playing condition, the control terminal continues to play the video frame data and play the audio data, so as to avoid affecting the user to normally watch the video played on the terminal.
本发明实施例中提供的终端控制方法,在终端播放视频时,获取视频中的数据,并检测该终端是否满足视频停止播放条件。如果满足视频停止播放条件,那么控制该终端停止播放视频帧数据,并控制终端继续播放视频中的音频数据。这样在不需要播放视频中的视频帧数据时,只播放视频中的音频数据,可以减少终端的耗电量,提高终端的续航时间。The terminal control method provided in the embodiment of the present invention acquires data in the video when the terminal plays the video, and detects whether the terminal satisfies the video stop playing condition. If the video stop playing condition is satisfied, then the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data in the video. In this way, when the video frame data in the video is not required to be played, only the audio data in the video is played, which can reduce the power consumption of the terminal and improve the battery life of the terminal.
为了详细阐述终端是否满足视频帧停止播放条件,作为图1方法的细化,在本发明提供的又一实施例中,如图2所示,步骤S120还可以包括如下步骤:In order to further describe whether the terminal satisfies the video frame stop playing condition, as a refinement of the method of FIG. 1, in another embodiment provided by the present invention, as shown in FIG. 2, step S120 may further include the following steps:
在步骤S121中,判断终端是否在目标对象的预设范围之内。In step S121, it is determined whether the terminal is within the preset range of the target object.
仍旧以终端为手机为例,由于目前绝大多数手机为智能手机,而手机上通常会安装有距离传感器,通过距离传感器,手机可以很快检测到距离屏幕前方物体的距离是多少。其中,目标对象可以是使用该手机的人,或者其他物体等。Still taking the terminal as a mobile phone, for example, most mobile phones are smart phones, and the distance sensor is usually installed on the mobile phone. Through the distance sensor, the mobile phone can quickly detect the distance from the object in front of the screen. The target object may be a person using the mobile phone, or other objects.
当终端不在目标对象的预设范围之内时,在步骤S122中,确定终端满足视频帧停止播放条件。When the terminal is not within the preset range of the target object, in step S122, it is determined that the terminal satisfies the video frame stop playing condition.
当终端在目标对象的预设范围之内时,在步骤S123中,确定终端不满足视频帧停止播放条件。When the terminal is within the preset range of the target object, in step S123, it is determined that the terminal does not satisfy the video frame stop playing condition.
示例性的,如果终端不在目标对象的预设范围之内,如果用户将手机屏幕一侧扣在桌面上,那么手机会检测到手机屏幕距离桌面的距离很小,几乎为零,说明用户不想观看手机中播放视频的图像画面,这时可以停止播放视频中的视频帧数据。又或者,如果手机检测到用户距离手机屏幕很远(如大于5米),那么用户就不能清楚的观看手机中播放的图像画面,这时也可以确定终端满足视频停止播放条件。Exemplarily, if the terminal is not within the preset range of the target object, if the user buckles the side of the mobile phone screen on the desktop, the mobile phone detects that the distance of the mobile phone screen from the desktop is small, almost zero, indicating that the user does not want to watch. The image of the video played in the mobile phone, at which time the video frame data in the video can be stopped. Or, if the mobile phone detects that the user is far away from the screen of the mobile phone (for example, more than 5 meters), then the user cannot clearly view the image screen played in the mobile phone, and it is also determined that the terminal satisfies the condition that the video stops playing.
示例性的,如果终端在目标对象的预设范围之内,如在0.2~1米范围内(用户可以根据需要条件该范围,这里只是示例性举例说明),说明用户很可能在正 常观看手机中播放的视频,这时可以确定终端不满足视频帧停止播放条件。Exemplarily, if the terminal is within the preset range of the target object, such as in the range of 0.2 to 1 meter (the user can specify the range according to the required conditions, here is merely an exemplary example), indicating that the user is likely to be positive. Often watching the video played in the mobile phone, it can be determined that the terminal does not satisfy the video frame stop playing condition.
为了详细阐述终端是否满足视频帧停止播放条件,作为图1方法的细化,在本发明提供的又一实施例中,如图3所示,步骤S120还可以包括如下步骤:In order to further describe whether the terminal satisfies the video frame stop playing condition, as a refinement of the method of FIG. 1, in another embodiment provided by the present invention, as shown in FIG. 3, step S120 may further include the following steps:
在步骤S124中,判断终端前端的光线强度是否小于预设光线强度。In step S124, it is determined whether the light intensity at the front end of the terminal is less than the preset light intensity.
当终端前端的光线强度小于预设光线强度时,在步骤S125中,确定终端满足视频帧停止播放条件。When the light intensity of the front end of the terminal is less than the preset light intensity, in step S125, it is determined that the terminal satisfies the video frame stop playing condition.
当终端前端的光线强度不小于预设光线强度时,在步骤S126中,确定终端不满足视频帧停止播放条件。When the light intensity of the front end of the terminal is not less than the preset light intensity, in step S126, it is determined that the terminal does not satisfy the video frame stop playing condition.
仍旧以终端为手机为例,由于目前绝大多数手机为智能手机,而手机上通常会安装有光线强度传感器,通过光线强度传感器,手机可以很快检测到手机屏幕前端的光线强度。需要说明的是,终端前端是指终端显示屏幕的前方。Still taking the terminal as a mobile phone, for example, most mobile phones are smart phones, and a light intensity sensor is usually installed on the mobile phone. The light intensity sensor can quickly detect the light intensity of the front end of the mobile phone screen. It should be noted that the terminal front end refers to the front of the terminal display screen.
如果终端上的光线强度传感器检查到当前的光线强度低于某一设定阈值,示例性的,如果用户将手机屏幕一侧扣在桌面上,那么手机会检测到手机屏幕前方的光线强度会很低,说明用户不想观看手机中播放视频的图像画面,这时可以停止播放视频中的视频帧数据。If the light intensity sensor on the terminal detects that the current light intensity is below a certain threshold, for example, if the user buckles the side of the screen on the desktop, the phone will detect that the light intensity in front of the screen of the mobile phone is very high. Low, indicating that the user does not want to watch the image of the video played in the mobile phone, and then can stop playing the video frame data in the video.
需要说明的是,本发明提供的实施例可以相互结合,如可以将终端是否在目标对象的预设范围之内与终端前端的光线强度是否小于预设光线强度等条件结合起来使用,在同时满足或者有其中一个或几个满足条件时,确定终端满足视频帧停止播放条件。It should be noted that the embodiments provided by the present invention may be combined with each other, for example, whether the terminal is used within a preset range of the target object and whether the light intensity of the front end of the terminal is less than a preset light intensity, and the like. Or when one or several of the conditions are met, it is determined that the terminal satisfies the video frame stop playing condition.
作为图1方法的细化,在本发明提供的又一实施例中,如图4所示,该方法还可以包括如下步骤:As a refinement of the method of FIG. 1, in another embodiment provided by the present invention, as shown in FIG. 4, the method may further include the following steps:
在步骤S150中,实时获取音频数据的当前音频播放参数。In step S150, the current audio play parameters of the audio data are acquired in real time.
由于在视频播放过程中,视频帧数据的播放要与音频帧的播放同步,为了在检测到终端满足视频帧播放条件时,及时将视频中的视频帧与当前播放的音频数据同步播放,需要实时获取音频数据的当前音频播放参数。其中,当前音频播放参数包括音频播放的播放时刻、播放内容等等信息。Since the playback of the video frame data is synchronized with the playback of the audio frame during the video playback process, in order to synchronously play the video frame in the video with the currently played audio data in time to detect that the terminal satisfies the video frame playing condition, real-time need to be performed. Get the current audio playback parameters of the audio data. The current audio play parameters include information such as the play time of the audio play, the play content, and the like.
在步骤S160中,检测终端是否满足视频帧播放条件。In step S160, it is detected whether the terminal satisfies the video frame playing condition.
该视频帧播放条件可以,如前述所述的手机与目标对象的距离是否在有效距 离范围之内,或光线强度是否达到一定强度等。The video frame playing condition may be, whether the distance between the mobile phone and the target object is at an effective distance as described above. Within the range, or whether the light intensity reaches a certain intensity.
当终端满足视频帧播放条件时,在步骤S170中,获取与当前音频播放参数相对应的视频播放参数。When the terminal satisfies the video frame playing condition, in step S170, the video playing parameter corresponding to the current audio playing parameter is acquired.
在步骤S180中,控制终端播放视频中与视频播放参数相对应的视频帧数据。In step S180, the control terminal plays the video frame data corresponding to the video playing parameters in the video.
在终端满足视频帧停止播放条件时,这时就可以继续播放视频中的视频帧数据,并将该视频帧数据与当前播放的音频数据之间同步播放,避免因视频帧数据内容与音频数据内容不同步,造成用户无法正常观看视频。When the terminal satisfies the stop condition of the video frame, the video frame data in the video can be continuously played, and the video frame data is synchronously played with the currently played audio data, thereby avoiding the video frame data content and the audio data content. Not synchronized, causing users to not watch the video properly.
当终端不满足视频帧播放条件时,在步骤S190中,控制终端继续停止播放视频帧数据,并控制终端继续播放音频数据。When the terminal does not satisfy the video frame playing condition, in step S190, the control terminal continues to stop playing the video frame data, and controls the terminal to continue playing the audio data.
如果终端不满足视频帧播放条件,控制终端继续停止播放视频帧数据,并控制终端继续播放音频数据。If the terminal does not satisfy the video frame playing condition, the control terminal continues to stop playing the video frame data, and controls the terminal to continue playing the audio data.
作为图1方法的细化,在本发明提供的又一实施例中,如图5所示,该方法还可以包括如下步骤:As a refinement of the method of FIG. 1, in another embodiment provided by the present invention, as shown in FIG. 5, the method may further include the following steps:
在步骤S510中,控制终端关闭终端的屏幕显示。In step S510, the control terminal turns off the screen display of the terminal.
这时为了更加节省终端的电量,可以将其屏幕显示关闭,进一步提高续航能力。At this time, in order to save more power of the terminal, the screen display can be turned off to further improve the endurance.
本发明实施例提供的终端控制方法,在终端播放视频时,获取视频中的数据,并检测该终端是否满足视频停止播放条件。如果满足视频停止播放条件,那么控制该终端停止播放视频帧数据,并控制终端继续播放视频中的音频数据。这样在不需要播放视频中的视频帧数据时,只播放视频中的音频数据,可以减少终端的耗电量,提高终端的续航时间。The terminal control method provided by the embodiment of the invention acquires data in the video when the terminal plays the video, and detects whether the terminal satisfies the video stop playing condition. If the video stop playing condition is satisfied, then the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data in the video. In this way, when the video frame data in the video is not required to be played, only the audio data in the video is played, which can reduce the power consumption of the terminal and improve the battery life of the terminal.
并且在需要继续播放视频中的视频帧数据时,可以及时将视频帧数据及时同步到当前音频数据中,使得视频帧数据和音频数据同步播放。还可以在停止播放视频中的视频帧数据时,关闭终端的屏幕显示,进一步降低终端的无用电量消耗,提高使用的续航能力。And when it is necessary to continue playing the video frame data in the video, the video frame data can be timely synchronized to the current audio data, so that the video frame data and the audio data are played synchronously. It is also possible to turn off the screen display of the terminal when the video frame data in the video is stopped, further reducing the power consumption of the terminal and improving the endurance of the use.
通过以上的方法实施例的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或 者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:只读存储器(ROM)、随机存取存储器(RAM)、磁碟或者光盘等各种可以存储程序代码的介质。Through the description of the above method embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention is essentially The portion that contributes to the prior art can be embodied in the form of a software product stored in a storage medium, including instructions for causing a computer device (which can be a personal computer, a server, or Network devices, etc.) perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes various types of media that can store program codes, such as a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
另外,作为对上述各实施例的实现,本发明实施例还提供了一种终端控制装置,该装置位于终端中,如图6所示,该装置包括:视频数据获取单元10、第一播放检测单元20和控制播放单元30,其中,In addition, as an implementation of the foregoing embodiments, an embodiment of the present invention further provides a terminal control apparatus, where the apparatus is located in a terminal, as shown in FIG. 6, the apparatus includes: a video data acquiring unit 10, and a first play detection. Unit 20 and control playback unit 30, wherein
视频数据获取单元10,用于在所述终端播放视频时,获取所述视频的视频数据,所述视频数据包括:视频帧数据和音频数据;The video data acquiring unit 10 is configured to acquire video data of the video when the terminal plays a video, where the video data includes: video frame data and audio data;
第一播放检测单元20,用于检测所述终端是否满足视频帧停止播放条件;The first play detecting unit 20 is configured to detect whether the terminal satisfies a video frame stop playing condition;
控制播放单元30,用于在所述终端满足视频帧停止播放条件时,控制所述终端停止播放所述视频帧数据,并控制所述终端继续播放所述音频数据。The control playing unit 30 is configured to control the terminal to stop playing the video frame data when the terminal satisfies the video frame stop playing condition, and control the terminal to continue playing the audio data.
在本发明又一实施例中,基于图6,如图7所示,所述第一播放检测单元20,包括:In another embodiment of the present invention, based on FIG. 6, as shown in FIG. 7, the first play detecting unit 20 includes:
范围判断模块21,用于判断所述终端是否在所述目标对象的预设范围之内;The range determining module 21 is configured to determine whether the terminal is within a preset range of the target object;
第一条件确定模块22,用于在所述终端不在所述目标对象的预设范围之内时,确定所述终端满足所述视频帧停止播放条件;The first condition determining module 22 is configured to: when the terminal is not within the preset range of the target object, determine that the terminal satisfies the video frame stop playing condition;
第二条件确定模块23,用于在所述终端在所述目标对象的预设范围之内时,确定所述终端不满足所述视频帧停止播放条件。The second condition determining module 23 is configured to determine, when the terminal is within the preset range of the target object, that the terminal does not satisfy the video frame stop playing condition.
在本发明又一实施例中,基于图6,如图8所示,所述第一播放检测单元20,包括:In another embodiment of the present invention, based on FIG. 6, as shown in FIG. 8, the first play detecting unit 20 includes:
光线强度判断模块24,用于判断所述终端前端的光线强度是否小于预设光线强度;The light intensity determining module 24 is configured to determine whether the light intensity of the front end of the terminal is less than a preset light intensity;
第三条件确定模块25,用于在所述终端前端的光线强度小于预设光线强度时,确定所述终端满足所述视频帧停止播放条件;The third condition determining module 25 is configured to determine that the terminal satisfies the video frame stop playing condition when the light intensity of the front end of the terminal is less than the preset light intensity;
第四条件确定模块26,用于在所述终端前端的光线强度不小于预设光线强度时,确定所述终端不满足所述视频帧停止播放条件。 The fourth condition determining module 26 is configured to determine, when the light intensity of the front end of the terminal is not less than the preset light intensity, that the terminal does not satisfy the video frame stop playing condition.
在本发明又一实施例中,基于图6,如图9所示,该装置还包括:音频播放参数获取单元40、第二播放检测单元50、视频播放参数获取单元60和视频帧数据播放控制单元70,其中,In another embodiment of the present invention, based on FIG. 6, as shown in FIG. 9, the apparatus further includes: an audio play parameter acquisition unit 40, a second play detection unit 50, a video play parameter acquisition unit 60, and a video frame data playback control. Unit 70, wherein
音频播放参数获取单元40,用于实时获取所述音频数据的当前音频播放参数;The audio play parameter obtaining unit 40 is configured to acquire current audio play parameters of the audio data in real time;
第二播放检测单元50,用于检测所述终端是否满足视频帧播放条件;a second play detecting unit 50, configured to detect whether the terminal satisfies a video frame playing condition;
视频播放参数获取单元60,用于在所述终端满足视频帧播放条件时,获取与所述当前音频播放参数相对应的视频播放参数;The video playing parameter obtaining unit 60 is configured to acquire a video playing parameter corresponding to the current audio playing parameter when the terminal satisfies the video frame playing condition;
视频帧数据播放控制单元70,用于控制所述终端播放所述视频中与所述视频播放参数相对应的视频帧数据。The video frame data playing control unit 70 is configured to control the terminal to play video frame data corresponding to the video playing parameter in the video.
在本发明又一实施例中,基于图6,如图10所示,该装置还包括:屏幕控制显示单元80,其中,In another embodiment of the present invention, based on FIG. 6, as shown in FIG. 10, the apparatus further includes: a screen control display unit 80, wherein
屏幕控制显示单元80,用于控制所述终端关闭所述终端的屏幕显示。The screen control display unit 80 is configured to control the terminal to close the screen display of the terminal.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
可以理解的是,本发明可用于众多通用或专用的计算系统环境或配置中。例如:个人计算机、服务器计算机、手持设备或便携式设备、平板型设备、多处理器系统、基于微处理器的系统、置顶盒、可编程的消费电子设备、网络PC、小型计算机、大型计算机、包括以上任何系统或设备的分布式计算环境等等。It will be appreciated that the present invention is applicable to a wide variety of general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor based systems, set-top boxes, programmable consumer electronics devices, network PCs, small computers, mainframe computers, including A distributed computing environment of any of the above systems or devices, and the like.
本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
需要说明的是,在本文中,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的 过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these There is any such actual relationship or order between entities or operations. Moreover, the terms "including", "comprising" or "comprising" or any other variations thereof are intended to encompass a non-exclusive inclusion so as to include a plurality of elements. Processes, methods, articles, or equipment include not only those elements but also other elements not specifically listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本发明未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the present invention and include common general knowledge or conventional technical means in the art that are not disclosed in the present invention. . The specification and examples are to be considered as illustrative only,
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可实现图1-图5所示实施例提供的终端控制方法的各实现方式中的部分或全部步骤。The embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, the part of each implementation manner of the terminal control method provided by the embodiment shown in FIG. 1 to FIG. 5 can be implemented. Or all steps.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention by any person skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (10)

  1. 一种终端控制方法,其特征在于,包括:A terminal control method, comprising:
    在所述终端播放视频时,获取所述视频的视频数据,所述视频数据包括:视频帧数据和音频数据;Obtaining video data of the video when the terminal plays a video, where the video data includes: video frame data and audio data;
    检测所述终端是否满足视频帧停止播放条件;Detecting whether the terminal satisfies a video frame stop playing condition;
    当所述终端满足视频帧停止播放条件时,控制所述终端停止播放所述视频帧数据,并控制所述终端继续播放所述音频数据。When the terminal satisfies the video frame stop playing condition, the terminal is controlled to stop playing the video frame data, and the terminal is controlled to continue playing the audio data.
  2. 根据权利要求1所述的终端控制方法,其特征在于,所述检测所述终端是否满足视频帧停止播放条件,包括:The terminal control method according to claim 1, wherein the detecting whether the terminal satisfies a video frame stop playing condition comprises:
    判断所述终端是否在目标对象的预设范围之内;Determining whether the terminal is within a preset range of the target object;
    当所述终端不在所述目标对象的预设范围之内时,确定所述终端满足所述视频帧停止播放条件;When the terminal is not within the preset range of the target object, determining that the terminal satisfies the video frame stop playing condition;
    当所述终端在所述目标对象的预设范围之内时,确定所述终端不满足所述视频帧停止播放条件。When the terminal is within the preset range of the target object, determining that the terminal does not satisfy the video frame stop playing condition.
  3. 根据权利要求1所述的终端控制方法,其特征在于,所述检测所述终端是否满足视频帧停止播放条件,包括:The terminal control method according to claim 1, wherein the detecting whether the terminal satisfies a video frame stop playing condition comprises:
    判断所述终端前端的光线强度是否小于预设光线强度;Determining whether the light intensity of the front end of the terminal is less than a preset light intensity;
    当所述终端前端的光线强度小于预设光线强度时,确定所述终端满足所述视频帧停止播放条件;When the light intensity of the front end of the terminal is less than the preset light intensity, determining that the terminal satisfies the video frame stop playing condition;
    当所述终端前端的光线强度不小于预设光线强度时,确定所述终端不满足所述视频帧停止播放条件。When the light intensity of the front end of the terminal is not less than the preset light intensity, it is determined that the terminal does not satisfy the video frame stop playing condition.
  4. 根据权利要求1所述的终端控制方法,其特征在于,还包括:The terminal control method according to claim 1, further comprising:
    实时获取所述音频数据的当前音频播放参数;Acquiring current audio playback parameters of the audio data in real time;
    检测所述终端是否满足视频帧播放条件;Detecting whether the terminal satisfies a video frame playing condition;
    当所述终端满足视频帧播放条件时,获取与所述当前音频播放参数相对应的视频播放参数;Obtaining, according to the video frame playing condition, the video playing parameter corresponding to the current audio playing parameter;
    控制所述终端播放所述视频中与所述视频播放参数相对应的视频帧数 据。Controlling, by the terminal, the number of video frames in the video corresponding to the video playing parameters according to.
  5. 根据权利要求1所述的终端控制方法,其特征在于,还包括:The terminal control method according to claim 1, further comprising:
    控制所述终端关闭所述终端的屏幕显示。Controlling the terminal to turn off the screen display of the terminal.
  6. 一种终端控制装置,其特征在于,包括:A terminal control device, comprising:
    视频数据获取单元,用于在所述终端播放视频时,获取所述视频的视频数据,所述视频数据包括:视频帧数据和音频数据;a video data acquiring unit, configured to acquire video data of the video when the terminal plays a video, where the video data includes: video frame data and audio data;
    第一播放检测单元,用于检测所述终端是否满足视频帧停止播放条件;a first play detecting unit, configured to detect whether the terminal satisfies a video frame stop playing condition;
    控制播放单元,用于在所述终端满足视频帧停止播放条件时,控制所述终端停止播放所述视频帧数据,并控制所述终端继续播放所述音频数据。Controlling the playing unit, configured to control the terminal to stop playing the video frame data when the terminal satisfies the video frame stop playing condition, and control the terminal to continue playing the audio data.
  7. 根据权利要求6所述的终端控制装置,其特征在于,所述第一播放检测单元,包括:The terminal control device according to claim 6, wherein the first play detection unit comprises:
    范围判断模块,用于判断所述终端是否在目标对象的预设范围之内;a range determining module, configured to determine whether the terminal is within a preset range of the target object;
    第一条件确定模块,用于在所述终端不在所述目标对象的预设范围之内时,确定所述终端满足所述视频帧停止播放条件;a first condition determining module, configured to determine, when the terminal is not within a preset range of the target object, that the terminal satisfies the video frame stop playing condition;
    第二条件确定模块,用于在所述终端在所述目标对象的预设范围之内时,确定所述终端不满足所述视频帧停止播放条件。And a second condition determining module, configured to determine, when the terminal is within a preset range of the target object, that the terminal does not satisfy the video frame stop playing condition.
  8. 根据权利要求6所述的终端控制装置,其特征在于,所述第一播放检测单元,包括:The terminal control device according to claim 6, wherein the first play detection unit comprises:
    光线强度判断模块,用于判断所述终端前端的光线强度是否小于预设光线强度;a light intensity judging module, configured to determine whether a light intensity of the front end of the terminal is less than a preset light intensity;
    第三条件确定模块,用于在所述终端前端的光线强度小于预设光线强度时,确定所述终端满足所述视频帧停止播放条件;a third condition determining module, configured to: when the light intensity of the front end of the terminal is less than a preset light intensity, determine that the terminal satisfies the video frame stop playing condition;
    第四条件确定模块,用于在所述终端前端的光线强度不小于预设光线强度时,确定所述终端不满足所述视频帧停止播放条件。And a fourth condition determining module, configured to determine, when the light intensity of the front end of the terminal is not less than a preset light intensity, that the terminal does not satisfy the video frame stop playing condition.
  9. 根据权利要求6所述的终端控制装置,其特征在于,还包括:The terminal control device according to claim 6, further comprising:
    音频播放参数获取单元,用于实时获取所述音频数据的当前音频播放参 数;An audio playing parameter obtaining unit, configured to acquire current audio playing parameters of the audio data in real time number;
    第二播放检测单元,用于检测所述终端是否满足视频帧播放条件;a second play detecting unit, configured to detect whether the terminal satisfies a video frame playing condition;
    视频播放参数获取单元,用于在所述终端满足视频帧播放条件时,获取与所述当前音频播放参数相对应的视频播放参数;a video playing parameter obtaining unit, configured to acquire a video playing parameter corresponding to the current audio playing parameter when the terminal satisfies a video frame playing condition;
    视频帧数据播放控制单元,用于控制所述终端播放所述视频中与所述视频播放参数相对应的视频帧数据。And a video frame data playing control unit, configured to control the terminal to play video frame data corresponding to the video playing parameter in the video.
  10. 根据权利要求6所述的终端控制装置,其特征在于,还包括:The terminal control device according to claim 6, further comprising:
    屏幕控制显示单元,用于控制所述终端关闭所述终端的屏幕显示。 A screen control display unit is configured to control the terminal to close the screen display of the terminal.
PCT/CN2016/088930 2016-03-14 2016-07-06 Method and device for controlling terminal WO2017156929A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610144216.4A CN105828144A (en) 2016-03-14 2016-03-14 Terminal control method and device
CN201610144216.4 2016-03-14

Publications (1)

Publication Number Publication Date
WO2017156929A1 true WO2017156929A1 (en) 2017-09-21

Family

ID=56987164

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088930 WO2017156929A1 (en) 2016-03-14 2016-07-06 Method and device for controlling terminal

Country Status (2)

Country Link
CN (1) CN105828144A (en)
WO (1) WO2017156929A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107197099A (en) * 2017-06-21 2017-09-22 上海传英信息技术有限公司 A kind of method that utilization light sensation controls multimedia
CN107332992B (en) * 2017-06-29 2020-08-25 维沃移动通信有限公司 Video playing method and mobile terminal
WO2019061256A1 (en) * 2017-09-29 2019-04-04 腾讯科技(深圳)有限公司 Streaming media-based audio and video playback method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101076170A (en) * 2007-07-04 2007-11-21 中兴通讯股份有限公司 Mobile terminal and multimedium playing method therwith
US20080056542A1 (en) * 2006-08-30 2008-03-06 Ulead Systems, Inc. Face-detection-based remote-control system and method and face-detection-based remote-controllable multimedia system
CN101388975A (en) * 2008-10-22 2009-03-18 中兴通讯股份有限公司 Multimedia broadcast television terminal and method for implementing radio function thereon
CN102800341A (en) * 2012-07-02 2012-11-28 宇龙计算机通信科技(深圳)有限公司 Terminal and multimedia playing method thereof
CN103701984A (en) * 2013-12-04 2014-04-02 乐视网信息技术(北京)股份有限公司 Video control method and mobile phone terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10038740B2 (en) * 2013-08-19 2018-07-31 Nant Holdings Ip, Llc Camera-to-camera interactions, systems and methods

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080056542A1 (en) * 2006-08-30 2008-03-06 Ulead Systems, Inc. Face-detection-based remote-control system and method and face-detection-based remote-controllable multimedia system
CN101076170A (en) * 2007-07-04 2007-11-21 中兴通讯股份有限公司 Mobile terminal and multimedium playing method therwith
CN101388975A (en) * 2008-10-22 2009-03-18 中兴通讯股份有限公司 Multimedia broadcast television terminal and method for implementing radio function thereon
CN102800341A (en) * 2012-07-02 2012-11-28 宇龙计算机通信科技(深圳)有限公司 Terminal and multimedia playing method thereof
CN103701984A (en) * 2013-12-04 2014-04-02 乐视网信息技术(北京)股份有限公司 Video control method and mobile phone terminal

Also Published As

Publication number Publication date
CN105828144A (en) 2016-08-03

Similar Documents

Publication Publication Date Title
US9933936B2 (en) Mobile terminal and controlling method thereof
US10372193B2 (en) User interface adaptation based on detected user location
WO2021098405A1 (en) Data transmission method and apparatus, terminal, and storage medium
US8638344B2 (en) Automatically modifying presentation of mobile-device content
EP3535754B1 (en) Improved reception of audio commands
US20190013025A1 (en) Providing an ambient assist mode for computing devices
US10321204B2 (en) Intelligent closed captioning
US10360876B1 (en) Displaying instances of visual content on a curved display
US9268137B2 (en) Means for dynamically regulating the time-out characteristics of a display of an electronic device
WO2017071066A1 (en) Information processing method and device
US20190045303A1 (en) Directional propagation method and apparatus for audio signal, a terminal device and a storage medium
US9348412B2 (en) Method and apparatus for operating notification function in user device
US9165144B1 (en) Detecting a person who does not satisfy a threshold age within a predetermined area
US20130072251A1 (en) Mobile terminal, method for controlling of the mobile terminal and system
US9535559B2 (en) Stream-based media management
KR20160026585A (en) Operating Method For plural Microphones and Electronic Device supporting the same
CN108924375B (en) Ringtone volume processing method and device, storage medium and terminal
US10466955B1 (en) Crowdsourced audio normalization for presenting media content
USRE49497E1 (en) Apparatus, method, and system for desynchronizing notifications across multiple devices
WO2017156929A1 (en) Method and device for controlling terminal
US20210368230A1 (en) Loudness adjustment method and apparatus, and electronic device and storage medium
WO2017088472A1 (en) Video playing processing method and device
KR20140129508A (en) Method and apparatus for processing function of a user device
US20190050195A1 (en) Output provision based on gaze detection
CN102176765A (en) Method for controlling speaker on electronic device and electronic device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16894091

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16894091

Country of ref document: EP

Kind code of ref document: A1