CN108959382A - A kind of audio-video detection method and mobile terminal - Google Patents
A kind of audio-video detection method and mobile terminal Download PDFInfo
- Publication number
- CN108959382A CN108959382A CN201810539134.9A CN201810539134A CN108959382A CN 108959382 A CN108959382 A CN 108959382A CN 201810539134 A CN201810539134 A CN 201810539134A CN 108959382 A CN108959382 A CN 108959382A
- Authority
- CN
- China
- Prior art keywords
- target pages
- hyperlink
- audio
- mobile terminal
- target page
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 21
- 238000000034 method Methods 0.000 claims abstract description 58
- 230000004044 response Effects 0.000 claims abstract description 26
- 230000005236 sound signal Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 11
- 230000006870 function Effects 0.000 description 12
- 238000005516 engineering process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Telephone Function (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明提供了一种音视频检测方法及移动终端。该方法包括:若检测到对超链接的访问请求,则响应于所述访问请求确定超链接对应的目标页面;判断目标页面是否包括音视频文件;若判断目标页面包括音视频文件,则在加载目标页面之前显示第一提醒信息,第一提醒信息包括提示目标页面包含声音以及是否继续访问目标页面的信息。本发明在访问超链接对应的目标页面时,如果判断该目标页面中包含音视频文件,则可以在加载目标页面之前显示第一提醒信息,从而给用户充足的是否访问目标页面的考虑时间,且能够使用户提前预知即将开启的目标页面中存在声音,避免在用户未知超链接对应的目标页面是怎样的情况下,使目标页面中的音视频文件的声音播放对用户的周边及其生活带来困扰。
The invention provides an audio and video detection method and a mobile terminal. The method includes: if an access request to a hyperlink is detected, then determining a target page corresponding to the hyperlink in response to the access request; judging whether the target page includes audio and video files; if judging that the target page includes audio and video files, then loading The first reminder information is displayed before the target page, and the first reminder information includes information prompting that the target page contains sound and whether to continue to visit the target page. When the present invention visits the target page corresponding to the hyperlink, if it is judged that the target page contains audio and video files, the first reminder information can be displayed before loading the target page, thereby giving the user sufficient time to consider whether to visit the target page, and It can enable users to predict in advance that there is sound in the target page that is about to be opened, and avoid causing the sound playback of audio and video files in the target page to affect the user's surroundings and life when the user does not know what the target page corresponding to the hyperlink is. troubled.
Description
技术领域technical field
本发明实施例涉及音视频技术领域,尤其涉及一种音视频检测方法及移动终端。Embodiments of the present invention relate to the field of audio and video technologies, and in particular, to an audio and video detection method and a mobile terminal.
背景技术Background technique
随着互联网的普及,移动终端上的信息的形式也越来越多,诸如图片、视频、音频、文本、超链接等等。With the popularization of the Internet, there are more and more forms of information on mobile terminals, such as pictures, videos, audios, texts, hyperlinks and the like.
当信息以超链接的形式传递给移动终端的用户时,用户往往无法知道打开的该超链接是怎样的内容。例如,用户的移动终端接收到另一个移动终端发送的卡片链接,当用户打开该卡片链接后,如果该卡片链接链接的内容是一个音视频文件(包括视频文件和/或音频文件)时,如果用户当前所处的场景为某些需要安静的公共场合,如图书馆、休息室、办公室等,则该卡片链接的打开往往会吸引全场的注意,更有可能打扰到其他人的工作和休息,而用户则需要手忙脚乱的将移动终端的音量调低或者关闭该超链接对应的页面。When the information is transmitted to the user of the mobile terminal in the form of a hyperlink, the user often cannot know what the content of the opened hyperlink is. For example, when the user's mobile terminal receives a card link sent by another mobile terminal, after the user opens the card link, if the content of the card link link is an audio and video file (including a video file and/or an audio file), if The scene where the user is currently in is some public places that need to be quiet, such as libraries, lounges, offices, etc., the opening of the card link will often attract the attention of the audience, and it is more likely to disturb other people's work and rest , and the user needs to turn down the volume of the mobile terminal in a hurry or close the page corresponding to the hyperlink.
因此,相关技术中的超链接的开启方案普遍存在着音视频文件的播放对人们生活带来干扰的问题。Therefore, the hyperlink unlocking solution in the related art generally has the problem that the playback of audio and video files interferes with people's lives.
发明内容Contents of the invention
本发明实施例提供一种音视频检测方法及移动终端,以解决相关技术中的超链接的开启方案所存在的音视频文件的播放对人们生活带来干扰的问题。Embodiments of the present invention provide an audio and video detection method and a mobile terminal, so as to solve the problem that the playing of audio and video files in the hyperlink opening scheme in the related art interferes with people's lives.
为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:
第一方面,本发明实施例提供了一种音视频检测方法,应用于移动终端,所述方法包括:In the first aspect, the embodiment of the present invention provides an audio and video detection method, which is applied to a mobile terminal, and the method includes:
若检测到对超链接的访问请求,则响应于所述访问请求确定所述超链接对应的目标页面;If an access request to a hyperlink is detected, then determining a target page corresponding to the hyperlink in response to the access request;
判断所述目标页面是否包括音视频文件;Judging whether the target page includes audio and video files;
若判断所述目标页面包括音视频文件,则在加载所述目标页面之前显示第一提醒信息,其中,所述第一提醒信息包括提示所述目标页面包含声音以及是否继续访问目标页面的信息。If it is determined that the target page includes audio and video files, displaying first reminder information before loading the target page, wherein the first reminder information includes information prompting that the target page contains sound and whether to continue to visit the target page.
第二方面,本发明实施例还提供了一种移动终端,所述移动终端包括:In the second aspect, the embodiment of the present invention also provides a mobile terminal, the mobile terminal includes:
确定模块,用于若检测到对超链接的访问请求,则响应于所述访问请求确定所述超链接对应的目标页面;A determining module, configured to determine a target page corresponding to the hyperlink in response to the access request if an access request to the hyperlink is detected;
第一判断模块,用于判断所述目标页面是否包括音视频文件;The first judging module is used to judge whether the target page includes audio and video files;
第一显示模块,用于若判断所述目标页面包括音视频文件,则在加载所述目标页面之前显示第一提醒信息,其中,所述第一提醒信息包括提示所述目标页面包含声音以及是否继续访问目标页面的信息。The first display module is configured to display first reminder information before loading the target page if it is determined that the target page includes audio and video files, wherein the first reminder information includes prompting that the target page contains sound and whether Continue to the destination page for information.
第三方面,本发明实施例还提供了一种移动终端,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现所述的音视频检测方法的步骤。In the third aspect, the embodiment of the present invention also provides a mobile terminal, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, the computer program is processed by the processor Implement the steps of the audio and video detection method when the device is executed.
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现所述的音视频检测方法的步骤。In a fourth aspect, an embodiment of the present invention also provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the audio and video detection method described above is implemented. step.
这样,本发明实施例在访问超链接对应的目标页面时,如果判断该目标页面中包含音视频文件,则可以在加载所述目标页面之前显示第一提醒信息,从而给用户充足的是否访问目标页面的考虑时间,且能够使用户提前预知即将开启的目标页面中存在声音,避免在用户未知超链接对应的目标页面是怎样的情况下,使目标页面中的音视频文件的声音播放对用户的周边及其生活带来困扰。In this way, in the embodiment of the present invention, when accessing the target page corresponding to the hyperlink, if it is determined that the target page contains audio and video files, the first reminder message can be displayed before loading the target page, thereby giving the user sufficient information on whether to visit the target page or not. Page consideration time, and enable users to predict in advance that there is sound in the target page that is about to be opened, so as to avoid playing the sound of audio and video files in the target page when the user does not know what the target page corresponding to the hyperlink is. Surroundings and their lives bring troubles.
附图说明Description of drawings
图1是本发明一个实施例的音视频检测方法的流程图;Fig. 1 is the flowchart of the audio-video detection method of an embodiment of the present invention;
图2是本发明一个实施例的移动终端的框图;Fig. 2 is a block diagram of a mobile terminal according to an embodiment of the present invention;
图3是本发明一个实施例的移动终端的硬件结构示意图。Fig. 3 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参照图1,示出了本发明一个实施例的音视频检测方法的流程图,应用于移动终端,所述方法具体可以包括如下步骤:Referring to FIG. 1 , it shows a flowchart of an audio and video detection method according to an embodiment of the present invention, which is applied to a mobile terminal. The method may specifically include the following steps:
步骤101,若检测到对超链接的访问请求,则响应于所述访问请求确定所述超链接对应的目标页面;Step 101, if an access request to a hyperlink is detected, then determine a target page corresponding to the hyperlink in response to the access request;
其中,该超链接可以是应用程序(例如社交软件、购物软件、地图软件等等已知软件)中的超链接、网页中的超链接等。Wherein, the hyperlink may be a hyperlink in an application program (such as known software such as social software, shopping software, map software, etc.), a hyperlink in a web page, and the like.
其中,访问请求的触发由用户来实现,例如用户通过单击/双击等操作来触发对该超链接的访问请求,从而使得移动终端接收到对该超链接的访问请求。Wherein, the triggering of the access request is implemented by the user, for example, the user triggers the access request to the hyperlink through operations such as single click/double click, so that the mobile terminal receives the access request to the hyperlink.
其中,超链接可以链接到一个目标页面,这里,在对该访问请求进行响应时,就可以确定超链接对应的所述目标页面。Wherein, the hyperlink may link to a target page, and here, when responding to the access request, the target page corresponding to the hyperlink may be determined.
其中,在一个实施例中,在响应于所述访问请求确定所述超链接对应的目标页面时,可以通过以下方式来实现:Wherein, in one embodiment, when the target page corresponding to the hyperlink is determined in response to the access request, it may be implemented in the following manner:
判断所述超链接链接的目标地址是页面还是子超链接;Judging whether the target address of the hyperlink is a page or a sub-hyperlink;
其中,这里可以判断该超链接(例如链接A)链接的目标地址是页面,还是一个跳转链接,即子超链接(例如连接B)。Here, it can be determined whether the target address of the hyperlink (for example, link A) is a page, or a jump link, that is, a sub-hyperlink (for example, link B).
其中,这里的目标地址并不是一个具体的地址信息,而表示该超链接所链接的目标,该目标可以是页面(该页面可以包括文字,和/或,图片,和/或音频文件,和/或,视频文件)、应用程序、超链接等。Wherein, the target address here is not a specific address information, but represents the target linked by the hyperlink, which can be a page (the page can include text, and/or, pictures, and/or audio files, and/or or, video files), applications, hyperlinks, etc.
若所述超链接链接的目标地址为页面,则响应于所述访问请求将所述页面确定为所述超链接对应的目标页面;If the target address of the hyperlink is a page, determining the page as the target page corresponding to the hyperlink in response to the access request;
其中,如果该超链接链接的目标地址(即内嵌URL)为页面,则说明在现有技术中的方案下当触发对该超链接的访问请求后,可以直接加载展示该页面,因此,这里本发明实施例可以将该页面确定为该超链接对应的目标页面。也就是说,当该超链接被打开后,可以直接打开一个页面。Wherein, if the target address of the hyperlink (i.e., the embedded URL) is a page, it means that under the scheme in the prior art, after triggering the access request to the hyperlink, the page can be directly loaded and displayed. Therefore, here In the embodiment of the present invention, the page can be determined as the target page corresponding to the hyperlink. That is to say, when the hyperlink is opened, a page can be opened directly.
例如被触发访问请求的卡片链接(例如链接A)链接的是一个视频文件,则这里可以将显示该视频文件的页面确定为该卡片链接对应的目标页面。在现有技术中,如果该卡片链接被触发了访问请求,则直接播放该视频文件。For example, the card link (for example, link A) that triggers the access request is linked to a video file, then the page displaying the video file may be determined as the target page corresponding to the card link. In the prior art, if the card link triggers an access request, the video file is played directly.
若所述超链接(例如链接A)链接的目标地址为子超链接(例如链接B),则响应于所述访问请求确定所述子超链接对应的子页面;If the target address of the hyperlink (for example, link A) is a sub-hyperlink (for example, link B), then in response to the access request, determine the sub-page corresponding to the sub-hyperlink;
其中,确定子超链接(例如链接B)对应的子页面,与上述实施例中确定超链接(例如链接A)对应的目标页面的方法类似。Wherein, determining the sub-page corresponding to the sub-hyperlink (eg, link B) is similar to the method of determining the target page corresponding to the hyperlink (eg, link A) in the above embodiment.
将所述子页面确定为所述超链接对应的目标页面。The subpage is determined as the target page corresponding to the hyperlink.
举例来说,如果该超链接(例如链接A)链接的目标地址(即内嵌URL)还是一个超链接,即这里的子超链接(跳转链接,链接B),那么可以通过爬虫技术来获取该跳转链接(链接B)跳转到的页面(例如一个网页)中的所有内容,并从该所有内容中获取到超链接(可以理解为目标地址为页面实例中的内嵌URL,例如链接C),然后判断该超链接(例如链接C)链接的目标是否为页面(该页面可以包括文字,和/或,图片,和/或音频文件,和/或,视频文件),若是,则该页面即为该链接A对应的目标页面。For example, if the target address (i.e. embedded URL) of the hyperlink (such as link A) is still a hyperlink, i.e. the sub hyperlink (jump link, link B) here, it can be obtained by crawler technology The jump link (link B) jumps to all the content in the page (such as a web page), and obtains the hyperlink from all the content (it can be understood that the target address is the embedded URL in the page instance, such as link C), then judge whether the target of the hyperlink (such as link C) is a page (the page can include text, and/or, pictures, and/or audio files, and/or, video files), if so, then the The page is the target page corresponding to the link A.
例如,用户通过点击卡片链接(链接A)跳转到了QQ空间(一个网页,链接B),该QQ空间中又包括音乐挂件,该音乐挂件即为链接C,那么该音乐挂件对应的音乐页面即为卡片链接对应目标页面。For example, if the user jumps to the Qzone (a web page, link B) by clicking the card link (link A), the Qzone includes a music widget, and the music widget is link C, then the music page corresponding to the music widget is Correspond to the target page for the card link.
这样,本发明实施例不仅可以对直接链接页面的超链接进行识别,还可以对间接链接(即通过跳转链接来链接)页面的超链接进行识别,从而可以在开启超链接时,及时的对直接或间接链接到的页面进行是否包含音视频文件的识别,在确认该目标页面包含音视频文件时,则可以在播放音视频文件之前提醒用户是否继续访问该目标页面,避免音视频文件的突然播放给用户的生活带来干扰。In this way, the embodiment of the present invention can not only identify the hyperlink of the directly linked page, but also identify the hyperlink of the indirect link (that is, link through a jump link), so that when the hyperlink is opened, the hyperlink can be identified in time. The pages directly or indirectly linked to identify whether the audio and video files are included. When it is confirmed that the target page contains audio and video files, the user can be reminded whether to continue to visit the target page before playing the audio and video files, so as to avoid the sudden loss of audio and video files. Playing disrupts the lives of users.
可选地,在一个实施例中,在步骤101中的所述若检测到对超链接的访问请求的步骤之后,所述响应于所述访问请求确定所述超链接对应的目标页面的步骤之前,根据本发明实施例的方法还可以包括:Optionally, in one embodiment, after the step of detecting an access request to a hyperlink in step 101, before the step of determining the target page corresponding to the hyperlink in response to the access request , the method according to the embodiment of the present invention may also include:
判断所述移动终端的当前应用场景是否属于预设静音场景;judging whether the current application scene of the mobile terminal belongs to a preset mute scene;
其中,所述预设静音场景至少包括以下之一:Wherein, the preset mute scene includes at least one of the following:
所述移动终端的周围环境的分贝小于预设分贝阈值(例如20分贝);The decibel of the surrounding environment of the mobile terminal is less than a preset decibel threshold (for example, 20 decibels);
所述移动终端未连接耳机;The mobile terminal is not connected to an earphone;
其中,通过设置上述需要避免音视频的播放的静音场景,从而避免用户打开一个超链接后,在移动终端所处的当前应用场景为上述预设静音场景之中的一个时,播放的音视频的声音吓到自己或身边的人的问题。Among them, by setting the above-mentioned mute scene that needs to avoid the playback of audio and video, after the user opens a hyperlink, when the current application scene where the mobile terminal is located is one of the above-mentioned preset mute scenes, the audio and video that is played Problems with sounds that startle yourself or those around you.
相应的,所述响应于所述访问请求确定所述超链接对应的目标页面的步骤,包括:Correspondingly, the step of determining the target page corresponding to the hyperlink in response to the access request includes:
若所述移动终端的当前应用场景属于预设静音场景,则响应于所述访问请求确定所述超链接对应的目标页面;If the current application scene of the mobile terminal belongs to a preset mute scene, then in response to the access request, determine the target page corresponding to the hyperlink;
这样,本发明实施例能够在确定移动终端当前所处的应用场景属于预设静音场景之一的情况下,才会进行后续的是否继续访问目标页面的提醒,避免对开启的超链接的音视频文件的不必要检测。In this way, in the embodiment of the present invention, only when it is determined that the application scene where the mobile terminal is currently located belongs to one of the preset mute scenes, will the follow-up reminder whether to continue to visit the target page be carried out, so as to avoid the audio and video of the opened hyperlink Unnecessary detection of files.
步骤102,判断所述目标页面是否包括音视频文件;Step 102, judging whether the target page includes audio and video files;
其中,可以采用已知技术中的任意一种方式来检测目标页面是否包括音视频文件,其中,这里的音视频文件可以包括音频文件或视频文件。Wherein, any method in known technologies may be used to detect whether the target page includes audio and video files, wherein the audio and video files here may include audio files or video files.
即判断超链接所包括的一个或多个内嵌URL(Uniform Resource Locator,统一资源定位符)是否为音频文件或视频文件。只要目标页面中包括视频文件和音频文件中的任意一种,即视为该目标页面包括音视频文件。That is, it is judged whether one or more embedded URLs (Uniform Resource Locators, Uniform Resource Locators) included in the hyperlink are audio files or video files. As long as the target page includes any one of video files and audio files, it is considered that the target page includes audio and video files.
在一个实施例中,可以通过以下方式一和/或方式二来进行目标页面是否包括音视频文件的检测,即判断。In one embodiment, the detection of whether the target page includes audio and video files, that is, the judgment, can be performed through the following method 1 and/or method 2.
方式一:method one:
获取所述目标页面的至少一个内嵌URL;Obtain at least one embedded URL of the target page;
其中,超链接对应的目标页面可以包括一个或多个URL,即上述内嵌URL。也就是说,该被点击的超链接所链接的目标页面中可以包括一个或多个URL。Wherein, the target page corresponding to the hyperlink may include one or more URLs, that is, the above-mentioned embedded URLs. That is to say, the target page linked by the clicked hyperlink may include one or more URLs.
根据所述至少一个内嵌URL的后缀参数,判断所述目标页面是否包括音视频文件。According to the suffix parameter of the at least one embedded URL, it is judged whether the target page includes audio and video files.
其中,由于音频文件的URL的后缀参数(即扩展名)可以为mp3、wma、wav等;视频文件的URL的后缀参数(即扩展名)可以为wmv、avi、mpg、rm、rmvb等。因此,本发明实施例可以根据音频文件的URL的已知后缀参数和视频文件的URL的已知后缀参数,来对目标页面的至少一个内嵌URL的后缀参数进行识别,如果包括音频文件的URL的已知后缀参数中的任意一个,和/或,如果包括视频文件的URL的已知后缀参数中的任意一个,则确定所述目标页面包括音视频文件,否则,确定所述目标页面不包括音视频文件。Wherein, because the suffix parameter (being extension) of the URL of audio file can be mp3, wma, wav etc.; The suffix parameter (being extension) of the URL of video file can be wmv, avi, mpg, rm, rmvb etc. Therefore, the embodiment of the present invention can identify the suffix parameter of at least one embedded URL of the target page according to the known suffix parameters of the URL of the audio file and the known suffix parameters of the URL of the video file, if the URL of the audio file is included Any one of the known suffix parameters, and/or, if any one of the known suffix parameters of the URL of the video file is included, then it is determined that the target page includes audio and video files; otherwise, it is determined that the target page does not include Audio and video files.
这样,本发明实施例通过对所述目标页面的至少一个内嵌URL的后缀参数进行识别判断,从而可以确定该目标页面中是否包括音视频文件,提升了超链接对应的目标页面是否包括音视频文件的识别准确度。In this way, the embodiment of the present invention can determine whether the target page includes audio and video files by identifying and judging the suffix parameters of at least one embedded URL of the target page, and improves whether the target page corresponding to the hyperlink includes audio and video files. Document recognition accuracy.
方式二:Method 2:
根据所述至少一个内嵌URL的文件头,以及预先设置的文件头和音视频文件格式的对应关系,判断所述目标页面是否包括音视频文件。According to the file header of the at least one embedded URL, and the preset correspondence between the file header and the format of the audio and video files, it is judged whether the target page includes the audio and video files.
其中,由于不同携带音视频文件的URL的文件头也是有一定规则和特点的,因此,本发明实施例可以在数据库中预先设置每种音频文件格式与文件头之间的对应关系,以及每种视频文件格式与文件头的对应关系,那么在判断目标页面是否包括音视频文件时,就可以将目标页面的每个内嵌URL的文件头来与上述两个预设的对应关系中的文件头进行匹配,如果存在与之相匹配的文件头,则确定该目标页面包括音视频文件,否则确定该目标页面不包括音视频文件。Wherein, since the file headers of different URLs carrying audio and video files also have certain rules and characteristics, the embodiment of the present invention can pre-set the correspondence between each audio file format and the file header in the database, and each The corresponding relationship between the video file format and the file header, then when judging whether the target page includes audio and video files, you can compare the file header of each embedded URL of the target page with the file header in the above two preset correspondences Matching is performed, and if there is a matching file header, it is determined that the target page includes audio and video files, otherwise it is determined that the target page does not include audio and video files.
这样,本发明实施例通过对所述目标页面的至少一个内嵌URL的文件头进行识别判断,从而可以确定该目标页面中是否包括音视频文件,提升了超链接对应的目标页面是否包括音视频文件的识别准确度。In this way, the embodiment of the present invention can determine whether audio and video files are included in the target page by identifying and judging the file header of at least one embedded URL of the target page, thereby improving whether the target page corresponding to the hyperlink includes audio and video files. Document recognition accuracy.
步骤103,若判断所述目标页面包括音视频文件,则在加载所述目标页面之前显示第一提醒信息。Step 103, if it is determined that the target page includes audio and video files, displaying a first reminder message before loading the target page.
其中,如果经过步骤102的判断,确定该目标页面包括音视频文件,则本发明实施例的方法可以在加载该目标页面之前显示第一提醒信息。Wherein, if it is determined through step 102 that the target page includes audio and video files, the method of the embodiment of the present invention may display the first reminder message before loading the target page.
其中,所述第一提醒信息包括提示所述目标页面包含声音以及是否继续访问目标页面的信息(即,所述第一提醒信息包括:所述目标页面包含声音的提示信息、以及是否继续访问目标页面的提示信息)。Wherein, the first reminder information includes information prompting that the target page contains sound and whether to continue to visit the target page (that is, the first reminder information includes: the prompt information that the target page contains sound, and whether to continue to visit the target page page prompt information).
在一个示例中,该提醒信息可以以弹窗的方式来体现。该弹窗中包含提示信息(例如“您即将打开的页面包含声音,请问是否继续访问?”),还可以包括两个按钮,例如按钮“是”预设了继续访问目标页面的触发事件,按钮“否”预设了停止对目标页面的访问的触发事件。In an example, the reminder information may be presented in the form of a pop-up window. The pop-up window contains prompt information (for example, "The page you are about to open contains sound, do you want to continue to visit?"), and can also include two buttons, for example, the button "Yes" presets the trigger event for continuing to visit the target page, and the button "No" presets a trigger event that stops access to the target page.
这样,本发明实施例在访问超链接对应的目标页面时,如果判断该目标页面中包含音视频文件,则可以在加载所述目标页面之前显示第一提醒信息,从而给用户充足的是否访问目标页面的考虑时间,且能够使用户提前预知即将开启的目标页面中存在声音,避免在用户未知超链接对应的目标页面是怎样的情况下,使目标页面中的音视频文件的声音播放对用户的周边及其生活带来困扰。In this way, in the embodiment of the present invention, when accessing the target page corresponding to the hyperlink, if it is determined that the target page contains audio and video files, the first reminder message can be displayed before loading the target page, thereby giving the user sufficient information on whether to visit the target page or not. Page consideration time, and enable users to predict in advance that there is sound in the target page that is about to be opened, so as to avoid playing the sound of audio and video files in the target page when the user does not know what the target page corresponding to the hyperlink is. Surroundings and their lives bring troubles.
继续上述举例来说,当用户点击了“是”,则表示不在意该音视频文件的声音播放,或者用户提前将移动终端设置为静音状态,使得该音视频文件的声音播放时也无法被用户听到,那么本发明实施例的方法可以加载展示该目标页面,并播放目标页面中的音视频文件。Continuing the above example, when the user clicks "Yes", it means that he does not care about the sound playback of the audio and video file, or the user sets the mobile terminal to a mute state in advance, so that the sound of the audio and video file cannot be played by the user. Hear, then the method of the embodiment of the present invention can load and display the target page, and play the audio and video files in the target page.
那么如果用户点击了“否”,则表示用户周边的环境不太适合播放音视频文件,则本发明实施例的方法可以停止对目标页面的访问,结束目标页面的访问流程,并保持在原有页面(即步骤101中的超链接所在的页面)不变。Then if the user clicks "No", it means that the surrounding environment of the user is not suitable for playing audio and video files, then the method of the embodiment of the present invention can stop the access to the target page, end the access process of the target page, and keep the original page (ie the page where the hyperlink in step 101 is located) remains unchanged.
可选地,在一个实施例中,在步骤102之后,步骤103之前,根据本发明实施例的方法还可以包括:Optionally, in one embodiment, after step 102 and before step 103, the method according to the embodiment of the present invention may further include:
若判断所述目标页面包括音视频文件,则判断所述音视频文件是否预先设置为自动播放;If it is judged that the target page includes audio and video files, then it is judged whether the audio and video files are preset to play automatically;
例如,可以通过判断目标页面的源代码中关于所识别到的音视频文件是否预先设置为自动播放。For example, it may be determined whether the identified audio and video files in the source code of the target page are preset to play automatically.
相应的,在执行步骤103时,则若所述音视频文件预先设置为自动播放、且所述目标页面包括音视频文件,则在加载所述目标页面之前显示第一提醒信息。Correspondingly, when step 103 is executed, if the audio/video file is preset to play automatically and the target page includes the audio/video file, the first reminder message is displayed before loading the target page.
这样,本发明实施例通过在确定超链接对应的目标页面包含音视频文件后,通过进一步判断该音视频文件在该目标页面中是否预先设置为自动播放,并在该音视频文件被预先设置为自动播放的前提下,才会在加载所述目标页面之前进行第一提醒信息的显示,避免了对用户的不必要提醒。Like this, the embodiment of the present invention is by after determining that the target page corresponding to the hyperlink contains audio and video files, by further judging whether the audio and video files are preset to automatically play in the target page, and when the audio and video files are preset to On the premise of automatic playback, the first reminder information will be displayed before loading the target page, which avoids unnecessary reminders to the user.
可选地,在另一个实施例中,在所述步骤102之后,根据本发明实施例的方法还可以包括:Optionally, in another embodiment, after step 102, the method according to the embodiment of the present invention may further include:
若判断所述目标页面不包括音视频文件,则加载所述目标页面;If it is judged that the target page does not include audio and video files, then load the target page;
其中,由于音视频文件的格式不断更新完善,使得已知技术或是本发明实施例方法中对目标页面是否包括音视频文件的判断步骤,并不能够保证能够对目前所有格式的音视频文件都准确的识别到,因此,会存在目标页面中存在音视频文件,但是本发明实施例的方法没有识别到该音视频文件的场景,即判断判断所述目标页面不包括音视频文件的场景,那么本发明实施例的方法则会正常处理,即加载该目标页面。Wherein, since the formats of audio and video files are continuously updated and perfected, the known technology or the step of judging whether the target page includes audio and video files in the method of the embodiment of the present invention cannot guarantee that all current audio and video files in all formats can be checked. Accurately identify, therefore, there will be audio and video files in the target page, but the method of the embodiment of the present invention does not recognize the scene of the audio and video files, that is, it is judged that the target page does not include the scene of the audio and video files, then The method of the embodiment of the present invention will process normally, that is, load the target page.
若在加载所述目标页面的过程中检测到来自所述目标页面的声音信号,则暂停所述声音信号的播放,并在所述目标页面显示第二提醒信息。If a sound signal from the target page is detected during the process of loading the target page, the playback of the sound signal is suspended, and second reminder information is displayed on the target page.
其中,在加载该目标页面的过程中,如果本发明实施例的方法检测到该目标页面产生的声音信号,则本发明实施例的方法可以暂停该声音信号的播放,并在目标页面显示第二提醒信息。其中,所述第二提醒信息包括是否恢复播放目标页面中声音的提示信息。Wherein, in the process of loading the target page, if the method of the embodiment of the present invention detects the sound signal generated by the target page, the method of the embodiment of the present invention can pause the playback of the sound signal, and display the second reminder message. Wherein, the second reminder information includes prompt information whether to resume playing the sound in the target page.
也就是说,在判断目标页面中不包括音视频文件的场景下,如果在加载该目标页面的过程中,采集到了该目标页面产生的声音信号,则说明该目标页面还是包括音视频文件的,因此,本发明实施例的方法还可以暂停该声音信号的播放(例如将采集的该声音信号保存,待用户选择恢复播放声音时,再将保存的声音信号进行播放),并在目标页面显示第二提醒信息。That is to say, in the scene where it is determined that the target page does not include audio and video files, if the sound signal generated by the target page is collected during the process of loading the target page, it means that the target page still includes audio and video files. Therefore, the method of the embodiment of the present invention can also suspend the playback of the sound signal (for example, save the collected sound signal, and then play the saved sound signal when the user chooses to resume playing the sound), and display the first sound signal on the target page. 2. Reminder information.
需要注意的是,本实施例中的第二提醒信息是显示在目标页面中的,因为此时目标页面已经进行了展示,这有别于图1所示实施例中的第一提醒信息的显示,其中,第一提醒信息显示在超链接的原始页面中,未切换至目标页面。It should be noted that the second reminder information in this embodiment is displayed on the target page, because the target page has already been displayed at this time, which is different from the display of the first reminder information in the embodiment shown in Figure 1 , wherein, the first reminder message is displayed on the original page of the hyperlink, and is not switched to the target page.
其中,对于第二提醒信息的体现形式来说,可以是弹窗形式,该弹窗中包含提示信息(例如“您当前打开的页面包含声音,请问是否恢复播放该页面中声音?”),还可以包括两个按钮,例如按钮“是”预设了恢复播放该音视频文件的触发事件,按钮“否”预设了保持对该音视频文件的暂停播放的触发事件。Wherein, for the embodiment of the second reminder information, it can be in the form of a pop-up window, which contains prompt information (such as "the page you are currently opening contains sound, do you want to resume playing the sound in this page?"), or It may include two buttons. For example, the button "Yes" presets the trigger event for resuming playing the audio and video file, and the button "No" presets the trigger event for maintaining the pause playback of the audio and video file.
这样,当用户选择按钮“否”后,可以不影响用户对目标页面的除音视频文件的声音之外的其他内容的浏览,待用户浏览其他内容后,如果需要对目标页面的声音进行播放,则可以继续选择按钮“是”来恢复播放该目标页面中的音视频文件。其中,该弹窗在被选择了按钮“是”或按钮“否”后,还可以随时通过滑动手势来使弹窗出现,从而继续进行按钮“是”或按钮“否”的选择。In this way, when the user selects the button "No", it will not affect the user's browsing of content other than the sound of audio and video files on the target page. After the user browses other content, if the sound of the target page needs to be played, Then you can continue to select the button "Yes" to resume playing the audio and video files in the target page. Wherein, after the button "Yes" or the button "No" is selected in the pop-up window, the pop-up window can also appear at any time through a sliding gesture, so as to continue to select the button "Yes" or the button "No".
本发明实施例通过在判断目标页面中不包括音视频文件的场景下,如果在加载该目标页面的过程中,采集到了该目标页面产生的声音信号,则可以暂停该声音信号的播放,并在目标页面显示第二提醒信息,从而在目标页面的音视频文件判断不准确的情况下,及时的在加载目标页面的过程中实现对目标页面中音视频文件的进一步准确识别,提升了超链接对应的目标页面中的音视频文件的识别检测可靠性和准确性。In the embodiment of the present invention, in the scene where it is judged that the target page does not include audio and video files, if the sound signal generated by the target page is collected during the process of loading the target page, the playback of the sound signal can be suspended, and The target page displays the second reminder information, so that when the audio and video files of the target page are not judged accurately, further accurate identification of the audio and video files in the target page is realized in a timely manner during the process of loading the target page, and the hyperlink correspondence is improved. The reliability and accuracy of the recognition and detection of audio and video files in the target page.
此外,在其他实施例中,本发明实施例的上述预设静音场景还可以进一步扩展,例如在第一提醒信息或第二提醒信息的显示之后,如果用户选择的是继续访问目标页面的选项,或者,恢复播放该目标页面中的音视频文件的选项,即,用户需要目标页面中音视频文件的播放,那么在用户手动选择该选项后的预设时间段内(例如1小时内),则在检测到对任意一个超链接的访问请求时,则本发明实施例的方法不再执行上述任意一个方法实施例。也即,该预设静音场景还可以包括当前时间在用户手动选择上述任意一个选项后的预设时间段之后,即距离手动选择上述任意一个选项已经超过1小时的场景。那么移动终端当前所处的应用场景还是属于预设静音场景的,因此,还需要执行相应的后续步骤,具体参照上述实施例,这里不再赘述。In addition, in other embodiments, the above-mentioned preset mute scene in the embodiment of the present invention can be further expanded, for example, after the display of the first reminder message or the second reminder message, if the user selects the option of continuing to visit the target page, Or, restore the option of playing the audio and video files in the target page, that is, the user needs to play the audio and video files in the target page, then within the preset time period (for example, within 1 hour) after the user manually selects the option, then When an access request to any hyperlink is detected, the method in this embodiment of the present invention does not execute any of the above method embodiments. That is, the preset mute scene may also include a scene where the current time is after a preset period of time after the user manually selects any of the above options, that is, a scene that has been more than 1 hour since the manual selection of any of the above options. Then, the application scene where the mobile terminal is currently located still belongs to the preset mute scene, therefore, corresponding subsequent steps need to be performed. For details, refer to the above-mentioned embodiment, which will not be repeated here.
其中,需要注意的是,本发明实施例的第一提醒信息和第二提醒信息的展示形式并不限于上述列举的弹窗,还可以包括已知技术中的任意一种展示方式,例如文字、语音、灯光等等。Among them, it should be noted that the display forms of the first reminder information and the second reminder information in the embodiment of the present invention are not limited to the pop-up windows listed above, and may also include any display method in known technologies, such as text, Voice, lighting and more.
参照图2,示出了本发明一个实施例的移动终端的框图。本发明实施例的移动终端能实现上述实施例中的音视频检测方法的细节,并达到相同的效果。图2所示移动终端包括:Referring to FIG. 2, a block diagram of a mobile terminal according to an embodiment of the present invention is shown. The mobile terminal in the embodiment of the present invention can realize the details of the audio and video detection method in the above embodiment, and achieve the same effect. The mobile terminal shown in Figure 2 includes:
确定模块21,用于若检测到对超链接的访问请求,则响应于所述访问请求确定所述超链接对应的目标页面;A determining module 21, configured to determine a target page corresponding to the hyperlink in response to the access request if an access request to the hyperlink is detected;
第一判断模块22,用于判断所述目标页面是否包括音视频文件;The first judging module 22 is used to judge whether the target page includes audio and video files;
第一显示模块23,用于若判断所述目标页面包括音视频文件,则在加载所述目标页面之前显示第一提醒信息,其中,所述第一提醒信息包括提示所述目标页面包含声音以及是否继续访问目标页面的信息。The first display module 23 is configured to display a first reminder message before loading the target page if it is determined that the target page includes audio and video files, wherein the first reminder message includes prompting that the target page contains sound and Information about whether to continue to visit the target page.
可选地,所述确定模块21包括:Optionally, the determining module 21 includes:
第一判断子模块,用于判断所述超链接链接的目标地址是页面还是子超链接;The first judging submodule is used to judge whether the target address of the hyperlink is a page or a sub-hyperlink;
第一确定子模块,用于若所述超链接链接的目标地址为页面,则响应于所述访问请求将所述页面确定为所述超链接对应的目标页面;The first determination submodule is configured to determine the page as the target page corresponding to the hyperlink in response to the access request if the target address of the hyperlink is a page;
第二确定子模块,用于若所述超链接链接的目标地址为子超链接,则响应于所述访问请求确定所述子超链接对应的子页面,及将所述子页面确定为所述超链接对应的目标页面。The second determination submodule is used to determine the sub-page corresponding to the sub-hyperlink in response to the access request if the target address of the hyperlink is a sub-hyperlink, and determine the sub-page as the The target page corresponding to the hyperlink.
可选地,所述第一判断模块22包括:Optionally, the first judging module 22 includes:
获取子模块,用于获取所述目标页面的至少一个内嵌URL;An acquisition submodule, configured to acquire at least one embedded URL of the target page;
第二判断子模块,用于根据所述至少一个内嵌URL的后缀参数,判断所述目标页面是否包括音视频文件;The second judging submodule is used to judge whether the target page includes audio and video files according to the suffix parameter of the at least one embedded URL;
和/或,and / or,
可选地,所述第一判断模块22包括:Optionally, the first judging module 22 includes:
第三判断子模块,用于根据所述至少一个内嵌URL的文件头,以及预先设置的文件头和音视频文件格式的对应关系,判断所述目标页面是否包括音视频文件。The third judging submodule is configured to judge whether the target page includes audio or video files according to the at least one file header embedded in the URL and the preset correspondence between the file header and the format of the audio or video file.
可选地,所述移动终端还包括:Optionally, the mobile terminal also includes:
第二判断模块,用于若判断所述目标页面包括音视频文件,则判断所述音视频文件是否预先设置为自动播放;The second judging module is used to judge whether the audio and video files are preset to play automatically if it is judged that the target page includes audio and video files;
相应的,所述第一显示模块23包括:Correspondingly, the first display module 23 includes:
显示子模块,用于若所述音视频文件预先设置为自动播放、且所述目标页面包括音视频文件,则在加载所述目标页面之前显示第一提醒信息。The display submodule is configured to display the first reminder message before loading the target page if the audio/video file is preset to be automatically played and the target page includes the audio/video file.
可选地,所述移动终端还包括:Optionally, the mobile terminal also includes:
加载模块,用于若判断所述目标页面不包括音视频文件,则加载所述目标页面;A loading module, configured to load the target page if it is judged that the target page does not include audio and video files;
第二显示模块,用于若在加载所述目标页面的过程中检测到来自所述目标页面的声音信号,则暂停所述声音信号的播放,并在所述目标页面显示第二提醒信息,其中,所述第二提醒信息为是否恢复播放目标页面中声音的提示信息。The second display module is used to pause the playing of the sound signal and display the second reminder information on the target page if the sound signal from the target page is detected during the process of loading the target page, wherein , the second prompting information is prompting information on whether to resume playing the sound in the target page.
可选地,所述移动终端还包括:Optionally, the mobile terminal also includes:
第三判断模块,用于判断所述移动终端的当前应用场景是否属于预设静音场景;A third judging module, configured to judge whether the current application scene of the mobile terminal belongs to a preset mute scene;
相应的,所述确定模块21包括:Correspondingly, the determination module 21 includes:
第三确定子模块,用于若所述移动终端的当前应用场景属于预设静音场景,则响应于所述访问请求确定所述超链接对应的目标页面;The third determining submodule is configured to determine the target page corresponding to the hyperlink in response to the access request if the current application scene of the mobile terminal belongs to a preset mute scene;
其中,所述预设静音场景至少包括以下之一:Wherein, the preset mute scene includes at least one of the following:
所述移动终端的周围环境的分贝小于预设分贝阈值;The decibel of the surrounding environment of the mobile terminal is less than a preset decibel threshold;
所述移动终端未连接耳机。The mobile terminal is not connected to an earphone.
本发明实施例提供的移动终端能够实现上述方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal provided by the embodiment of the present invention can implement various processes implemented by the mobile terminal in the foregoing method embodiments, and details are not repeated here to avoid repetition.
图3为实现本发明各个实施例的一种移动终端的硬件结构示意图,FIG. 3 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,
该移动终端300具有屏幕指纹识别功能,该移动终端300包括但不限于:射频单元301、网络模块302、音频输出单元303、输入单元304、传感器305、显示单元306、用户输入单元307、接口单元308、存储器309、处理器310、以及电源311等部件。本领域技术人员可以理解,图3中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 300 has a screen fingerprint identification function, and the mobile terminal 300 includes but not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, memory 309, processor 310, and power supply 311 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in Figure 3 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.
处理器310,用于若检测到对超链接的访问请求,则响应于所述访问请求确定所述超链接对应的目标页面;判断所述目标页面是否包括音视频文件;若判断所述目标页面包括音视频文件,则在加载所述目标页面之前显示第一提醒信息,其中,所述第一提醒信息包括提示所述目标页面包含声音以及是否继续访问目标页面的信息。The processor 310 is configured to, if an access request to a hyperlink is detected, determine a target page corresponding to the hyperlink in response to the access request; determine whether the target page includes audio and video files; if it is determined that the target page If audio and video files are included, first reminder information is displayed before loading the target page, wherein the first reminder information includes information prompting that the target page contains sound and whether to continue to visit the target page.
这样,本发明实施例在访问超链接对应的目标页面时,如果判断该目标页面中包含音视频文件,则可以在加载所述目标页面之前显示第一提醒信息,从而给用户充足的是否访问目标页面的考虑时间,且能够使用户提前预知即将开启的目标页面中存在声音,避免在用户未知超链接对应的目标页面是怎样的情况下,使目标页面中的音视频文件的声音播放对用户的周边及其生活带来困扰。In this way, in the embodiment of the present invention, when accessing the target page corresponding to the hyperlink, if it is determined that the target page contains audio and video files, the first reminder message can be displayed before loading the target page, thereby giving the user sufficient information on whether to visit the target page or not. Page consideration time, and enable users to predict in advance that there is sound in the target page that is about to be opened, so as to avoid playing the sound of audio and video files in the target page when the user does not know what the target page corresponding to the hyperlink is. Surroundings and their lives bring troubles.
应理解的是,本发明实施例中,射频单元301可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器310处理;另外,将上行的数据发送给基站。通常,射频单元301包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元301还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 310; in addition, the Uplink data is sent to the base station. Generally, the radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块302为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 302, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元303可以将射频单元301或网络模块302接收的或者在存储器309中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元303还可以提供与移动终端300执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元303包括扬声器、蜂鸣器以及受话器等。The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 can also provide audio output related to a specific function performed by the mobile terminal 300 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver and the like.
输入单元304用于接收音频或视频信号。输入单元304可以包括图形处理器(Graphics Processing Unit,GPU)3041和麦克风3042,图形处理器3041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元306上。经图形处理器3041处理后的图像帧可以存储在存储器309(或其它存储介质)中或者经由射频单元301或网络模块302进行发送。麦克风3042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元301发送到移动通信基站的格式输出。The input unit 304 is used for receiving audio or video signals. The input unit 304 may include a graphics processing unit (Graphics Processing Unit, GPU) 3041 and a microphone 3042, and the graphics processing unit 3041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 306 . The image frames processed by the graphics processor 3041 may be stored in the memory 309 (or other storage medium) or sent via the radio frequency unit 301 or the network module 302 . The microphone 3042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 301 for output in the case of a phone call mode.
移动终端300还包括至少一种传感器305,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板3061的亮度,接近传感器可在移动终端300移动到耳边时,关闭显示面板3061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 300 also includes at least one sensor 305, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 3061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 3061 and the display panel 3061 when the mobile terminal 300 moves to the ear / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 105 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元306用于显示由用户输入的信息或提供给用户的信息。显示单元306可包括显示面板3061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板3061。The display unit 306 is used to display information input by the user or information provided to the user. The display unit 306 may include a display panel 3061, and the display panel 3061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元307可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元307包括触控面板3071以及其他输入设备3072。触控面板3071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板3071上或在触控面板3071附近的操作)。触控面板3071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器310,接收处理器310发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板3071。除了触控面板3071,用户输入单元307还可以包括其他输入设备3072。具体地,其他输入设备3072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 307 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072 . The touch panel 3071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 3071 or near the touch panel 3071). operate). The touch panel 3071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 310, receive the command sent by the processor 310 and execute it. In addition, the touch panel 3071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 3071 , the user input unit 307 may also include other input devices 3072 . Specifically, other input devices 3072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板3071可覆盖在显示面板3061上,当触控面板3071检测到在其上或附近的触摸操作后,传送给处理器310以确定触摸事件的类型,随后处理器310根据触摸事件的类型在显示面板3061上提供相应的视觉输出。虽然在图3中,触控面板3071与显示面板3061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板3071与显示面板3061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 3071 can be covered on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near it, it will be sent to the processor 310 to determine the type of the touch event, and then the processor 310 can The type of event provides a corresponding visual output on the display panel 3061 . Although in FIG. 3, the touch panel 3071 and the display panel 3061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元308为外部装置与移动终端300连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元308可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端300内的一个或多个元件或者可以用于在移动终端300和外部装置之间传输数据。The interface unit 308 is an interface for connecting an external device to the mobile terminal 300 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 308 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器309可用于存储软件程序以及各种数据。存储器309可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器309可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 309 can be used to store software programs as well as various data. The memory 309 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 309 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, flash memory device, or other volatile solid-state storage devices.
处理器310是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器309内的软件程序和/或模块,以及调用存储在存储器309内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器310可包括一个或多个处理单元;优选的,处理器310可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器310中。The processor 310 is the control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 309, and calling data stored in the memory 309 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 310 .
移动终端300还可以包括给各个部件供电的电源311(比如电池),优选的,电源311可以通过电源管理系统与处理器310逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 300 can also include a power supply 311 (such as a battery) for supplying power to various components. Preferably, the power supply 311 can be logically connected to the processor 310 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,移动终端300包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 300 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种移动终端,包括处理器310,存储器309,存储在存储器309上并可在所述处理器310上运行的计算机程序,该计算机程序被处理器310执行时实现上述音视频检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 310, a memory 309, a computer program stored in the memory 309 and operable on the processor 310, when the computer program is executed by the processor 310 Each process of the embodiment of the above-mentioned audio and video detection method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述音视频检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned audio and video detection method embodiment is realized, and the same performance can be achieved. Technical effects, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
Claims (14)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810539134.9A CN108959382B (en) | 2018-05-30 | 2018-05-30 | A kind of audio and video detection method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810539134.9A CN108959382B (en) | 2018-05-30 | 2018-05-30 | A kind of audio and video detection method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108959382A true CN108959382A (en) | 2018-12-07 |
CN108959382B CN108959382B (en) | 2021-06-18 |
Family
ID=64492124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810539134.9A Active CN108959382B (en) | 2018-05-30 | 2018-05-30 | A kind of audio and video detection method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108959382B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112347334A (en) * | 2020-09-22 | 2021-02-09 | 中国科学院信息工程研究所 | Audio and video website user entry identification method and system based on active and passive combination |
CN112528176A (en) * | 2019-09-18 | 2021-03-19 | 北京京东振世信息技术有限公司 | Information object validity detection method, device and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6076104A (en) * | 1997-09-04 | 2000-06-13 | Netscape Communications Corp. | Video data integration system using image data and associated hypertext links |
TW397967B (en) * | 1996-11-01 | 2000-07-11 | Ibm | Indicators for video hot links |
CN103412896A (en) * | 2013-07-25 | 2013-11-27 | 深圳创维-Rgb电子有限公司 | Browser resource showing method and system |
CN103853747A (en) * | 2012-11-30 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and device for controlling sound source webpage |
CN105138558A (en) * | 2015-07-22 | 2015-12-09 | 山东大学 | User access content-based real-time personalized information collection method |
CN106528735A (en) * | 2016-10-27 | 2017-03-22 | 北京小米移动软件有限公司 | Method and device for controlling browser to play media resources |
CN107566295A (en) * | 2017-09-01 | 2018-01-09 | 努比亚技术有限公司 | A kind of data traffic reminding method, browser and computer-readable recording medium |
-
2018
- 2018-05-30 CN CN201810539134.9A patent/CN108959382B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW397967B (en) * | 1996-11-01 | 2000-07-11 | Ibm | Indicators for video hot links |
US6076104A (en) * | 1997-09-04 | 2000-06-13 | Netscape Communications Corp. | Video data integration system using image data and associated hypertext links |
CN103853747A (en) * | 2012-11-30 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and device for controlling sound source webpage |
CN103412896A (en) * | 2013-07-25 | 2013-11-27 | 深圳创维-Rgb电子有限公司 | Browser resource showing method and system |
CN105138558A (en) * | 2015-07-22 | 2015-12-09 | 山东大学 | User access content-based real-time personalized information collection method |
CN106528735A (en) * | 2016-10-27 | 2017-03-22 | 北京小米移动软件有限公司 | Method and device for controlling browser to play media resources |
CN107566295A (en) * | 2017-09-01 | 2018-01-09 | 努比亚技术有限公司 | A kind of data traffic reminding method, browser and computer-readable recording medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112528176A (en) * | 2019-09-18 | 2021-03-19 | 北京京东振世信息技术有限公司 | Information object validity detection method, device and system |
CN112528176B (en) * | 2019-09-18 | 2024-05-17 | 北京京东振世信息技术有限公司 | Information object validity detection method, device and system |
CN112347334A (en) * | 2020-09-22 | 2021-02-09 | 中国科学院信息工程研究所 | Audio and video website user entry identification method and system based on active and passive combination |
Also Published As
Publication number | Publication date |
---|---|
CN108959382B (en) | 2021-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021077897A1 (en) | File sending method and apparatus, and electronic device | |
CN110909524B (en) | Editing method and electronic equipment | |
WO2021017776A1 (en) | Information processing method and terminal | |
CN109857297B (en) | Information processing method and terminal device | |
CN108334272B (en) | A control method and mobile terminal | |
CN108334265B (en) | A kind of document handling method and mobile terminal | |
WO2020156118A1 (en) | Management method and terminal apparatus | |
CN112217713B (en) | Method and device for displaying message | |
CN109669748A (en) | A kind of display interface processing method and mobile terminal | |
CN109981904A (en) | A kind of method for controlling volume and terminal device | |
CN108345474A (en) | Startup method, starter and the mobile terminal of application program | |
CN108664288A (en) | A kind of image interception method and mobile terminal | |
CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
CN110138963A (en) | A kind of message treatment method and mobile terminal | |
CN107728920B (en) | A copying method and mobile terminal | |
WO2019120190A1 (en) | Dialing method and mobile terminal | |
CN108647063A (en) | A kind of method and terminal of display object | |
CN109672845B (en) | Video call method and device and mobile terminal | |
CN108307048B (en) | Message output method and device and mobile terminal | |
CN110784394A (en) | Prompting method and electronic equipment | |
CN110795010A (en) | Screen capture method and terminal device thereof | |
CN108347642B (en) | A video playback method and mobile terminal | |
CN110750198A (en) | Expression sending method and mobile terminal | |
CN108959382B (en) | A kind of audio and video detection method and mobile terminal | |
CN109976844A (en) | A kind of message display method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |