CN105373368A - Control method and apparatus for audio play window - Google Patents

Control method and apparatus for audio play window Download PDF

Info

Publication number
CN105373368A
CN105373368A CN201410415936.0A CN201410415936A CN105373368A CN 105373368 A CN105373368 A CN 105373368A CN 201410415936 A CN201410415936 A CN 201410415936A CN 105373368 A CN105373368 A CN 105373368A
Authority
CN
China
Prior art keywords
screen
display area
displayed
shared
audio playing
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.)
Pending
Application number
CN201410415936.0A
Other languages
Chinese (zh)
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.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410415936.0A priority Critical patent/CN105373368A/en
Publication of CN105373368A publication Critical patent/CN105373368A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a control method and apparatus for an audio play window, and belongs to the technical field of internet. The method comprises: in a state of displaying a shared page, determining shared content that currently played audio data belong to; detecting whether a display region that the shared content belongs to in the shared page is displayed currently in a screen; if the display region that the shared content belongs to in the shared page is not displayed currently in the screen, displaying an auxiliary audio play window of the audio data; and if the display region that the shared content belongs to in the shared page is displayed currently in the screen, hiding the auxiliary audio play window of the audio data. With the adoption of the control method and apparatus, the efficiency of audio play control can be improved.

Description

Control method and device for audio playing window
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for controlling an audio playing window.
Background
With the rapid development of the internet, information publishing and communication through social applications (such as open network, microblog, wechat and the like) become one of important ways for people to communicate information. The user can publish information (which can be called shared content) in the social network, and in a shared page (such as a microblog home page, a wechat friend circle page and the like) of the social network, the user can browse the shared content published by the user and other users. In the sharing page, each sharing content has a display area to which the sharing content belongs.
The shared content displayed on the shared page may include various contents such as text, pictures, audio, video, and the like. When the shared content comprises audio data, displaying an audio playing window corresponding to the audio data in a display area to which the shared content belongs. The name, lyric content, control buttons and the like of the audio data being played can be displayed in the audio playing window, so that a user can know the related information of the audio data conveniently and control operations such as playing, pausing, closing and the like can be performed conveniently.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
when the display area to which the audio data belongs is not displayed in the current screen, if a user wants to perform control operation on the audio data, the user needs to scroll the sharing page, so that the display area to which the audio data belongs is scrolled to a visible range, and then the control operation can be performed, thereby lowering the efficiency of controlling audio playing.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for controlling an audio playing window. The technical scheme is as follows:
in a first aspect, a method for controlling an audio playing window is provided, where the method includes:
determining the sharing content to which the currently played audio data belongs in the state of displaying the sharing page;
detecting whether a display area of the shared content in the shared page is displayed currently in a screen;
if the display area of the shared content in the shared page is not displayed in the screen currently, displaying an auxiliary audio playing window of the audio data;
and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data.
In a second aspect, there is provided an apparatus for controlling an audio playback window, the apparatus including:
the determining module is used for determining the sharing content to which the currently played audio data belongs in the state of displaying the sharing page;
the detection module is used for detecting whether a display area of the shared content in the shared page is displayed currently in a screen;
the control module is used for displaying an auxiliary audio playing window of the audio data if the display area of the shared content in the shared page is not displayed currently in the screen; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, under the state of displaying the sharing page, the sharing content to which the currently played audio data belongs is determined; detecting whether a display area of the shared content in the shared page is displayed currently in the screen; if the display area of the shared content in the shared page is not displayed currently in the screen, displaying an auxiliary audio playing window of the audio data; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data. Therefore, even if the display area to which the audio data belongs is not displayed in the sharing page, the audio data can be controlled and operated without scrolling the sharing page, and therefore the efficiency of controlling audio playing can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments 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 to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for controlling an audio playing window according to an embodiment of the present invention;
FIG. 2 is a schematic illustration of an interface display provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interface display provided by an embodiment of the invention;
fig. 4 is a schematic structural diagram of a control device for an audio playing window according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example one
An embodiment of the present invention provides a method for controlling an audio playing window, and as shown in fig. 1, a processing flow of the method may include the following steps:
step 101, in a state of displaying a sharing page, determining sharing content to which currently played audio data belongs.
Step 102, detecting whether a display area of the shared content in the shared page is currently displayed in the screen.
103, if a display area of the shared content in the shared page is not displayed currently in the screen, displaying an auxiliary audio playing window of the audio data; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data.
In the embodiment of the invention, under the state of displaying the sharing page, the sharing content to which the currently played audio data belongs is determined; detecting whether a display area of the shared content in the shared page is displayed currently in the screen; if the display area of the shared content in the shared page is not displayed currently in the screen, displaying an auxiliary audio playing window of the audio data; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data. Therefore, even if the display area to which the audio data belongs is not displayed in the sharing page, the audio data can be controlled and operated without scrolling the sharing page, and therefore the efficiency of controlling audio playing can be improved.
Example two
The embodiment of the invention provides a control method of an audio playing window, and an execution main body of the method can be a terminal with a display function, such as a mobile phone, a tablet computer and the like.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
step 101, in a state of displaying a sharing page, determining sharing content to which currently played audio data belongs.
The sharing page is a page used for displaying information published by users in the social network, such as a microblog home page. Information (such as blog) published in the social network is called shared content, and the shared content may include various contents such as text, pictures, audio, video, and the like.
In implementation, when a user needs to browse information on a social network, the user may open a sharing page of the social network through a browser or an application of the social network. When the sharing page is displayed, if the terminal detects that audio data which are being played exist in the sharing page, the sharing content to which the audio data belong is determined according to the currently played audio data. For example, when a user browses a blog in a microblog home page, music shared in a certain blog is played, and the terminal detects the played music in the microblog according to the played music to determine a specific blog to which the played music belongs.
Step 102, detecting whether a display area of the shared content in the shared page is currently displayed in the screen.
In implementation, based on the shared content to which the currently played audio data belongs determined in the above steps, the terminal may determine a display area to which the shared content belongs. Then, the terminal may further determine whether the display area is displayed in the current screen, and the determination mechanism may be: and judging whether a partial area of the display area is displayed in the current screen or not, or judging whether the whole area of the display area is displayed in the current screen or not. For example, the terminal determines that the blog article to which the music being played belongs is blog article 1, determines a cell (i.e., a display area) to which the blog article 1 belongs, detects a display area currently displayed on the screen, and determines whether a partial area of the display area to which the blog article 1 belongs is displayed on the screen, where the display area to which the blog article belongs may be referred to as a cell.
Optionally, only the audio playing window in the display area may be detected, and accordingly, the specific processing in step 102 may be as follows: and detecting whether an audio playing window of the shared content in the display area of the shared page is displayed currently in the screen.
The audio playing window is a window which is located in the display area and provides a control function for audio data in the shared content, as shown in fig. 2, the control function may include playing, pausing, closing, and the like, and the audio playing window may also display information such as a name of the audio data being played or lyric content.
In implementation, the terminal determines whether an audio playing window of the audio data being played in the display area to which the audio data belongs is currently displayed in the screen by detecting the currently displayed display area of the screen. For example, the terminal determines that the blog article to which the music being played belongs is blog article 1, detects a microblog page currently displayed on the screen, and judges whether an audio playing window of the blog article 1 in the cell to which the blog article belongs is currently displayed on the screen.
Optionally, an execution trigger condition may be set for the detection processing in step 102, and based on the difference of the execution trigger condition, step 102 may have a plurality of specific execution manners, and several possible execution manners are given below:
in the first mode, when it is detected that the sliding touch signal on the screen triggers the sharing page to scroll, it is detected whether a display area of the sharing content belonging to the currently played audio data in the sharing page is currently displayed in the screen.
In implementation, a user's sliding operation on a screen triggers a shared page to scroll, and changes the shared content currently displayed in the screen, so that when the terminal detects that a sliding touch signal on the screen triggers the shared page to scroll, the terminal can be triggered to detect whether a display area to which the audio data being played belongs is currently displayed in the screen. For example, the blog article to which the music being played belongs is blog article 1, when a user browses a microblog page, the user performs an upward sliding operation on the screen by using a finger, the terminal detects a sliding touch signal in an upward direction, and when the sliding touch signal triggers the microblog page to scroll upward, the terminal detects whether a cell to which the blog article 1 belongs is displayed in the screen after the page is scrolled.
And in the second mode, when the preset period is reached, whether a display area of the shared content of the currently played audio data in the shared page is displayed in the screen is detected.
In implementation, the preset period may be set by a technician in an application or a web code of the social network, or may be set by a user in the terminal. If the preset period is set to be 3s, the blog article to which the music being played belongs is blog article 1, and then the terminal detects whether the cell to which the blog article 1 belongs is displayed in the screen at present when the period of 3s is reached.
And in a third mode, when an audio playing instruction is received, whether a display area of the shared content to which the currently played audio data belongs in the shared page is displayed in the screen or not is detected.
In implementation, when an audio playing instruction is received, the terminal can detect whether a display area of the shared content belonging to the audio data in the shared page is currently displayed in the screen while playing the corresponding audio data.
103, if the display area of the shared content in the shared page is not displayed currently in the screen, displaying an auxiliary audio playing window of the audio data; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data.
The auxiliary audio playing window may be a window that is displayed on the upper layer of the shared page and provides a control function for audio data in a playing state in the shared content, the position of the auxiliary audio playing window may be set arbitrarily, and preferably, the auxiliary audio playing window may be located below the status bar, as shown in fig. 3, the control function may include playing, pausing, closing, and the like, and the auxiliary audio playing window may also display information such as a name of the audio data being played or lyric content.
In implementation, if the display area to which the audio data being played belongs is not currently displayed in the screen, an auxiliary audio playing window for the audio data may be displayed below the status bar, as shown in fig. 3, so that the user may perform operation control on the audio data through the auxiliary audio playing window even if the display area to which the audio data being played belongs is not currently displayed in the screen. If the terminal determines that the display area of the audio data being played belongs to the display area currently displayed in the screen after detection, the auxiliary audio playing window of the audio data displayed below the status bar is hidden, as shown in fig. 2. The user can play, pause, close and other control operations on the audio data through the audio playing window in the display area to which the audio data belongs, so that the situation that the auxiliary audio playing window shields the shared page is avoided. For example, after detection, the terminal determines that the blog article to which the music being played belongs is blog article 1, and the cell to which the blog article 1 belongs is currently displayed on the screen, the terminal hides an auxiliary audio playing window in the microblog page, so that the current microblog page is not blocked.
Optionally, for the case of detecting the audio playing window in the display area in step 102, correspondingly, the processing of step 103 may be as follows: if the audio playing window in the display area is not displayed in the screen at present, displaying an auxiliary audio playing window of the audio data; and if the audio playing window in the display area is currently displayed in the screen, hiding the auxiliary audio playing window of the audio data.
In implementation, after the terminal detects that the audio playing window in the display area to which the audio data being played belongs is not currently displayed in the screen, the auxiliary audio playing window of the audio data can be displayed below the status bar. If the audio playing window in the display area where the audio data which is being played belongs is determined to be currently displayed in the screen, the auxiliary audio playing window of the audio data displayed below the status bar is hidden by the terminal, so that the shared page cannot be shielded by the auxiliary audio playing window. For example, after detection, the terminal determines that the blog article to which the music being played belongs is blog article 1, and the audio playing window in the cell to which the blog article 1 belongs is currently displayed on the screen, the terminal hides the auxiliary audio playing window in the microblog page, so that the current microblog page is not blocked.
Optionally, when the auxiliary audio playing window is in a hidden state, the user may trigger the auxiliary audio playing window to be displayed through a control button, and the specific processing may be as follows: when the auxiliary audio playing window is in a hidden state, displaying a control button; and when the click signal corresponding to the control button is detected, displaying an auxiliary audio playing window.
Wherein the control button may be a button for triggering display of the secondary audio playback window.
In implementation, when the terminal detects that the auxiliary audio playing window enters the hidden state, a control button may be displayed in the shared page, where the control button is located at a fixed position in a display area to which the audio data belongs, or hovers over the shared page. After the user clicks the control button, the terminal detects a click signal corresponding to the control button and resumes display of the auxiliary audio playing window below the status bar.
Alternatively, when the auxiliary audio playback window is in the display state, the following processing may be performed: and when the auxiliary audio playing window is in a display state, setting the display mode of the auxiliary audio playing window to be a semitransparent display mode.
In implementation, when the auxiliary audio playing window is in a display state, part of the shared content can be shielded, in order to reduce the influence of the auxiliary audio playing window on the user browsing the shared content to the maximum extent, a semi-transparent display mode can be adopted for the auxiliary audio playing window, and the transparency can be set by the user at will according to requirements.
In the embodiment of the invention, under the state of displaying the sharing page, the sharing content to which the currently played audio data belongs is determined; detecting whether a display area of the shared content in the shared page is displayed currently in the screen; if the display area of the shared content in the shared page is not displayed currently in the screen, displaying an auxiliary audio playing window of the audio data; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data. Therefore, even if the display area to which the audio data belongs is not displayed in the sharing page, the audio data can be controlled and operated without scrolling the sharing page, and therefore the efficiency of controlling audio playing can be improved.
EXAMPLE III
Based on the same technical concept, an embodiment of the present invention further provides a control device for an audio playing window, as shown in fig. 4, the device includes:
the determining module 410 is configured to determine, in a state where the shared page is displayed, shared content to which currently played audio data belongs;
a detecting module 420, configured to detect whether a display area of the shared content in the shared page is currently displayed in a screen;
the control module 430 is configured to display an auxiliary audio playing window of the audio data if a display area of the shared content in the shared page is not currently displayed in the screen; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data.
Optionally, the detecting module 420 is configured to detect whether an audio playing window in a display area of the shared content in the shared page is currently displayed in the screen;
a control module 430 to: if the audio playing window in the display area is not displayed in the screen at present, displaying an auxiliary audio playing window of the audio data; and if the audio playing window in the display area is currently displayed in the screen, hiding the auxiliary audio playing window of the audio data.
Optionally, the detecting module 420 is configured to:
when a sliding touch signal on a screen is detected to trigger a sharing page to scroll, detecting whether a display area of the sharing content in the sharing page is displayed currently or not; or,
when a preset period is reached, detecting whether a display area of the shared content in the shared page is displayed currently; or,
when an audio playing instruction is received, whether a display area of the shared content in the shared page is displayed currently is detected.
Optionally, the apparatus further comprises:
and the setting module is used for setting the display mode of the auxiliary audio playing window to be a semitransparent display mode when the auxiliary audio playing window is in a display state.
Optionally, the control module 430 is further configured to:
when the auxiliary audio playing window is in a hidden state, displaying a control button;
and when the click signal of the corresponding control button is detected, displaying the auxiliary audio playing window.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the embodiment of the invention, under the state of displaying the sharing page, the sharing content to which the currently played audio data belongs is determined; detecting whether a display area of the shared content in the shared page is displayed currently in the screen; if the display area of the shared content in the shared page is not displayed currently in the screen, displaying an auxiliary audio playing window of the audio data; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data. Therefore, even if the display area to which the audio data belongs is not displayed in the sharing page, the audio data can be controlled and operated without scrolling the sharing page, and therefore the efficiency of controlling audio playing can be improved.
It should be noted that: in the control device for an audio playing window provided in the foregoing embodiment, when the audio playing window is controlled, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the control device of the audio playing window and the control method embodiment of the audio playing window provided in the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Example four
Fig. 5 is a schematic diagram illustrating a structure of a terminal according to an exemplary embodiment. The terminal may be configured to implement the control method for the audio playing window provided in the above embodiment.
The terminal 400 may include RF (radio frequency) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a WiFi (wireless fidelity) module 170, a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information from a base station and then sends the received downlink information to the one or more processors 180 for processing; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuitry 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (low noise amplifier), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to GSM (global system for mobile communications), GPRS (general packet radio service), CDMA (code division multiple access), WCDMA (wideband code division multiple access), LTE (long term evolution), email, SMS (short messaging service), etc.
The memory 120 may be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by operating the software programs and modules stored in the memory 120. The memory 120 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 terminal 400, and the like. Further, the memory 120 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. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 with access to the memory 120.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means 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 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphical user interfaces of the terminal 400, which may be made up of graphics, text, icons, video, and any combination thereof. The display unit 140 may include a display panel 141, and optionally, the display panel 141 may be configured in the form of an LCD (liquid crystal display), an OLED (organic light-emitting diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in FIG. 5, touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The terminal 400 can also include at least one sensor 150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 141 and/or a backlight when the terminal 400 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured in the terminal 400, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 may provide an audio interface between a user and terminal 400. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electric signal, converts the electric signal into audio data after being received by the audio circuit 160, and then outputs the audio data to the processor 180 for processing, and then to the RF circuit 110 to be transmitted to, for example, another terminal, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may also include an earbud jack to provide communication of a peripheral headset with the terminal 400.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 400 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 400, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the terminal 400, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 400 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby performing overall monitoring of the mobile phone. Optionally, processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The terminal 400 further includes a power supply 190 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 180 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the terminal 400 may further include a camera, a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the terminal 400 is a touch screen display, and the terminal 400 further includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
determining the sharing content to which the currently played audio data belongs in the state of displaying the sharing page;
detecting whether a display area of the shared content in the shared page is displayed currently in the screen;
if the display area of the shared content in the shared page is not displayed in the screen currently, displaying an auxiliary audio playing window of the audio data;
and if the display area of the shared content in the shared page is currently displayed in the screen, hiding the auxiliary audio playing window of the audio data.
Optionally, detecting whether a display area to which the shared content belongs in the shared page is currently displayed in the screen includes:
detecting whether an audio playing window of the shared content in a display area of the shared page is displayed currently in a screen;
if the display area of the shared content in the shared page is not displayed currently in the screen, displaying an auxiliary audio playing window of the audio data, including:
if the audio playing window in the display area is not displayed in the screen at present, displaying an auxiliary audio playing window of the audio data;
if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data, including:
and if the audio playing window in the display area is currently displayed in the screen, hiding the auxiliary audio playing window of the audio data.
Optionally, detecting whether a display area to which the shared content belongs in the shared page is currently displayed in the screen includes:
when a sliding touch signal on a screen is detected to trigger a sharing page to scroll, detecting whether a display area of the sharing content in the sharing page is displayed currently or not; or,
when a preset period is reached, detecting whether a display area of the shared content in the shared page is displayed currently; or,
when an audio playing instruction is received, whether a display area of the shared content in the shared page is displayed in the screen currently is detected.
Optionally, the method further comprises:
and when the auxiliary audio playing window is in a display state, setting the display mode of the auxiliary audio playing window to be a semitransparent display mode.
Optionally, the method further comprises:
when the auxiliary audio playing window is in a hidden state, displaying a control button;
and when the click signal of the corresponding control button is detected, displaying the auxiliary audio playing window.
In the embodiment of the invention, under the state of displaying the sharing page, the sharing content to which the currently played audio data belongs is determined; detecting whether a display area of the shared content in the shared page is displayed currently in the screen; if the display area of the shared content in the shared page is not displayed currently in the screen, displaying an auxiliary audio playing window of the audio data; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data. Therefore, even if the display area to which the audio data belongs is not displayed in the sharing page, the audio data can be controlled and operated without scrolling the sharing page, and therefore the efficiency of controlling audio playing can be improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method for controlling an audio playback window, the method comprising:
determining the sharing content to which the currently played audio data belongs in the state of displaying the sharing page;
detecting whether a display area of the shared content in the shared page is displayed currently in a screen;
if the display area of the shared content in the shared page is not displayed in the screen currently, displaying an auxiliary audio playing window of the audio data;
and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data.
2. The method according to claim 1, wherein the detecting whether a display area of the shared content in the shared page is currently displayed in the screen comprises:
detecting whether an audio playing window of the shared content in a display area of the shared page is displayed currently in a screen;
if the display area of the shared content in the shared page is not currently displayed in the screen, displaying an auxiliary audio playing window of the audio data, including:
if the audio playing window in the display area is not displayed in the screen at present, displaying an auxiliary audio playing window of the audio data;
if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data, including:
and if the audio playing window in the display area is currently displayed in the screen, hiding the auxiliary audio playing window of the audio data.
3. The method according to claim 1, wherein the detecting whether a display area of the shared content in the shared page is currently displayed in the screen comprises:
when the fact that the sharing page is triggered to roll by a sliding touch signal on the screen is detected, whether a display area of the sharing content in the sharing page is displayed in the screen at present is detected; or,
when a preset period is reached, detecting whether a display area of the shared content in the shared page is displayed currently or not; or,
when an audio playing instruction is received, whether a display area of the shared content in the shared page is displayed in a screen currently is detected.
4. The method of claim 1, further comprising:
and when the auxiliary audio playing window is in a display state, setting the display mode of the auxiliary audio playing window to be a semitransparent display mode.
5. The method of claim 1, further comprising:
when the auxiliary audio playing window is in a hidden state, displaying a control button;
and when a click signal corresponding to the control button is detected, displaying the auxiliary audio playing window.
6. An apparatus for controlling an audio playback window, the apparatus comprising:
the determining module is used for determining the sharing content to which the currently played audio data belongs in the state of displaying the sharing page;
the detection module is used for detecting whether a display area of the shared content in the shared page is displayed currently in a screen;
the control module is used for displaying an auxiliary audio playing window of the audio data if the display area of the shared content in the shared page is not displayed currently in the screen; and if the display area of the shared content in the shared page is currently displayed in the screen, hiding an auxiliary audio playing window of the audio data.
7. The apparatus of claim 6, wherein the detection module is configured to: detecting whether an audio playing window of the shared content in a display area of the shared page is displayed currently in a screen;
the control module is configured to: if the audio playing window in the display area is not displayed in the screen at present, displaying an auxiliary audio playing window of the audio data; and if the audio playing window in the display area is currently displayed in the screen, hiding the auxiliary audio playing window of the audio data.
8. The apparatus of claim 6, wherein the detection module is configured to:
when the fact that the sharing page is triggered to roll by a sliding touch signal on the screen is detected, whether a display area of the sharing content in the sharing page is displayed in the screen at present is detected; or,
when a preset period is reached, detecting whether a display area of the shared content in the shared page is displayed currently or not; or,
when an audio playing instruction is received, whether a display area of the shared content in the shared page is displayed in a screen currently is detected.
9. The apparatus of claim 6, further comprising:
and the setting module is used for setting the display mode of the auxiliary audio playing window to be a semitransparent display mode when the auxiliary audio playing window is in a display state.
10. The apparatus of claim 6, wherein the control module is further configured to:
when the auxiliary audio playing window is in a hidden state, displaying a control button;
and when a click signal corresponding to the control button is detected, displaying the auxiliary audio playing window.
CN201410415936.0A 2014-08-21 2014-08-21 Control method and apparatus for audio play window Pending CN105373368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410415936.0A CN105373368A (en) 2014-08-21 2014-08-21 Control method and apparatus for audio play window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410415936.0A CN105373368A (en) 2014-08-21 2014-08-21 Control method and apparatus for audio play window

Publications (1)

Publication Number Publication Date
CN105373368A true CN105373368A (en) 2016-03-02

Family

ID=55375597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410415936.0A Pending CN105373368A (en) 2014-08-21 2014-08-21 Control method and apparatus for audio play window

Country Status (1)

Country Link
CN (1) CN105373368A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102968509A (en) * 2012-12-17 2013-03-13 腾讯科技(深圳)有限公司 Method and device for multimedia playing in browser
CN103151057A (en) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 Music playing method and third party application
CN103179146A (en) * 2011-12-20 2013-06-26 腾讯科技(深圳)有限公司 Sharing method and relevant system for application program playing contents
CN103986962A (en) * 2014-06-03 2014-08-13 合一网络技术(北京)有限公司 Method and system for displaying suspended playing window

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103151057A (en) * 2011-12-07 2013-06-12 腾讯科技(深圳)有限公司 Music playing method and third party application
CN103179146A (en) * 2011-12-20 2013-06-26 腾讯科技(深圳)有限公司 Sharing method and relevant system for application program playing contents
CN102968509A (en) * 2012-12-17 2013-03-13 腾讯科技(深圳)有限公司 Method and device for multimedia playing in browser
CN103986962A (en) * 2014-06-03 2014-08-13 合一网络技术(北京)有限公司 Method and system for displaying suspended playing window

Similar Documents

Publication Publication Date Title
CN106993227B (en) Method and device for information display
CN105022552B (en) A kind of method and apparatus for showing messaging list
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
WO2019015404A1 (en) Method and apparatus for switching applications in split screen mode, and related device thereof
RU2632153C2 (en) Method, device and terminal for displaying virtual keyboard
EP3647926A1 (en) Mobile terminal and split screen control method thereof, and computer readable storage medium
CN103389863B (en) A kind of display control method and device
TWI520043B (en) Method, device and moving terminal for examining messages
US20180348980A1 (en) Method and apparatus for switching screen interface and terminal
CN104142779B (en) user interface control method, device and terminal
WO2016119580A1 (en) Method, device and terminal for starting voice input function of terminal
CN105975190B (en) Graphical interface processing method, device and system
CN106375179B (en) Method and device for displaying instant communication message
CN105302452B (en) Operation method and device based on gesture interaction
CN104571979B (en) A kind of method and apparatus for realizing split view
CN104915091B (en) A kind of method and apparatus for the prompt information that Shows Status Bar
CN109407949B (en) Display control method and terminal
WO2013182068A1 (en) Page display method, device and terminal
CN106371749A (en) Method and device for terminal control
CN106951143B (en) Method and device for hiding application icons
TW201541337A (en) Method, device and system for displaying messages in mobile terminal
CN107479799B (en) Method and device for displaying window
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN107104930A (en) It is a kind of that the methods, devices and systems for checking authority are set
CN107423050A (en) A kind of method and apparatus for penetrating operation

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20160302

RJ01 Rejection of invention patent application after publication