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 playing a live video. The technical scheme is as follows:
in a first aspect, a method for playing a live video is provided, where the method includes:
the method comprises the steps that a live video of a main-wheat main-playing account is played in a first live-playing window, and a live video of an auxiliary-wheat main-playing account is played in a second live-playing window, wherein the auxiliary-wheat main-playing account is a main-playing account connected with the main-wheat main-playing account;
and when a window adjusting instruction corresponding to the second live broadcast window is received, adjusting the size of the second live broadcast window, and playing the live broadcast video of the auxiliary main broadcast account in the adjusted second live broadcast window.
Optionally, when a window adjustment instruction corresponding to the second live broadcast window is received, adjusting the size of the second live broadcast window, and playing the live broadcast video of the secondary main broadcast account in the adjusted second live broadcast window includes:
when a window increasing instruction corresponding to the second live broadcast window is received, increasing the size of the second live broadcast window, and playing a live broadcast video of the auxiliary microphone main broadcast account in the increased second live broadcast window; or,
and when a window reduction instruction corresponding to the second live broadcast window is received, reducing the size of the second live broadcast window, and playing the live broadcast video of the main secondary microphone broadcast account in the reduced second live broadcast window.
Optionally, when a window adjustment instruction corresponding to the second live broadcast window is received, adjusting the size of the second live broadcast window, and playing the live broadcast video of the secondary main broadcast account in the adjusted second live broadcast window includes:
when a touch signal in the second live broadcast window is detected, detecting the duration of the touch signal;
if the duration reaches a first preset duration threshold and does not reach a second preset duration threshold, increasing the size of the second live broadcast window, and playing a live broadcast video of the vice-microphone main broadcast account in the increased second live broadcast window;
and if the duration reaches a second preset duration threshold, reducing the size of the second live broadcast window, and playing the live broadcast video of the vice-microphone main broadcast account in the reduced second live broadcast window.
Optionally, when a window adjustment instruction corresponding to the second live broadcast window is received, adjusting the size of the second live broadcast window includes:
when a touch signal in the second live broadcast window is detected, detecting the duration of the touch signal;
if the duration reaches a first preset duration threshold, displaying an adjustment diagram;
and when a trigger instruction of the adjusting graphic representation is received, adjusting the size of the second live broadcast window.
Optionally, the method further includes:
and when a window switching instruction is received, playing the live video of the main secondary microphone account in the first live broadcast window, and playing the live video of the main microphone account in the second live broadcast window.
Therefore, the user can conveniently switch the first live broadcast window and the second live broadcast window, so that the live broadcast video of the vice-microphone main broadcast account can be better watched, and the watching effect can be enhanced.
Optionally, when a window switching instruction is received, playing a live video of the secondary-microphone main broadcast account in the first live broadcast window, and playing a live video of the main-microphone main broadcast account in the second live broadcast window, where the method includes:
when a touch signal in the second live broadcast window is detected, detecting the duration of the touch signal;
and if the duration does not reach a first preset duration threshold, playing the live video of the auxiliary main wheat account in the first live broadcasting window, and playing the live video of the main wheat account in the second live broadcasting window.
Optionally, if the duration does not reach a first preset duration threshold, playing a live video of the main account of the secondary wheat in the first live broadcast window, and playing a live video of the main account of the main wheat in the second live broadcast window, including:
if the duration does not reach a first preset duration threshold, displaying a switching diagram;
and when a trigger instruction for switching the graphic representation is received, playing the live video of the main broadcasting account of the auxiliary microphone in the first live broadcasting window, and playing the live video of the main broadcasting account of the main microphone in the second live broadcasting window.
Optionally, the method further includes:
and when detecting that the live video of the auxiliary main broadcasting account played in the first live broadcasting window disappears, playing the live video of the main broadcasting account in the first live broadcasting window, and canceling the display of the second live broadcasting window.
Therefore, when the auxiliary main broadcasting account downloads the main broadcasting account, the terminal can play the live video of the main broadcasting account in the first direct broadcasting window with larger size, and the watching effect can be enhanced.
Optionally, the second live window is located in the first live window.
In a second aspect, an apparatus for playing live video is provided, the apparatus comprising:
the playing module is used for playing a live video of a main wheat main broadcasting account in a first live broadcasting window and playing a live video of an auxiliary wheat main broadcasting account in a second live broadcasting window, wherein the auxiliary wheat main broadcasting account is a main broadcasting account for connecting with the main wheat main broadcasting account;
and the adjusting module is used for adjusting the size of the second live broadcast window when receiving a window adjusting instruction corresponding to the second live broadcast window, and playing the live broadcast video of the auxiliary main broadcasting account in the adjusted second live broadcast window.
Optionally, the adjusting module is configured to:
when a window increasing instruction corresponding to the second live broadcast window is received, increasing the size of the second live broadcast window, and playing a live broadcast video of the auxiliary microphone main broadcast account in the increased second live broadcast window; or,
and when a window reduction instruction corresponding to the second live broadcast window is received, reducing the size of the second live broadcast window, and playing the live broadcast video of the main secondary microphone broadcast account in the reduced second live broadcast window.
Optionally, the adjusting module includes:
the first detection submodule is used for detecting the duration of the touch signal when the touch signal in the second live broadcast window is detected;
the display sub-module is used for displaying an adjusting diagram if the duration reaches a first preset duration threshold;
and the adjusting submodule is used for adjusting the size of the second live broadcast window when the triggering instruction of the adjusting graphic diagram is received.
Optionally, the apparatus further comprises:
and the switching module is used for playing the live video of the main broadcasting account of the auxiliary microphone in the first live broadcasting window and playing the live video of the main broadcasting account of the main microphone in the second live broadcasting window when a window switching instruction is received.
Optionally, the switching module includes:
the second detection submodule is used for detecting the duration of the touch signal when the touch signal in the second live broadcast window is detected;
and the switching submodule is used for playing the live video of the main wheat broadcast account in the first live broadcast window and playing the live video of the main wheat broadcast account in the second live broadcast window if the duration does not reach a first preset duration threshold.
Optionally, the switching sub-module includes:
the display unit is used for displaying a switching diagram if the duration does not reach a first preset duration threshold;
and the switching unit is used for playing the live video of the main wheat broadcast account in the first live broadcast window and playing the live video of the main wheat broadcast account in the second live broadcast window when the triggering instruction of the switching diagram is received.
Optionally, the switching module is further configured to:
and when detecting that the live video of the auxiliary main broadcasting account played in the first live broadcasting window disappears, playing the live video of the main broadcasting account in the first live broadcasting window, and canceling the display of the second live broadcasting window.
Optionally, the second live window is located in the first live window.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the terminal can play the live video of the main-microphone main-broadcast account in the first live-broadcast window, and play the live video of the sub-microphone main-broadcast account in the microphone connecting state with the main-microphone main-broadcast account in the second live-broadcast window, when a user wants to adjust the size of the second live-broadcast window, the terminal can be triggered to receive the window adjusting instruction corresponding to the second live-broadcast window through operation, and then the terminal can adjust (increase or decrease) the size of the second live-broadcast window and play the live video of the sub-microphone main-broadcast account in the adjusted second live-broadcast window. Therefore, when the user wants to watch the live video of the vice-microphone main broadcasting account, the size of the second live broadcasting window can be increased through the operation trigger terminal, and then the user can watch the live video through the larger second live broadcasting window, so that the watching effect can be enhanced.
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.
The embodiment of the invention provides a method for playing a live video, wherein an execution main body of the method is a terminal. The terminal can be a mobile terminal such as a mobile phone and a tablet personal computer, and can also be a fixed terminal such as a personal computer, and a live broadcast application program can be installed in the terminal. The terminal can be provided with a processor and a display component, the processor can be used for adjusting the size of the live broadcast window, the display component can be used for displaying the live broadcast window and the live broadcast video, and the display component can be a screen and a touch screen. A memory may also be provided which may be used to store data required and generated during the processes described below.
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, playing a live video of a main wheat main broadcasting account in a first live broadcasting window, and playing a live video of a sub-wheat main broadcasting account in a second live broadcasting window, wherein the sub-wheat main broadcasting account is a main broadcasting account for connecting with the main wheat main broadcasting account.
In implementation, in order to increase the interactivity of live broadcasting, a plurality of anchor broadcasters can carry out live broadcasting with wheat, so that login terminals of all accounts in the live broadcasting room can simultaneously display a plurality of live broadcasting windows, and each live broadcasting window can respectively play live broadcasting videos of different anchor broadcasters accounts. Specifically, the terminal may play a live video of a main-microphone account in a first live-microphone window, and play a live video of a sub-microphone main-microphone account in a second live-microphone window, where the terminal may be any one of login terminals of all accounts in the live-microphone room (that is, the terminal may be a login terminal of the main-microphone account, a login terminal of the sub-microphone main-microphone account, or a login terminal of an audience account in the live-microphone room), the main-microphone account may be a main-microphone account belonging to the live-microphone room, the sub-microphone main-microphone account may be a main-microphone account in a microphone connecting state with the main-microphone account, that is, a main-microphone account that is simultaneously accessed with the main-microphone account in the live-microphone room of the main-microphone account, or the main-microphone account and the sub-microphone main-microphone account are connected to each other in the live-microphone room. In addition, the sub-wheat live account may be any one of the main account linked to the main wheat live account.
Optionally, the second live broadcast window is located in the first live broadcast window, where the second live broadcast window may be at a preset position in the first live broadcast window, for example, may be at a lower right corner of the first live broadcast window, as shown in fig. 2. In addition, the second live window may also be located next to the first live window.
And step 102, when a window adjusting instruction corresponding to a second live broadcast window is received, adjusting the size of the second live broadcast window, and playing a live broadcast video of the main secondary microphone broadcast account in the adjusted second live broadcast window.
In implementation, a user (watching, a main wheat anchor or an auxiliary wheat anchor) can adjust the size of the second live broadcast window according to the requirement of the user in the process of watching the live broadcast video of each anchor account. Specifically, a user can receive a window adjusting instruction corresponding to the second live broadcast window through operating the trigger terminal, and then the terminal can adjust the size of the second live broadcast window based on the received window adjusting instruction corresponding to the second live broadcast window, and can play the live broadcast video of the vice-microphone main broadcast account in the adjusted second live broadcast window. Specifically, the terminal may store position information of the second live broadcast window in advance, where the position information may be used to represent a display position of the second live broadcast window, and the position information may be coordinate information of a vertex of the second live broadcast window. For example, when a drag instruction corresponding to a side or a vertex of the second live window is received, the terminal may adjust the size of the second live window based on the drag instruction.
Optionally, the window adjusting instruction may be a window increasing instruction or a window decreasing instruction, and accordingly, the processing procedure in step 102 may be as follows: when a window increasing instruction corresponding to a second live broadcast window is received, increasing the size of the second live broadcast window, and playing a live broadcast video of the main broadcast account of the auxiliary wheat in the increased second live broadcast window; or when a window reduction instruction corresponding to the second live broadcast window is received, reducing the size of the second live broadcast window, and playing the live broadcast video of the main broadcast account of the auxiliary microphone in the reduced second live broadcast window.
In implementation, a user can receive a window increasing instruction corresponding to the second live broadcast window through operating the trigger terminal, and then the terminal can increase the size of the second live broadcast window based on the received window increasing instruction corresponding to the second live broadcast window, and can play a live broadcast video of the vice-microphone main broadcast account in the increased second live broadcast window. Specifically, when the terminal receives a dragging instruction corresponding to a side or a vertex of the second live broadcast window in the direction outside the window, the terminal may increase the size of the second live broadcast window based on the dragging instruction in the direction outside the window, as shown in fig. 3 (a). In addition, the user can also receive a window reduction instruction corresponding to the second live broadcast window through operating the trigger terminal, and then the terminal can reduce the size of the second live broadcast window based on the received window reduction instruction corresponding to the second live broadcast window, and can play the live broadcast video of the vice-microphone main broadcast account in the reduced second live broadcast window. Specifically, when the terminal receives a dragging instruction corresponding to a certain side or a certain vertex of the second live broadcast window in the window inward direction, the terminal may perform reduction processing on the size of the second live broadcast window based on the dragging instruction in the window inward direction, as shown in fig. 3 (b).
Optionally, the window adjustment instruction may be a duration of the touch signal in the second live broadcast window, and accordingly, the processing procedure of step 102 may be as follows: when a touch signal in a second live broadcast window is detected, detecting the duration of the touch signal; if the duration reaches a first preset duration threshold and does not reach a second preset duration threshold, increasing the size of a second live broadcast window, and playing a live broadcast video of the main secondary-microphone account in the increased second live broadcast window; and if the duration reaches a second preset duration threshold, reducing the size of the second live broadcast window, and playing the live broadcast video of the main broadcast account of the auxiliary wheat in the reduced second live broadcast window.
The duration may be a time period from the detection of the touch signal to the time when the touch signal disappears.
In implementation, the terminal can be a terminal of a touch screen, when a user wants to adjust the second live broadcast window, the user can press the second live broadcast window, at this time, the terminal will detect a touch signal in the second live broadcast window, and further, the duration of the touch signal from detection to disappearance can be detected. After the duration is obtained, the duration can be compared with a first preset duration threshold and a second duration threshold, wherein the second preset duration threshold can be larger than the first preset duration threshold, if the duration reaches the first preset duration threshold and does not reach the second preset duration threshold, the size of a second live broadcast window can be increased based on a preset increase proportion, and a live broadcast video of the main broadcast account of the vice wheat is played in the increased second live broadcast window. If the duration reaches a second preset duration threshold, the size of the second live broadcast window can be reduced based on a preset reduction ratio, and the live broadcast video of the vice-microphone main broadcast account is played in the reduced second live broadcast window.
Optionally, the window adjustment instruction may also be a trigger instruction for adjusting the diagram, and accordingly, the processing procedure of step 102 may be as follows: when a touch signal in a second live broadcast window is detected, detecting the duration of the touch signal; if the duration reaches a first preset duration threshold, displaying an adjustment diagram; and when a trigger instruction for adjusting the graphic representation is received, adjusting the size of the second live broadcast window.
In implementation, the terminal can be a terminal of a touch screen, when a user wants to adjust the second live broadcast window, the user can press the second live broadcast window, at this time, the terminal will detect a touch signal in the second live broadcast window, and further, the duration of the touch signal from detection to disappearance can be detected. After the duration is obtained, the duration may be compared with a first preset duration threshold, and if the duration reaches the first preset duration threshold, the terminal may set the second live broadcast window to be in an editable state, and may further display an adjustment diagram, as shown in fig. 4, where the adjustment diagram may be used for a user to adjust the second live broadcast window. The user may operate the displayed adjustment icon as needed (for example, drag the adjustment icon in the direction outside the window or drag the adjustment icon in the direction inside the window), and accordingly, the terminal may receive a trigger instruction of the adjustment icon (that is, a command of dragging the adjustment icon in the direction outside the window or a command of dragging the adjustment icon in the direction inside the window), and further, may adjust the size of the second live broadcast window according to the received trigger instruction of the adjustment icon. In addition, when detecting that the trigger instruction of the adjusting instruction disappears, the terminal can stop adjusting the size of the second live broadcast window, and when the disappearing time length reaches the preset time length threshold value, the display of the adjusting graphic diagram is cancelled. In addition, when the terminal adjusts the second live broadcast window, the length-width ratio of the second live broadcast window can be always adjusted.
Optionally, the user may further switch between the first live broadcast window and the second live broadcast window, and correspondingly, the processing procedure may be as follows: and when a window switching instruction is received, playing the live video of the main wheat broadcast account in the first live broadcast window, and playing the live video of the main wheat broadcast account in the second live broadcast window.
In implementation, when a user wants to switch the live broadcast windows corresponding to the main broadcast account and the sub-broadcast account, the terminal can be triggered to receive a window switching instruction through corresponding operation, so that the terminal can play the live broadcast video of the sub-broadcast account in the first live broadcast window and play the live broadcast video of the main broadcast account in the second live broadcast window.
Optionally, the window switching instruction may be duration of the touch signal in the second live broadcast window, and accordingly, the processing procedure may be as follows: when a touch signal in a second live broadcast window is detected, detecting the duration of the touch signal; and if the duration does not reach a first preset duration threshold, playing the live video of the main broadcasting account of the auxiliary wheat in a first live broadcasting window, and playing the live video of the main broadcasting account of the main wheat in a second live broadcasting window.
In implementation, the terminal can be a terminal of a touch screen, when a user wants to adjust the second live broadcast window, the user can press the second live broadcast window, at this time, the terminal will detect a touch signal in the second live broadcast window, and further, the duration of the touch signal from detection to disappearance can be detected. After the duration is obtained, the duration can be compared with a first preset duration threshold, and if the duration does not reach the first preset duration threshold (in this case, the user clicks the second live broadcast window), the terminal can play the live broadcast video of the vice-microphone main broadcast account in the first live broadcast window and play the live broadcast video of the main-microphone main broadcast account in the second live broadcast window.
Optionally, when the duration does not reach the first preset duration threshold, the terminal may further display a switching diagram, and correspondingly, the processing procedure may be as follows: if the duration does not reach a first preset duration threshold, displaying a switching diagram; and when a trigger instruction for switching the graphic representation is received, playing the live video of the main account of the auxiliary wheat in the first live broadcasting window, and playing the live video of the main account of the main wheat in the second live broadcasting window.
In implementation, if the duration of the touch signal does not reach the first preset duration threshold, the terminal may display a switch icon, as shown in fig. 5, where the switch icon may be a switch icon, or may be a switch option. When a user wants to switch the window, the user can click the switching diagram, at the moment, the terminal receives a trigger instruction of switching the diagram, and then the terminal can play the live video of the vice-microphone main-broadcast account in the first live-broadcast window and play the live video of the main-microphone main-broadcast account in the second live-broadcast window.
Optionally, when the live video of the sub-main-broadcast account played in the first live-broadcast window disappears, the terminal may play the live video of the main-broadcast account in the first live-broadcast window, and accordingly, the processing procedure may be as follows: and when detecting that the live video of the auxiliary main broadcasting account played in the first live broadcasting window disappears, playing the live video of the main broadcasting account in the first live broadcasting window, and canceling the display of the second live broadcasting window.
In implementation, in the process of connecting the auxiliary-wheat main broadcasting account with the main-wheat main broadcasting account, the auxiliary-wheat main broadcasting account may interrupt the connecting of the wheat in the connecting process (for example, the auxiliary-wheat main broadcasting account downloads the wheat), at this time, the terminal detects that the live video of the auxiliary-wheat main broadcasting account played in the first live broadcasting window disappears, and then, the terminal can play the live video of the main-wheat main broadcasting account in the first live broadcasting window and cancel the display of the second live broadcasting window. Or, when the wheat drop notification of the secondary wheat primary account is detected, the terminal can play the live video of the primary wheat primary account in the first live window and cancel the display of the second live window. In addition, the terminal can also play the live video of the main-wheat main-playing account in the first live-playing window when the live video of the sub-wheat main-playing account is not detected within the preset time length after the live video of the sub-wheat main-playing account is detected to disappear, namely when the live video of the sub-wheat main-playing account is not detected within the preset time length after the live video of the sub-wheat main-playing account is detected to disappear, play the live video of the main-wheat main-playing account in the first live-playing window, and cancel the display of the second live-playing window.
In addition, the terminal may support the above-mentioned specific processes of window adjustment and window switching at the same time.
In the embodiment of the invention, the terminal can play the live video of the main-microphone main-broadcast account in the first live-broadcast window, and play the live video of the sub-microphone main-broadcast account in the microphone connecting state with the main-microphone main-broadcast account in the second live-broadcast window, when a user wants to adjust the size of the second live-broadcast window, the terminal can be triggered to receive the window adjusting instruction corresponding to the second live-broadcast window through operation, and then the terminal can adjust (increase or decrease) the size of the second live-broadcast window and play the live video of the sub-microphone main-broadcast account in the adjusted second live-broadcast window. Therefore, when the user wants to watch the live video of the vice-microphone main broadcasting account, the size of the second live broadcasting window can be increased through the operation trigger terminal, and then the user can watch the live video through the larger second live broadcasting window, so that the watching effect can be enhanced.
Based on the same technical concept, an embodiment of the present invention further provides a device for playing a live video, as shown in fig. 6, the device includes:
the playing module 610 is configured to play a live video of a main-wheat main-playing account in a first live-playing window, and play a live video of a sub-wheat main-playing account in a second live-playing window, where the sub-wheat main-playing account is a main-playing account for connecting to a main-wheat main-playing account;
and an adjusting module 620, configured to, when a window adjusting instruction corresponding to the second live broadcast window is received, adjust the size of the second live broadcast window, and play the live broadcast video of the secondary main broadcast account in the adjusted second live broadcast window.
Optionally, the adjusting module 620 is configured to:
when a window increasing instruction corresponding to the second live broadcast window is received, increasing the size of the second live broadcast window, and playing a live broadcast video of the auxiliary microphone main broadcast account in the increased second live broadcast window; or,
and when a window reduction instruction corresponding to the second live broadcast window is received, reducing the size of the second live broadcast window, and playing the live broadcast video of the main secondary microphone broadcast account in the reduced second live broadcast window.
Optionally, as shown in fig. 7, the adjusting module 620 includes:
the first detection submodule 6201 is configured to detect a duration of a touch signal when the touch signal in the second live broadcast window is detected;
a display sub-module 6202, configured to display an adjustment diagram if the duration reaches a first preset duration threshold;
an adjusting sub-module 6203, configured to, when the trigger instruction of the adjusting icon is received, perform adjustment processing on the size of the second live broadcast window.
Optionally, as shown in fig. 8, the apparatus further includes:
the switching module 630 is configured to play a live video of the main account of the secondary microphone in the first live broadcast window and play a live video of the main account of the primary microphone in the second live broadcast window when a window switching instruction is received.
Optionally, as shown in fig. 9, the switching module 630 includes:
the second detection submodule 6301 is configured to detect a duration of a touch signal when the touch signal in the second live broadcast window is detected;
and the switching submodule 6302 is configured to play the live video of the main secondary wheat broadcast account in the first live broadcast window and play the live video of the main primary wheat broadcast account in the second live broadcast window if the duration does not reach a first preset duration threshold.
Optionally, as shown in fig. 10, the switching submodule 6302 includes:
a display unit 63021, configured to display a switching diagram if the duration does not reach a first preset duration threshold;
a switching unit 63022, configured to play, when receiving the trigger instruction of the switching diagram, a live video of the sub-microphone primary account in the first live broadcast window, and play a live video of the main microphone primary account in the second live broadcast window.
Optionally, the switching module 630 is further configured to:
and when detecting that the live video of the auxiliary main broadcasting account played in the first live broadcasting window disappears, playing the live video of the main broadcasting account in the first live broadcasting window, and canceling the display of the second live broadcasting window.
Optionally, the second live window is located in the first live window.
In the embodiment of the invention, the terminal can play the live video of the main-microphone main-broadcast account in the first live-broadcast window, and play the live video of the sub-microphone main-broadcast account in the microphone connecting state with the main-microphone main-broadcast account in the second live-broadcast window, when a user wants to adjust the size of the second live-broadcast window, the terminal can be triggered to receive the window adjusting instruction corresponding to the second live-broadcast window through operation, and then the terminal can adjust (increase or decrease) the size of the second live-broadcast window and play the live video of the sub-microphone main-broadcast account in the adjusted second live-broadcast window. Therefore, when the user wants to watch the live video of the vice-microphone main broadcasting account, the size of the second live broadcasting window can be increased through the operation trigger terminal, and then the user can watch the live video through the larger second live broadcasting window, so that the watching effect can be enhanced.
It should be noted that: in the device for playing the live video according to the embodiment, when the live video is played, only the division of the functional modules is used for illustration, and in practical application, the function distribution can be completed by different functional modules according to needs, that is, the internal structure of the terminal is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the apparatus for playing a live video and the method for playing a live video provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Referring to fig. 11, a schematic structural diagram of a terminal according to an embodiment of the present invention is shown, where the terminal may be used to implement the method for playing a live video provided in the foregoing embodiment. Specifically, the method comprises the following steps:
the terminal 1100 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. 11 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), e-mail, 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 1100, 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 1100, 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. 11, 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 1100 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 1100 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 1100, detailed descriptions thereof are omitted.
Audio circuitry 160, speaker 161, and microphone 162 can provide an audio interface between a user and terminal 1100. 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. Audio circuitry 160 may also include an earbud jack to provide peripheral headset communication with terminal 1100.
WiFi belongs to a short-distance wireless transmission technology, and the terminal 1100 can help a user send and receive e-mails, browse web pages, access streaming media, and the like through the WiFi module 170, and it provides a wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 170, it is understood that it does not belong to the essential constitution of the terminal 1100, 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 1100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the terminal 1100 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 1100 also 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 that may be used to manage charging, discharging, and power consumption. 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 1100 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 1100 is a touch screen display, the terminal 1100 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:
the method comprises the steps that a live video of a main-wheat main-playing account is played in a first live-playing window, and a live video of an auxiliary-wheat main-playing account is played in a second live-playing window, wherein the auxiliary-wheat main-playing account is a main-playing account connected with the main-wheat main-playing account;
and when a window adjusting instruction corresponding to the second live broadcast window is received, adjusting the size of the second live broadcast window, and playing the live broadcast video of the auxiliary main broadcast account in the adjusted second live broadcast window.
Optionally, when a window adjustment instruction corresponding to the second live broadcast window is received, adjusting the size of the second live broadcast window, and playing the live broadcast video of the secondary main broadcast account in the adjusted second live broadcast window includes:
when a window increasing instruction corresponding to the second live broadcast window is received, increasing the size of the second live broadcast window, and playing a live broadcast video of the auxiliary microphone main broadcast account in the increased second live broadcast window; or,
and when a window reduction instruction corresponding to the second live broadcast window is received, reducing the size of the second live broadcast window, and playing the live broadcast video of the main secondary microphone broadcast account in the reduced second live broadcast window.
Optionally, when a window adjustment instruction corresponding to the second live broadcast window is received, adjusting the size of the second live broadcast window, and playing the live broadcast video of the secondary main broadcast account in the adjusted second live broadcast window includes:
when a touch signal in the second live broadcast window is detected, detecting the duration of the touch signal;
if the duration reaches a first preset duration threshold and does not reach a second preset duration threshold, increasing the size of the second live broadcast window, and playing a live broadcast video of the vice-microphone main broadcast account in the increased second live broadcast window;
and if the duration reaches a second preset duration threshold, reducing the size of the second live broadcast window, and playing the live broadcast video of the vice-microphone main broadcast account in the reduced second live broadcast window.
Optionally, when a window adjustment instruction corresponding to the second live broadcast window is received, adjusting the size of the second live broadcast window includes:
when a touch signal in the second live broadcast window is detected, detecting the duration of the touch signal;
if the duration reaches a first preset duration threshold, displaying an adjustment diagram;
and when a trigger instruction of the adjusting graphic representation is received, adjusting the size of the second live broadcast window.
Optionally, the method further includes:
and when a window switching instruction is received, playing the live video of the main secondary microphone account in the first live broadcast window, and playing the live video of the main microphone account in the second live broadcast window.
Optionally, when a window switching instruction is received, playing a live video of the secondary-microphone main broadcast account in the first live broadcast window, and playing a live video of the main-microphone main broadcast account in the second live broadcast window, where the method includes:
when a touch signal in the second live broadcast window is detected, detecting the duration of the touch signal;
and if the duration does not reach a first preset duration threshold, playing the live video of the auxiliary main wheat account in the first live broadcasting window, and playing the live video of the main wheat account in the second live broadcasting window.
Optionally, if the duration does not reach a first preset duration threshold, playing a live video of the main account of the secondary wheat in the first live broadcast window, and playing a live video of the main account of the main wheat in the second live broadcast window, including:
if the duration does not reach a first preset duration threshold, displaying a switching diagram;
and when a trigger instruction for switching the graphic representation is received, playing the live video of the main broadcasting account of the auxiliary microphone in the first live broadcasting window, and playing the live video of the main broadcasting account of the main microphone in the second live broadcasting window.
Optionally, the method further includes:
and when detecting that the live video of the auxiliary main broadcasting account played in the first live broadcasting window disappears, playing the live video of the main broadcasting account in the first live broadcasting window, and canceling the display of the second live broadcasting window.
Optionally, the second live window is located in the first live window.
In the embodiment of the invention, the terminal can play the live video of the main-microphone main-broadcast account in the first live-broadcast window, and play the live video of the sub-microphone main-broadcast account in the microphone connecting state with the main-microphone main-broadcast account in the second live-broadcast window, when a user wants to adjust the size of the second live-broadcast window, the terminal can be triggered to receive the window adjusting instruction corresponding to the second live-broadcast window through operation, and then the terminal can adjust (increase or decrease) the size of the second live-broadcast window and play the live video of the sub-microphone main-broadcast account in the adjusted second live-broadcast window. Therefore, when the user wants to watch the live video of the vice-microphone main broadcasting account, the size of the second live broadcasting window can be increased through the operation trigger terminal, and then the user can watch the live video through the larger second live broadcasting window, so that the watching effect can be enhanced.
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.