CN106101393B - Startup ringtone playing device and method and mobile terminal - Google Patents

Startup ringtone playing device and method and mobile terminal Download PDF

Info

Publication number
CN106101393B
CN106101393B CN201610378540.2A CN201610378540A CN106101393B CN 106101393 B CN106101393 B CN 106101393B CN 201610378540 A CN201610378540 A CN 201610378540A CN 106101393 B CN106101393 B CN 106101393B
Authority
CN
China
Prior art keywords
starting
audio
playing
video
ring
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
CN201610378540.2A
Other languages
Chinese (zh)
Other versions
CN106101393A (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.)
Cui Qi
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201610378540.2A priority Critical patent/CN106101393B/en
Publication of CN106101393A publication Critical patent/CN106101393A/en
Application granted granted Critical
Publication of CN106101393B publication Critical patent/CN106101393B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72433User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for voice messaging, e.g. dictaphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72463User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions to restrict the functionality of the device

Abstract

The invention discloses a starting-up ringtone playing device, a starting-up ringtone playing method and a mobile terminal, and relates to the technical field of mobile terminals, wherein the device comprises: the system starting module is used for starting the mobile terminal operating system; the audio and video pause module is used for pausing and starting the audio and video service; the ring playing module is used for calling the bottom layer audio interface and playing the starting ring; the audio and video starting module is used for judging whether the starting ring tone is played completely, if so, the audio and video service is started.

Description

