CN109151496B - Music playing method and mobile terminal - Google Patents

Music playing method and mobile terminal Download PDF

Info

Publication number
CN109151496B
CN109151496B CN201810828954.XA CN201810828954A CN109151496B CN 109151496 B CN109151496 B CN 109151496B CN 201810828954 A CN201810828954 A CN 201810828954A CN 109151496 B CN109151496 B CN 109151496B
Authority
CN
China
Prior art keywords
video data
playing
music
video
advertisement content
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
CN201810828954.XA
Other languages
Chinese (zh)
Other versions
CN109151496A (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 CN201810828954.XA priority Critical patent/CN109151496B/en
Publication of CN109151496A publication Critical patent/CN109151496A/en
Application granted granted Critical
Publication of CN109151496B publication Critical patent/CN109151496B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2668Creating a channel for a dedicated end-user group, e.g. insertion of targeted commercials based on end-user profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8106Monomedia components thereof involving special audio data, e.g. different tracks for different languages
    • H04N21/8113Monomedia components thereof involving special audio data, e.g. different tracks for different languages comprising music, e.g. song in MP3 format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a music playing method, a mobile terminal and a computer readable storage medium, and relates to the technical field of image processing. Wherein the method comprises the following steps: receiving a video playing request aiming at a second application program when music of a first application program is played; acquiring video data corresponding to the video playing request; detecting whether advertisement content exists in the video data; when the video data has the advertisement content, continuously playing the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data; and after the advertisement content is played, closing the music of the first application program and playing the sound of the video data. According to the embodiment of the invention, the video can be opened when the user plays the music, and when the video contains the advertisement, the sound of the advertisement is closed, and the music is continuously played, so that the time waste of the user is avoided, and the user experience is improved.

Description

Music playing method and mobile terminal
Technical Field
The invention relates to the technical field of audio and video processing, in particular to a music playing method and a mobile terminal.
Background
Currently, in using a mobile terminal, when a user opens a video of another application while listening to music, the music is immediately stopped and the video starts to be played.
However, a user can often listen to music and play other application programs, when a certain video is opened, a long advertisement is generally embedded in the video, at this time, the user must spend time watching the advertisement content, the user must wait for the advertisement time to finish watching the video data, more time is wasted, and the user experience is affected.
Disclosure of Invention
The invention provides a music playing method, which aims to solve the problem that when advertisement content is embedded in a video, a user must close music to watch advertisements, and time is wasted.
In a first aspect, an embodiment of the present invention provides a music playing method, which is applied to a mobile terminal, and the method includes:
receiving a video playing request aiming at a second application program when music of a first application program is played;
acquiring video data corresponding to the video playing request;
detecting whether advertisement content exists in the video data;
when the video data has the advertisement content, continuously playing the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data;
and after the advertisement content is played, closing the music of the first application program and playing the sound of the video data.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
the receiving module is used for receiving a video playing request aiming at a second application program when music of a first application program is played;
the acquisition module is used for acquiring video data corresponding to the video playing request;
the detection module is used for detecting whether the advertisement content exists in the video data;
the playing module is used for continuously playing the music of the first application program and closing the sound of the video data during the playing period of the advertisement content when the advertisement content exists in the video data corresponding to the video playing request;
and after the advertisement content is played, closing the music of the first application program and playing the sound of the video data.
In a third aspect, a mobile terminal is provided, which comprises a processor, a memory and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps of the music playing method according to the present invention.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the music playing method according to the present invention.
In the embodiment of the invention, when music of a first application program is played, a video playing request aiming at a second application program is received; acquiring video data corresponding to the video playing request; detecting whether advertisement content exists in the video data; when the video data corresponding to the video playing request contains the advertisement content, continuously playing the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data; and after the advertisement content is played, closing the music of the first application program and playing the sound of the video data. The video can be opened when the user plays music, when the video has advertisements, the sound of the advertisements is closed, the music is continuously played, the time waste of the user is avoided, and the user experience is improved.
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 shows a flow chart of a music playing method in a first embodiment of the invention;
fig. 2 is a flowchart illustrating a music playing method according to a second embodiment of the present invention;
FIG. 3 is a schematic diagram of a display interface for playing a video according to a second embodiment of the present invention;
FIG. 4 is a diagram illustrating a display interface displaying a switch button according to a second embodiment of the present invention;
fig. 5 is a block diagram illustrating a mobile terminal according to a third embodiment of the present invention;
fig. 6 is a block diagram illustrating a mobile terminal according to a third embodiment of the present invention;
fig. 7 is a block diagram illustrating a mobile terminal according to a fourth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example one
Referring to fig. 1, a flowchart of an image processing method according to a first embodiment of the present invention is shown, which may specifically include the following steps:
step 101, when music of a first application program is played, a video playing request for a second application program is received.
In the embodiment of the invention, a user uses a first application program to play music in the background and browses a second application program on a display interface, wherein the first application program refers to a music application program and can also be other application programs capable of playing music. The second application program is an application program capable of playing a video in the second application program, for example, an application program capable of playing a short video such as a microblog or a WeChat, and an application program capable of playing a video such as Youku or Aiqiyi. In the embodiment of the invention, when the background plays the music of the first application program, the video playing request aiming at the second application program is received.
And 102, acquiring video data corresponding to the video playing request.
In the embodiment of the present invention, before playing a video, video data is first acquired. The first application continues to play music during the acquisition of the video data.
Step 103, detecting whether the video data has advertisement content.
And step 104, when the video data corresponding to the video playing request contains the advertisement content, continuing to play the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data.
In the embodiment of the invention, when a user plays music of a first application program in a background of a mobile terminal, the video starts to be played on a display interface, and advertisement content is embedded at the beginning of the video, so that in the period of playing the advertisement content, the first application program continues to play the music without closing the music, and the second application program plays the video without sound.
In the embodiment of the invention, after a video playing request is received, corresponding video data is acquired aiming at the video playing request, and the video comprises video information to be displayed and audio information corresponding to the video.
In the embodiment of the invention, during the playing period of the advertisement content, the mobile terminal decomposes the video data into the audio code stream and the video code stream, sends the video code stream to the video decoder for decoding, and then renders and plays the decoded data. And the audio decoder does not decode the audio code stream of the video data, but continues to encode the audio code stream of the music of the first application program, and the music of the first application program and the video without sound are played.
And 105, after the advertisement content is played, closing the music of the first application program and playing the sound of the video data. In the embodiment of the invention, after the video data is acquired, the audio decoder does not call the audio code stream of the video data, but calls the audio code stream of the music of the first application program, and then the music and the video without sound of the first application program can be played
In the embodiment of the invention, when music of a first application program is played, a video playing request aiming at a second application program is received; acquiring video data corresponding to the video playing request; detecting whether advertisement content exists in the video data; when the video data corresponding to the video playing request contains the advertisement content, continuously playing the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data; and after the advertisement content is played, closing the music of the first application program and playing the sound of the video data. The video can be opened when the user plays music, when the video has advertisements, the sound of the advertisements is closed, the music is continuously played, the time waste of the user is avoided, and the user experience is improved.
Example two
Referring to fig. 2, a flowchart of an image processing method according to a second embodiment of the present invention is shown, which may specifically include the following steps:
step 201, when music of a first application program is played, a video playing request for a second application program is received.
Referring to step 101, the description is omitted here.
Step 202, obtaining video data corresponding to the video playing request.
Referring to step 102, the detailed description is omitted here.
Step 203, detecting whether advertisement content exists in the video data.
In the embodiment of the present invention, whether the video data includes the advertisement content may be determined according to the link address of the video data, or whether the video data includes the advertisement content may be determined according to whether the video data includes a preset character for determining that the video data includes the advertisement content.
In this embodiment of the present invention, preferably, step 203 includes:
substep 2031, obtaining a first link corresponding to the video playing request;
in the embodiment of the present invention, each file on the internet has a unique first link, that is, a Uniform Resource Locator (URL), and the embodiment of the present invention may acquire the URL of the video file according to the first link corresponding to the acquired video playing request.
Substep 2032, determining whether the first link is an advertisement link according to a preset advertisement link identification rule;
in this embodiment of the present invention, the preset advertisement link identification rule may include: and matching the first link with a preset link, and when the first link is matched with the preset link, determining that the first link is an advertisement link.
Specifically, in the embodiment of the present invention, link addresses of video files having advertisement content are stored in a database in advance, where the link addresses are preset links.
Or, in this embodiment of the present invention, the preset advertisement link identification rule may include: extracting the character strings of the domain name and the path of the first link, matching the character strings of the domain name and the path with the domain name and the character strings of the preset link, and determining that the first link is an advertisement link when the character strings of the domain name and the path are matched with the domain name and the character strings of the preset link. Wherein the preset link includes: a domain name and a path of a link address of video data containing advertisement content.
Specifically, in the embodiment of the present invention, domain names and paths are extracted from link addresses of video files having advertisement content in advance, and then the domain names and the paths are stored in a database to form preset links of the video files. Matching the domain name of the first link of the video playing request and the character string of the path with a preset link in a database, and determining that the video data comprises the advertisement content when the domain name of the first link of the video playing request and the character string of the path of the first link of the video playing request are matched with the preset link in the database. For example, a first link to video data with advertising content is "http:// www.iqiyi.com/v _19 rrdl577s.html", the domain name of which iswww.iqiyi.comThe path "v _19 rrdl577s.html" is matched with the domain name and path of the preset link in the database, and when the domain name and path are matched, the first link is determined to be the advertisement link.
In the embodiment of the invention, the preset link in the database can be updated through a network.
Sub-step 2033, when the first link is an advertisement link, determining that the advertisement content exists in the video data.
In the embodiment of the invention, when the video data is judged to contain the advertisement content before being played, the music of the first application program is continuously played and the video of the closed video sound is played when the video data is started to be played.
In an embodiment of the present invention, turning off the sound of the video data includes: the decoding of the audio information of the video data is stopped.
In the embodiment of the invention, whether the video data contains the advertisement content is judged before the video data is played, if so, the music is not stopped playing at the beginning of the video playing, namely, the music is continuously played in the process of opening the video, so that the user cannot be influenced to listen to the music and watch the video.
In this embodiment of the present invention, preferably, step 203 includes: identifying whether the video data contains preset characters or not through image identification; and when the video data is identified to contain the preset characters, determining that the advertisement content exists in the video data.
In the embodiment of the present invention, referring to fig. 3, the preset characters include "advertisement", and when the advertisement content in the video is played, the word of "advertisement" is displayed on the upper side of the screen. When the video is played, the advertisement is displayed on the screen through image recognition, and then the advertisement content is determined to be included in the video data.
Step 204, when it is determined that the video data includes the advertisement content, when the advertisement content is played, the music of the first application program is continuously played, and the sound of the video data is closed.
In the embodiment of the invention, when the video is determined to include the advertisement content, the mobile terminal decomposes the acquired video data into the audio code stream and the video code stream when the advertisement content is played, sends the video code stream to the video decoder for decoding, and then renders and plays the decoded data. The audio decoder does not decode the audio code stream, that is, the audio code stream cannot be played, and finally, the audio without sound can be played. Meanwhile, the music of the first application program is continuously played.
In the embodiment of the invention, when the first application program plays music in the background, the video playing instruction is received, the mobile terminal acquires video data according to the video playing instruction, whether the video data comprises advertisement content is judged before the video is played, and when the video data comprises the advertisement content, the sound of the video is not played when the video starts to be played. In the embodiment of the invention, within the time from the receiving of the video playing instruction to the starting of the video playing, the music of the first application program can not be stopped, namely the music is played all the time; or stopping playing the music of the first application program when receiving the video playing instruction, and continuing playing the music when starting playing the video when judging that the video data has the advertisement content. In the embodiment of the present invention, the time taken to determine whether the video data includes the advertisement content is short, and the experience of the user on the music is not affected, so that the playing mode of the music is not limited when determining whether the video data includes the advertisement content.
Step 205, after receiving a trigger operation on a display interface, displaying a switching button on the display interface; the switching button is used for switching the music of the first application program and the sound of the video data.
In the embodiment of the invention, when the background is playing music of a first application program, a user opens a video of a second application program on a display interface, if the video has advertisements, the sound of the video is closed, the music of the first application program is continuously played, and when the user triggers a screen, a switching button is displayed on the screen, referring to fig. 4, when the user triggers the switching button, the switching button is switched to sound playing video data, the sound of the music is closed, and the user can also trigger the switching button to play the sound of the music and close the sound of the video data when the sound of the video data is played.
In the embodiment of the invention, the switching button automatically disappears from the display interface after being triggered, and when the display interface is triggered, the switching button is displayed on the screen.
Step 206, when the music of the first application program is being played, receiving a trigger request to the switch button, closing the music of the first application, and playing the sound of the video data.
In the embodiment of the present invention, when music of the first application program is being played and a trigger request for the switch button is received, the embodiment of the present invention closes the process of playing the music, stops playing the music, starts acquiring audio data of the video data, and starts playing sound of the video data.
In the embodiment of the invention, when the music is played in the background, the video data is opened, and the user can switch the sound of the music and the video according to the requirement, thereby realizing the personalized setting of the user and improving the user experience.
Step 207, identifying a countdown in the advertisement content through image recognition.
In the embodiment of the present invention, when the advertisement content in the video is played, a countdown is displayed above the screen, that is, how long the advertisement is over, is counted, referring to fig. 4.
And step 208, when the countdown is finished, determining that the playing of the advertisement content is finished.
In the embodiment of the invention, when the timing is over, that is, the timing is zero, or the timing cannot be detected on the screen, it indicates that the advertisement playing is over, and at this time, the background closes the playing of music, starts to acquire the audio data of the video, and starts to play the sound of the video data.
Step 209, after it is determined that the advertisement content is played, closing the music of the first application program, and playing the sound of the video data.
Referring to step 105, the detailed description is omitted here.
In the embodiment of the invention, when music of a first application program is played, a video playing request aiming at a second application program is received; acquiring video data corresponding to the video playing request; detecting whether advertisement content exists in the video data; when the video data corresponding to the video playing request contains the advertisement content, continuously playing the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data; and after the advertisement content is played, closing the music of the first application program and playing the sound of the video data. The video can be opened when the user plays music, when the video has advertisements, the sound of the advertisements is closed, the music is continuously played, the time waste of the user is avoided, and the user experience is improved.
EXAMPLE III
Referring to fig. 5, a block diagram of a mobile terminal 300 according to a third embodiment of the present invention is shown, which may specifically include:
a receiving module 301, configured to receive a video playing request for a second application program when music of a first application program is played;
an obtaining module 302, configured to obtain video data corresponding to the video playing request;
a detecting module 303, configured to detect whether there is advertisement content in the video data;
a playing module 304, configured to, when there is advertisement content in video data corresponding to the video playing request, continue to play music of the first application program during playing of the advertisement content, and close sound of the video data;
a closing module 305, configured to close the music of the first application program and play the sound of the video data after the advertisement content is played.
Optionally, on the basis of fig. 5, referring to fig. 6, the detecting module 303 includes:
the acquisition unit is used for acquiring a first link corresponding to the video playing request;
the first determining unit is used for determining whether the first link is an advertisement link according to a preset advertisement link identification rule;
a second determining unit, configured to determine that the advertisement content exists in the video data when the first link is an advertisement link.
The detection module 303 includes:
the identification unit is used for identifying whether the video data contains preset characters or not through image identification;
and a third determining unit, configured to determine that the advertisement content exists in the video data when it is identified that the video data includes preset characters.
The mobile terminal 300 further includes:
an identifying module 306 for identifying a countdown in the advertisement content through image recognition;
a determining module 307, configured to determine that the playing of the advertisement content is finished when the countdown is finished.
The mobile terminal 300 further includes:
the display module 308 is configured to display a switch button on the display interface after receiving a trigger operation on the display interface; the switching button is used for switching music of the first application program and sound of the video data;
a switching module 309, configured to receive a trigger request for the switching button when the music of the first application program is being played, close the music of the first application, and play the sound of the video data.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 6, and is not described herein again to avoid repetition.
In the embodiment of the invention, when music of a first application program is played, a video playing request aiming at a second application program is received; acquiring video data corresponding to the video playing request; detecting whether advertisement content exists in the video data; when the video data corresponding to the video playing request contains the advertisement content, continuously playing the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data; and after the advertisement content is played, closing the music of the first application program and playing the sound of the video data. The video can be opened when the user plays music, when the video has advertisements, the sound of the advertisements is closed, the music is continuously played, the time waste of the user is avoided, and the user experience is improved.
Example four
Figure 7 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 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.
The radio frequency unit 501 is configured to receive a video playing request for a second application program when music of a first application program is played; and acquiring video data corresponding to the video playing request.
A processor 510 for detecting whether there is advertising content in the video data; when the video data has the advertisement content, continuously playing the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data; and after the advertisement content is played, closing the music of the first application program and playing the sound of the video data.
In the embodiment of the invention, when music of a first application program is played, a video playing request aiming at a second application program is received; when the video data corresponding to the video playing request contains the advertisement content, the music of the first application program is continuously played during the playing period of the advertisement content, and the sound of the video data is closed. The video can be opened when the user plays music, when the video has advertisements, the sound of the advertisements is closed, the music is continuously played, the time waste of the user is avoided, and the user experience is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 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 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 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 501 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 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (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 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 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 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, 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 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 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 505 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 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 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 507 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 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or accessory). The touch panel 5071 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 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 7, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. 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 508 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 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program 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 509 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 510 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 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 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 processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 500 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the above-mentioned embodiment of the music playing method are implemented, and the same technical effect can be achieved, 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 music playing 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. A music playing method is applied to a mobile terminal, and is characterized by comprising the following steps:
receiving a video playing request aiming at a second application program when music of a first application program is played;
acquiring video data corresponding to the video playing request;
detecting whether advertisement content exists in the video data;
when the video data has the advertisement content, continuously playing the music of the first application program during the playing period of the advertisement content, and closing the sound of the video data;
after the advertisement content is played, closing the music of the first application program and playing the sound of the video data;
wherein, when there is an advertisement content in the video data, during the playing of the advertisement content, continuing to play the music of the first application program, and turning off the sound of the video data, includes: and during the playing period of the advertisement content, decomposing the video data corresponding to the advertisement content into an audio code stream and a video code stream, decoding the video code stream, rendering and playing, not decoding the audio code stream, and decoding and playing the audio code stream corresponding to the music of the first application program.
2. The method of claim 1, wherein the step of detecting whether advertising content exists in the video data comprises:
acquiring a first link corresponding to the video playing request;
determining whether the first link is an advertisement link according to a preset advertisement link identification rule;
and when the first link is an advertisement link, determining that the advertisement content exists in the video data.
3. The method of claim 1, wherein the step of detecting whether advertising content exists in the video data comprises:
identifying whether the video data contains preset characters or not through image identification;
and when the video data is identified to contain the preset characters, determining that the advertisement content exists in the video data.
4. The method according to claim 1, wherein after the steps of closing the music of the first application program and playing the sound of the video data after the advertisement content is played, the method further comprises:
identifying a countdown in the advertising content through image recognition;
and when the countdown is finished, determining that the playing of the advertisement content is finished.
5. The method according to claim 1, wherein after the steps of continuing to play the music of the first application and turning off the sound of the video data during the playing of the advertisement content when the advertisement content exists in the video data corresponding to the video playing request, further comprising:
displaying a switching button on the display interface after receiving the trigger operation of the display interface; the switching button is used for switching music of the first application program and sound of the video data;
and when the music of the first application program is being played, receiving a trigger request for the switching button, closing the music of the first application and playing the sound of the video data.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the receiving module is used for receiving a video playing request aiming at a second application program when music of a first application program is played;
the acquisition module is used for acquiring video data corresponding to the video playing request;
the detection module is used for detecting whether the advertisement content exists in the video data;
the playing module is used for continuously playing the music of the first application program and closing the sound of the video data during the playing period of the advertisement content when the advertisement content exists in the video data corresponding to the video playing request;
the closing module is used for closing the music of the first application program and playing the sound of the video data after the advertisement content is played;
the playing module is specifically configured to, during the playing of the advertisement content, decompose the video data corresponding to the advertisement content into an audio code stream and a video code stream, decode the video code stream and then play the video code stream in a rendering manner, and decode and play the audio code stream corresponding to the music of the first application program without decoding the audio code stream.
7. The mobile terminal of claim 6, wherein the detection module comprises:
the acquisition unit is used for acquiring a first link corresponding to the video playing request;
the first determining unit is used for determining whether the first link is an advertisement link according to a preset advertisement link identification rule;
a second determining unit, configured to determine that the advertisement content exists in the video data when the first link is an advertisement link.
8. The mobile terminal of claim 6, wherein the detection module comprises:
the identification unit is used for identifying whether the video data contains preset characters or not through image identification;
and a third determining unit, configured to determine that the advertisement content exists in the video data when it is identified that the video data includes preset characters.
9. The mobile terminal of claim 6, further comprising:
the identification module is used for identifying countdown in the advertisement content through image identification;
and the determining module is used for determining that the playing of the advertisement content is finished when the countdown is finished.
10. The mobile terminal of claim 6, further comprising:
the display module is used for displaying a switching button on the display interface after receiving the triggering operation of the display interface; the switching button is used for switching music of the first application program and sound of the video data;
and the switching module is used for receiving a trigger request to the switching button when the music of the first application program is played, closing the music of the first application and playing the sound of the video data.
11. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the music playing method according to any one of claims 1 to 5.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the music playing method according to any one of claims 1 to 5.
CN201810828954.XA 2018-07-25 2018-07-25 Music playing method and mobile terminal Active CN109151496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810828954.XA CN109151496B (en) 2018-07-25 2018-07-25 Music playing method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810828954.XA CN109151496B (en) 2018-07-25 2018-07-25 Music playing method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109151496A CN109151496A (en) 2019-01-04
CN109151496B true CN109151496B (en) 2021-04-23

Family

ID=64798015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810828954.XA Active CN109151496B (en) 2018-07-25 2018-07-25 Music playing method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109151496B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493635B (en) * 2019-08-23 2022-02-01 腾讯科技(深圳)有限公司 Video playing method and device and terminal

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101595725A (en) * 2007-01-26 2009-12-02 深圳Tcl新技术有限公司 System and method with television set playing media source sound intermediate frequency during music-on-mute
CN103854682A (en) * 2012-12-06 2014-06-11 联想(北京)有限公司 Method and device for controlling audio file playing
CN104113780A (en) * 2014-06-25 2014-10-22 小米科技有限责任公司 Advertisement processing method and apparatus
CN105872749A (en) * 2015-12-18 2016-08-17 乐视致新电子科技(天津)有限公司 Video processing method and device
CN107360458A (en) * 2017-06-30 2017-11-17 广东欧珀移动通信有限公司 Control method for playing back, device, storage medium and terminal
CN107392111A (en) * 2017-06-27 2017-11-24 青岛海信电器股份有限公司 Advertisement recognition method and device
CN107562864A (en) * 2017-08-30 2018-01-09 努比亚技术有限公司 A kind of advertisement screen method, mobile terminal and computer-readable recording medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9143840B2 (en) * 2013-05-20 2015-09-22 Veenome, Inc. Systems and methods for evaluating online videos

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101595725A (en) * 2007-01-26 2009-12-02 深圳Tcl新技术有限公司 System and method with television set playing media source sound intermediate frequency during music-on-mute
CN103854682A (en) * 2012-12-06 2014-06-11 联想(北京)有限公司 Method and device for controlling audio file playing
CN104113780A (en) * 2014-06-25 2014-10-22 小米科技有限责任公司 Advertisement processing method and apparatus
CN105872749A (en) * 2015-12-18 2016-08-17 乐视致新电子科技(天津)有限公司 Video processing method and device
CN107392111A (en) * 2017-06-27 2017-11-24 青岛海信电器股份有限公司 Advertisement recognition method and device
CN107360458A (en) * 2017-06-30 2017-11-17 广东欧珀移动通信有限公司 Control method for playing back, device, storage medium and terminal
CN107562864A (en) * 2017-08-30 2018-01-09 努比亚技术有限公司 A kind of advertisement screen method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN109151496A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109078319B (en) Game interface display method and terminal
CN110784771B (en) Video sharing method and electronic equipment
CN108279948B (en) Application program starting method and mobile terminal
CN107908382B (en) Split screen display method and mobile terminal
CN110109593B (en) Screen capturing method and terminal equipment
CN108334272B (en) Control method and mobile terminal
CN109284144B (en) Fast application processing method and mobile terminal
CN107734170B (en) Notification message processing method, mobile terminal and wearable device
CN107682359B (en) Application registration method and mobile terminal
CN107835495B (en) Message prompting method and device and mobile terminal
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN107734172B (en) Information display method and mobile terminal
CN110096203B (en) Screenshot method and mobile terminal
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN108009031B (en) Application program control method and mobile terminal
CN108391253B (en) application program recommendation method and mobile terminal
CN108600079B (en) Chat record display method and mobile terminal
CN111464428A (en) Audio processing method, server, electronic device, and computer-readable storage medium
CN111061404A (en) Control method and first electronic device
CN109982273B (en) Information reply method and mobile terminal
CN111405043A (en) Information processing method and device and electronic equipment
CN108270928B (en) Voice recognition method and mobile terminal
CN111061446A (en) Display method and electronic equipment
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN108235084B (en) Video playing 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