CN108959382B - Audio and video detection method and mobile terminal - Google Patents

Audio and video detection method and mobile terminal Download PDF

Info

Publication number
CN108959382B
CN108959382B CN201810539134.9A CN201810539134A CN108959382B CN 108959382 B CN108959382 B CN 108959382B CN 201810539134 A CN201810539134 A CN 201810539134A CN 108959382 B CN108959382 B CN 108959382B
Authority
CN
China
Prior art keywords
target page
audio
hyperlink
video file
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810539134.9A
Other languages
Chinese (zh)
Other versions
CN108959382A (en
Inventor
连龙伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810539134.9A priority Critical patent/CN108959382B/en
Publication of CN108959382A publication Critical patent/CN108959382A/en
Application granted granted Critical
Publication of CN108959382B publication Critical patent/CN108959382B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides an audio and video detection method and a mobile terminal. The method comprises the following steps: if an access request for the hyperlink is detected, responding to the access request to determine a target page corresponding to the hyperlink; judging whether the target page comprises an audio/video file or not; and if the target page comprises the audio/video file, displaying first reminding information before loading the target page, wherein the first reminding information comprises information for prompting that the target page contains sound and whether to continue to access the target page. When the target page corresponding to the hyperlink is accessed, if the target page is judged to contain the audio/video file, the first reminding information can be displayed before the target page is loaded, so that the sufficient time for the user to consider whether to access the target page is given, the user can predict the existence of sound in the target page to be opened in advance, and the trouble of playing the sound of the audio/video file in the target page to the periphery and the life of the user under the condition that the user does not know the target page corresponding to the hyperlink is avoided.

Description

Audio and video detection method and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of audio and video, in particular to an audio and video detection method and a mobile terminal.
Background
With the popularity of the internet, the form of information on mobile terminals is increasing, such as pictures, video, audio, text, hyperlinks, etc.
When information is delivered to a user of a mobile terminal in the form of a hyperlink, the user often cannot know what the hyperlink is open. For example, after a mobile terminal of a user receives a card link sent by another mobile terminal, when the user opens the card link, if the content of the card link is an audio/video file (including a video file and/or an audio file), if the current scene of the user is in some public places needing silence, such as a library, a rest room, an office, and the like, the opening of the card link tends to attract the attention of the whole field, and is more likely to disturb the work and rest of other people, and the user needs to turn down the volume of the mobile terminal or close a page corresponding to the hyperlink in a busy and disorderly manner.
Therefore, the opening scheme of the hyperlink in the related art generally has the problem that the playing of the audio and video file interferes with the life of people.
Disclosure of Invention
The embodiment of the invention provides an audio and video detection method and a mobile terminal, and aims to solve the problem that playing of an audio and video file causes interference to life of people in a hyperlink opening scheme in the related art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an 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 for the hyperlink is detected, responding to the access request to determine a target page corresponding to the hyperlink;
judging whether the target page comprises an audio/video file or not;
and if the target page comprises the audio and video file, displaying first reminding information before the target page is loaded, wherein the first reminding information comprises information for prompting that the target page contains sound and whether to continue to access the target page.
In a second aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
the determining module is used for responding to an access request for a hyperlink to determine a target page corresponding to the hyperlink if the access request for the hyperlink is detected;
the first judgment module is used for judging whether the target page comprises an audio/video file or not;
the first display module is used for displaying first reminding information before the target page is loaded if the target page is judged to comprise the audio and video file, wherein the first reminding information comprises information for prompting that the target page contains sound and whether to continue to access the target page.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including: the audio and video detection method comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps of the audio and video detection method are realized when the computer program is executed by the processor.
In a fourth aspect, an embodiment of the present invention further 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 steps of the audio/video detection method are implemented.
Therefore, when the target page corresponding to the hyperlink is accessed, if the target page is judged to contain the audio and video file, the first reminding information can be displayed before the target page is loaded, so that the sufficient time for the user to consider whether to access the target page is provided, the user can predict the existence of sound in the target page to be opened in advance, and the trouble of sound playing of the audio and video file in the target page on the periphery and life of the user under the condition that the user does not know the target page corresponding to the hyperlink is avoided.
Drawings
Fig. 1 is a flow chart of an audio-video detection method of an embodiment of the invention;
FIG. 2 is a block diagram of a mobile terminal of one embodiment of the present invention;
fig. 3 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an audio and video detection method according to an embodiment of the present invention is shown, and is applied to a mobile terminal, where the method specifically includes the following steps:
step 101, if an access request for a hyperlink is detected, determining a target page corresponding to the hyperlink in response to the access request;
wherein the hyperlink may be a hyperlink in an application (e.g., known software such as social software, shopping software, mapping software, etc.), a hyperlink in a web page, etc.
The triggering of the access request is implemented by the user, for example, the user triggers the access request to the hyperlink by a single click/double click or the like, so that the mobile terminal receives the access request to the hyperlink.
Wherein the hyperlink may be linked to a target page, wherein in response to the access request, the target page to which the hyperlink corresponds may be determined.
Wherein, in one embodiment, when determining the target page corresponding to the hyperlink in response to the access request, the following may be implemented:
judging whether the target address of the hyperlink link is a page or a sub hyperlink;
here, it can be determined whether the target address of the hyperlink (e.g., link A) link is a page or a jump link, i.e., a sub-hyperlink (e.g., link B).
The target address is not specific address information, but represents a target linked by the hyperlink, and the target may be a page (the page may include text, and/or pictures, and/or audio files, and/or video files), an application program, a hyperlink, and the like.
If the target address of the hyperlink link is a page, responding to the access request to determine the page as a target page corresponding to the hyperlink;
if the target address (i.e. the embedded URL) of the hyperlink is a page, it means that the page can be directly loaded and displayed after the access request to the hyperlink is triggered in the scheme in the prior art, and therefore, the embodiment of the present invention may determine the page as the target page corresponding to the hyperlink. That is, when the hyperlink is opened, a page may be opened directly.
For example, if the card link (e.g., link a) that triggered the access request is linked to a video file, 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 is triggered to access the request, the video file is played directly.
If the target address of the link of the hyperlink (such as link A) is a sub hyperlink (such as link B), determining a sub page corresponding to the sub hyperlink in response to the access request;
wherein the determination of the sub-page corresponding to the sub-hyperlink (e.g., link B) is similar to the method of determining the target page corresponding to the hyperlink (e.g., link a) in the above embodiments.
And determining the sub-page as a target page corresponding to the hyperlink.
For example, if the target address (i.e. embedded URL) of the link of the hyperlink (e.g. link a) is a hyperlink, i.e. a sub-hyperlink (jump link, link B) therein, it is possible to obtain all contents in the page (e.g. a web page) to which the jump link (link B) jumps by using a crawler technology, obtain the hyperlink (it is understood that the target address is the embedded URL in the page instance, e.g. link C) from all the contents, and then determine whether the link of the hyperlink (e.g. link C) is a page (the page may include text, and/or pictures, and/or audio files, and/or video files), if so, the page is the target page corresponding to the link a.
For example, the user jumps to a QQ space (a web page, link B) by clicking a card link (link a), the QQ space further includes a music pendant, the music pendant is link C, and then the music page corresponding to the music pendant is a target page corresponding to the card link.
Therefore, the embodiment of the invention not only can identify the hyperlink of the directly linked page, but also can identify the hyperlink of the indirectly linked (namely, the hyperlink is linked by the jump link) page, so that whether the directly or indirectly linked page contains the audio and video file can be identified in time when the hyperlink is opened, and when the target page contains the audio and video file is confirmed, the user can be reminded whether to continuously access the target page before the audio and video file is played, and the interference of the sudden playing of the audio and video file to the life of the user is avoided.
Optionally, in an embodiment, after the step of detecting an access request for a hyperlink in step 101 and before the step of determining a target page corresponding to the hyperlink in response to the access request, the method according to the embodiment of the present invention may further include:
judging whether the current application scene of the mobile terminal belongs to a preset mute scene or not;
wherein the preset mute scene at least comprises one of the following:
the decibel of the surrounding environment of the mobile terminal is smaller than a preset decibel threshold (for example, 20 decibels);
the mobile terminal is not connected with an earphone;
the problem that after a user opens a hyperlink, when the current application scene where the mobile terminal is located is one of the preset mute scenes, the sound of the played audio and video threatens the user or people around the user is solved.
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, responding to the access request to determine a target page corresponding to the hyperlink;
therefore, the embodiment of the invention can perform subsequent reminding whether to continuously access the target page or not under the condition that the application scene where the mobile terminal is currently located belongs to one of the preset mute scenes, and avoids unnecessary detection of the opened hyperlink audio/video file.
Step 102, judging whether the target page comprises an audio/video file or not;
the method includes detecting whether a target page includes an audio/video file by any one of known technologies, where the audio/video file may include an audio file or a video file.
That is, it is determined whether one or more embedded URLs (Uniform Resource locators) included in the hyperlink are audio files or video files. The target page is considered to include the audio and video file as long as the target page includes any one of the video file and the audio file.
In one embodiment, the detection, i.e., the judgment, of whether the target page includes the audio/video file may be performed in the following first and/or second manner.
The first method is as follows:
acquiring at least one embedded URL of the target page;
the target page corresponding to the hyperlink may include one or more URLs, i.e., the above-mentioned embedded URL. That is, one or more URLs may be included in the target page to which the clicked hyperlink links.
And judging whether the target page comprises an audio/video file or not according to the suffix parameter of the at least one embedded URL.
Among them, since the suffix parameter (i.e., extension) of the URL of the audio file may be mp3, wma, wav, etc.; the suffix parameter (i.e., extension) of the URL of the video file may be wmv, avi, mpg, rm, rmvb, etc. Therefore, the embodiment of the invention can identify the suffix parameter of at least one embedded URL of the target page according to the known suffix parameter of the URL of the audio file and the known suffix parameter of the URL of the video file, and if any one of the known suffix parameters of the URL of the audio file is included and/or if any one of the known suffix parameters of the URL of the video file is included, the target page is determined to comprise the audio and video file, otherwise, the target page is determined not to comprise the audio and video file.
Therefore, the embodiment of the invention can determine whether the target page comprises the audio and video file or not by identifying and judging the suffix parameter of at least one embedded URL of the target page, thereby improving the identification accuracy of whether the target page corresponding to the hyperlink comprises the audio and video file or not.
The second method comprises the following steps:
and judging whether the target page comprises an audio/video file or not according to the at least one file header embedded with the URL and the preset corresponding relation between the file header and the audio/video file format.
Because different file headers carrying URLs of audio and video files have certain rules and characteristics, the embodiment of the invention can preset the corresponding relation between each audio file format and the file header and the corresponding relation between each video file format and the file header in a database, so that when judging whether a target page comprises the audio and video files, each file header embedded with the URL of the target page can be matched with the file headers in the two preset corresponding relations, if the file header matched with the file header exists, the target page is determined to comprise the audio and video files, and if not, the target page is determined not to comprise the audio and video files.
Therefore, the embodiment of the invention can determine whether the target page comprises the audio/video file or not by identifying and judging the file header of at least one embedded URL of the target page, thereby improving the identification accuracy of whether the target page corresponding to the hyperlink comprises the audio/video file or not.
And 103, if the target page is judged to comprise the audio and video file, displaying first reminding information before loading the target page.
If the target page is determined to include the audio/video file through the judgment of the step 102, the method of the embodiment of the invention may display the first reminding information before the target page is loaded.
The first reminding information comprises information for reminding the target page of containing sound and whether to continue to access the target page (namely, the first reminding information comprises the reminding information for reminding the target page of containing sound and the reminding information whether to continue to access the target page).
In one example, the reminder information may be embodied in a pop-up window. The popup window contains prompt information (for example, "do you want to open a page containing sound, ask whether to continue accessing.
Therefore, when the target page corresponding to the hyperlink is accessed, if the target page is judged to contain the audio and video file, the first reminding information can be displayed before the target page is loaded, so that the sufficient time for the user to consider whether to access the target page is provided, the user can predict the existence of sound in the target page to be opened in advance, and the trouble of sound playing of the audio and video file in the target page on the periphery and life of the user under the condition that the user does not know the target page corresponding to the hyperlink is avoided.
For example, if the user clicks "yes", it indicates that the user does not care about the sound playing of the audio/video file, or the user sets the mobile terminal to a mute state in advance, so that the user cannot hear the sound playing of the audio/video file, and the method of the embodiment of the present invention may load and display the target page and play the audio/video file in the target page.
If the user clicks "no", it indicates that the environment around the user is not suitable for playing the audio/video file, the method of the embodiment of the present invention may stop the access to the target page, end the access process of the target page, and keep the original page (i.e. the page where the hyperlink in step 101 is located) unchanged.
Optionally, in an embodiment, after step 102 and before step 103, the method according to an embodiment of the present invention may further include:
if the target page is judged to comprise the audio and video file, judging whether the audio and video file is preset to be automatically played or not;
for example, the automatic playing can be determined by judging whether the identified audio-video file is set to be automatically played in advance in the source code of the target page.
Correspondingly, when step 103 is executed, if the audio/video file is set to be automatically played in advance and the target page includes the audio/video file, displaying a first reminding message before the target page is loaded.
Therefore, after the target page corresponding to the hyperlink contains the audio and video file, the embodiment of the invention further judges whether the audio and video file is preset to be automatically played in the target page, and displays the first reminding information before loading the target page on the premise that the audio and video file is preset to be automatically played, thereby avoiding unnecessary reminding for the user.
Optionally, in another embodiment, after the step 102, the method according to an embodiment of the present invention may further include:
if the target page does not comprise the audio/video file, loading the target page;
since the format of the audio/video file is continuously updated and perfected, the judgment step of whether the target page includes the audio/video file in the known technology or the method of the embodiment of the present invention cannot ensure that the audio/video file of all the formats at present can be accurately identified, so that the audio/video file exists in the target page, but the method of the embodiment of the present invention does not identify the scene of the audio/video file, that is, judges that the target page does not include the scene of the audio/video file, and then the method of the embodiment of the present invention can normally process, that is, load the target page.
And if the sound signal from the target page is detected in the process of loading the target page, pausing the playing of the sound signal and displaying second reminding information on the target page.
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 may pause the playing of the sound signal, and display the second reminding information on the target page. And the second reminding information comprises prompt information for judging whether to resume playing the sound in the target page.
That is to say, in a scenario where it is determined that the target page does not include the audio/video file, if a sound signal generated by the target page is collected in the process of loading the target page, the target page is indicated to include the audio/video file, and therefore, the method according to the embodiment of the present invention may further suspend playing of the sound signal (for example, save the collected sound signal, and play the saved sound signal when the user selects to resume playing the sound), and display the second reminding information on the target page.
It should be noted that the second reminding information in the embodiment is displayed in the target page, because the target page is already displayed at this time, which is different from the display of the first reminding information in the embodiment shown in fig. 1, wherein the first reminding information is displayed in the original page of the hyperlink and is not switched to the target page.
The second reminding information may be in a pop-up window form, and the pop-up window includes a prompt message (for example, "do you currently open a page include a sound, ask whether to resume playing the sound in the page.
Therefore, after the user selects the button 'NO', the browsing of the user to other contents of the target page except the sound of the audio and video file can not be influenced, and after the user browses other contents, if the sound of the target page needs to be played, the button 'YES' can be continuously selected to recover the playing of the audio and video file in the target page. After the button yes or the button no is selected, the popup can be presented by a sliding gesture at any time, and the button yes or the button no is selected continuously.
In the embodiment of the invention, under the scene that the audio and video file is not included in the target page, if the sound signal generated by the target page is collected in the process of loading the target page, the playing of the sound signal can be suspended, and the second reminding information is displayed on the target page, so that under the condition that the audio and video file of the target page is not accurately judged, the audio and video file in the target page is further accurately identified in the process of loading the target page in time, and the identification and detection reliability and accuracy of the audio and video file in the target page corresponding to the hyperlink are improved.
In addition, in other embodiments, the preset mute scenario according to the embodiment of the present invention may be further extended, for example, after the first reminding information or the second reminding information is displayed, if the user selects an option to continue accessing the target page, or resumes playing the audio/video file in the target page, that is, the user needs to play the audio/video file in the target page, within a preset time period (for example, within 1 hour) after the user manually selects the option, when an access request to any one hyperlink is detected, the method according to the embodiment of the present invention does not perform any method embodiment. That is, the preset mute scenario may further include a scenario in which the current time is after a preset time period after the user manually selects any one of the options, that is, the time is more than 1 hour from the manual selection of any one of the options. Then, the application scene where the mobile terminal is currently located still belongs to the preset mute scene, and therefore, corresponding subsequent steps need to be executed.
It should be noted that the display forms of the first reminding message and the second reminding message in the embodiment of the present invention are not limited to the pop-up windows listed above, and may also include any display manner in the known art, such as text, voice, light, and the like.
Referring to fig. 2, a block diagram of a mobile terminal of one embodiment of the present invention is shown. The mobile terminal of the embodiment of the invention can realize the details of the audio and video detection method in the embodiment and achieve the same effect. The mobile terminal shown in fig. 2 includes:
a determining module 21, configured to, if an access request for a hyperlink is detected, determine, in response to the access request, a target page corresponding to the hyperlink;
the first judging module 22 is configured to judge whether the target page includes an audio/video file;
the first display module 23 is configured to display first reminding information before the target page is loaded if it is determined that the target page includes an audio/video file, where the first reminding information includes information for prompting that the target page includes sound and whether to continue to access the target page.
Optionally, the determining module 21 includes:
the first judgment submodule is used for judging whether the target address of the hyperlink link is a page or a sub hyperlink;
the first determining submodule is used for responding to the access request to determine the page as a target page corresponding to the hyperlink if the target address of the hyperlink link is the page;
and the second determining submodule is used for responding to the access request to determine a sub-page corresponding to the sub-hyperlink and determining the sub-page as a target page corresponding to the hyperlink if the target address of the hyperlink link is the sub-hyperlink.
Optionally, the first determining module 22 includes:
the acquisition submodule is used for acquiring at least one embedded URL of the target page;
the second judgment submodule is used for judging whether the target page comprises an audio/video file or not according to the suffix parameter of the at least one embedded URL;
and/or the presence of a gas in the gas,
optionally, the first determining module 22 includes:
and the third judgment submodule is used for judging whether the target page comprises an audio/video file or not according to the at least one file header embedded with the URL and the preset corresponding relation between the file header and the audio/video file format.
Optionally, the mobile terminal further includes:
the second judgment module is used for judging whether the audio and video file is preset to be automatically played or not if the target page is judged to comprise the audio and video file;
accordingly, the first display module 23 includes:
and the display sub-module is used for displaying first reminding information before loading the target page if the audio/video file is preset to be automatically played and the target page comprises the audio/video file.
Optionally, the mobile terminal further includes:
the loading module is used for loading the target page if the target page does not comprise the audio/video file;
and the second display module is used for pausing the playing of the sound signal and displaying second reminding information on the target page if the sound signal from the target page is detected in the process of loading the target page, wherein the second reminding information is prompt information for whether the sound in the target page is resumed or not.
Optionally, the mobile terminal further includes:
the third judging module is used for judging whether the current application scene of the mobile terminal belongs to a preset mute scene or not;
accordingly, the determining module 21 includes:
a third determining submodule, configured to determine, in response to the access request, a target page corresponding to the hyperlink if a current application scene of the mobile terminal belongs to a preset mute scene;
wherein the preset mute scene at least comprises one of the following:
the decibel of the surrounding environment of the mobile terminal is smaller than a preset decibel threshold value;
the mobile terminal is not connected with an earphone.
The mobile terminal provided by the embodiment of the present invention can implement each process implemented by the mobile terminal in the above method embodiments, and is not described herein again to avoid repetition.
Figure 3 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 300 has a screen fingerprint recognition function, and the mobile terminal 300 includes but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 3 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. 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 palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 310, configured to determine, in response to an access request for a hyperlink, a target page corresponding to the hyperlink if the access request is detected; judging whether the target page comprises an audio/video file or not; and if the target page comprises the audio and video file, displaying first reminding information before the target page is loaded, wherein the first reminding information comprises information for prompting that the target page contains sound and whether to continue to access the target page.
Therefore, when the target page corresponding to the hyperlink is accessed, if the target page is judged to contain the audio and video file, the first reminding information can be displayed before the target page is loaded, so that the sufficient time for the user to consider whether to access the target page is provided, the user can predict the existence of sound in the target page to be opened in advance, and the trouble of sound playing of the audio and video file in the target page on the periphery and life of the user under the condition that the user does not know the target page corresponding to the hyperlink is avoided.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, 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 a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 302, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
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 may also provide audio output related to a specific function performed by the mobile terminal 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The mobile terminal 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or a backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
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 (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs 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, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 3 to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 308 is an interface through which an external device is connected to the mobile terminal 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 300 or may be used to transmit data between the mobile terminal 300 and external devices.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 310 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the mobile terminal. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The mobile terminal 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 300 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 310, a memory 309, and a computer program stored in the memory 309 and capable of running on the processor 310, where the computer program, when executed by the processor 310, implements each process of the above-mentioned audio/video detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further 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 computer program implements each process of the above-mentioned audio/video detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. An audio and video detection method is applied to a mobile terminal, and is characterized by comprising the following steps:
if an access request for the hyperlink is detected, responding to the access request to determine a target page corresponding to the hyperlink;
judging whether the target page comprises an audio/video file or not;
if the target page comprises the audio and video file, displaying first reminding information before the target page is loaded, wherein the first reminding information comprises information for prompting that the target page contains sound and whether to continue to access the target page;
after the first reminding message is displayed, if the user selects to continue accessing the target page, within a preset time period, when an access request for any hyperlink is detected, the detection of the audio and video is not executed any more;
after the step of judging whether the target page comprises the audio/video file, the method further comprises the following steps:
if the target page does not comprise the audio/video file, loading the target page;
if the sound signal from the target page is detected in the process of loading the target page, the playing of the sound signal is paused, and second reminding information is displayed on the target page, wherein the second reminding information is prompt information for whether the sound in the target page is resumed or not.
2. The method of claim 1, wherein the step of determining the target page corresponding to the hyperlink in response to the access request comprises:
judging whether the target address of the hyperlink link is a page or a sub hyperlink;
if the target address of the hyperlink link is a page, responding to the access request to determine the page as a target page corresponding to the hyperlink;
and if the target address of the hyperlink link is a sub hyperlink, responding to the access request to determine a sub page corresponding to the sub hyperlink, and determining the sub page as a target page corresponding to the hyperlink.
3. The method according to claim 1, wherein the step of determining whether the target page includes an audio-video file comprises:
acquiring at least one embedded URL of the target page;
judging whether the target page comprises an audio/video file or not according to the suffix parameter of the at least one embedded URL; and/or the presence of a gas in the gas,
and judging whether the target page comprises an audio/video file or not according to the at least one file header embedded with the URL and the preset corresponding relation between the file header and the audio/video file format.
4. The method according to claim 1, wherein after the step of determining whether the target page includes an audio/video file, and if the target page includes an audio/video file, before the step of displaying the first reminder information before loading the target page, the method further comprises:
if the target page is judged to comprise the audio and video file, judging whether the audio and video file is preset to be automatically played or not;
if the target page is judged to comprise the audio and video file, the step of displaying first reminding information before the target page is loaded comprises the following steps:
and if the audio and video file is preset to be automatically played and the target page comprises the audio and video file, displaying first reminding information before the target page is loaded.
5. The method of claim 1, wherein after the step of detecting an access request for a hyperlink and before the step of determining a target page corresponding to the hyperlink in response to the access request, the method further comprises:
judging whether the current application scene of the mobile terminal belongs to a preset mute scene or not;
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, responding to the access request to determine a target page corresponding to the hyperlink;
wherein the preset mute scene at least comprises one of the following:
the decibel of the surrounding environment of the mobile terminal is smaller than a preset decibel threshold value;
the mobile terminal is not connected with an earphone.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the determining module is used for responding to an access request for a hyperlink to determine a target page corresponding to the hyperlink if the access request for the hyperlink is detected;
the first judgment module is used for judging whether the target page comprises an audio/video file or not;
the first display module is used for displaying first reminding information before loading the target page if the target page is judged to comprise the audio and video file, wherein the first reminding information comprises information for prompting that the target page contains sound and whether to continue to access the target page;
wherein the mobile terminal is further configured to: after the first reminding message is displayed, if the user selects to continue accessing the target page, within a preset time period, when an access request to any hyperlink is detected, the detection of the audio and video is not executed any more;
the mobile terminal further includes:
the loading module is used for loading the target page if the target page does not comprise the audio/video file;
and the second display module is used for pausing the playing of the sound signal and displaying second reminding information on the target page if the sound signal from the target page is detected in the process of loading the target page, wherein the second reminding information is prompt information for whether the sound in the target page is resumed or not.
7. The mobile terminal of claim 6, wherein the determining module comprises:
the first judgment submodule is used for judging whether the target address of the hyperlink link is a page or a sub hyperlink;
the first determining submodule is used for responding to the access request to determine the page as a target page corresponding to the hyperlink if the target address of the hyperlink link is the page;
and the second determining submodule is used for responding to the access request to determine a sub-page corresponding to the sub-hyperlink and determining the sub-page as a target page corresponding to the hyperlink if the target address of the hyperlink link is the sub-hyperlink.
8. The mobile terminal of claim 6, wherein the first determining module comprises:
the acquisition submodule is used for acquiring at least one embedded URL of the target page;
the second judgment submodule is used for judging whether the target page comprises an audio/video file or not according to the suffix parameter of the at least one embedded URL;
and/or the presence of a gas in the gas,
and the third judgment submodule is used for judging whether the target page comprises an audio/video file or not according to the at least one file header embedded with the URL and the preset corresponding relation between the file header and the audio/video file format.
9. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
the second judgment module is used for judging whether the audio and video file is preset to be automatically played or not if the target page is judged to comprise the audio and video file;
the first display module includes:
and the display sub-module is used for displaying first reminding information before loading the target page if the audio/video file is preset to be automatically played and the target page comprises the audio/video file.
10. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
the third judging module is used for judging whether the current application scene of the mobile terminal belongs to a preset mute scene or not;
accordingly, the determining module comprises:
a third determining submodule, configured to determine, in response to the access request, a target page corresponding to the hyperlink if a current application scene of the mobile terminal belongs to a preset mute scene;
wherein the preset mute scene at least comprises one of the following:
the decibel of the surrounding environment of the mobile terminal is smaller than a preset decibel threshold value;
the mobile terminal is not connected with an earphone.
11. A mobile terminal, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the audio-visual detection method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when being executed by a processor, carries out the steps in the audio-video detection method according to any one of claims 1 to 5.
CN201810539134.9A 2018-05-30 2018-05-30 Audio and video detection method and mobile terminal Active CN108959382B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810539134.9A CN108959382B (en) 2018-05-30 2018-05-30 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 Audio and video detection method and mobile terminal

Publications (2)

Publication Number Publication Date
CN108959382A CN108959382A (en) 2018-12-07
CN108959382B true 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 Audio and video detection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN108959382B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112528176B (en) * 2019-09-18 2024-05-17 北京京东振世信息技术有限公司 Information object validity detection method, device and system
CN112347334B (en) * 2020-09-22 2023-05-23 中国科学院信息工程研究所 Active-passive combination-based audio and video website user entry identification method and system

Citations (5)

* Cited by examiner, † Cited by third party
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103853747B (en) * 2012-11-30 2018-09-04 腾讯科技(深圳)有限公司 A kind of control method and device of sound source webpage
CN107566295A (en) * 2017-09-01 2018-01-09 努比亚技术有限公司 A kind of data traffic reminding method, browser and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
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

Also Published As

Publication number Publication date
CN108959382A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108845853B (en) Application program starting method and mobile terminal
CN110798397B (en) File sending method and device and electronic equipment
CN108055408B (en) Application program control method and mobile terminal
WO2021017776A1 (en) Information processing method and terminal
CN107580147B (en) Management method of notification message and mobile terminal
WO2019080929A1 (en) Message prompting method and mobile terminal
CN110837327B (en) Message viewing method and terminal
CN109284144B (en) Fast application processing method and mobile terminal
CN109525710B (en) Method and device for accessing application program
CN108334272B (en) Control method and mobile terminal
CN109215683B (en) Prompting method and terminal
CN108391008B (en) Message reminding method and mobile terminal
CN109189303B (en) Text editing method and mobile terminal
CN109522278B (en) File storage method and terminal equipment
CN108009031B (en) Application program control method and mobile terminal
CN110688497A (en) Resource information searching method and device, terminal equipment and storage medium
CN109672845B (en) Video call method and device and mobile terminal
CN108959382B (en) Audio and video detection method and mobile terminal
CN109284146B (en) Light application starting method and mobile terminal
CN109067979B (en) Prompting method and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN112217713B (en) Method and device for displaying message
CN110809186B (en) Video processing method and electronic equipment
CN109660657B (en) Application program control method and device
CN111443968A (en) Screenshot method and electronic equipment

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