Startup ringtone playing device and method and mobile terminal
Technical Field
The invention relates to the field of mobile terminals, in particular to a starting-up ringtone playing device and method and a mobile terminal.
Background
With the continuous development of smart phones, the product homogeneity is more and more serious, and all major manufacturers want to add their features into their products, and strive to kill a blood road in the red sea of the mobile phone by taking a differentiated way.
When the mobile phone is started, a user touches the first action of a mobile phone product, and if a good impression can be given to the user, the color of the product is increased a lot, for example, a Moto brand mobile phone before many years has a symbolic ring of Hello Moto when the mobile phone is started, and long-time brands are accumulated, so that the Hello Moto becomes a pronoun of the Moto brand mobile phone. In the era of android smart phones, many manufacturers can customize respective startup ringtones according to actual conditions of the manufacturers.
At present, no matter the implementation scheme of standard startup ring tone given by high pass or MTK is to directly use Mediaplayer to play the startup ring tone, but because the startup of Mediaplayer needs to depend on system services such as Mediaplayer, and the startup of the system services needs a certain time, the time from startup to the startup ring tone playing is long, and the user experience is influenced.
Disclosure of Invention
The invention mainly aims to provide a starting-up ring playing device, a starting-up ring playing method and a mobile terminal, wherein the starting-up ring is played by directly calling a bottom-layer audio interface, so that the time for waiting for playing the starting-up ring is greatly shortened, and audio and video services are started after the starting-up ring is played, so that the influence on a sound card when the audio and video services are started is avoided, and the user experience is improved.
In order to achieve the above object, the present invention provides a startup ring playing device, including:
the system starting module is used for starting the mobile terminal operating system;
the audio and video pause module is used for pausing and starting the audio and video service;
the ring playing module is used for calling the bottom layer audio interface and playing the starting ring;
and the audio and video starting module is used for judging whether the playing of the starting ring tone is finished or not, and starting the audio and video service if the playing of the starting ring tone is finished.
Optionally, the audio/video pause module includes:
the disabling unit is used for setting in an initial process and disabling the audio and video service;
correspondingly, the audio and video starting module comprises:
and the first audio and video starting unit is used for starting the audio and video service through an initial process.
Optionally, the audio/video pause module includes:
the delay unit is used for presetting a time period, starting the audio and video service after delaying the time period, wherein the time period is slightly longer than the complete playing time of the starting ring tone;
correspondingly, the audio and video starting module comprises:
and the second audio and video starting unit is used for judging whether the playing time of the starting ring reaches the time period or not, and if so, starting the audio and video service.
Optionally, the working method of the ringtone playing module specifically includes:
and calling a bottom layer audio interface through a pulse code modulation interface to play the starting ring tone.
As another aspect of the present invention, a method for playing a startup ring tone is provided, including:
starting a mobile terminal operating system;
suspending starting of the audio and video service;
calling a bottom layer audio interface and playing a starting ring tone;
and judging whether the playing of the starting ring tone is finished, if so, starting the audio and video service.
Optionally, the suspending the start of the audio-video service includes:
setting in an initial process and forbidding audio and video service;
correspondingly, the starting of the audio/video service specifically includes:
and starting the audio and video service through an initial process.
Optionally, the suspending the start of the audio-video service includes:
presetting a time period, and starting the audio and video service after delaying the time period, wherein the time period is slightly longer than the complete playing time of the starting ring tone;
correspondingly, the step of judging whether the startup ringtone is played completely specifically includes:
and judging whether the playing time length of the startup ring reaches the time period or not.
Optionally, the calling the bottom-layer audio interface, the playing the boot ring tone includes:
and calling a bottom layer audio interface through a pulse code modulation interface to play the starting ring tone.
Optionally, after determining whether the turn-on ringtone is played completely, the method further includes:
and if the starting-up ring is not played completely, continuing to play the starting-up ring.
As another aspect of the present invention, a mobile terminal is provided, which includes any one of the above-mentioned startup ring tone playing apparatus.
The invention provides a starting-up ring playing device, a starting-up ring playing method and a mobile terminal, wherein the device comprises: the method comprises the following steps: the system starting module is used for starting the mobile terminal operating system; the audio and video pause module is used for pausing and starting the audio and video service; the ring playing module is used for calling the bottom layer audio interface and playing the starting ring; the audio and video starting module is used for judging whether the starting ring tone is played completely, if so, the audio and video service is started.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention;
FIG. 2 is a diagram of a wireless communication system for the mobile terminal shown in FIG. 1;
fig. 3 is a block diagram illustrating an exemplary structure of a device for playing a start-up ringtone according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating an exemplary structure of a second embodiment of a device for playing a start-up ringtone according to the present invention;
fig. 5 is a block diagram illustrating an exemplary structure of a device for playing a start-up ringtone according to a third embodiment of the present invention;
fig. 6 is a flowchart of a method for playing a start-up ring tone according to a fourth embodiment of the present invention;
fig. 7 is a flowchart of a method for playing a start-up ring tone according to a fifth embodiment of the present invention;
fig. 8 is a flowchart of a method for playing a start-up ring tone according to a sixth embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of a mobile terminal according to a seventh embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present invention.
The mobile terminal 100 may include a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, etc. Fig. 1 illustrates a mobile terminal having various components, but it is to be understood that not all illustrated components are required to be implemented. More or fewer components may alternatively be implemented. Elements of the mobile terminal will be described in detail below.
The wireless communication unit 110 typically includes one or more components that allow radio communication between the mobile terminal 100 and a wireless communication system or network. For example, the wireless communication unit may include at least one of a mobile communication module 112, a wireless internet module 113, and a short-range communication module 114.
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet access technology to which the module relates may include WLAN (wireless LAN) (Wi-Fi), Wibro (wireless broadband), Wimax (worldwide interoperability for microwave access), HSDPA (high speed downlink packet access), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetooth (TM), Radio Frequency Identification (RFID), infrared data association (IrDA), Ultra Wideband (UWB), zigbee (TM), and the like.
The a/V input unit 120 is used to receive an audio or video signal. The a/V input unit 120 may include a camera 121 and a microphone 122, and the camera 121 processes image data of still pictures or video obtained by an image capturing apparatus in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 151. The image frames processed by the cameras 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 121 may be provided according to the construction of the mobile terminal. The microphone 122 may receive sounds (audio data) via the microphone in a phone call mode, a recording mode, a voice recognition mode, or the like, and can process such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the mobile communication module 112 in case of a phone call mode. The microphone 122 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The user input unit 130 may generate key input data according to a command input by a user to control various operations of the mobile terminal. The user input unit 130 allows a user to input various types of information, and may include a keyboard, dome sheet, touch pad (e.g., a touch-sensitive member that detects changes in resistance, pressure, capacitance, and the like due to being touched), scroll wheel, joystick, and the like. In particular, when the touch pad is superimposed on the display unit 151 in the form of a layer, a touch screen may be formed.
The sensing unit 140 detects a current state of the mobile terminal 100 (e.g., an open or closed state of the mobile terminal 100), a position of the mobile terminal 100, presence or absence of contact (i.e., touch input) by a user with the mobile terminal 100, an orientation of the mobile terminal 100, acceleration or deceleration movement and direction of the mobile terminal 100, and the like, and generates a command or signal for controlling an operation of the mobile terminal 100. For example, when the mobile terminal 100 is implemented as a slide-type mobile phone, the sensing unit 140 may sense whether the slide-type phone is opened or closed. In addition, the sensing unit 140 can detect whether the power supply unit 190 supplies power or whether the interface unit 170 is coupled with an external device.
The interface unit 170 serves as an interface through which at least one external device is connected to the mobile terminal 100. 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 identification module may store various information for authenticating a user using the mobile terminal 100 and may include a User Identity Module (UIM), a Subscriber Identity Module (SIM), a Universal Subscriber Identity Module (USIM), and the like. In addition, a device having an identification module (hereinafter, referred to as an "identification device") may take the form of a smart card, and thus, the identification device may be connected with the mobile terminal 100 via a port or other connection means. The interface unit 170 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal and the external device.
In addition, when the mobile terminal 100 is connected with an external cradle, the interface unit 170 may serve as a path through which power is supplied from the cradle to the mobile terminal 100 or may serve as a path through which various command signals input from the cradle are transmitted to the mobile terminal. Various command signals or power input from the cradle may be used as signals for recognizing whether the mobile terminal is accurately mounted on the cradle. The output unit 150 is configured to provide output signals (e.g., audio signals, video signals, alarm signals, vibration signals, etc.) in a visual, audio, and/or tactile manner. The output unit 150 may include a display unit 151, an audio output module 152, and the like.
The display unit 151 may display information processed in the mobile terminal 100. For example, when the mobile terminal 100 is in a phone call mode, the display unit 151 may display a User Interface (UI) or a Graphical User Interface (GUI) related to a call or other communication (e.g., text messaging, multimedia file downloading, etc.). When the mobile terminal 100 is in a video call mode or an image capturing mode, the display unit 151 may display a captured image and/or a received image, a UI or GUI showing a video or an image and related functions, and the like.
Meanwhile, when the display unit 151 and the touch pad are overlapped with each other in the form of a layer to form a touch screen, the display unit 151 may serve as an input device and an output device. The display unit 151 may include at least one of a Liquid Crystal Display (LCD), a thin film transistor LCD (TFT-LCD), an Organic Light Emitting Diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as transparent displays, and a typical transparent display may be, for example, a TOLED (transparent organic light emitting diode) display or the like. Depending on the particular desired implementation, the mobile terminal 100 may include two or more display units (or other display devices), for example, the mobile terminal may include an external display unit (not shown) and an internal display unit (not shown). The touch screen may be used to detect a touch input pressure as well as a touch input position and a touch input area.
The audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output as sound when the mobile terminal is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output module 152 may provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output module 152 may include a speaker, a buzzer, and the like.
The memory 160 may store software programs and the like for processing and controlling operations performed by the controller 180, or may temporarily store data (e.g., a phonebook, messages, still images, videos, and the like) that has been or will be output. Also, the memory 160 may store data regarding various ways of vibration and audio signals output when a touch is applied to the touch screen.
The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. Also, the mobile terminal 100 may cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
The controller 180 generally controls the overall operation of the mobile terminal. For example, the controller 180 performs control and processing related to voice calls, data communications, video calls, and the like. In addition, the controller 180 may include a multimedia module 181 for reproducing (or playing back) multimedia data, and the multimedia module 181 may be constructed within the controller 180 or may be constructed separately from the controller 180. The controller 180 may perform a pattern recognition process to recognize a handwriting input or a picture drawing input performed on the touch screen as a character or an image.
The power supply unit 190 receives external power or internal power and provides appropriate power required to operate various elements and components under the control of the controller 180.
The various embodiments described herein may be implemented in a computer-readable medium using, for example, computer software, hardware, or any combination thereof. For a hardware implementation, the embodiments described herein may be implemented using at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a processor, a controller, a microcontroller, a microprocessor, an electronic unit designed to perform the functions described herein, and in some cases, such embodiments may be implemented in the controller 180. For a software implementation, the implementation such as a process or a function may be implemented with a separate software module that allows performing at least one function or operation. The software codes may be implemented by software applications (or programs) written in any suitable programming language, which may be stored in the memory 160 and executed by the controller 180.
Up to this point, mobile terminals have been described in terms of their functionality. Hereinafter, a slide-type mobile terminal among various types of mobile terminals, such as a folder-type, bar-type, swing-type, slide-type mobile terminal, and the like, will be described as an example for the sake of brevity. Accordingly, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
Referring to fig. 2, the CDMA wireless communication system may include a plurality of mobile terminals 100, a plurality of Base Stations (BSs) 270, Base Station Controllers (BSCs) 275, and a Mobile Switching Center (MSC) 280. The MSC280 is configured to interface with a Public Switched Telephone Network (PSTN) 290. The MSC280 is also configured to interface with a BSC275, which may be coupled to the base station 270 via a backhaul. The backhaul may be constructed according to any of several known interfaces including, for example, E1/T1, ATM, IP, PPP, frame Relay, HDSL, ADSL, or xDSL. It will be understood that a system as shown in fig. 2 may include multiple BSCs 275.
Each BS270 may serve one or more sectors (or regions), each sector covered by a multi-directional antenna or an antenna pointing in a particular direction being radially distant from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS270 may be configured to support multiple frequency allocations, with each frequency allocation having a particular frequency spectrum (e.g., 1.25MHz,5MHz, etc.).
The intersection of partitions with frequency allocations may be referred to as a CDMA channel. The BS270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" may be used to generically refer to a single BSC275 and at least one BS 270. The base stations may also be referred to as "cells". Alternatively, each sector of a particular BS270 may be referred to as a plurality of cell sites.
As shown in fig. 2, a Broadcast Transmitter (BT)295 transmits a broadcast signal to the mobile terminal 100 operating within the system. A broadcast receiving module as shown in fig. 1 is provided at the mobile terminal 100 to receive a broadcast signal transmitted by the BT 295. In fig. 2, several Global Positioning System (GPS) satellites 300 are shown. The satellite 300 assists in locating at least one of the plurality of mobile terminals 100.
In fig. 2, a plurality of satellites 300 are depicted, but it is understood that useful positioning information may be obtained with any number of satellites.
As a typical operation of a wireless communication system, the BS270A receives reverse link signals from various mobile terminals 100. The mobile terminal 100 is generally engaged in conversations, messaging, and other types of communications. Each reverse link signal received by a particular base station 270A is processed within a particular BS 270A. The obtained data is forwarded to the associated BSC 275. The BSC provides call resource allocation and mobility management functions including coordination of soft handoff procedures between BSs 270. The BSCs 275 also route the received data to the MSC280, which provides additional routing services for interfacing with the PSTN 290. Similarly, the PSTN290 interfaces with the MSC280, the MSC interfaces with the BSCs 275, and the BSCs 275 accordingly control the BS270B to transmit forward link signals to the mobile terminal 100.
Based on the above mobile terminal hardware structure and communication system, the present invention provides various embodiments of the method.
Example one
As shown in fig. 3, in this embodiment, a startup ring tone playing device includes:
the system starting module 10 is used for starting the mobile terminal operating system;
the audio and video pause module 20 is used for pausing and starting the audio and video service;
the ring playing module 30 is used for calling the bottom layer audio interface and playing the startup ring;
and the audio and video starting module 40 is used for judging whether the playing of the starting ring tone is finished, and if so, starting the audio and video service.
In the embodiment, the time for waiting for playing the startup ring is greatly reduced by directly calling the bottom layer audio interface to play the startup ring, and the audio and video service is started after the startup ring is played, so that the influence on the sound card when the audio and video service is started is avoided, and the user experience is improved.
In the present embodiment, the present invention is mainly applicable to mobile terminals of mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, and the like; it can also be applied to a fixed terminal having a turn-on bell such as a digital TV, a desktop computer, etc.
In this embodiment, taking a smart phone as an example, the start of an audio/video player MediaPlayer of the smart phone needs to depend on an audio/video service (MediaServer), the MediaServer is a core and a soul of a media part in the whole Android, almost all contents related to multimedia playing are put therein, including audio/video codec and display output, and the MediaServer is started in an initial process (init process), a so-called init process, which is a user-level process started by a kernel, after the kernel starts itself (has been loaded into a memory, starts to run, has initialized all device drivers and data structures, etc.), a boot process is completed by starting a user-level program init, so the init process is always the first process (the process number is always 1); rc file has the following commands:
servicemedia/system/bin/mediaserver
by analyzing the source code of the MediaServer, we can find that the MediaServer needs to start the following services in the starting process: the starting of the audio, media, audio and camera services requires time, which seriously affects the playing time of the start-up ring. For example, it takes about 35 seconds to create the medialayer object when the animation is played, which is unacceptable, and it is hard to imagine that the user cannot hear the response after starting the mobile terminal for a second half minute, which is not favorable for the user experience.
Therefore, in this embodiment, first, the operating system of the mobile terminal is normally started, so that before Android is started, the kernel of the operating system is already started, that is, the sound card can be used, and then the MediaServer can be bypassed, and the PCM interface is directly modulated by pulse code to call the bottom-layer audio/video interface to play the startup ringtone, thereby greatly shortening the time of waiting for the startup ringtone to be played.
However, when playing the start-up ring tone by using the PCM interface, another problem is encountered, that is, once the MediaServer is started, the MediaServer initializes the sound card, and the like, so that the user experience is also affected because there is no sound in the ring tone playing process.
Therefore, in the embodiment, the MediaServer is started in a delayed manner to avoid the problem, that is, the MediaServer is suspended when the start-up ringtone is played, and is started after the start-up ringtone is played, so that the problem that the ringtone may be interrupted is solved, and the user experience is improved.
The implementation modes of suspending the start of the MediaServer comprise two modes, firstly, the setting can be carried out in the init process, the MediaServer is assigned to disable, and the MediaServer is disabled; and when the system detects that the start-up ring tone is played completely, starting the MediaServer through the init process.
As another embodiment, a time period may also be preset in the system according to the complete playing time of the selected startup ring, and the MediaServer is started after delaying the time period, where the time period is slightly greater than the complete playing time of the startup ring, so that the delayed start of the MediaServer can be realized without an init process, the realization method is simpler, and when the playing time of the startup ring reaches the time period, the MediaServer is started.
Referring to fig. 1, the power-on bell sound in the present embodiment is implemented by the audio output module 152 in the mobile terminal, and the audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output the audio signal as sound when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like. Also, the audio output module 152 may provide audio output (in this embodiment, a power-on ringtone) related to a specific function performed by the mobile terminal 100. The audio output module 152 may include a speaker, a buzzer, and the like.
Example two
As shown in fig. 4, in this embodiment, the audio/video pause module 20 includes:
a disabling unit 21, configured to set in an initial process and disable an audio/video service;
accordingly, the audio/video starting module 40 includes:
a first audio/video starting unit 41, configured to start an audio/video service through an initial process.
In this embodiment, taking a smart phone as an example, the start of the audio/video player MediaPlayer of the smart phone needs to depend on the audio/video service (MediaServer), the MediaServer is the core and soul of the media part in the whole Android, almost all the content related to multimedia playing is put here, including the codec and display output of the audio/video, and the MediaServer is started in the initial process (init process), and in the init.
servicemedia/system/bin/mediaserver
By analyzing the source code of the MediaServer, we can find that the MediaServer needs to start the following services in the starting process: the starting of the audio, media, audio and camera services requires time, which seriously affects the playing time of the start-up ring. For example, it takes about 35 seconds to create the medialayer object when the animation is played, which is unacceptable, and it is hard to imagine that the user cannot hear the response after starting the mobile terminal for a second half minute, which is not favorable for the user experience.
Therefore, in this embodiment, first, the operating system of the mobile terminal is normally started, so that before Android is started, the kernel of the operating system is already started, that is, the sound card can be used, and then the MediaServer can be bypassed, and the PCM interface is directly modulated by pulse code to call the bottom-layer audio/video interface to play the startup ringtone, thereby greatly shortening the time of waiting for the startup ringtone to be played.
However, when playing the start-up ring tone by using the PCM interface, another problem is encountered, that is, once the MediaServer is started, the MediaServer initializes the sound card, and the like, so that the user experience is also affected because there is no sound in the ring tone playing process.
In this embodiment, the implementation manner of suspending starting the MediaServer is to set in the init process, assign the MediaServer to disable, and disable the MediaServer; when the system detects that the start-up ring tone is played completely, the MediaServer is started through the init process, so that the problem that the ring tone can be interrupted is solved, and the user experience is improved.
EXAMPLE III
As shown in fig. 5, in this embodiment, the audio/video pause module 20 includes:
the delay unit 22 is configured to preset a time period, and start the audio/video service after delaying the time period, where the time period is slightly longer than the complete playing time of the startup ringtone;
accordingly, the audio/video starting module 40 includes:
and the second audio/video starting unit 42 is configured to determine whether the playing time of the startup ring reaches the time period, and if so, start the audio/video service.
In this embodiment, the same as the problem to be solved in the second embodiment, that is, when playing a ring tone, once the MediaServer is started, it will initialize the sound card, so that there is no sound during playing the ring tone, and the user experience is also affected.
In this embodiment, the implementation manner of suspending starting the MediaServer is that a time period is preset in the system according to the complete playing time of the selected startup ring, and the MediaServer is started after delaying the time period, where the time period is slightly greater than the complete playing time of the startup ring, so that the delayed starting of the MediaServer can be implemented without an init process, the implementation manner is simpler, and when the playing time length of the startup ring reaches the time period, the MediaServer is started.
Example four
As shown in fig. 6, in this embodiment, a method for playing a start-up ringtone includes:
s10, starting the operating system of the mobile terminal;
s20, suspending starting the audio and video service;
s30, calling a bottom layer audio interface and playing a starting ring tone;
and S40, judging whether the playing of the startup ring is finished, if so, entering the step S50 to start the audio/video service, otherwise, returning to the step S30 to continue playing the startup ring.
In the embodiment, the time for waiting to play the start-up ringtone is greatly shortened by directly calling the bottom audio interface to play the start-up ringtone, and the MediaServer is started after the start-up ringtone is played, so that the influence on the sound card when the MediaServer is started is avoided, and the user experience is improved.
In the present embodiment, the present invention is mainly applicable to mobile terminals of mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), navigation devices, and the like; it can also be applied to a fixed terminal having a turn-on bell such as a digital TV, a desktop computer, etc.
In this embodiment, taking a smart phone as an example, the start of the audio/video player MediaPlayer of the smart phone needs to depend on MediaServer, MediaServer is a core and a soul of the media part in the whole Android, almost all the content related to multimedia playing is put here, including the codec and display output of the audio/video, and MediaServer is started in the init process, and in the init.
servicemedia/system/bin/mediaserver
By analyzing the source code of the MediaServer, we can find that the MediaServer needs to start the following services in the starting process: the starting of the audio, media, audio and camera services requires time, which seriously affects the playing time of the start-up ring. For example, it takes about 35 seconds to create the medialayer object when the animation is played, which is unacceptable, and it is hard to imagine that the user cannot hear the response after starting the mobile terminal for a second half minute, which is not favorable for the user experience.
Therefore, in this embodiment, first, the operating system of the mobile terminal is normally started, so that before Android is started, the kernel of the operating system is already started, that is, the sound card can be used, and then the MediaServer can be bypassed, and the PCM interface is directly modulated by pulse code to call the bottom-layer audio/video interface to play the startup ringtone, thereby greatly shortening the time of waiting for the startup ringtone to be played.
However, when playing the start-up ring tone by using the PCM interface, another problem is encountered, that is, once the MediaServer is started, the MediaServer initializes the sound card, and the like, so that the user experience is also affected because there is no sound in the ring tone playing process.
Therefore, in the embodiment, the MediaServer is started in a delayed manner to avoid the problem, that is, the MediaServer is suspended when the start-up ringtone is played, and is started after the start-up ringtone is played, so that the problem that the ringtone may be interrupted is solved, and the user experience is improved.
Referring to fig. 1, the power-on bell sound in the present embodiment is implemented by the audio output module 152 in the mobile terminal, and the audio output module 152 may convert audio data received by the wireless communication unit 110 or stored in the memory 160 into an audio signal and output the audio signal as sound when the mobile terminal is in a call signal receiving mode, a call mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like. Also, the audio output module 152 may provide audio output (in this embodiment, a power-on ringtone) related to a specific function performed by the mobile terminal 100. The audio output module 152 may include a speaker, a buzzer, and the like.
EXAMPLE five
As shown in fig. 7, in this embodiment, the step S20 specifically includes:
s21, setting in an initial process and forbidding audio and video service;
correspondingly, the step S50 specifically includes:
and S51, starting the audio and video service through an initial process.
In this embodiment, taking a smart phone as an example, the start of the audio/video player MediaPlayer of the smart phone needs to depend on the audio/video service (MediaServer), the MediaServer is the core and soul of the media part in the whole Android, almost all the content related to multimedia playing is put here, including the codec and display output of the audio/video, and the MediaServer is started in the initial process (init process), and in the init.
servicemedia/system/bin/mediaserver
By analyzing the source code of the MediaServer, we can find that the MediaServer needs to start the following services in the starting process: the starting of the audio, media, audio and camera services requires time, which seriously affects the playing time of the start-up ring. For example, it takes about 35 seconds to create the medialayer object when the animation is played, which is unacceptable, and it is hard to imagine that the user cannot hear the response after starting the mobile terminal for a second half minute, which is not favorable for the user experience.
Therefore, in this embodiment, first, the operating system of the mobile terminal is normally started, so that before Android is started, the kernel of the operating system is already started, that is, the sound card can be used, and then the MediaServer can be bypassed, and the PCM interface is directly modulated by pulse code to call the bottom-layer audio/video interface to play the startup ringtone, thereby greatly shortening the time of waiting for the startup ringtone to be played.
However, when playing the start-up ring tone by using the PCM interface, another problem is encountered, that is, once the MediaServer is started, the MediaServer initializes the sound card, and the like, so that the user experience is also affected because there is no sound in the ring tone playing process.
In this embodiment, the implementation manner of suspending starting the MediaServer is to set in the init process, assign the MediaServer to disable, and disable the MediaServer; when the system detects that the start-up ring tone is played completely, the MediaServer is started through the init process, so that the problem that the ring tone can be interrupted is solved, and the user experience is improved.
EXAMPLE six
As shown in fig. 8, in this embodiment, the step S20 specifically includes:
s22, presetting a time period, and starting the audio and video service after delaying the time period, wherein the time period is slightly longer than the complete playing time of the startup ringtone;
correspondingly, the step S40 specifically includes:
and S41, judging whether the playing time length of the startup ring reaches the time period, if so, entering the step S50 and starting the audio and video service, otherwise, returning to the step S30 to continue playing the startup ring.
In this embodiment, the same as the problem to be solved in the fifth embodiment, that is, when the ring tone is played, once the MediaServer is started, it will initialize the sound card, so that there is no sound during the ring tone playing process, and the user experience is also affected, but this embodiment adopts another solution.
In this embodiment, the implementation manner of suspending starting the MediaServer is that a time period is preset in the system according to the complete playing time of the selected startup ring, and the MediaServer is started after delaying the time period, where the time period is slightly greater than the complete playing time of the startup ring, so that the delayed starting of the MediaServer can be implemented without an init process, the implementation manner is simpler, and when the playing time length of the startup ring reaches the time period, the MediaServer is started.
EXAMPLE seven
As shown in fig. 9 and referring to fig. 1, in the present embodiment, a mobile terminal 100 includes a wireless communication unit 110, an a/V (audio/video) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, and a power supply unit 190, and further includes a power-on ringtone playing device 1001 as described in the above embodiment.
In this embodiment, the start-up ring playing device 1001 directly calls the bottom audio interface to play the start-up ring, so as to greatly reduce the time for waiting for playing the start-up ring, and start the MediaServer service after the start-up ring is played, thereby avoiding the influence on the sound card when the MediaServer service is started, and improving the user experience.
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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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 device (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.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A starting ring tone playing device, comprising:
the system starting module is used for starting the mobile terminal operating system;
the audio and video pause module is used for pausing and starting the audio and video service;
the ring playing module is used for calling the bottom layer audio interface and playing the starting ring;
and the audio and video starting module is used for judging whether the playing of the starting ring tone is finished or not, and starting the audio and video service if the playing of the starting ring tone is finished.
2. The apparatus for playing ring tone according to claim 1, wherein the audio/video pause module comprises:
the disabling unit is used for setting in an initial process and disabling the audio and video service;
correspondingly, the audio and video starting module comprises:
and the first audio and video starting unit is used for starting the audio and video service through an initial process.
3. The apparatus for playing ring tone according to claim 1, wherein the audio/video pause module comprises:
the delay unit is used for presetting a time period, starting the audio and video service after delaying the time period, wherein the time period is more than the complete playing time of the starting ring tone;
correspondingly, the audio and video starting module comprises:
and the second audio and video starting unit is used for judging whether the playing time of the starting ring reaches the time period or not, and if so, starting the audio and video service.
4. The device for playing ring tone after power-on according to claim 2 or 3, wherein the working method of the ring tone playing module specifically comprises:
and calling a bottom layer audio interface through a pulse code modulation interface to play the starting ring tone.
5. A mobile terminal, characterized by comprising the power-on ringtone playback device according to any one of claims 1 to 4.
6. A method for playing a startup ring tone is characterized by comprising the following steps:
starting a mobile terminal operating system;
suspending starting of the audio and video service;
calling a bottom layer audio interface and playing a starting ring tone;
and judging whether the playing of the starting ring tone is finished, if so, starting the audio and video service.
7. The method for playing the startup ringtone according to claim 6, wherein the suspending the start of the audio/video service comprises:
setting in an initial process and forbidding audio and video service;
correspondingly, the starting of the audio/video service specifically includes:
and starting the audio and video service through an initial process.
8. The method for playing the startup ringtone according to claim 6, wherein the suspending the start of the audio/video service comprises:
presetting a time period, and starting the audio and video service after delaying the time period, wherein the time period is more than the complete playing time of the starting ring tone;
correspondingly, the step of judging whether the startup ringtone is played completely specifically includes:
and judging whether the playing time length of the startup ring reaches the time period or not.
9. The method according to claim 7 or 8, wherein said invoking the underlying audio interface, playing the boot ring comprises:
and calling a bottom layer audio interface through a pulse code modulation interface to play the starting ring tone.
10. The method as claimed in claim 6, further comprising, after determining whether the turn-on ring is played, the steps of:
and if the starting-up ring is not played completely, continuing to play the starting-up ring.
CN201610378540.2A 2016-05-31 2016-05-31 Startup ringtone playing device and method and mobile terminal Active CN106101393B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610378540.2A CN106101393B (en) 2016-05-31 2016-05-31 Startup ringtone playing device and method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610378540.2A CN106101393B (en) 2016-05-31 2016-05-31 Startup ringtone playing device and method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106101393A CN106101393A (en) 2016-11-09
CN106101393B true CN106101393B (en) 2020-12-04

Family

ID=57229722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610378540.2A Active CN106101393B (en) 2016-05-31 2016-05-31 Startup ringtone playing device and method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106101393B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107333179A (en) * 2017-06-27 2017-11-07 青岛海信电器股份有限公司 A kind of player method and device of video of starting shooting

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102667706A (en) * 2009-06-17 2012-09-12 Lg电子株式会社 Display apparatus capable of providing information to user during booting and driving method thereof
CN104007969A (en) * 2014-05-26 2014-08-27 青岛海信移动通信技术股份有限公司 Booting sound playing method and device
CN104468980A (en) * 2014-11-14 2015-03-25 广东欧珀移动通信有限公司 Play control method and device for start-up animation and tone of terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101588295B1 (en) * 2014-01-28 2016-01-25 현대모비스 주식회사 The System and Method for Booting the Application of the Terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102667706A (en) * 2009-06-17 2012-09-12 Lg电子株式会社 Display apparatus capable of providing information to user during booting and driving method thereof
CN104007969A (en) * 2014-05-26 2014-08-27 青岛海信移动通信技术股份有限公司 Booting sound playing method and device
CN104468980A (en) * 2014-11-14 2015-03-25 广东欧珀移动通信有限公司 Play control method and device for start-up animation and tone of terminal

Also Published As

Publication number Publication date
CN106101393A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
CN105188098B (en) Network switching device and network switching method of mobile terminal
CN106507173B (en) Mobile terminal and split-screen display control method
CN106775391B (en) Interface switching device and method
CN106304037B (en) Virtual SIM card management method and device
CN105577532B (en) Application message processing method and device based on keywords and mobile terminal
CN105740008B (en) Device and method for forbidding chained start of application program
CN106413128B (en) Projection method and mobile terminal
CN109101447B (en) Method and terminal for parallel execution of OTG function and charging function
WO2016155431A1 (en) Terminal, touch operation method therefor and device thereof, and storage medium
CN106488282B (en) Multimedia information output control method and mobile terminal
CN106547439B (en) Method and device for processing message
CN106131285B (en) Call method and terminal
CN107132967B (en) Application starting method and device, storage medium and terminal
CN109711830B (en) Quick display method and device for two-dimension code payment, mobile terminal and storage medium
CN105722246B (en) Network speed superposition device and method
CN105791541B (en) Screenshot method and mobile terminal
CN107197084B (en) Method for projection between mobile terminals and first mobile terminal
CN107027113B (en) SIM card activation method and mobile terminal
CN106682897B (en) Device and method for determining NFC payment
CN105722142A (en) Mobile terminal and multilink-based data streaming method
CN106445825B (en) Debugging method and device
CN106897044B (en) Screen color temperature consistency fault-tolerant method and terminal
CN105744061B (en) Eye print recognition interaction device and method
CN106101393B (en) Startup ringtone playing device and method and mobile terminal
CN107690178B (en) Method for reducing power consumption, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201109

Address after: 242599 under the viaduct of fufu South Road, Jingchuan Town, Jingxian County, Xuancheng City, Anhui Province

Applicant after: Cui Qi

Address before: 518000 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant