CN107221347B - Audio playing method and terminal - Google Patents

Audio playing method and terminal Download PDF

Info

Publication number
CN107221347B
CN107221347B CN201710369873.3A CN201710369873A CN107221347B CN 107221347 B CN107221347 B CN 107221347B CN 201710369873 A CN201710369873 A CN 201710369873A CN 107221347 B CN107221347 B CN 107221347B
Authority
CN
China
Prior art keywords
audio
image information
video information
playing progress
currently played
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
CN201710369873.3A
Other languages
Chinese (zh)
Other versions
CN107221347A (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 CN201710369873.3A priority Critical patent/CN107221347B/en
Publication of CN107221347A publication Critical patent/CN107221347A/en
Application granted granted Critical
Publication of CN107221347B publication Critical patent/CN107221347B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel

Abstract

The embodiment of the invention provides an audio playing method and a terminal, relates to the field of communication, and aims to solve the problem that a single cover picture is displayed when audio is played. The audio playing method is applied to a terminal and comprises the following steps: identifying currently played audio; if video information corresponding to the currently played audio is detected, image information matched with the playing progress in the video information is obtained according to the playing progress of the audio; displaying the acquired image information; and setting the acquired image information as a cover picture of the currently played audio. The audio playing method in the embodiment of the invention is applied to the terminal.

Description

Audio playing method and terminal
Technical Field
The embodiment of the invention relates to the field of communication, in particular to an audio playing method and a terminal.
Background
The audio player is one of the common software and has the function of playing audio.
Generally, each piece of audio is provided with a corresponding cover picture according to some information, such as a singer, a name, and the like, and when the audio player plays the audio, the cover picture is displayed on a display interface of the audio player or a display interface such as a play bar.
However, in the whole process of playing audio by the audio player, the display interface of the audio player or the display interfaces such as the play bar and the like always display corresponding cover pictures, so that the user is tired visually, the function of the audio player is tedious, the requirements of the user cannot be met, the viewing effect of the user is affected, and the use experience of the user is seriously affected.
Disclosure of Invention
The embodiment of the invention provides an audio playing method and a terminal, which aim to solve the problem that a single cover picture is displayed when audio is played.
In a first aspect, a method for playing audio is provided, which is applied to a terminal, and includes: identifying currently played audio; if video information corresponding to the currently played audio is detected, image information matched with the playing progress in the video information is obtained according to the playing progress of the audio; displaying the acquired image information; and setting the acquired image information as a cover picture of the currently played audio.
In a second aspect, a terminal is provided to ensure the implementation and application of the above method.
In the embodiment of the invention, after the terminal identifies the currently played audio, if the video information corresponding to the currently played audio can be detected, the image information in the video information can be acquired according to the playing progress of the audio along with the playing of the audio, the image information is matched with the playing progress of the audio, and the acquired image information is displayed after the image information is acquired. Therefore, in the whole process of playing the audio, along with the progress of the audio, the corresponding progress of the video is correspondingly advanced, and the image information in the obtained video information is changed continuously, so that the displayed image information is changed continuously, and the audio playing method in the embodiment of the invention can realize the effects of playing the audio and displaying a plurality of different image information, and simultaneously, the obtained image information can be set as the cover picture of the currently played audio, so as to realize the change of the cover picture, thereby solving the problem of displaying a single cover picture when the audio is played, bringing better visual effect to users, and improving the use experience of the users.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a first flowchart of a method of audio playback according to an embodiment of the present invention;
FIG. 2 is a second flowchart of a method of audio playback in accordance with an embodiment of the present invention;
FIG. 3 is a third flowchart of a method of audio playback in accordance with an embodiment of the present invention; .
FIG. 4 is a fourth flowchart of a method of audio playback according to an embodiment of the present invention;
FIG. 5 is a fifth flowchart of a method of audio playback according to an embodiment of the present invention;
FIG. 6 is a sixth flowchart of a method of audio playback according to an embodiment of the present invention;
fig. 7 is a seventh flowchart of a method of audio playback according to an embodiment of the present invention;
fig. 8 is a first block diagram of a terminal of an embodiment of the present invention;
fig. 9 is a second block diagram of a terminal of an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a 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.
Example one
Fig. 1 is a first flowchart of an audio playing method according to an embodiment of the present invention. The method for playing audio shown in fig. 1 is applied to a terminal, and includes:
step S1: the currently playing audio is identified.
When the terminal plays an audio, the terminal identifies the currently played audio to determine the currently played audio.
Step S2: and if the video information corresponding to the currently played audio is detected, acquiring image information matched with the playing progress in the video information according to the playing progress of the audio.
Before the step, a step can be added, and the added steps are as follows: video information corresponding to the currently played audio is detected, so that in step S2, image information in the video information is further acquired in the following manner: the progress of the video information is correspondingly and continuously promoted along with the change of the progress of the playing of the audio, and the image information corresponding to the video information at each moment is also and continuously changed in the progress promotion process of the video information, so that the image information at different moments is obtained, and the image information at each moment corresponds to one progress of the playing of the audio.
Step S3: the acquired image information is displayed.
The image information is acquired in step S2, the acquired image information is displayed in step S3.
Step S4: and setting the acquired image information as a cover picture of the currently played audio.
In this step, during the audio playing process, the user may press, press again, or use a specific gesture to perform an operation on the cover portion of the display interface, so as to set the currently displayed image information as a built-in cover document, i.e., a cover picture, of the audio file. In this step, the original cover picture can be replaced according to the personal preference of the user, and the function of changing the cover picture is realized.
In the method shown in fig. 1, a segment of audio is played, after the audio is identified, video information corresponding to the audio is detected, and the progress of the video information and the progress of the played audio are changed synchronously, so that image information in the corresponding video information is different at each moment of playing, the method can acquire image information matched with the playing progress in the video information according to the playing progress, and display different image information acquired at different progresses, so that the displayed image information is also changed with the change of the playing progress in the process of playing the segment of audio, and the method for playing the audio gives better visual experience to a user and is more interesting; meanwhile, the user can select the favorite image information in the video information corresponding to the audio as the cover picture, so that the replaced cover picture can be displayed when the audio is played in any player, the problem that one section of audio displays a single cover picture is solved, and the use experience of the user is improved.
Alternatively, in step S2, the image information may be acquired with reference to time, and may also be acquired according to other factors.
Referring to fig. 2, for example, on the basis of fig. 1, step S2 in the present embodiment may include:
step S21: if the video information corresponding to the currently played audio is detected, the playing progress of the audio is detected every other first preset time, and image information matched with the playing progress in the video information is obtained.
In this step, a first preset time t is preset, for example, the first preset time t may be 5s, during playing, according to the playing progress, image information is acquired from the video information every first preset time (5s), the acquired image information is the image information in the video information corresponding to the playing progress at the acquired time, and thus, the image information displayed every first preset time (5s) is updated.
In this scheme, the preset first preset time may be preset by the terminal, that is, the first preset time is fixed, so that each time the same audio is played, the time for updating the image information is fixed, and correspondingly, the image information displayed each time is the same. In this case, the acquired image information may be placed in the buffer when a piece of audio is played for the first time, and the image information may be directly acquired from the buffer when the audio is played again.
For reference, the first preset time can be changed by the user to meet the requirement.
Referring to fig. 3, as another example, step S2 in this embodiment may include:
step S22: and if the video information corresponding to the currently played audio is detected, detecting a keyword corresponding to the playing progress of the audio.
The image information may be obtained by using a keyword in the audio as a reference, and therefore, in this step, the keyword corresponding to the playing progress of the audio needs to be detected.
Step S23: and if the keyword corresponding to the playing progress is the same as the name of the audio, acquiring image information matched with the playing progress in the video information.
Preferably, the keyword may be a name of the audio, so that in the playing process, when the played keyword is the same as the name of the audio, the image information in the video information matching the playing process is obtained.
In this embodiment, a keyword in each audio segment is preset, for example, the keyword may be a name of each audio segment, or a character with a high frequency of occurrence in each audio segment, and during playing, with updating of the playing progress, image information is acquired from video information each time the keyword is played, and the acquired image information is image information in the video information corresponding to the playing progress at the acquired time, so that the image information displayed when the keyword is played is updated each time.
In the two exemplary schemes, even multiple schemes, when the playing progress of the audio is 0, the cover page picture corresponding to the audio can be displayed, and then the displayed image information is continuously updated, and when the playing progress of the audio is 0, the image information of the video information at the corresponding moment can be displayed.
Referring to fig. 4, step S3 may include:
step S31: displaying the acquired image information on a display interface of an application program which plays audio currently; or displaying the acquired image information on a minimum interface of the application program which plays the audio currently.
In this step, if the current screen of the terminal displays the display interface of the application program playing the audio while playing the current audio, the image information may be displayed on the display interface of the application program playing the audio, for example, the image information may be displayed on the display interface of the audio player; if the current audio is played and the minimum interface of the audio playing application program displayed on the current screen of the terminal is simultaneously displayed, the image information can be displayed on the minimum interface of the audio playing application program, for example, the image information can be displayed on a mini play bar; if the current audio is played and the current display interface of the screen terminal of the terminal is displayed, the image information can be displayed on the display interface of the terminal, for example, the image information can be displayed on the main interface of the terminal, and for example, the image information can be displayed on a desktop audio pendant of the terminal. Therefore, the acquired image information is displayed on the display interfaces, and automatic updating of the image in audio playing is realized.
For reference, the method for playing audio of this embodiment may further include:
the function of displaying the acquired image information is turned on or off.
In this step, a function of displaying the acquired image information is added to the terminal, and the user can select whether to replace the picture displayed during audio playing according to personal wishes.
On the basis of setting this step, correspondingly, after step S1, the method may further include:
and if the function of displaying the acquired image information is detected to be started, video information corresponding to the currently played audio is detected.
If the terminal is provided with the above function, the video information is further detected only after the function of displaying the acquired image information is detected to be started, so that the image information is acquired and displayed after the video information is detected. If it is detected that the function of displaying the acquired image information is off, the image phenomenon cannot be displayed even if the image phenomenon is acquired.
Generally, when a segment of audio is played for the first time, the related playing resources are automatically placed into the cache, and when the audio is played again, the audio is played from the cache, so that the consumption of flow can be saved, and the playing effect is smoother. In this embodiment, it is conceivable that, when a piece of audio is played for the first time, related resources of video information may be detected from a network or locally, and the video information is put into the cache, and when the piece of audio is played again, image information may be directly obtained from the cached video information. In this scheme, the image information displayed during each playback may be consistent, or different image information may be displayed during each playback according to the manner of acquiring the image information. It can be seen that the video information in this embodiment may be the video information in the cache, and the video information may also be the non-cache video information.
In another scheme, when a piece of audio is played for the first time, related resources of video information can be detected from a network or locally, and image information is obtained from the detected resources, so that the image information is put into a cache, and when the audio is played again, the image information can be directly obtained from the cached image information.
For this scheme, the present embodiment is illustrated only by the following example. Before describing, it should be noted that in this embodiment, the audio may be a song, the Video information corresponding to the song may be an audio Video (MV) of the song, and further, the MV corresponding to the song refers to a Video file having properties consistent with the song, such as the name of the song, the name of the singer, the name of the album, and the duration. The acquired image information may be a picture.
Referring to fig. 5, the present example may specifically include:
playing a song, and identifying the currently played song;
whether a switch for automatically updating the song cover is started, namely whether the function of displaying the acquired picture is started, and if so, the next step is carried out; if not, displaying a cover picture built in the song;
whether the MV picture corresponding to the song can be obtained from the cache or not; if so, taking out the corresponding picture from the buffer; if not, entering the next step;
obtaining a picture from an MV corresponding to a song;
if the picture is successfully acquired, updating the display content at intervals of a first preset time t;
and if the picture acquisition fails, displaying a cover picture built in the song.
In this example, the picture is preferably taken from the cache, and if the picture cannot be taken from the cache, the picture is taken from the MV of the song.
Referring to fig. 6, when the picture is obtained from the MV of the song in the above method, specific steps may include:
searching MV resources corresponding to the song from the network or locally;
if the corresponding MV exists, extracting video frames at time points of t, 2t and 3t … …;
the picture is successfully obtained, and the picture is placed into a cache;
and if the corresponding MV does not exist, failing to acquire the picture.
In this example, the picture is placed in the buffer for direct retrieval at the next playback.
It should be noted that, in the present embodiment, each solution is implemented on the basis of fig. 1, and more preferably, part of the solutions may also be combined with the solutions shown in other figures, as long as the implementation is achieved.
Referring to fig. 7, for example: in another example, a method of audio playback of an embodiment may include:
step S1: the currently playing audio is identified.
Step S21: if the video information corresponding to the currently played audio is detected, detecting the playing progress of the audio every other first preset time, and acquiring image information matched with the playing progress in the video information. Alternatively, the first and second electrodes may be,
step S22: if video information corresponding to the currently played audio is detected, detecting keywords corresponding to the playing progress of the audio;
step S23: and if the keyword corresponding to the playing progress is the same as the name of the audio, acquiring image information matched with the playing progress in the video information.
Step S31: displaying the acquired image information on a display interface of an application program which plays audio currently; or displaying the acquired image information on a minimum interface of the application program which plays the audio currently.
Step S4: and setting the acquired image information as a cover picture of the currently played audio.
It can be seen that in the present example, the above-mentioned schemes are combined to complete the method of audio playback.
Example two
Fig. 8 is a block diagram of a terminal in an embodiment of the present invention, including: an identification module 10, an image information acquisition module 20, an image information display module 30, and a cover picture exchange module 40. Wherein the content of the first and second substances,
and the identification module 10 is used for identifying the currently played audio.
The image information obtaining module 20 is configured to, when video information corresponding to a currently played audio is detected, obtain image information that matches the playing progress in the video information according to the playing progress of the audio.
And an image information display module 30 for displaying the acquired image information.
And the cover picture replacing module 40 is used for setting the acquired image information as a cover picture of the currently played audio.
In the terminal shown in fig. 8, a segment of audio is played, after the identification module 10 identifies the audio, video information corresponding to the audio is detected first, the progress of the video information and the audio of the progress of the audio change synchronously, so that image information corresponding to each moment in the video information is different along with the change of the progress in the playing process, the image information acquisition module 20 can acquire different image information in the video information according to the playing progress of the audio, and the image information display module 30 displays the acquired image information, so that the displayed image information also changes along with the change of the playing progress in the playing process of a segment of audio, and such a method for playing the audio gives better visual experience to a user and is more interesting; meanwhile, the user can select the favorite image information in the video information corresponding to the audio as the cover picture, so that the replaced cover picture can be displayed when the audio is played in any player, the problem that one section of audio displays a single cover picture is solved, and the use experience of the user is improved.
In particular, the identification module 10 can be used to implement step S1 in the first embodiment; the image information obtaining module 20 may be configured to implement step S2 in the first embodiment; the image information display module 30 can be used to implement step S3 in the first embodiment; the cover picture replacing module 40 can be used to implement step S4 in the first embodiment.
With continued reference to fig. 8, the image information obtaining module 20 may include a first obtaining unit 21, where the first obtaining unit 21 is configured to, when video information corresponding to a currently played audio is detected, detect a playing progress of the audio every first preset time, and obtain image information in the video information, where the playing progress matches the playing progress.
Specifically, the first obtaining unit 21 may be used to implement step S21 in the first embodiment.
With continued reference to fig. 8, the image information acquiring module 20 may include a keyword detecting unit 22 and a second acquiring unit 23, the keyword detecting unit 22 is configured to detect a keyword corresponding to a playing progress of the audio when detecting video information corresponding to the currently played audio; the second obtaining unit 23 is configured to obtain image information in the video information, where the keyword corresponding to the playing progress is the same as the name of the audio.
Specifically, the keyword detection unit 22 may be used to implement the step S22 in the first embodiment, and the second obtaining unit 23 may be used to implement the step S23 in the first embodiment.
With continued reference to fig. 8, the image information display module 30 may include a first display unit 31 and a second display unit 32.
And a first display unit 31 for displaying the acquired image information on a display interface of an application program currently playing audio.
And a second display unit 32 for displaying the acquired image information on a minimum interface of the application program currently playing the audio.
Specifically, the first display unit 31 and the second display unit 32 can be used to implement the corresponding case in step S31 in the first embodiment.
Preferably, the video information may be video information in a cache; or the video information may be non-cached video information.
It should be noted that each part in the apparatus embodiment may be used to implement each step in the method embodiment, and therefore, beneficial effects in this embodiment may refer to corresponding parts in the above embodiments, which are not described herein again.
Fig. 9 is a block diagram of a terminal according to another embodiment of the present invention. The terminal 700 shown in fig. 9 includes: at least one processor 701, memory 702, at least one network interface 704, and other user interfaces 703. The various components in the terminal 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 9 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 702 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 702 of the systems and methods described in this embodiment of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 7021 and application programs 7022.
The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
In the embodiment of the present invention, the processor 701 is configured to identify the currently played audio by calling a program or an instruction stored in the memory 702, specifically, a program or an instruction stored in the application 7022; if video information corresponding to the currently played audio is detected, image information matched with the playing progress in the video information is obtained according to the playing progress of the audio; displaying the acquired image information; and setting the acquired image information as a cover picture of the currently played audio.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and performs the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 701 is further configured to: if video information corresponding to the currently played audio is detected, detecting the playing progress of the audio every other first preset time, and acquiring image information matched with the playing progress in the video information.
Optionally, the processor 701 is further configured to: if video information corresponding to the currently played audio is detected, detecting a keyword corresponding to the playing progress of the audio; and if the keyword corresponding to the playing progress is the same as the name of the audio, acquiring image information matched with the playing progress in the video information.
Optionally, as another embodiment, the processor 701 is further configured to: displaying the acquired image information on a display interface of an application program which plays audio currently; or displaying the acquired image information on a minimum interface of the application program which plays the audio currently.
Optionally, as another embodiment, the video information is video information in a cache; or the video information is non-cached video information.
The terminal 700 can implement the processes implemented by the terminal in the foregoing embodiments, and details are not described here to avoid repetition.
Playing a section of audio, after the audio is identified, firstly detecting video information corresponding to the audio, wherein the progress of the video information and the progress of the played audio are synchronously changed, therefore, at each moment of playing, the image information in the corresponding video information is different, the method can acquire the image information matched with the playing progress in the video information according to the playing progress, and display the different image information acquired at different progresses, so that the displayed image information is continuously changed along with the change of the playing progress in the process of playing a section of audio, and the method for playing the audio gives better visual experience to users and is more interesting; meanwhile, the user can select the favorite image information in the video information corresponding to the audio as the cover picture, so that the replaced cover picture can be displayed when the audio is played in any player, the problem that one section of audio displays a single cover picture is solved, and the use experience of the user is improved.
Fig. 10 is a schematic structural diagram of a terminal according to another embodiment of the present invention. Specifically, the terminal 800 in fig. 10 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The terminal 800 in fig. 10 includes a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 860, an audio circuit 870, a wifi (wireless fidelity) module 880, and a power supply 890.
The input unit 830 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the terminal 800. Specifically, in the embodiment of the present invention, the input unit 830 may include a touch panel 831. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 using a finger, a stylus, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., 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 860, and can receive and execute commands sent by the processor 860. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 831, the input unit 830 may include other input devices 832, and the other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 840 may be used to display information input by the user or information provided to the user and various menu interfaces of the terminal 800. The display unit 840 may include a display panel 841, and the display panel 841 may be alternatively configured in the form of an LCD or an Organic Light-Emitting Diode (OLED), or the like.
It should be noted that the touch panel 831 can overlay the display panel 841 to form a touch display screen, which, when it detects a touch operation thereon or nearby, is passed to the processor 860 to determine the type of touch event, and then the processor 860 provides a corresponding visual output on the touch display screen according to the type of touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 860 is a control center of the terminal 800, connects various parts of the entire cellular phone using various interfaces and lines, and performs various functions of the terminal 800 and processes data by operating or executing software programs and/or modules stored in the first memory 821 and calling data stored in the second memory 822, thereby performing overall monitoring of the terminal 800. Optionally, processor 860 may include one or more processing units.
In an embodiment of the present invention, the processor 860 is configured to identify the currently played audio by calling a software program and/or module stored in the first memory 821 and/or data stored in the second memory 822; if video information corresponding to the currently played audio is detected, image information matched with the playing progress in the video information is obtained according to the playing progress of the audio; displaying the acquired image information; and setting the acquired image information as a cover picture of the currently played audio.
Optionally, the processor 860 is further configured to: if video information corresponding to the currently played audio is detected, detecting the playing progress of the audio every other first preset time, and acquiring image information matched with the playing progress in the video information.
Optionally, the processor 860 is further configured to: if video information corresponding to the currently played audio is detected, detecting a keyword corresponding to the playing progress of the audio; and if the keyword corresponding to the playing progress is the same as the name of the audio, acquiring image information matched with the playing progress in the video information.
Optionally, as another embodiment, the processor 860 is further configured to: displaying the acquired image information on a display interface of an application program which plays audio currently; or displaying the acquired image information on a minimum interface of the application program which plays the audio currently.
Optionally, as another embodiment, the video information is video information in a cache; or the video information is non-cached video information.
Playing a section of audio, after the audio is identified, firstly detecting video information corresponding to the audio, wherein the progress of the video information and the progress of the played audio are synchronously changed, therefore, at each moment of playing, the image information in the corresponding video information is different, the method can acquire the image information matched with the playing progress in the video information according to the playing progress, and display the different image information acquired at different progresses, so that the displayed image information is continuously changed along with the change of the playing progress in the process of playing a section of audio, and the method for playing the audio gives better visual experience to users and is more interesting; meanwhile, the user can select the favorite image information in the video information corresponding to the audio as the cover picture, so that the replaced cover picture can be displayed when the audio is played in any player, the problem that one section of audio displays a single cover picture is solved, and the use experience of the user is improved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for playing audio is applied to a terminal, and is characterized by comprising the following steps:
identifying the currently played audio and judging whether a preset audio cover updating function is started or not;
when the audio cover updating function is not started, displaying a cover picture built in the currently played audio;
when the audio cover updating function is started, judging whether a cover picture corresponding to the currently played audio is cached in the terminal or not;
when the cover picture corresponding to the currently played audio is not cached in the terminal, detecting whether video information corresponding to the currently played audio exists from a network or a local;
if video information corresponding to the currently played audio is detected, image information matched with the playing progress in the video information is obtained according to the playing progress of the audio;
displaying the acquired image information;
setting the acquired image information as a cover picture of a currently played audio, and storing the acquired image information in a cache of the terminal;
if video information corresponding to the currently played audio is detected, acquiring image information matched with the playing progress in the video information according to the playing progress of the audio, wherein the step comprises the following steps of:
if video information corresponding to the currently played audio is detected, detecting the playing progress of the audio every other first preset time, and acquiring image information matched with the playing progress in the video information.
2. The method of claim 1, wherein if video information corresponding to a currently played audio is detected, the step of obtaining image information matching the playing progress in the video information according to the playing progress of the audio includes:
if video information corresponding to the currently played audio is detected, detecting a keyword corresponding to the playing progress of the audio;
and if the keyword corresponding to the playing progress is the same as the name of the audio, acquiring image information matched with the playing progress in the video information.
3. The method for audio playback according to claim 1 or 2, wherein the step of displaying the acquired image information comprises:
displaying the acquired image information on a display interface of an application program which plays audio currently; alternatively, the first and second electrodes may be,
and displaying the acquired image information on a minimum interface of the application program which plays the audio currently.
4. The method of claim 1 or 2, wherein the video information is video information in a buffer; or the video information is non-cached video information.
5. A terminal, comprising:
the identification module is used for identifying the currently played audio and judging whether a preset audio cover updating function is started or not;
the image information acquisition module is used for acquiring image information matched with the playing progress in the video information according to the playing progress of the audio when the video information corresponding to the currently played audio is detected;
the image information display module is used for displaying the acquired image information;
the cover picture replacing module is used for setting the acquired image information as a cover picture of the currently played audio and storing the acquired image information in a cache of the terminal;
wherein the image information acquisition module includes:
the first acquisition unit is used for detecting the playing progress of the audio every other first preset time when video information corresponding to the currently played audio is detected, and acquiring image information matched with the playing progress in the video information;
wherein, the terminal further includes:
a module for displaying the cover picture built in the currently played audio when the audio cover updating function is not started;
a module for judging whether a cover picture corresponding to the currently played audio is cached in the terminal or not when the audio cover updating function is started;
and the module is used for detecting whether video information corresponding to the currently played audio exists from a network or a local place when the cover picture corresponding to the currently played audio is not cached in the terminal.
6. The terminal according to claim 5, wherein the image information acquiring module comprises:
the keyword detection unit is used for detecting keywords corresponding to the playing progress of the audio when video information corresponding to the currently played audio is detected;
and the second acquisition unit is used for acquiring the image information matched with the playing progress in the video information when the keyword corresponding to the playing progress is the same as the name of the audio.
7. The terminal according to claim 5 or 6, wherein the image information display module comprises:
the first display unit is used for displaying the acquired image information on a display interface of an application program which plays audio currently;
and the second display unit is used for displaying the acquired image information on the minimum interface of the application program which plays the audio currently.
8. The terminal according to claim 5 or 6, wherein the video information is video information in a buffer; or the video information is the video information in the non-cache.
CN201710369873.3A 2017-05-23 2017-05-23 Audio playing method and terminal Active CN107221347B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710369873.3A CN107221347B (en) 2017-05-23 2017-05-23 Audio playing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710369873.3A CN107221347B (en) 2017-05-23 2017-05-23 Audio playing method and terminal

Publications (2)

Publication Number Publication Date
CN107221347A CN107221347A (en) 2017-09-29
CN107221347B true CN107221347B (en) 2020-02-07

Family

ID=59945155

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710369873.3A Active CN107221347B (en) 2017-05-23 2017-05-23 Audio playing method and terminal

Country Status (1)

Country Link
CN (1) CN107221347B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174269B (en) * 2017-12-28 2021-02-26 阿里巴巴(中国)有限公司 Visual audio playing method and device
CN109802987B (en) 2018-09-11 2021-05-18 北京京东方技术开发有限公司 Content push method for display device, push device and display equipment
CN109040778B (en) * 2018-09-12 2021-01-22 武汉轻工大学 Video cover determining method, user equipment, storage medium and device
CN110248236B (en) * 2019-07-02 2022-02-18 广州酷狗计算机科技有限公司 Video playing method, device, terminal and storage medium
CN110493614A (en) * 2019-08-28 2019-11-22 百度在线网络技术(北京)有限公司 Video control method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206663A (en) * 2006-12-22 2008-06-25 三星电子株式会社 Apparatus and method for automatically composing album and managing cover image of album
CN103049564A (en) * 2012-12-31 2013-04-17 广东欧珀移动通信有限公司 Method for batch setting of music album picture covers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10339580B2 (en) * 2012-09-14 2019-07-02 Sony Corporation Personalized content generation and delivery

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206663A (en) * 2006-12-22 2008-06-25 三星电子株式会社 Apparatus and method for automatically composing album and managing cover image of album
CN103049564A (en) * 2012-12-31 2013-04-17 广东欧珀移动通信有限公司 Method for batch setting of music album picture covers

Also Published As

Publication number Publication date
CN107221347A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN107221347B (en) Audio playing method and terminal
CN106131650B (en) Video processing method and mobile terminal
CN106372110B (en) Recommendation method of application program and mobile terminal
CN107741820B (en) Input method keyboard display method and mobile terminal
CN106201632B (en) Application program access method and mobile terminal
CN107678644B (en) Image processing method and mobile terminal
EP3447628A1 (en) Portable terminal and user interface method in portable terminal
CN106993091B (en) Image blurring method and mobile terminal
CN107438204B (en) Method for circularly playing media file and mobile terminal
CN106874046B (en) Application program operation method and mobile terminal
CN107506130B (en) Character deleting method and mobile terminal
CN106354520B (en) Interface background switching method and mobile terminal
CN107193451B (en) Information display method and device, computer equipment and computer readable storage medium
US20140280262A1 (en) Electronic device with a funiction of applying applications of different operating systems and method thereof
KR20160049455A (en) Method of displaying an image by using a scroll bar and apparatus thereof
CN109218819B (en) Video preview method and mobile terminal
CN106446180B (en) Song identification method and mobile terminal
CN107454255B (en) Lyric display method, mobile terminal and computer readable storage medium
CN106713742B (en) Shooting method and mobile terminal
CN106407027B (en) Information display method of mobile terminal and mobile terminal
CN107678813B (en) Desktop icon theme switching method and mobile terminal
CN106991150B (en) Webpage data display method and mobile terminal
CN106446014B (en) File searching method and mobile terminal
CN107103224B (en) Unlocking method and mobile terminal
CN106780314B (en) Jigsaw previewing 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