WO2022170449A1 - 画面窗口的显示方法、装置、终端及存储介质 - Google Patents
画面窗口的显示方法、装置、终端及存储介质 Download PDFInfo
- Publication number
- WO2022170449A1 WO2022170449A1 PCT/CN2021/076145 CN2021076145W WO2022170449A1 WO 2022170449 A1 WO2022170449 A1 WO 2022170449A1 CN 2021076145 W CN2021076145 W CN 2021076145W WO 2022170449 A1 WO2022170449 A1 WO 2022170449A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- screen window
- display
- window
- terminal
- function selection
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for programme selection
Definitions
- the embodiments of the present application relate to the technical fields of computers and the Internet, and in particular, to a method, device, terminal, and storage medium for displaying a screen window.
- the user can create a live broadcast room and broadcast live recorded images to other users in the live broadcast room.
- a user who generates live content in a live room is called a host user
- a user who watches the live content in the live room is called a viewer user.
- the application will automatically call the front camera of the terminal to capture video images, and upload the captured real-time media stream to the server. terminal. Audience users in the live broadcast room can interact with each other in the form of commenting, giving gifts, etc. while watching the live broadcast.
- the anchor users In order to grasp the live broadcast situation in the live broadcast room and adjust the live broadcast content in time to achieve a better live broadcast effect, the anchor users also need to watch the live broadcast content and pay attention to the interactive content in the live broadcast room during the live broadcast process.
- anchor users who conduct live broadcasts in outdoor environments, while traveling, etc., they often need to live while walking, and anchor users need to watch live content all the time, which makes it difficult for anchor users to take into account the road conditions on the road, which is very important for the personal safety of anchor users. threatening.
- Embodiments of the present application provide a method, device, terminal, and storage medium for displaying a screen window, which can be used to enable a live broadcast anchor user to take into account the live broadcast content and road conditions while exercising, so as to ensure the user's personal safety.
- the technical solution is as follows:
- an embodiment of the present application provides a method for displaying a picture window, and the method includes:
- the function selection interface is used to select and open a target display mode
- the target display mode refers to a display mode of switching the screen window based on the movement state of the holder of the terminal
- a rear image window and the front image window are displayed in the user interface, and the rear image window is used to display all the information of the rear camera of the terminal. shot screen.
- an embodiment of the present application provides an apparatus for displaying a picture window, and the apparatus includes:
- a window display module configured to display a front-screen window in the user interface of the application, where the front-screen window is used to display a screen shot by the front camera of the terminal;
- an interface display module for displaying a function selection interface in the user interface
- the function selection interface is used for selecting and opening a target display mode
- the target display mode refers to switching based on the movement state of the holder of the terminal The display mode of the screen window
- the window display module is further configured to display a rear screen window and the front screen window in the user interface in response to a target touch command for the function selection interface, and the rear screen window is used for The screen shot by the rear camera of the terminal is displayed.
- an embodiment of the present application provides a terminal, the terminal includes a processor and a memory, the memory stores a computer program, and the computer program is loaded and executed by the processor to realize the above screen window display method.
- an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned display method of a screen window.
- an embodiment of the present application provides a computer program product, which, when the computer program product runs on a terminal, causes the terminal to execute the above-mentioned method for displaying a screen window.
- the front screen window By triggering and opening the display mode of the screen window based on the user's movement state, and when certain conditions are met, the front screen window is switched to display the front screen window and the back screen window at the same time, so as to show the user at the same time
- the images captured by the front and rear cameras of the terminal implements targeted optimization of the display of the screen window according to the user's moving state, so that the live broadcast anchor user can take into account the live broadcast content and road conditions during the exercise process, ensuring the personal safety of the user.
- FIG. 1 is a schematic diagram of a live broadcast system provided by an embodiment of the present application.
- FIG. 2 is a flowchart of a method for displaying a picture window provided by an embodiment of the present application
- FIG. 3 is a schematic diagram of a user interface provided by an embodiment of the present application.
- FIG. 4 is a schematic diagram of a user interface provided by another embodiment of the present application.
- FIG. 5 is a schematic diagram of a method for displaying a picture window provided by an embodiment of the present application.
- FIG. 6 is a block diagram of a display device for a picture window provided by an embodiment of the present application.
- FIG. 7 is a block diagram of a display device for a picture window provided by another embodiment of the present application.
- FIG. 1 shows a schematic diagram of a live broadcast system provided by an embodiment of the present application.
- the live broadcast system may include: a terminal 10 and a server 20 .
- the terminal 10 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playback device, a wearable device, a PC (Personal Computer, personal computer) and the like.
- the terminal 10 installs an application 30 with a live broadcast function, such as a live broadcast application, a shopping application, a social networking application, a video playback application, a teleconferencing application, an education application, a game application, and the like.
- the host user can create a live broadcast room through the application program 30 and make live broadcast content in the live broadcast room, and the audience user can enter the live broadcast room through the application program 30 and watch the live broadcast content produced by the host user.
- the server 20 is used for the application 30 mounted in the terminal 10 to provide background services.
- server 20 may be a background server for application 30 .
- the server 20 may be a server, a server cluster composed of multiple servers, or a cloud computing center.
- the server 20 and the terminal 10 communicate through a network, and optionally, the network may be a wired network or a wireless network.
- terminals 10 include a host terminal 12 and a viewer terminal 14 .
- the host terminal 12 refers to the terminal held by the host user
- the viewer terminal 14 refers to the terminal held by the viewer user.
- the application 30 carried on the host terminal 12 will automatically call the camera of the host terminal 12 to capture video images, and upload the captured real-time media stream to the server 20, and the server 20 will deliver it to the audience in real time Terminal 14.
- the cameras called by the application 30 carried on the host terminal 12 include: a front camera and/or a rear camera.
- the real-time media stream includes: the picture captured by the front camera, and/or the rear camera. shot screen.
- FIG. 2 shows a flowchart of a method for displaying a picture window provided by an embodiment of the present application.
- This method can be applied to the application 30 carried on the terminal 10 described above, such as the application 30 carried on the host terminal 12 .
- the method may include the following steps.
- Step 210 displaying a front image window in the user interface of the application, where the front image window is used to display the image captured by the front camera of the terminal.
- an application program is installed and running in the terminal, and the application program has a live broadcast function.
- the application program includes any one of the following types: a live broadcast application, a shopping application, a social networking application, a video playback application, a teleconferencing application, and an educational application. , game application.
- the user interface of the application program may be displayed, and the display size of the user interface of the application program is equal to or smaller than the display size of the user interface of the terminal, wherein the display size of the user interface of the terminal is usually equal to the display size of the terminal.
- the user interface of the application includes operation controls, and the user can touch the operation controls to implement corresponding functions.
- the user interface of the application program may display a front screen window, and the front screen window is used to display the screen shot by the front camera of the terminal, so that the terminal holder can Master the live content.
- the display size of the front screen window is equal to or smaller than the display size of the user interface of the application.
- the display level of the front screen window is lower than the display level of the content such as the operation controls, so as to avoid the user's influence in the process of touching the operation controls. To the display content in the front screen window, improve the display effect of the front screen window.
- Step 220 displaying a function selection interface in the user interface, where the function selection interface is used to select and enable a target display mode, and the target display mode refers to switching the display mode of the screen window based on the movement state of the terminal holder.
- the application program can also display a function selection interface in the user interface, and the function selection interface is used for the holder of the terminal to choose whether to enable the target display mode.
- the display size of the function selection interface is smaller than or equal to the display size of the front screen window. Display size of the front screen window.
- the function selection interface has a certain degree of transparency, so that the user can identify other display contents in the user interface through the function selection interface, for example, the function selection interface is displayed in a translucent form.
- the display level of the function selection interface is higher than the display level of the front screen window, so that the touch command of the terminal holder on the function selection interface will not affect the display content of the front screen window.
- the target display mode refers to a display mode in which the screen window is switched based on the movement state of the owner of the terminal.
- the picture window includes a front picture window and/or a rear picture window, the front picture window is used to display the picture captured by the front camera of the terminal, and the rear picture window is used to display the picture captured by the rear camera of the terminal .
- the application when the target display mode is turned on, can perform any one of the following screen window switching operations: switching from the front screen window to the back screen window, and switching from the front screen window to the front screen Window and rear picture window, switching from rear picture window to front picture window, switching from rear picture window to rear picture window and front picture window, switching from front picture window and rear picture window to front Picture windows, switch from the rear picture window and the front picture window to the rear picture window.
- the movement state of the holder includes a motion state (eg, a walking state, a running state, etc.) or a stationary state.
- the movement state of the holder includes the movement state of the holder within a period of time, such as the movement state of the holder within 3 seconds.
- the movement state of the terminal holder may be independently confirmed by the terminal holder or determined by application detection.
- Step 230 in response to the target touch instruction on the function selection interface, display a rear image window and a front image window in the user interface, and the rear image window is used to display the image captured by the rear camera of the terminal.
- the application program In response to the target touch command for the function selection interface, the application program displays the rear screen window and the front screen window in the user interface at the same time, that is, the application program starts the target display mode, and switches the front screen window to the front screen window. Picture window and back picture window.
- the function selection interface includes an operation control, so that the target touch instruction for the function selection interface includes a touch instruction for a certain operation control.
- the target touch instruction for the function selection interface also includes voice, gesture, etc., which is not limited in this embodiment of the present application.
- the display size of the rear picture window is smaller than or equal to the display size of the user interface.
- the embodiment of the present application does not limit the size relationship between the display size of the front screen window and the display size of the back screen window.
- the display size of the home screen window is larger than the display size of the front screen window, so that the terminal holder can better take into account the road conditions during the live broadcast, so as to ensure the personal safety of the terminal holder.
- This embodiment of the present application does not limit the display level of the front screen window and the display level of the back screen window.
- the display level of the front screen window is higher than the display level of the back screen window, or, the front screen window
- the display level is equal to the display level of the rear picture window; or, the display level of the front picture window is lower than the display level of the rear picture window.
- the front picture window may be located in the display area of the rear picture window. At this time, in order to ensure that the holder of the terminal can clearly identify the road conditions, the front screen window does not block the main display elements of the rear screen window.
- the main display elements of the rear picture window may be independently identified by the application program, and further, the application program determines the display position of the front picture window based on the main display elements of the rear picture window; or, the main display of the rear picture window
- the element is determined by the holder of the terminal, and further, the holder of the terminal adjusts the display position of the front screen window to ensure that the front screen window does not block the main display elements of the back screen window.
- the application needs to reduce the display size of the front screen window.
- the above step 230 includes: reducing the display size of the front screen window to obtain a reduced front screen window; and displaying the back screen window and the reduced front screen window in the user interface. This embodiment of the present application does not limit the size relationship between the display size of the reduced front screen window and the display size of the rear screen window.
- the user interface includes program function content
- the program function content refers to operation controls and/or interactive content related to functions provided by the application.
- the terminal will move relative to the sight of the holder, and it is difficult for the holder to recognize the displayed content in the user interface at this time.
- the above method further includes: displaying the program function content in a first size; and displaying the program function content in a second size in response to the target touch command for the function selection interface , the second size is larger than the first size. That is, when the application program switches the screen window, the display size of the program function content is correspondingly switched, so as to improve the interface display effect.
- the application program in response to the target touch instruction for the function selection interface, displays the front screen window 340 and the back screen window 360 in the user interface 310 at the same time, wherein the display of the back screen window 360 The size is larger than the display size of the front screen window 340 , and the front screen window 340 is located in the display area of the back screen window 360 .
- the user interface 310 further includes program function content 370.
- the display size of the program function content 370 is the first size; In the case of the screen window 340 and the rear screen window 360, the display size of the program function content 370 is the second size, wherein the second size is larger than the first size, that is, the application program refreshes the program function content 370 to an enlarged version .
- the technical solutions provided by the embodiments of the present application are to trigger and turn on the display mode of switching the screen window based on the user's movement state, and when certain conditions are met, the display of the front screen window is switched to the front screen window displayed at the same time.
- a screen window and a rear screen window are displayed to show the user the screen shot by the front camera and the rear camera of the terminal at the same time.
- the embodiment of the present application implements targeted optimization of the display of the screen window according to the user's moving state, so that the live broadcast anchor user can take into account the live broadcast content and road conditions during the exercise process, ensuring the personal safety of the user.
- the display of the function selection interface can be triggered by the owner of the terminal actively, or automatically triggered and displayed by an application program.
- the introduction explains that the display of the function selection interface is actively triggered and displayed by the holder of the terminal.
- the user interface includes an interface callout control, and the interface callout control is used to call out a function selection interface; the above step 220 includes: in response to a touch instruction for the interface callout control, displaying the function selection interface in the user interface.
- the user interface of the application may include operation controls for the user to perform touch operations.
- the user interface includes an interface call-out control, and the interface call-out control is used to call out the function selection interface.
- the holder of the terminal can call out the control through the touch interface to trigger the application to display the function selection interface, that is, the application
- the program displays a function selection interface in the user interface in response to the touch command of the terminal holder calling out the controls on the interface.
- the embodiment of the present application does not limit the display form of the interface outgoing control.
- the interface outgoing control is displayed in a display form such as a button or a slider.
- the user interface 310 includes an interface call control 320, and the terminal holder touches the interface to call the control 320, which can trigger the application to display the function selection interface 330 in the user interface 310, and the function
- the display level of the selection interface 330 is higher than the display level of the front screen window 340
- the display size of the function selection interface 330 is smaller than the display size of the front screen window 340 .
- the above step 220 includes: acquiring location information of the terminal; and displaying a function selection interface in the user interface when the location information indicates that the movement state of the holder is a motion state.
- the location service of the terminal can be called to obtain the location information of the terminal.
- the location information of the terminal includes location coordinates obtained based on positioning, sensors, chips, etc., the movement speed of the holder of the terminal, the displacement of the holder of the terminal every 30 seconds, and the like.
- the application program can determine the movement state of the holder of the terminal, and the movement state includes a motion state or a stationary state.
- the application program determines that the movement state of the holder is a motion state when the displacement is equal to or greater than a certain threshold; When the displacement size is smaller than a certain threshold, it is determined that the movement state of the holder is a stationary state.
- the application program displays a function selection interface in the user interface.
- the application program displays the function selection interface 350 in the user interface 310 , and the display of the function selection interface 350
- the level is higher than the display level of the front screen window 340
- the display size of the function selection interface 350 is smaller than the display size of the front screen window 340 .
- the function selection interface (such as the function selection interface 330 ) that is actively triggered and displayed by the holder of the terminal may be the same as the function selection interface (such as the function selection interface 350 ) that is automatically triggered and displayed by the application program
- the interface can also be different interfaces, such as at least one of the display size, display content, included icons, included prompt information, included operation controls, etc. of the function selection interface is different. Not limited.
- the technical solutions provided by the embodiments of the present application by displaying the interface in the user interface to call out the controls, so as to display the function selection interface when the user touches the interface to call out the controls, providing the user with a space for independent selection, and stimulating the user to explore the application
- the function of the program helps to enhance user stickiness.
- the location information of the terminal is obtained through an application, and when the location information of the terminal indicates that the user is in a motion state, a function selection interface is automatically displayed, which improves the intelligence of the application.
- the technical solutions provided by the embodiments of the present application can trigger the display of the function selection interface in a combination of various ways, so that the display of the function selection interface is more flexible.
- the function selection interface may include operation controls for the holder of the terminal to trigger the opening of the target display mode.
- the function selection interface includes a first enabling control, and the first enabling control is used to enable the target display mode and immediately display the rear screen window and the front screen window; the above-mentioned target touch instruction for the function selection interface includes the first A selection command that opens the control.
- the triggering effect of the first opening control is one-time.
- the holder of the terminal touches the first opening control to only trigger the application to switch the screen window once.
- the application program starts the target display mode in response to the selection instruction for the first opening control, and immediately switches the display of the front screen window to simultaneously displaying the front screen window and the back screen window.
- the expression form of the first opening control includes any one of the following: a button, an icon, and a slider.
- the function selection interface 330/function selection interface 350 includes a first open control 380, the first open control 380 is in the form of a button, and the terminal holder can click the first open control 380
- the triggering application receives the selection instruction for the first opening control, starts the target display mode, and immediately displays the rear screen window and the front screen window.
- the function selection interface includes a second enabling control, and the second enabling control is used to enable the target display mode and detect and display the rear screen window and the front screen window; the above-mentioned target touch instruction for the function selection interface includes a target touch command for The second is to open the selection command of the control.
- the triggering effect of the second opening control is multiple times.
- the holder of the terminal touches the second opening control to trigger the application to switch the screen window at least once.
- the application program opens the target display mode in response to the selection instruction for the second open control, and performs corresponding detection, and when the detection result satisfies a certain condition, switches the display of the front screen window to display the front screen at the same time.
- the expression form of the second opening control includes any one of the following: a button, an icon, and a slider.
- the function selection interface 330/function selection interface 350 includes a second open control 390
- the second open control 390 is in the form of a button
- the terminal holder can click the second open control 390
- the triggering application receives the selection instruction for the second enabling control, and enables the target display mode. After that, the application program performs corresponding detection, and displays the rear screen window and the front screen window when the detection result satisfies certain conditions.
- the detection performed by the above application when the target display mode is turned on includes detection of the movement state of the holder of the terminal.
- the above step 230 includes: in response to the selection instruction for the second turn-on control, acquiring the location information of the terminal; in the case that the location information indicates that the movement state of the holder is a motion state, displaying a rear screen in the user interface window and front picture window.
- the application program automatically switches the screen window based on the detection result, so optionally, after the above step 230, the method further includes: acquiring the location information of the terminal; when the location information indicates that the movement state of the holder is static In the case of the status, the display of the rear screen window is canceled.
- the application program when the terminal holder is in motion, the application program displays the front screen window and the back screen window at the same time; when the terminal holder is in a stationary state, the application program only displays Front picture window.
- the application program displays switching prompt information in the user interface before switching the screen window, the The switching prompt information is used to indicate that the screen window will switch after the target duration. For example, as shown in FIG.
- the application displays switching prompt information 410 or switching prompt information 420 in the user interface, wherein the switching prompt information 410 is used to indicate that the screen window will be forwarded after the target duration It will be switched to the front screen window and the back screen window, and the switching prompt information 420 is used to indicate that the front screen window and the back screen window will be switched to the front screen window after the target duration.
- the target duration includes 3 seconds.
- the technical solutions provided by the embodiments of the present application can instantly switch the screen window when the user touches the corresponding operation control in the selection interface, so that the user can obtain immediate operation feedback and improve user stickiness.
- a user touches a function to select a corresponding operation control in the interface corresponding detection is performed, and the screen window is automatically switched according to the detection result, so as to improve the degree of intelligence of the application program. Release the user's operation and realize the automatic switching of the screen window with one key.
- FIG. 5 is a schematic diagram of a method for displaying a screen window provided by an embodiment of the present application. This method can be applied to the application 30 carried on the terminal 10 described above, such as the application 30 carried on the host terminal 12 .
- the application acquires the location information of the terminal under the condition that the location service of the terminal can be invoked. And, the application program determines whether to enable the target display mode.
- the application performs the normal display mode of the live broadcast, such as displaying the front screen window; when the target display mode is turned on, the application determines the terminal holder's location based on the location information of the terminal.
- the movement state eg, based on the location information of the terminal, determines whether the holder is in a movement state.
- the application When it is determined that the holder is in a static state, the application still performs the normal display mode of the live broadcast, such as displaying the front screen window; when it is determined that the holder is in a motion state, the application switches the screen window, such as The application calls the rear camera of the terminal, and switches the front screen window to the front screen window and the back screen window.
- the application program switches the screen and window, the application program can simultaneously refresh the display size of the program function content in the user interface to adapt to the moving state of the holder.
- the application program when the target display mode is turned on and the application program performs screen and window switching, the application program still obtains the location information of the terminal, and determines the movement state of the holder based on the location information of the terminal. location information to determine whether the holder is stationary. When it is determined that the holder is in motion, the application still maintains the current screen window; when it is determined that the holder is in a static state, the application switches the screen window, such as placing the front screen window and the back screen The screen window is switched to the front screen window, that is, the call to the rear camera is canceled. Similarly, when the application program switches the screen window, the application program can simultaneously refresh the display size of the program function content in the user interface to adapt to the moving state of the holder.
- the application always uploads the picture captured by the front camera to the server. That is, in this example, the live broadcast content is always the picture captured by the front camera of the terminal.
- the application program uploads the image captured by the front-facing camera to the server when the front-facing screen window is displayed; when the application program displays the front-facing screen window and the back-facing screen window, the front-facing image window is displayed.
- the images captured by the camera and the rear camera are uploaded to the server. That is, in this example, the live content is adapted to the camera called by the application. In the case where only the front camera is called, the live content is only the picture captured by the front camera; If the camera is installed, the live content is the images captured by the front camera and the rear camera.
- FIG. 6 shows a block diagram of an apparatus for displaying a picture window provided by an embodiment of the present application.
- the device has the function of realizing the above example of the display method of the picture window, and the function can be realized by hardware, or can be realized by the hardware executing corresponding software.
- the device may be the above-mentioned terminal installed with the application program, or may be installed in the above-mentioned terminal installed with the application program.
- the apparatus 600 may include: a window display module 610 and an interface display module 620 .
- the window display module 610 is configured to display a front screen window in the user interface of the application, where the front screen window is used to display the screen shot by the front camera of the terminal.
- the interface display module 620 is configured to display a function selection interface in the user interface, and the function selection interface is used to select and enable a target display mode. Switches the display mode of the screen window.
- the window display module 610 is further configured to display a rear image window and the front image window in the user interface in response to a target touch instruction for the function selection interface, and the rear image window is used for displaying The picture captured by the rear camera of the terminal.
- the above-mentioned window display module 610 is configured to: reduce the display size of the front screen window to obtain a reduced front screen window; display the back screen window and the back screen window in the user interface The reduced front screen window.
- the display size of the rear screen window is larger than the display size of the front screen window; the front screen window is located in the display area of the rear screen window, and the front screen window The main display elements of the rear picture window are not blocked.
- the function selection interface includes a first enable control, the first enable control is used to enable the target display mode and immediately display the rear screen window and the front screen window;
- the target touch instruction of the function selection interface includes a selection instruction for the first activation control.
- the function selection interface includes a second enable control, the second enable control is used to enable the target display mode and detect and display the rear screen window and the front screen window;
- the target touch instruction of the function selection interface includes a selection instruction for the second enabling control.
- the above-mentioned window display module 610 is configured to: in response to a selection instruction for the second opening control, obtain the location information of the terminal; where the location information indicates that the movement state of the holder is In the case of a motion state, the rear picture window and the front picture window are displayed in the user interface.
- the apparatus 600 further includes: an information acquisition module 630, configured to acquire location information of the terminal; and a window display module 610, further configured to indicate the holding device in the location information When the moving state of someone else is in the stationary state, the display of the rear screen window is canceled.
- the user interface includes an interface call-out control, and the interface call-out control is used to call out the function selection interface; the interface display module 620 is configured to: respond to a touch instruction for the interface call-out control , displaying the function selection interface in the user interface.
- the interface display module 620 is configured to: acquire the location information of the terminal; in the case that the location information indicates that the movement state of the holder is a motion state, in the user interface The function selection interface is displayed.
- the user interface includes program function content
- the program function content refers to operation controls and/or interactive content related to functions provided by the application program
- the apparatus 600 further A content display module 640 is included, configured to: display the program function content in a first size; in response to a target touch command for the function selection interface, display the program function content in a second size, the second size larger than the first dimension.
- the technical solutions provided by the embodiments of the present application are to trigger and turn on the display mode of switching the screen window based on the user's movement state, and when certain conditions are met, the display of the front screen window is switched to the front screen window displayed at the same time.
- a screen window and a rear screen window are displayed to show the user the screen shot by the front camera and the rear camera of the terminal at the same time.
- the embodiment of the present application implements targeted optimization of the display of the screen window according to the user's moving state, so that the live broadcast anchor user can take into account the live broadcast content and road conditions during the exercise process, ensuring the personal safety of the user.
- a terminal is also provided, the terminal includes a processor and a memory, the memory stores a computer program, and the computer program is loaded and executed by the processor to realize the above-mentioned screen window display method.
- a computer-readable storage medium is also provided, on which a computer program is stored, and when the computer program is executed by a processor, implements the above-mentioned display method of a picture window.
- a computer program product is also provided, when the computer program product is run on a terminal, the terminal is made to execute the above-mentioned display method of a picture window.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
提供了一种画面窗口的显示方法、装置、终端及存储介质,属于计算机和互联网技术领域。方法包括:在应用程序的用户界面中显示前置画面窗口,前置画面窗口用于显示终端的前置摄像头所拍摄的画面(210);在用户界面中显示功能选择界面,功能选择界面用于选择开启目标显示模式,目标显示模式是指基于终端的持有者的移动状态而切换画面窗口的显示模式(220);响应于针对功能选择界面的目标触控指令,在用户界面中显示后置画面窗口和前置画面窗口,后置画面窗口用于显示终端的后置摄像头所拍摄的画面(230)。使得正在直播的主播用户能够在运动过程中同时兼顾直播内容和路况,确保用户的人身安全。
Description
本申请实施例涉及计算机和互联网技术领域,特别涉及一种画面窗口的显示方法、装置、终端及存储介质。
随着移动直播技术的迅猛发展,越来越多的用户将观看直播以及录制直播作为一种娱乐休闲方式。通过终端中具备直播功能的应用程序,用户可以创建直播间,并向该直播间的其他用户直播实时录制的画面。
通常,将直播间中产生直播内容的用户称为主播用户,将直播间中观看直播内容的用户称为观众用户。在主播用户的直播过程中,应用程序会自动调用终端的前置摄像头以拍摄视频画面,并将拍摄得到的实时媒体流上传至服务器,由服务器实时下发至直播间的观众用户所持有的终端。直播间的观众用户在观看直播的过程中,可以发表评论、赠送礼物等形式实现互动。为了掌握直播间的直播情况,以及时调整直播内容实现较好的直播效果,主播用户在直播过程中也需要时刻观看直播内容并关注直播间内的互动内容。
然而,对于在户外环境、旅游途中等进行直播的主播用户,经常需要一边行走一边直播,而主播用户又需要时刻观看直播内容等,导致主播用户难以顾及行走路途的路况,对主播用户的人身安全构成威胁。
发明内容
本申请实施例提供了一种画面窗口的显示方法、装置、终端及存储介质,可用于使得正在直播的主播用户能够在运动过程中同时兼顾直播内容和路况,确保用户的人身安全。所述技术方案如下:
一方面,本申请实施例提供了一种画面窗口的显示方法,所述方法包括:
在应用程序的用户界面中显示前置画面窗口,所述前置画面窗口用于显示终端的前置摄像头所拍摄的画面;
在所述用户界面中显示功能选择界面,所述功能选择界面用于选择开启目 标显示模式,所述目标显示模式是指基于所述终端的持有者的移动状态而切换画面窗口的显示模式;
响应于针对所述功能选择界面的目标触控指令,在所述用户界面中显示后置画面窗口和所述前置画面窗口,所述后置画面窗口用于显示所述终端的后置摄像头所拍摄的画面。
另一方面,本申请实施例提供了一种画面窗口的显示装置,所述装置包括:
窗口显示模块,用于在应用程序的用户界面中显示前置画面窗口,所述前置画面窗口用于显示终端的前置摄像头所拍摄的画面;
界面显示模块,用于在所述用户界面中显示功能选择界面,所述功能选择界面用于选择开启目标显示模式,所述目标显示模式是指基于所述终端的持有者的移动状态而切换画面窗口的显示模式;
所述窗口显示模块,还用于响应于针对所述功能选择界面的目标触控指令,在所述用户界面中显示后置画面窗口和所述前置画面窗口,所述后置画面窗口用于显示所述终端的后置摄像头所拍摄的画面。
再一方面,本申请实施例提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有计算机程序,所述计算机程序由所述处理器加载并执行以实现如上述画面窗口的显示方法。
又一方面,本申请实施例提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述画面窗口的显示方法。
还一方面,本申请实施例提供了一种计算机程序产品,当所述计算机程序产品在终端上运行时,使得终端执行如上述画面窗口的显示方法。
本申请实施例提供的技术方案可以带来如下有益效果:
通过触发开启基于用户的移动状态而切换画面窗口的显示模式,并在满足一定条件的情况下,将显示前置画面窗口切换为同时显示前置画面窗口和后置画面窗口,以向用户同时展示终端的前置摄像头和后置摄像头所拍摄的画面。本申请实施例实现了根据用户的移动状态针对性地优化画面窗口的显示,使得正在直播的主播用户能够在运动过程中同时兼顾直播内容和路况,确保用户的人身安全。
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一个实施例提供的直播系统的示意图;
图2是本申请一个实施例提供的画面窗口的显示方法的流程图;
图3是本申请一个实施例提供的用户界面的示意图;
图4是本申请另一个实施例提供的用户界面的示意图;
图5是本申请一个实施例提供的画面窗口的显示方法的示意图;
图6是本申请一个实施例提供的画面窗口的显示装置的框图;
图7是本申请另一个实施例提供的画面窗口的显示装置的框图。
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
请参考图1,其示出了本申请一个实施例提供的直播系统的示意图。该直播系统可以包括:终端10和服务器20。
终端10可以是诸如手机、平板电脑、游戏主机、电子书阅读器、多媒体播放设备、可穿戴设备、PC(Personal Computer,个人计算机)等电子设备。本申请实施例中,终端10中安装具备直播功能的应用程序30,如直播应用程序、购物应用程序、社交应用程序、视频播放应用程序、远程会议应用程序、教育应用程序、游戏应用程序等。主播用户通过应用程序30可以创建直播间并制作直播内容在直播间中直播,观众用户通过应用程序30可以进入直播间并观看主播用户制作的直播内容。
服务器20用于终端10中搭载的应用程序30提供后台服务。例如,服务器20可以是应用程序30的后台服务器。服务器20可以是一台服务器,也可以是由多台服务器组成的服务器集群,或者是一个云计算中心。可选地,服务器20与终端10之间通过网络进行通信,可选地,该网络可以为有线网络,也可以为无线网络。
在一个示例中,终端10包括主播终端12和观众终端14。其中,主播终端12是指主播用户所持有的终端,观众终端14是指观众用户所持有的终端。在主 播用户的直播过程中,主播终端12搭载的应用程序30会自动调用主播终端12的摄像头以拍摄视频画面,并将拍摄得到的实时媒体流上传至服务器20,由服务器20实时下发至观众终端14。可选地,主播终端12搭载的应用程序30所调用的摄像头包括:前置摄像头和/或后置摄像头。可选地,在主播终端12搭载的应用程序30所调用的摄像头包括前置摄像头和后置摄像头的情况下,实时媒体流包括:前置摄像头所拍摄的画面,和/或,后置摄像头所拍摄的画面。
请参考图2,其示出了本申请一个实施例提供的画面窗口的显示方法的流程图。该方法可应用于上文介绍的终端10搭载的应用程序30中,如主播终端12搭载的应用程序30中。该方法可以包括如下几个步骤。
步骤210,在应用程序的用户界面中显示前置画面窗口,前置画面窗口用于显示终端的前置摄像头所拍摄的画面。
终端中安装并运行有应用程序,该应用程序具备直播功能。本申请实施例对应用程序的类型不作限定,可选地,应用程序包括以下任意一种类型:直播应用程序、购物应用程序、社交应用程序、视频播放应用程序、远程会议应用程序、教育应用程序、游戏应用程序。前台运行应用程序的过程中,可以显示应用程序的用户界面,该应用程序的用户界面的显示尺寸等于或小于终端的用户界面的显示尺寸,其中,终端的用户界面的显示尺寸通常等于终端的显示屏中显示区域的尺寸。可选地,应用程序的用户界面中包括操作控件,用户可以触控操作控件以实现相应的功能。
在终端的持有者进行直播的过程中,应用程序的用户界面中可以显示前置画面窗口,该前置画面窗口用于显示终端的前置摄像头所拍摄的画面,以使得终端的持有者掌握直播内容。可选地,在步骤210中,前置画面窗口的显示尺寸等于或小于应用程序的用户界面的显示尺寸。可选地,在应用程序的用户界面中包括操作控件等内容的情况下,前置画面窗口的显示层级低于操作控件等内容的显示层级,从而可以避免用户在触控操作控件的过程中影响到前置画面窗口中的显示内容,提升前置画面窗口的显示效果。
步骤220,在用户界面中显示功能选择界面,功能选择界面用于选择开启目标显示模式,目标显示模式是指基于终端的持有者的移动状态而切换画面窗口的显示模式。
应用程序在用户界面中还可以显示功能选择界面,该功能选择界面用于供 终端的持有者选择是否开启目标显示模式。可选地,功能选择界面的显示尺寸小于或等于前置画面窗口的显示尺寸,例如,为了在一定程度上避免功能选择界面的显示遮挡前置画面窗口的显示内容,功能选择界面的显示尺寸小于前置画面窗口的显示尺寸。可选地,功能选择界面具有一定的透明度,从而便于用户透过功能选择界面辨识用户界面中的其它显示内容,例如,功能选择界面以半透明的形式显示。可选地,功能选择界面的显示层级高于前置画面窗口的显示层级,从而终端的持有者针对功能选择界面的触控指令不会影响前置画面窗口的显示内容。有关应用程序显示功能选择界面的触发条件的相关介绍说明,请参见下述方法实施例,此处不多赘述。
目标显示模式是指基于终端的持有者的移动状态而切换画面窗口的显示模式。其中,画面窗口包括前置画面窗口和/或后置画面窗口,前置画面窗口用于显示终端的前置摄像头所拍摄的画面,后置画面窗口用于显示终端的后置摄像头所拍摄的画面。在一个示例中,应用程序在开启目标显示模式的情况下,可以进行以下任意一项画面窗口的切换操作:从前置画面窗口切换至后置画面窗口、从前置画面窗口切换至前置画面窗口和后置画面窗口、从后置画面窗口切换至前置画面窗口、从后置画面窗口切换至后置画面窗口和前置画面窗口、从前置画面窗口和后置画面窗口切换至前置画面窗口,从后置画面窗口和前置画面窗口切换至后置画面窗口。
本申请实施例中,持有者的移动状态包括运动状态(如步行状态、跑步状态等)或静止状态。可选地,为了确保画面窗口切换的准确性,持有者的移动状态包括持有者在一段时间内的移动状态,如持有者在3秒内的移动状态。可选地,终端的持有者的移动状态既可以为终端的持有者自主确认的,也可以为应用程序检测确定的。有关目标显示模式的其它介绍说明,请参见下述方法实施例,此处不多赘述。
步骤230,响应于针对功能选择界面的目标触控指令,在用户界面中显示后置画面窗口和前置画面窗口,后置画面窗口用于显示终端的后置摄像头所拍摄的画面。
应用程序响应于针对功能选择界面的目标触控指令,在用户界面中同时显示后置画面窗口和前置画面窗口,也即,应用程序开启目标显示模式,并将前置画面窗口切换为前置画面窗口和后置画面窗口。可选地,功能选择界面包括操作控件,从而,针对功能选择界面的目标触控指令包括针对某一操作控件的 触控指令。当然,针对功能选择界面的目标触控指令还包括语音、手势等,本申请实施例对此不作限定。
可选地,后置画面窗口的显示尺寸小于或等于用户界面的显示尺寸。在前置画面窗口和后置画面窗口同时显示的情况下,本申请实施例对前置画面窗口的显示尺寸和后置画面窗口的显示尺寸之间的大小关系不作限定,在一个示例中,后置画面窗口的显示尺寸大于前置画面窗口的显示尺寸,从而使得终端的持有者在直播过程中更好地兼顾路况,以确保终端的持有者的人身安全。本申请实施例对前置画面窗口的显示层级和后置画面窗口的显示层级不作限定,可选地,前置画面窗口的显示层级高于后置画面窗口的显示层级,或者,前置画面窗口的显示层级等于后置画面窗口的显示层级;或者,前置画面窗口的显示层级低于后置画面窗口的显示层级。
在一个示例中,为了节约用户界面的显示资源,在后置画面窗口的显示尺寸大于前置画面窗口的显示尺寸的情况下,前置画面窗口可以位于后置画面窗口的显示区域中。此时,为了同时确保终端的持有者清晰辨识路况,前置画面窗口不遮挡后置画面窗口的主要显示元素。该后置画面窗口的主要显示元素可以是应用程序自主识别的,进一步地,由应用程序基于后置画面窗口的主要显示元素确定前置画面窗口的显示位置;或者,后置画面窗口的主要显示元素由终端的持有者确定,进一步地,由终端的持有者对前置画面窗口的显示位置进行调节,以确保前置画面窗口不遮挡后置画面窗口的主要显示元素。
若在应用程序开启目标显示模式之前,前置画面窗口的显示尺寸等于用户界面的显示尺寸,且在应用程序开启目标显示模式之后,后置画面窗口的显示尺寸等于用户界面的显示尺寸,则应用程序需要对前置画面窗口的显示尺寸进行缩小处理。基于此,在一个示例中,上述步骤230包括:缩小前置画面窗口的显示尺寸,得到缩小后的前置画面窗口;在用户界面中显示后置画面窗口和缩小后的前置画面窗口。本申请实施例对缩小后的前置画面窗口的显示尺寸和后置画面窗口的显示尺寸之间的大小关系不作限定。
在一个示例中,用户界面包括程序功能内容,程序功能内容是指与应用程序提供的功能相关的操作控件和/或互动内容。由于在终端的持有者处于运动状态的过程中,终端会与持有者的视线产生相对运动,对于持有者而言,其此时难以辨识用户界面中的显示内容。为了提高界面显示效果,帮助终端的持有者辨识显示内容,上述方法还包括:以第一尺寸显示程序功能内容;响应于针对 功能选择界面的目标触控指令,以第二尺寸显示程序功能内容,第二尺寸大于第一尺寸。也即,在应用程序切换画面窗口的情况下,相应切换程序功能内容的显示尺寸,以提升界面显示效果。
例如,如图3所示,响应于针对功能选择界面的目标触控指令,应用程序在用户界面310中同时显示前置画面窗口340和后置画面窗口360,其中,后置画面窗口360的显示尺寸大于前置画面窗口340的显示尺寸,且前置画面窗口340位于后置画面窗口360的显示区域中。可选地,如图3所示,用户界面310中还包括程序功能内容370,在仅显示前置画面窗口340的情况下,程序功能内容370的显示尺寸为第一尺寸;在同时显示前置画面窗口340和后置画面窗口360的情况下,程序功能内容370的显示尺寸为第二尺寸,其中,第二尺寸大于第一尺寸,也即,应用程序将程序功能内容370刷新为加大版。
综上所述,本申请实施例提供的技术方案,通过触发开启基于用户的移动状态而切换画面窗口的显示模式,并在满足一定条件的情况下,将显示前置画面窗口切换为同时显示前置画面窗口和后置画面窗口,以向用户同时展示终端的前置摄像头和后置摄像头所拍摄的画面。本申请实施例实现了根据用户的移动状态针对性地优化画面窗口的显示,使得正在直播的主播用户能够在运动过程中同时兼顾直播内容和路况,确保用户的人身安全。
本申请实施例中,功能选择界面既可以由终端的持有者主动触发显示,也可以由应用程序自动触发显示。下面,分别对这些方式进行介绍说明。
首先,介绍说明功能选择界面由终端的持有者主动触发显示。
在一个示例中,用户界面包括界面呼出控件,界面呼出控件用于呼出功能选择界面;上述步骤220包括:响应于针对界面呼出控件的触控指令,在用户界面中显示功能选择界面。
由上述介绍说明可知,在应用程序的用户界面中可以包括操作控件以供用户进行触控操作。在该示例中,用户界面包括界面呼出控件,该界面呼出控件用于呼出功能选择界面,进而,终端的持有者可以通过触控界面呼出控件以触发应用程序显示功能选择界面,也即,应用程序响应于终端的持有者针对界面呼出控件的触控指令,在用户界面中显示功能选择界面。本申请实施例对界面呼出控件的显示形式不作限定,可选地,界面呼出控件以按钮、滑块等显示形式显示。
示例性地,如图3所示,在用户界面310中包括界面呼出控件320,终端的持有者触控界面呼出控件320,即可触发应用程序在用户界面310中显示功能选择界面330,功能选择界面330的显示层级高于前置画面窗口340的显示层级,且功能选择界面330的显示尺寸小于前置画面窗口340的显示尺寸。
其次,介绍说明功能选择界面由应用程序自动触发显示。
在另一个示例中,上述步骤220,包括:获取终端的位置信息;在位置信息指示持有者的移动状态为运动状态的情况下,在用户界面中显示功能选择界面。
应用程序在前台运行的过程中,可以调用终端的位置服务,以获取终端的位置信息。可选地,终端的位置信息包括基于定位、传感器、芯片等获得的位置坐标、终端的持有者的移动速度、终端的持有者的每30秒钟位移等。基于获取的位置信息,应用程序可以判断终端的持有者的移动状态,该移动状态包括运动状态或静止状态。例如,在终端的位置信息包括终端的持有者的每30秒位移的情况下,应用程序在该位移大小等于或大于一定阈值的情况下,确定持有者的移动状态为运动状态;在该位移大小小于一定阈值的情况下,确定持有者的移动状态为静止状态。本申请实施例中,在位置信息指示持有者的移动状态为运动状态的情况下,应用程序在用户界面中显示功能选择界面。
示例性地,如图3所示,假设应用程序所获取的位置信息指示终端的持有者的移动状态为运动状态,应用程序在用户界面310中显示功能选择界面350,功能选择界面350的显示层级高于前置画面窗口340的显示层级,且功能选择界面350的显示尺寸小于前置画面窗口340的显示尺寸。
需要说明的一点是,通过终端的持有者主动触发显示的功能选择界面(如功能选择界面330),与由应用程序自动触发显示的功能选择界面(如功能选择界面350),可以是相同的界面,也可以是不同的界面,如功能选择界面的显示尺寸、显示内容、所包括的图标、所包括的提示信息、所包括的操作控件等中至少一项不相同,本申请实施例对此不作限定。
综上所述,本申请实施例提供的技术方案,通过在用户界面中显示界面呼出控件,以便在用户触控界面呼出控件时显示功能选择界面,提供给用户自主选择的空间,激发用户探索应用程序的功能,有助于增强用户黏度。并且,本申请实施例提供的技术方案,通过应用程序获取终端的位置信息,并在终端的位置信息指示用户处于运动状态时,自动化显示功能选择界面,提升了应用程序的智能化程度。另外,本申请实施例提供的技术方案,可以结合多种方式触 发显示功能选择界面,使得功能选择界面的显示更为灵活。
本申请实施例中,功能选择界面可以包括操作控件,以供终端的持有者触发开启目标显示模式。下面,对这种情况进行介绍说明。
在一个示例中,功能选择界面包括第一开启控件,第一开启控件用于开启目标显示模式且即刻显示后置画面窗口和前置画面窗口;上述针对功能选择界面的目标触控指令包括针对第一开启控件的选择指令。
第一开启控件的触发效力是一次性的,在该示例中,终端的持有者触控该第一开启控件仅能触发应用程序进行一次画面窗口的切换。基于此,应用程序响应于针对第一开启控件的选择指令,开启目标显示模式,且即刻将显示前置画面窗口切换为同时显示前置画面窗口和后置画面窗口。可选地,第一开启控件的表现形式包括以下任意一项:按钮、图标、滑块。
例如,如图3所示,功能选择界面330/功能选择界面350中包括第一开启控件380,该第一开启控件380为按钮的形式,终端的持有者点击该第一开启控件380即可触发应用程序接收到针对第一开启控件的选择指令,并开启目标显示模式且即刻显示后置画面窗口和前置画面窗口。
在另一个示例中,功能选择界面包括第二开启控件,第二开启控件用于开启目标显示模式且检测显示后置画面窗口和前置画面窗口;上述针对功能选择界面的目标触控指令包括针对第二开启控件的选择指令。
第二开启控件的触发效力是多次的,在该示例中,终端的持有者触控该第二开启控件可以触发应用程序进行至少一次画面窗口的切换。基于此,应用程序响应于针对第二开启控件的选择指令,开启目标显示模式,且进行相应的检测,并在检测结果满足一定条件的情况下,将显示前置画面窗口切换为同时显示前置画面窗口和后置画面窗口。可选地,第二开启控件的表现形式包括以下任意一项:按钮、图标、滑块。
例如,如图3所示,功能选择界面330/功能选择界面350中包括第二开启控件390,该第二开启控件390为按钮的形式,终端的持有者点击该第二开启控件390即可触发应用程序接收到针对第二开启控件的选择指令,并开启目标显示模式。之后,应用程序进行相应的检测,并在检测结果满足一定条件的情况下,显示后置画面窗口和前置画面窗口。
可选地,上述应用程序在开启目标显示模式的情况下进行的检测包括对终 端的持有者的移动状态的检测。基于此,上述步骤230包括:响应于针对第二开启控件的选择指令,获取终端的位置信息;在位置信息指示持有者的移动状态为运动状态的情况下,在用户界面中显示后置画面窗口和前置画面窗口。由于在该示例中,应用程序是基于检测结果自动进行画面窗口的切换,从而可选地,上述步骤230之后,还包括:获取终端的位置信息;在位置信息指示持有者的移动状态为静止状态的情况下,取消显示后置画面窗口。
也即,在该示例中,终端的持有者处于运动状态的情况下,应用程序同时显示前置画面窗口和后置画面窗口;终端的持有者处于静止状态的情况下,应用程序仅显示前置画面窗口。可选地,为了避免画面窗口的自动切换给终端的持有者所带来的突兀感,本申请实施例中,应用程序在进行画面窗口的切换之前,在用户界面中显示切换提示信息,该切换提示信息用于指示画面窗口在目标时长后将发生切换。例如,如图4所示,应用程序在进行画面窗口的切换之前,在用户界面中显示切换提示信息410或切换提示信息420,其中,切换提示信息410用于指示在目标时长后前置画面窗口将切换为前置画面窗口和后置画面窗口,切换提示信息420用于指示在目标时长后前置画面窗口和后置画面窗口将切换为前置画面窗口。可选地,目标时长包括3秒。
综上所述,本申请实施例提供的技术方案,通过在用户触控功能选择界面中相应的操作控件时,即刻进行画面窗口的切换,使得用户能够获得即时的操作反馈,提升用户黏度。另外,本申请实施例提供的技术方案,通过在用户触控功能选择界面中相应的操作控件时,进行相应的检测,并根据检测结果自动进行画面窗口的切换,提升应用程序的智能化程度,释放用户的操作,实现一键完成画面窗口的自动切换。
以应用程序能够提供直播功能为例,请参考图5,其示出了本申请一个实施例提供的画面窗口的显示方法的示意图。该方法可应用于上文介绍的终端10搭载的应用程序30中,如主播终端12搭载的应用程序30中。
如图5所示,应用程序在能够调用终端的位置服务的情况下,获取终端的位置信息。并且,应用程序判断是否开启目标显示模式。在没有开启目标显示模式的情况下,应用程序进行直播的常规显示模式,如显示前置画面窗口;在开启目标显示模式的情况下,应用程序基于终端的位置信息,确定终端的持有者的移动状态,如基于终端的位置信息,确定持有者是否处于运动状态。
在确定持有者处于静止状态的情况下,应用程序仍然进行直播的常规显示模式,如显示前置画面窗口;在确定持有者处于运动状态的情况下,应用程序进行画面窗口的切换,如应用程序调用终端的后置摄像头,并将前置画面窗口切换为前置画面窗口和后置画面窗口。在应用程序进行画面窗口的切换的情况下,应用程序可以同时刷新用户界面中的程序功能内容的显示尺寸,以适应持有者的移动状态。
如图5所示,在开启目标显示模式,且应用程序进行了画面窗口切换的情况下,应用程序仍然获取终端的位置信息,并基于终端的位置信息确定持有者的移动状态,如基于终端的位置信息,确定持有者是否处于静止状态。在确定持有者处于运动状态的情况下,应用程序仍然保持当前的画面窗口;在确定持有者处于静止状态的情况下,应用程序进行画面窗口的切换,如将前置画面窗口和后置画面窗口切换为前置画面窗口,即取消调用后置摄像头。同样地,在应用程序进行画面窗口的切换的情况下,应用程序可以同时刷新用户界面中的程序功能内容的显示尺寸,以适应持有者的移动状态。
在一个示例中,无论应用程序如何显示画面窗口,应用程序始终是将前置摄像头所拍摄的画面上传至服务器。也即,在该示例中,直播内容始终为终端的前置摄像头所拍摄的画面。在另一个示例中,应用程序在显示前置画面窗口的情况下,将前置摄像头所拍摄的画面上传至服务器;应用程序在显示前置画面窗口和后置画面窗口的情况下,将前置摄像头和后置摄像头所拍摄的画面上传至服务器。也即,在该示例中,直播内容与应用程序所调用的摄像头相适应,在仅调用前置摄像头的情况下,直播内容仅为前置摄像头所拍摄的画面;在同时调用前置摄像头和后置摄像头的情况下,直播内容为前置摄像头和后置摄像头所拍摄的画面。
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。
请参考图6,其示出了本申请一个实施例提供的画面窗口的显示装置的框图。该装置具有实现上述画面窗口的显示方法示例的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置可以是上述安装有应用程序的终端,也可以设置在上述安装有应用程序的终端中。该装置600可以包括:窗口显示模块610和界面显示模块620。
窗口显示模块610,用于在应用程序的用户界面中显示前置画面窗口,所述前置画面窗口用于显示终端的前置摄像头所拍摄的画面。
界面显示模块620,用于在所述用户界面中显示功能选择界面,所述功能选择界面用于选择开启目标显示模式,所述目标显示模式是指基于所述终端的持有者的移动状态而切换画面窗口的显示模式。
窗口显示模块610,还用于响应于针对所述功能选择界面的目标触控指令,在所述用户界面中显示后置画面窗口和所述前置画面窗口,所述后置画面窗口用于显示所述终端的后置摄像头所拍摄的画面。
在一个示例中,上述窗口显示模块610,用于:缩小所述前置画面窗口的显示尺寸,得到缩小后的前置画面窗口;在所述用户界面中显示所述后置画面窗口和所述缩小后的前置画面窗口。
在一个示例中,所述后置画面窗口的显示尺寸大于所述前置画面窗口的显示尺寸;所述前置画面窗口位于所述后置画面窗口的显示区域中,且所述前置画面窗口不遮挡所述后置画面窗口的主要显示元素。
在一个示例中,所述功能选择界面包括第一开启控件,所述第一开启控件用于开启所述目标显示模式且即刻显示所述后置画面窗口和所述前置画面窗口;所述针对所述功能选择界面的目标触控指令包括针对所述第一开启控件的选择指令。
在一个示例中,所述功能选择界面包括第二开启控件,所述第二开启控件用于开启所述目标显示模式且检测显示所述后置画面窗口和所述前置画面窗口;所述针对所述功能选择界面的目标触控指令包括针对所述第二开启控件的选择指令。
在一个示例中,上述窗口显示模块610,用于:响应于针对所述第二开启控件的选择指令,获取所述终端的位置信息;在所述位置信息指示所述持有者的移动状态为运动状态的情况下,在所述用户界面中显示所述后置画面窗口和所述前置画面窗口。
在一个示例中,如图7所示,所述装置600还包括:信息获取模块630,用于获取所述终端的位置信息;窗口显示模块610,还用于在所述位置信息指示所述持有者的移动状态为静止状态的情况下,取消显示所述后置画面窗口。
在一个示例中,所述用户界面包括界面呼出控件,所述界面呼出控件用于呼出所述功能选择界面;所述界面显示模块620,用于:响应于针对所述界面呼 出控件的触控指令,在所述用户界面中显示所述功能选择界面。
在一个示例中,所述界面显示模块620,用于:获取所述终端的位置信息;在所述位置信息指示所述持有者的移动状态为运动状态的情况下,在所述用户界面中显示所述功能选择界面。
在一个示例中,所述用户界面包括程序功能内容,所述程序功能内容是指与所述应用程序提供的功能相关的操作控件和/或互动内容;如图7所示,所述装置600还包括内容显示模块640,用于:以第一尺寸显示所述程序功能内容;响应于针对所述功能选择界面的目标触控指令,以第二尺寸显示所述程序功能内容,所述第二尺寸大于所述第一尺寸。
综上所述,本申请实施例提供的技术方案,通过触发开启基于用户的移动状态而切换画面窗口的显示模式,并在满足一定条件的情况下,将显示前置画面窗口切换为同时显示前置画面窗口和后置画面窗口,以向用户同时展示终端的前置摄像头和后置摄像头所拍摄的画面。本申请实施例实现了根据用户的移动状态针对性地优化画面窗口的显示,使得正在直播的主播用户能够在运动过程中同时兼顾直播内容和路况,确保用户的人身安全。
需要说明的是,上述实施例提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
在示例性实施例中,还提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有计算机程序,所述计算机程序由所述处理器加载并执行以实现如上述画面窗口的显示方法。
在示例性实施例中,还提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述画面窗口的显示方法。
在示例性实施例中,还提供一种计算机程序产品,当所述计算机程序产品在终端上运行时,使得终端执行如上述画面窗口的显示方法。
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请 的保护范围之内。
Claims (13)
- 一种画面窗口的显示方法,其特征在于,所述方法包括:在应用程序的用户界面中显示前置画面窗口,所述前置画面窗口用于显示终端的前置摄像头所拍摄的画面;在所述用户界面中显示功能选择界面,所述功能选择界面用于选择开启目标显示模式,所述目标显示模式是指基于所述终端的持有者的移动状态而切换画面窗口的显示模式;响应于针对所述功能选择界面的目标触控指令,在所述用户界面中显示后置画面窗口和所述前置画面窗口,所述后置画面窗口用于显示所述终端的后置摄像头所拍摄的画面。
- 根据权利要求1所述的方法,其特征在于,所述在所述用户界面中显示后置画面窗口和所述前置画面窗口,包括:缩小所述前置画面窗口的显示尺寸,得到缩小后的前置画面窗口;在所述用户界面中显示所述后置画面窗口和所述缩小后的前置画面窗口。
- 根据权利要求1所述的方法,其特征在于,所述后置画面窗口的显示尺寸大于所述前置画面窗口的显示尺寸;所述前置画面窗口位于所述后置画面窗口的显示区域中,且所述前置画面窗口不遮挡所述后置画面窗口的主要显示元素。
- 根据权利要求1所述的方法,其特征在于,所述功能选择界面包括第一开启控件,所述第一开启控件用于开启所述目标显示模式且即刻显示所述后置画面窗口和所述前置画面窗口;所述针对所述功能选择界面的目标触控指令包括针对所述第一开启控件的选择指令。
- 根据权利要求1所述的方法,其特征在于,所述功能选择界面包括第二开启控件,所述第二开启控件用于开启所述目标显示模式且检测显示所述后置画面窗口和所述前置画面窗口;所述针对所述功能选择界面的目标触控指令包括针对所述第二开启控件的选择指令。
- 根据权利要求5所述的方法,其特征在于,所述响应于针对所述功能选择界面的目标触控指令,在所述用户界面中显示后置画面窗口和所述前置画面窗口,包括:响应于针对所述第二开启控件的选择指令,获取所述终端的位置信息;在所述位置信息指示所述持有者的移动状态为运动状态的情况下,在所述用户界面中显示所述后置画面窗口和所述前置画面窗口。
- 根据权利要求5所述的方法,其特征在于,所述在所述用户界面中显示后置画面窗口和所述前置画面窗口之后,还包括:获取所述终端的位置信息;在所述位置信息指示所述持有者的移动状态为静止状态的情况下,取消显示所述后置画面窗口。
- 根据权利要求1所述的方法,其特征在于,所述用户界面包括界面呼出控件,所述界面呼出控件用于呼出所述功能选择界面;所述在所述用户界面中显示功能选择界面,包括:响应于针对所述界面呼出控件的触控指令,在所述用户界面中显示所述功能选择界面。
- 根据权利要求1所述的方法,其特征在于,所述在所述用户界面中显示功能选择界面,包括:获取所述终端的位置信息;在所述位置信息指示所述持有者的移动状态为运动状态的情况下,在所述用户界面中显示所述功能选择界面。
- 根据权利要求1至9任一项所述的方法,其特征在于,所述用户界面包括程序功能内容,所述程序功能内容是指与所述应用程序提供的功能相关的 操作控件和/或互动内容;所述方法还包括:以第一尺寸显示所述程序功能内容;响应于针对所述功能选择界面的目标触控指令,以第二尺寸显示所述程序功能内容,所述第二尺寸大于所述第一尺寸。
- 一种画面窗口的显示装置,其特征在于,所述装置包括:窗口显示模块,用于在应用程序的用户界面中显示前置画面窗口,所述前置画面窗口用于显示终端的前置摄像头所拍摄的画面;界面显示模块,用于在所述用户界面中显示功能选择界面,所述功能选择界面用于选择开启目标显示模式,所述目标显示模式是指基于所述终端的持有者的移动状态而切换画面窗口的显示模式;所述窗口显示模块,还用于响应于针对所述功能选择界面的目标触控指令,在所述用户界面中显示后置画面窗口和所述前置画面窗口,所述后置画面窗口用于显示所述终端的后置摄像头所拍摄的画面。
- 一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器中存储有计算机程序,所述计算机程序由所述处理器加载并执行以实现如权利要求1至10任一项所述的画面窗口的显示方法。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至10任一项所述的画面窗口的显示方法。
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2021/076145 WO2022170449A1 (zh) | 2021-02-09 | 2021-02-09 | 画面窗口的显示方法、装置、终端及存储介质 |
| CN202180000189.2A CN113170225A (zh) | 2021-02-09 | 2021-02-09 | 画面窗口的显示方法、装置、终端及存储介质 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2021/076145 WO2022170449A1 (zh) | 2021-02-09 | 2021-02-09 | 画面窗口的显示方法、装置、终端及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2022170449A1 true WO2022170449A1 (zh) | 2022-08-18 |
Family
ID=76875975
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2021/076145 Ceased WO2022170449A1 (zh) | 2021-02-09 | 2021-02-09 | 画面窗口的显示方法、装置、终端及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN113170225A (zh) |
| WO (1) | WO2022170449A1 (zh) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116456162A (zh) * | 2023-06-15 | 2023-07-18 | 北京达佳互联信息技术有限公司 | 一种直播间对象显示方法、装置、电子设备及存储介质 |
| CN117478946A (zh) * | 2023-11-15 | 2024-01-30 | 北京流金岁月传媒科技股份有限公司 | 一种用于机顶盒运营分析的画面获取方法及系统 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140240551A1 (en) * | 2013-02-23 | 2014-08-28 | Samsung Electronics Co., Ltd. | Apparatus and method for synthesizing an image in a portable terminal equipped with a dual camera |
| CN104365088A (zh) * | 2012-06-08 | 2015-02-18 | 三星电子株式会社 | 使用多个摄像头的多通道通信 |
| CN105162963A (zh) * | 2015-08-06 | 2015-12-16 | 程一帆 | 一种移动状态下自动开启摄像头的方法及装置 |
| CN106165430A (zh) * | 2016-06-29 | 2016-11-23 | 北京小米移动软件有限公司 | 视频直播方法及装置 |
| CN107018334A (zh) * | 2017-03-31 | 2017-08-04 | 努比亚技术有限公司 | 一种基于双摄像头的应用程序处理方法和装置 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10869000B2 (en) * | 2019-02-07 | 2020-12-15 | Salvatore Erna | System and method for providing wide-area imaging and communications capability to a handheld device |
| CN111263101A (zh) * | 2020-01-19 | 2020-06-09 | 北京九方广维科技有限公司 | 一种对讲机显示画面合成方法及装置 |
-
2021
- 2021-02-09 CN CN202180000189.2A patent/CN113170225A/zh active Pending
- 2021-02-09 WO PCT/CN2021/076145 patent/WO2022170449A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104365088A (zh) * | 2012-06-08 | 2015-02-18 | 三星电子株式会社 | 使用多个摄像头的多通道通信 |
| US20140240551A1 (en) * | 2013-02-23 | 2014-08-28 | Samsung Electronics Co., Ltd. | Apparatus and method for synthesizing an image in a portable terminal equipped with a dual camera |
| CN105162963A (zh) * | 2015-08-06 | 2015-12-16 | 程一帆 | 一种移动状态下自动开启摄像头的方法及装置 |
| CN106165430A (zh) * | 2016-06-29 | 2016-11-23 | 北京小米移动软件有限公司 | 视频直播方法及装置 |
| CN107018334A (zh) * | 2017-03-31 | 2017-08-04 | 努比亚技术有限公司 | 一种基于双摄像头的应用程序处理方法和装置 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116456162A (zh) * | 2023-06-15 | 2023-07-18 | 北京达佳互联信息技术有限公司 | 一种直播间对象显示方法、装置、电子设备及存储介质 |
| CN116456162B (zh) * | 2023-06-15 | 2023-10-27 | 北京达佳互联信息技术有限公司 | 一种直播间对象显示方法、装置、电子设备及存储介质 |
| CN117478946A (zh) * | 2023-11-15 | 2024-01-30 | 北京流金岁月传媒科技股份有限公司 | 一种用于机顶盒运营分析的画面获取方法及系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN113170225A (zh) | 2021-07-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11880999B2 (en) | Personalized scene image processing method, apparatus and storage medium | |
| US20240040211A1 (en) | Methods, Systems, and Media For Presenting Interactive Elements Within Video Content | |
| CN110782532B (zh) | 图像生成方法、生成装置、电子设备及存储介质 | |
| JP2023501553A (ja) | 情報再生方法、装置、コンピュータ読み取り可能な記憶媒体及び電子機器 | |
| CN107526591B (zh) | 切换直播间类型的方法和装置 | |
| US20230024761A1 (en) | Method for playing videos and electronic device | |
| WO2022073389A1 (zh) | 视频画面的展示方法及电子设备 | |
| CN113360034A (zh) | 画面显示方法、装置、计算机设备及存储介质 | |
| CN116708866A (zh) | 用于特效处理的方法、装置、设备和存储介质 | |
| WO2022170449A1 (zh) | 画面窗口的显示方法、装置、终端及存储介质 | |
| CN112333518B (zh) | 用于视频的功能配置方法、装置及电子设备 | |
| CN113485596A (zh) | 虚拟模型的处理方法、装置、电子设备及存储介质 | |
| CN115129203A (zh) | 应用程序的界面显示方法及装置 | |
| CN114222173B (zh) | 一种对象显示方法、装置、电子设备及存储介质 | |
| JP2022171661A (ja) | 動画を作成するためのシステム、方法、及びプログラム | |
| CN116017086A (zh) | 交互处理方法、装置、电子设备及存储介质 | |
| CN113419660A (zh) | 视频资源处理方法、装置、电子设备及存储介质 | |
| CN116170534B (zh) | 一种视频播放方法、装置、电子设备及存储介质 | |
| CN117376627A (zh) | 一种资源交互方法、装置、电子设备及存储介质 | |
| CN116248966A (zh) | 一种直播交互方法、装置、电子设备及存储介质 | |
| CN116170624A (zh) | 一种对象展示方法、装置、电子设备及存储介质 | |
| CN111586465B (zh) | 直播间的操作交互方法、装置、设备及存储介质 | |
| CN116248942A (zh) | 互动处理方法、装置、电子设备及存储介质 | |
| CN115002492A (zh) | 一种信息显示方法、装置、电子设备及存储介质 | |
| CN116055783B (zh) | 一种视频播放方法、装置、电子设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21925132 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 21925132 Country of ref document: EP Kind code of ref document: A1 |