WO2023240973A1 - Display device and screen-projection method - Google Patents

Display device and screen-projection method Download PDF

Info

Publication number
WO2023240973A1
WO2023240973A1 PCT/CN2022/140843 CN2022140843W WO2023240973A1 WO 2023240973 A1 WO2023240973 A1 WO 2023240973A1 CN 2022140843 W CN2022140843 W CN 2022140843W WO 2023240973 A1 WO2023240973 A1 WO 2023240973A1
Authority
WO
WIPO (PCT)
Prior art keywords
video stream
follow
video
training
display
Prior art date
Application number
PCT/CN2022/140843
Other languages
French (fr)
Chinese (zh)
Inventor
陈效总
佘祥顺
赖园园
薛梅
庞秀娟
范传恒
李鑫
张凯
Original Assignee
聚好看科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202210689400.2A external-priority patent/CN116795462A/en
Priority claimed from CN202210743842.0A external-priority patent/CN116801027A/en
Priority claimed from CN202210764007.5A external-priority patent/CN116801019A/en
Priority claimed from CN202210767185.3A external-priority patent/CN116800707A/en
Application filed by 聚好看科技股份有限公司 filed Critical 聚好看科技股份有限公司
Publication of WO2023240973A1 publication Critical patent/WO2023240973A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware

Definitions

  • the embodiments of this application relate to the field of display technology. More specifically, it relates to a display device and a screen projection method.
  • Multi-screen collaboration technology refers to the collaborative work of multiple screens, which includes projecting the screen content of one device to other devices for display. For example, the screen content of the mobile phone is projected to the computer for display, so that the user can watch the content displayed on the screen of the mobile phone on the computer, thus realizing the same screen display between the mobile phone and the computer.
  • Some embodiments of the present application provide a display device, including: a display; and a controller configured to: in response to a received start instruction, display a follow-up training interface on the display, wherein the follow-up training interface includes a first window and a second window, the first window is used to play the training video stream obtained from the server, and the second window is used to play the follow-up video stream received from the terminal device.
  • Some embodiments of the present application provide a screen projection method, including: in response to a received startup instruction, displaying a follow-up training interface on the display of the display device, wherein the follow-up training interface includes a first window and a second window, so The first window is used to play the training video stream obtained from the server, and the second window is used to play the follow-up video stream received from the terminal device.
  • Figure 1A is a scene architecture diagram of a screen casting method according to some embodiments.
  • Figure 1B is a system network architecture diagram of a communication message processing method according to some embodiments.
  • Figure 2 is a hardware configuration block diagram of a control device according to some embodiments.
  • Figure 3A is a hardware configuration block diagram of a display device or terminal device according to some embodiments.
  • Figure 3B is a hardware configuration block diagram of a mobile terminal according to some embodiments.
  • Figure 4A is a software configuration diagram of a display device or mobile terminal according to some embodiments.
  • Figure 4B is a schematic diagram of software interaction between a mobile terminal and a display device implementing a follow-up page control method according to some embodiments;
  • Figure 5 is a step flow chart of a screen projection method according to some embodiments.
  • Figure 6 is a step flow chart of a screen projection method according to other embodiments.
  • Figure 7 is a schematic diagram of the scene of the screen projection method shown in Figure 6;
  • Figure 8 is a schematic diagram of the screen projection method shown in Figure 6;
  • Figure 9 is a step flow chart of a screen projection method according to other embodiments.
  • Figure 10 is a schematic diagram of the screen projection method shown in Figure 9;
  • Figure 11 is a step flow chart of a screen projection method according to other embodiments.
  • Figure 12 is a schematic diagram of the scene of the screen projection method shown in Figure 11;
  • Figure 13 is a schematic diagram of the screen projection method shown in Figure 11;
  • Figure 14 is a step flow chart of a screen projection method according to other embodiments.
  • Figure 15 is a schematic diagram of the screen projection method shown in Figure 14;
  • Figure 16 is a step flow chart of a screen projection method according to other embodiments.
  • Figure 17 is a schematic diagram of the scene of the screen projection method shown in Figure 16;
  • Figure 18 is a schematic diagram of the screen projection method shown in Figure 16.
  • Figure 19 is a scene architecture diagram of a screencasting method according to some embodiments.
  • Figure 20 is a schematic flowchart of a method for controlling a follow-up page according to some embodiments.
  • Figure 21 is a schematic diagram of a scene displaying a follow-up page according to some embodiments.
  • Figure 22 is a schematic diagram of displaying power data in a follow-up training page according to some embodiments.
  • Figure 23 is a schematic flowchart of another follow-up page control method according to some embodiments.
  • Figure 24 is a schematic diagram of displaying prompt information in a follow-up page according to some embodiments.
  • Figure 25 is a schematic flowchart of another follow-up page control method according to some embodiments.
  • Figure 26 is a schematic diagram of prompting to terminate follow-up training on the follow-up training page according to some embodiments.
  • Figure 27 is an interactive schematic diagram of a follow-up page control method according to some embodiments.
  • Figure 28 is an interactive schematic diagram of another follow-up page control method according to some embodiments.
  • Figure 29A is a schematic flowchart of a communication message processing method according to some embodiments.
  • Figure 29B is a schematic signal flow diagram of a communication message processing method according to some embodiments.
  • Figure 30A is a schematic flowchart of another communication message processing method according to some embodiments.
  • Figure 30B is a schematic signal flow diagram of another communication message processing method according to some embodiments.
  • Figure 31A is a schematic flowchart of yet another communication message processing method according to some embodiments.
  • Figure 31B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments.
  • Figure 32A is a schematic flowchart of yet another communication message processing method according to some embodiments.
  • Figure 32B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments.
  • Figure 33A is a schematic flowchart of yet another communication message processing method according to some embodiments.
  • Figure 33B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments.
  • Figure 34A is a schematic flowchart of yet another communication message processing method according to some embodiments.
  • Figure 34B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments.
  • Figure 35A is a schematic flowchart of yet another communication message processing method according to some embodiments.
  • Figure 35B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments.
  • Figure 36 is a schematic structural diagram of an electronic device according to some embodiments.
  • Figure 37A is a schematic flowchart of a screen projection method according to some embodiments.
  • Figure 37B is a schematic signal flow diagram of a screen projection method according to some embodiments.
  • Figure 37C is an interactive schematic diagram according to some embodiments.
  • Figure 38A is a schematic flowchart of another screen projection method according to some embodiments.
  • Figure 38B is a schematic signal flow diagram of another screen projection method according to some embodiments.
  • Figure 38C is a schematic flowchart of yet another screencasting method according to some embodiments.
  • Figure 38D is a schematic signal flow diagram of yet another screen projection method according to some embodiments.
  • Figure 39A is a schematic flowchart of yet another screen projection method according to some embodiments.
  • Figure 39B is a schematic signal flow diagram of yet another screen projection method according to some embodiments.
  • the solution to achieve the same camera function on the TV side is to interconnect the mobile phone with the TV, collect the video through the camera of the mobile phone, and project the collected images to the TV for display.
  • the aspect ratios of TV and mobile phone screens are generally very different, and mobile phones can capture videos in various postures such as horizontal screen recording and vertical screen recording. Therefore, the projected videos sent by mobile phones are often different from those used for playing projections on TVs.
  • the video playback window of the screen video does not match, which leads to problems such as incomplete video images and imbalanced proportions, seriously affecting the user experience. Therefore, when the TV receives the screen projection video stream sent by the mobile phone, how to adjust the screen projection video stream so that the screen projection video stream can adapt to the video playback window is an urgent problem to be solved.
  • a display device and a screen projection method are provided to solve the problem that the projected video sent by the mobile phone may not match the video playback window used to play the screen projection video on the TV.
  • FIG. 1A is a schematic diagram of the scene architecture of the screen casting method provided by the embodiment of the present application.
  • the scene architecture provided by the embodiment of the present application includes: a control device 100, a display device 200, a terminal device 300, and a server 400.
  • the display device may be in data communication with server 400.
  • the user can operate the display device 200 through the terminal device 300 or the control device 100, and can send a video stream to the display device 200 through the terminal device 300 to control the display device 200 to perform corresponding operations, and perform operations according to the video stream sent by the display device 200.
  • the display device provided by the embodiment of the present application can have a variety of implementation forms, such as a television, a smart speaker refrigerator with a display function, a curtain with a display function, a personal computer (Personal Computer, PC), a laser projection device, a monitor (monitor) ), electronic whiteboard (electronic bulletin board), wearable devices, vehicle-mounted equipment, electronic desktop (electronic table), etc.
  • control device 100 may be a remote controller.
  • the communication between the remote controller and the display device 200 includes infrared protocol communication or Bluetooth protocol communication, and other short-distance communication methods to control the display device 200 through wireless or wired methods.
  • the user can control the display device 200 by inputting user instructions through buttons on the remote control, voice input, control panel input, etc.
  • the display device 200 can also be controlled using a terminal device 300 (such as a mobile terminal, a tablet, a computer, a laptop, an AR/VR device, etc.).
  • a terminal device 300 such as a mobile terminal, a tablet, a computer, a laptop, an AR/VR device, etc.
  • the display device 200 is controlled using an application program running on the terminal device.
  • the terminal device 300 and the display device may also be used to communicate data.
  • the display device 200 can also be controlled in a manner other than the control device 100 and the terminal device 300 .
  • the display device 200 can directly receive the user's voice command control through a module configured inside the display device 200 to obtain voice commands.
  • the display device 200 can also perform data communication with the server 400 to obtain related media resources from the server.
  • the display device 200 may be allowed to communicate with the server 400 through a local area network (LAN) or a wireless local area network (WLAN).
  • the server 400 can provide media resource services and various contents and interactions to the display device 200 .
  • FIG. 2 is a block diagram illustrating the configuration of the control device 100 in the embodiment shown in FIG. 1 .
  • the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply.
  • the control device 100 can receive the operation instructions input by the user, convert the operation instructions into instructions that the display device 200 can recognize and respond to, and forward the operation instructions or instructions obtained by converting the voice instructions to the display device 200 to interact between the user and the display device 200 The intermediary role between.
  • the display device 200 or the terminal device 300 includes a tuner and demodulator 210, a communicator (also called a communication interface) 220, a detector 230, an external device interface 240, a controller 250, a display 260, and an audio output interface 285. , at least one of memory, power supply, and user input interface 280 .
  • the controller 250 includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, and first to nth interfaces for input/output.
  • the detector 230 is used to collect signals from the external environment or interactions with the outside.
  • the detector 230 includes a light receiver, a sensor used to collect ambient light intensity; or the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures, or , the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
  • the external device interface 240 may include, but is not limited to, any one of the following: high-definition multimedia interface (HDMI), analog or data high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc., or Multiple interfaces. It can also be a composite input/output interface formed by the above-mentioned multiple interfaces.
  • HDMI high-definition multimedia interface
  • component analog or data high-definition component input interface
  • CVBS composite video input interface
  • USB USB input interface
  • RGB port etc.
  • Multiple interfaces can also be a composite input/output interface formed by the above-mentioned multiple interfaces.
  • the user may input a user command into a graphical user interface (GUI) displayed on the display 260, and the user interface receives the user input command through the graphical user interface (GUI).
  • GUI graphical user interface
  • the user can input a user command by inputting a specific sound or gesture, and the user interface recognizes the sound or gesture through the sensor to receive the user input command.
  • the user input interface 280 is an interface that can be used to receive control input (such as physical buttons on the display device body, or others).
  • the operating system of the display device 200 is divided into four layers. From top to bottom, they are the Applications layer (referred to as the "Application layer”) and the Application Framework layer. (referred to as “framework layer”), Android runtime (Android runtime) and system library layer (referred to as “system runtime library layer”), and kernel layer.
  • Applications layer referred to as the "Application layer”
  • Application Framework layer referred to as “framework layer”
  • Android runtime Android runtime
  • system library layer referred to as “system runtime library layer”
  • kernel layer the kernel layer.
  • the application framework layer in the embodiment of the present application includes managers (Managers), content providers (Content Provider), etc., where the manager includes at least one of the following modules: Activity Manager (Activity Manager) Interact with all activities running in the system; Location Manager is used to provide system services or applications with access to system location services; Package Manager is used to retrieve files currently installed on the device Various information related to the application; Notification Manager is used to control the display and clearing of notification messages; Window Manager is used to manage icons, windows, toolbars, wallpapers and desktops on the user interface part.
  • Activity Manager Activity Manager
  • Location Manager is used to provide system services or applications with access to system location services
  • Package Manager is used to retrieve files currently installed on the device Various information related to the application
  • Notification Manager is used to control the display and clearing of notification messages
  • Window Manager is used to manage icons, windows, toolbars, wallpapers and desktops on the user interface part.
  • the controller 250 displays a follow-up interface on the display 260 in response to the received trigger instruction (also called a start instruction), where the follow-up interface includes a first video playback window and a third video playback window.
  • the follow-up interface includes a first video playback window and a third video playback window.
  • Two video playback windows also known as the first window and the second window
  • the second video window is used to play the fitness video obtained from the server;
  • the controller 250 when the controller 250 receives the first video stream generated by the terminal device based on its video recording device sent by the terminal device through the communicator 220, the controller 250 uses the identification information, video playback parameters and The size of the first video stream is used to obtain a scaling ratio, the first video stream is scaled according to the scaling ratio to obtain a second video stream, and the layout is obtained according to the video playback parameters and the size of the second video stream.
  • Offset parameter offset the second video stream based on the layout offset parameter, and control the display 260 to play the offset second video stream in the first video window.
  • the first video window is used to play the fitness video obtained from the server, and the second video window plays the offset second video stream.
  • the identification information includes: a first gesture identification or a second gesture identification; when the identification information includes a first gesture identification, the identification information is used to identify the terminal device to record the first gesture.
  • the posture when recording the video corresponding to the video stream is the portrait posture; when the identification information includes a second posture identification, the identification information is used to identify the posture when the terminal device records the video corresponding to the first video stream. Horizontal posture.
  • the video playback parameters corresponding to the first gesture identification and the video playback parameters corresponding to the second gesture identification are different.
  • the controller 250 adjusts the posture of the terminal device according to the scaling ratio.
  • the first video stream is scaled to obtain the second video stream, and the layout offset parameter is obtained according to the video playback parameter and the size of the second video stream, including: the controller 250 according to the width of the first video stream. and the target width to obtain the first scaling ratio; the target width is the width of the first video playback window or the width of the preset video stream size;
  • the controller 250 offsets the second video stream based on the layout offset parameter, including the controller offsets the second video stream in a height direction based on the first layout offset parameter. shift.
  • the first scaling ratio is the ratio of the target width to the width of the first video stream
  • the first layout offset parameter is the height of the second video stream to the first video playback window. half the difference in height.
  • the identification information when the identification information is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a horizontal screen posture,
  • the controller 250 obtains a scaling ratio according to the identification information, video playback parameters and the size of the first video stream, and scales the first video stream according to the scaling ratio to obtain a second video stream, including:
  • the controller 250 obtains the second scaling ratio according to the height of the first video stream and the target height; the target height is the height of the first video playback window or the height in the preset video stream size; using the The second scaling ratio scales the first video stream to obtain the second video stream;
  • the controller 250 obtains the layout offset parameter according to the video playback parameter and the size of the second video stream, including: the controller 250 obtains the layout offset parameter according to the width of the second video stream and the width of the first video playback window. , obtain a second layout offset parameter; and offset the second video stream in the width direction based on the second layout offset parameter.
  • the second scaling ratio is the ratio of the target height to the height of the first video stream; the second layout offset parameter is the width of the second video stream and the first video play window half the difference in width.
  • the communicator 250 offsets the second video stream based on the layout offset parameter, and controls the display to play the offset second video in the first video window.
  • the controller 250 is also configured to:
  • a third zoom ratio is obtained according to the size of the selected area and the size of the first video playback window; the trimming and playback instruction carries the size of the selected area and the size of the selected area.
  • the position information of a certain area is used to indicate video playback based on the video content of the first video stream in the selected area; the third scaling ratio is the smaller of the first ratio and the second ratio,
  • the first ratio is the ratio of the height of the first video playback window to the height of the selected area
  • the second ratio is the ratio of the width of the first video playback window to the width of the selected area. ratio;
  • Video playback is performed in the first video playback window based on the third video stream, and the third video stream is offset in the width direction based on the third layout offset parameter. Based on the fourth The layout offset parameter offsets the third video stream in the height direction, and controls the display to play the offset third video stream in the first video window.
  • the controller 250 obtains a third layout bias according to the third zoom ratio, the width of the first video playback window, the position information of the selected area, and the width of the selected area. Shift parameters, including:
  • the controller 250 calculates the third layout offset parameter through the following formula 1:
  • CLIP 3 (X+select_w/2)*R3-WL/2;
  • the controller 250 obtains a fourth layout offset parameter according to the third zoom ratio, the height of the first video playback window, the position information of the selected area, and the height of the selected area, including:
  • the controller 250 calculates the third layout offset parameter through the following formula 2:
  • CLIP 4 (Y+select_h/2)*R3-HL/2;
  • CLIP 3 is the third layout offset parameter
  • CLIP 4 is the fourth layout offset parameter
  • X is the distance from the left edge of the selected area to the left edge of the first video stream.
  • Y is the distance from the top edge of the selected area to the top edge of the first video stream
  • select_w/2 and select_h/2 are the width and height of the selected area respectively
  • R3 is the Three scaling ratios
  • WL and HL are the width and height of the first video playback window respectively.
  • FIG. 5 is a schematic flowchart of a screen casting method provided according to some embodiments of the present application. As shown in Figure 5, the screen casting method provided by embodiments of the present application includes the following steps:
  • the first video stream is a video stream obtained through video collection by a video recording device of the terminal device, and carries an identifier used to identify the posture of the terminal device when recording the video corresponding to the first video stream. information.
  • the first video stream may be a video stream that is recorded in real time by the terminal device through a video recording device and sent to the display device. In other embodiments, the first video stream may also be a video stream sent to the display device when the terminal device displays the pre-recorded video on the screen.
  • the terminal device in the embodiment of the present application may be a mobile phone, and the video recording device of the terminal device may be a front/rear camera of the mobile phone.
  • a triggering instruction may be received first to display a follow-up training interface on the display, where the follow-up training interface includes a first video playback window and a second video playback window, and the second video window is used for playback Fitness videos obtained from the server.
  • the triggering instruction may be triggered after the user performs an operation on the terminal device to trigger the display of the follow-up training interface.
  • the triggering instruction may also be an instruction received by the display device from another control device to trigger display of the training interface.
  • the scaling ratio may be obtained only based on the identification information, the preset video stream size, and the size of the first video stream, thereby scaling the first video stream to a video stream of the preset video stream size.
  • the scaling ratio can be obtained according to the identification information, the size of the first video playback window, the preset video stream size, and the size of the first video stream, so that the size of the scaled first video stream While adapting to the size of the first video playback window, it is more consistent with the aspect ratio of the original video.
  • the size of the first video playback window is 629 ⁇ 629.
  • the default video stream size can be set to 450 ⁇ 629.
  • the size of the first video playback window is 629 ⁇ 629.
  • the default video stream size can be set to 629 ⁇ 450.
  • the video playback parameters include the size of the first video playback window for playing the first video stream and/or the preset video stream size.
  • different video playback parameters can be set for different gesture identifiers, That is to say, different gestures of the terminal device when recording the video corresponding to the first video stream may correspond to different sizes of the first video playback window and/or preset video stream sizes.
  • the identification information when the identification information includes a first posture identification, it indicates that the posture of the terminal device when recording the video corresponding to the first video stream is a horizontal screen posture.
  • the corresponding video playback parameters may be: The size of the first video stream is 1920 ⁇ 1080, and the size of the first video playback window is 626 ⁇ 629.
  • the identification information when the identification information includes a second posture identification, it indicates that the posture of the terminal device when recording the video corresponding to the first video stream is a portrait posture.
  • the corresponding video playback parameters may be: The size of the first video stream is 1080 ⁇ 1920, and the size of the first video playback window is 626 ⁇ 629.
  • the length or width of the first video stream can be adapted to the video playback parameters.
  • the length or width of the second video stream can be adapted to the video playback parameters, but the other of the length and width of the second video stream needs to be adjusted to adjust the length and width of the second video stream. All are compatible with video playback parameters.
  • the way to adapt the other one of the length and width of the second video stream to the video playback parameters is to adjust the second video stream between the length and the width when playing the video according to the second video stream.
  • the width of the other one is offset in the direction. Therefore, in the embodiment of the present invention, it is necessary to first obtain the layout offset parameter according to the video playback parameters and the size of the second video stream, so that subsequent playback can be based on the second video stream. Layout offset during video playback.
  • offsetting the second video stream based on the layout offset parameter may include: adjusting the origin of the coordinate system of the second video stream based on the layout parameter to offset the second video stream. offset.
  • offsetting the second video stream based on the layout offset parameter may also include: calculating each edge (top edge, bottom edge, left edge, etc.) of the second video stream based on layout parameter adjustment. edge and right edge) of the first video playback window, and then offset the second video stream according to the distance between the edges of the first video playback window corresponding to each edge of the second video stream.
  • the screen projection method when receiving the first video stream generated by the video recording device of the terminal device and sent by the receiving terminal device, will first play the video according to the identification information carried by the first video stream. parameters and the size of the first video stream to obtain the scaling ratio, then scale the first video stream according to the scaling ratio to obtain the second video stream, and obtain the second video stream according to the video playback parameters and the size of the second video stream.
  • the size obtains the layout offset parameter, and finally performs video playback in the first video playback window based on the second video stream, and offsets the second video stream based on the layout offset parameter.
  • the embodiment of the present invention can zoom the first video stream according to the posture of the terminal device when recording the video corresponding to the first video stream, so that the obtained second video stream is in horizontally or vertically adapted to the video playback parameters; because the embodiment of the present invention will also obtain the layout offset parameter based on the video playback parameters and the size of the second video stream, and based on the layout during video playback The offset parameter offsets the second video stream, so this embodiment of the present invention can make the second video stream adapt to the video playback parameters in another direction.
  • examples of the present invention can adapt the size of the screen projection video stream to the video playback window and/or the preset video stream size for playing the screen projection video stream in both horizontal and vertical directions.
  • another screen projection method provided by an embodiment of the present invention includes:
  • the display device 71 is a television and the terminal device 72 is a mobile phone.
  • the posture of the terminal device 72 when recording the video corresponding to the first video stream is a portrait posture.
  • the width refers to the number of pixels included in the pixel row (horizontally), and the height refers to the number of pixels included in the pixel column (vertical).
  • the size of the first video stream is the same as the resolution of the screen of the terminal device, for example: the screen of the terminal device
  • the resolution is 1080 ⁇ 1920
  • the size of the first video stream is 1080 ⁇ 1920.
  • the first scaling ratio is a ratio of a width of the first video playback window to a width of the first video stream.
  • the first scaling ratio is R1
  • the size of the first video stream is W1 ⁇ H1
  • the size of the first video playback window is WL ⁇ HL
  • the size of the first video stream is 1080 ⁇ 1920
  • the size of the first video playback window is 626 ⁇ 629
  • the first scaling ratio R1 629/1080
  • the first The size of the second video stream obtained by scaling the first video stream by the scaling ratio is 629 ⁇ 1118.
  • the width of the second video stream has adapted to the first video playback window.
  • the first layout offset parameter is half of the difference between the height of the second video stream and the height of the first video playback window.
  • the first layout offset parameter CLIP 1 1/2 ( 1118-629).
  • another screen projection method provided by an embodiment of the present invention includes:
  • the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries a message indicating that the posture of the terminal device when recording the video corresponding to the first video stream is vertical. Identification information of screen posture;
  • the first scaling ratio is a ratio of a width in the preset video stream size to a width of the first video stream.
  • the first scaling ratio is R1
  • the size of the first video stream is W1 ⁇ H1
  • the preset video stream size is WS ⁇ HS
  • the first scaling ratio R1 450/1080.
  • the size of the first video stream is 1080 ⁇ 1920
  • the preset video stream size is 450 ⁇ 629
  • the first scaling ratio R1 450/1080, then the first scaling ratio is used
  • the size of the second video stream obtained by scaling the first video stream is 450 ⁇ 800.
  • the width of the second video stream is the same as the width of the preset video playback stream.
  • the first layout offset parameter is half of the difference between the height of the second video stream and the height of the first video playback window.
  • the first layout offset parameter is CLIP 1
  • the size of the second video stream is W2 ⁇ H2
  • the size of the first video playback window is WL ⁇ HL
  • the first layout offset parameter CLIP 1 1/2 ( 800-629).
  • the size of the first video stream is 1080 ⁇ 1920
  • the size of the first video playback window 1000 is 629 ⁇ 629
  • the preset video stream size is 450 ⁇ 629.
  • An example is provided to illustrate the screen projection method provided in the above embodiment.
  • a first scaling ratio 450/1080 is obtained according to the width 1080 of the first video stream 101 and the width 450 of the first video playback window, and then the first video is scaled according to the first scaling ratio 450/1080.
  • the stream 101 is zoomed to obtain the second video stream 102.
  • the size of the second video stream 102 is 450 ⁇ 800.
  • a layout offset parameter of 85 is used to achieve the display effect shown in Figure 10.
  • the aspect ratio of the video finally displayed in the screen projection method shown in Figure 9 is closer to the aspect ratio of the screen of the terminal device in the portrait mode, so the projection screen of the terminal device can be better displayed.
  • another screen projection method provided by an embodiment of the present invention includes:
  • the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries a message indicating that the posture of the terminal device when recording the video corresponding to the first video stream is horizontal. Identification information of screen posture;
  • the display device 121 is a television and the terminal device 122 is a mobile phone.
  • the posture of the terminal device 122 when recording the video corresponding to the first video stream is a horizontal screen posture.
  • the width here refers to the number of pixels contained in the pixel row (horizontally), and the height refers to the number of pixels contained in the pixel column (vertical).
  • the first scaling ratio is a ratio of a height of the first video playback window to a height of the first video stream.
  • the first scaling ratio R2 629/1080.
  • the size of the first video stream is 1920 ⁇ 1080
  • the size of the first video playback window is 626 ⁇ 629
  • the second scaling ratio R2 629/1080
  • the first The size of the second video stream obtained by scaling the first video stream by the scaling ratio is 1118 ⁇ 629.
  • the height of the second video stream has adapted to the first video playback window.
  • the second layout offset parameter is half of the difference between the width of the second video stream and the width of the first video playback window.
  • the second layout offset parameter is CLIP 2
  • the size of the second video stream is W2 ⁇ H2
  • the size of the first video playback window is WL ⁇ HL
  • the second layout offset parameter CLIP 2 1/2 ( 1118-629).
  • the screen projection method provided by the above embodiment is explained by taking the size of the first video stream as 1920 ⁇ 1080 and the size of the first video playback window 1300 as 629 ⁇ 629 as an example.
  • a first scaling ratio 629/1080 is obtained according to the height 1080 of the first video stream 131 and the width 629 of the first video playback window, and then the first video is scaled according to the first scaling ratio 629/1080.
  • the stream 131 is zoomed to obtain the second video stream 132.
  • the size of the second video stream 132 is 1118 ⁇ 629.
  • the second video stream 132 is obtained.
  • Layout offset parameters Finally, video playback is performed in the first video playback window 1300 based on the second video stream 132, and the second video stream is offset to the left by the first layout offset parameter 244 to achieve the display shown in Figure 13 Effect.
  • another screen projection method provided by an embodiment of the present invention includes:
  • the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries a message indicating that the posture of the terminal device when recording the video corresponding to the first video stream is horizontal. Identification information of screen posture;
  • the second scaling ratio is a ratio of a height in the preset video stream size to a height of the first video stream.
  • the second scaling ratio is R2
  • the size of the first video stream is W1 ⁇ H1
  • the preset video stream size is WS ⁇ HS
  • the first scaling ratio R1 450/1080.
  • the size of the first video stream is 1920 ⁇ 1080
  • the preset video stream size is 450 ⁇ 629
  • the second scaling ratio R2 450/1080, then the second scaling ratio is used
  • the size of the second video stream obtained by scaling the first video stream is 800 ⁇ 450.
  • the height of the second video stream is the same as the height of the preset video playback stream.
  • the second layout offset parameter is half of the difference between the width of the second video stream and the width of the first video playback window.
  • the second layout offset parameter is CLIP 2
  • the size of the second video stream is W2 ⁇ H2
  • the size of the first video playback window is WL ⁇ HL
  • the second layout offset parameter CLIP 2 1/2 ( 800-629).
  • the size of the first video stream is 1920 ⁇ 1080
  • the size of the first video playback window 1500 is 629 ⁇ 629
  • the preset video stream size is 450 ⁇ 629.
  • An example is provided to illustrate the screen projection method provided in the above embodiment.
  • a first scaling ratio 450/1080 is obtained according to the height 1080 of the first video stream 151 and the height 450 of the first video playback window, and then the first video is scaled according to the first scaling ratio 450/1080.
  • the stream 151 is zoomed to obtain the second video stream 152.
  • the size of the second video stream 152 is 800 ⁇ 450.
  • a layout offset parameter of 85 is used to achieve the display effect shown in Figure 15.
  • the aspect ratio of the video finally displayed in the screen projection method shown in Figure 16 is closer to the aspect ratio of the screen of the terminal device in the horizontal screen state, so the projection screen of the terminal device can be better displayed.
  • a screen projection method provided by another embodiment of the present invention includes:
  • the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries an identifier used to identify the posture of the terminal device when recording the video corresponding to the first video stream. information.
  • the subsequently received first video stream sent by the terminal device can also be processed and displayed in the manner shown in Figure 16 .
  • the trimming and playback instruction carries the size of the selected area and the position information of the selected area, and is used to instruct video playback based on the video content of the first video stream in the selected area.
  • the display device 171 is a television and the terminal device 172 is a mobile phone.
  • the terminal device 172 determines the selected area 1700 in response to the user operation, and sends a trimming playback instruction to the display device 171 for instructing video playback based on the video content of the first video stream in the selected area.
  • the size of the selected area and the selected area can be characterized by the position coordinates (x1, y1) of the upper right vertex of the selected area and the position coordinates (x2, y2) of the lower left vertex of the selected area. Location information for the region.
  • the third scaling ratio is the smaller of the first ratio and the second ratio
  • the first ratio is the ratio of the height of the first video playback window to the height of the selected area
  • the second ratio is the ratio of the width of the first video playback window to the width of the selected area.
  • the size of the selected area is select_w ⁇ select_h
  • the size of the first video playback window is 629 ⁇ 629
  • the third scaling ratio is R3, then there is:
  • the third scaling ratio R3 629/360.
  • the third scaling ratio R3 629/256.
  • the controller is specifically configured to calculate the fourth layout offset parameter through the following formula 2:
  • the size of the first video stream is 1920 ⁇ 1080
  • the size of the first video playback window is 629 ⁇ 629
  • the size of the selected area is 480 ⁇ 270.
  • the distance from the left edge of the selected area to the left edge of the first video stream is 1000
  • the distance from the top edge of the selected area to the top edge of the first video stream is 400.
  • the third scaling ratio is determined to be 629/480.
  • the first video stream 181 is scaled according to the third scaling ratio to obtain the third video stream 182.
  • the scene construction includes a fitness video server 191 , a display device 192 and a terminal device 193 .
  • the display device 192 can obtain the fitness video from the fitness video server 191 and play it in the second video playback window 1922; the user can watch the fitness video played by the display device 192 and follow the fitness video for fitness training; the terminal device 193 can record through the video
  • the device performs video recording to obtain the first video stream, and sends the first video stream to the display device 192.
  • the screen projection method provided by the embodiment of the present invention is used to perform the first video stream.
  • a video playback window 1921 is used to play the screencast video.
  • the display device further carries out the following design
  • the screen projection method according to some embodiments of the present disclosure further includes a follow-up page control method.
  • the present disclosure also provides a mobile terminal. After following a certain training video in response to a user trigger in the mobile terminal, the display can collect the follow-up video data through the mobile terminal, and determine the corresponding training video data and follow-up page identification according to the training video identification and follow-up page identification sent by the mobile terminal. The follow-up page data can also obtain the power data of the mobile terminal.
  • the communication interface 130 is configured to: send the training video identifier, the follow-up page identifier, the follow-up video data, and the power data of the mobile terminal to the display device.
  • the controller 110 is further configured to: cancel the display of the follow-up training page when it is determined that the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold; and controlling the communication interface to send a first notification message to the mobile terminal, where the first notification message is used to notify the mobile terminal to stop collecting the follow-up video data.
  • the controller 110 is further configured to: output first prompt information when it is determined that the power data indicates that the remaining power is less than or equal to the second power threshold, and the first prompt The information is used to prompt that the battery of the mobile terminal is too low;
  • the display 260 is configured to display a user interface; the controller 250 is configured to obtain a training video identifier, a follow-up page identifier, follow-up video data, and power data of the mobile terminal.
  • the video data is video data collected by the mobile terminal; determine the follow-up page data corresponding to the follow-up page identification, obtain the corresponding training video data from the server according to the training video identification; control the display 260 based on the follow-up page identification
  • the training page data, the training video data and the following training video data display the following training page, the following training page includes a first window and a second window, and the training video data is displayed in the first window,
  • the follow-up video data is displayed in the second window; the controller 250 is also configured to control the display to display the power data in the follow-up page.
  • the communication interface 220 is configured to: receive the training video identifier, the follow-up page identifier, the follow-up video data and the power data of the mobile terminal sent by the mobile terminal, where the follow-up video data is the Video data collected by the mobile terminal;
  • the controller 250 is configured to: determine the follow-up page data corresponding to the follow-up page identification, obtain the corresponding training video data from the server according to the training video identification; control the display based on the The following training page data, the training video data and the following training video data display the following training page, the following training page includes a first window and a second window, and the training video is displayed in the first window data, the following training video data is displayed in the second window;
  • the method of outputting the first prompt information includes controlling the display to display the first prompt information on the follow-up page; and/or controlling the speaker to play the first prompt information.
  • the controller After the controller outputs the first prompt information, continue to receive the power data of the mobile terminal sent by the mobile terminal; and determine that the power data of the mobile terminal indicates that the remaining power is less than or equal to the second power threshold. , and is greater than or equal to the third power threshold, the first prompt information is no longer output, wherein the third power threshold is less than the second power threshold; when it is determined that the power data of the mobile terminal indicates remaining When the power is less than or equal to the third power threshold, cancel the display of the follow-up page; and control the communication interface to send a first notification message to the mobile terminal, where the first notification message is used to notify the mobile terminal Stop collecting the training video data.
  • the software configuration in the display device 200 or the mobile terminal 300' according to some embodiments is shown in FIG. 4A.
  • the above training video can be a fitness video or a dance video, etc.
  • the joint-screen follow-up operation refers to the operation of triggering the display device to enter the joint-screen follow-up mode.
  • the selected content in the media asset platform an application that provides multimedia resources
  • the media assets are played in the display device, and at the same time, the follow-up video data is obtained through the mobile terminal and played in the display device, where the display device is a device in the same WiFi network as the mobile terminal.
  • the above-mentioned operation instructions may include the above-mentioned training video identification, follow-up page identification and media asset identification.
  • the above-mentioned operation instructions may include the above-mentioned Video ID, Type Code, Media ID and execution operation (Action).
  • the display device may display some media resources of the training video while displaying the training video when displaying the follow-up page.
  • the mobile terminal after the mobile terminal responds to the received continuous screen follow-up operation, it can call the camera to collect the follow-up video data in real time.
  • the terminal device and the display device establish a data transmission channel through the same WiFi network mentioned above, and realize the transmission of training video identification, follow-up page identification, follow-up video data, and power data of the mobile terminal through the data transmission channel. .
  • the mobile terminal can collect the follow-up video data in real time, and establish a data transmission channel through the same WiFi network where the mobile terminal and the display device are located, and transmit the real-time collected follow-up video data to the display device in real time.
  • the third power threshold can be set according to actual needs.
  • the mobile terminal may first send the training video identifier, the follow-up page identifier, and the follow-up video data to the display device, so that the display device first displays the follow-up video identifier according to the training video identifier, the follow-up page identifier, and the follow-up video data. practice page, and notify the mobile terminal display device to successfully display the follow-up page.
  • the terminal device can periodically obtain the power data of the mobile terminal. When the power data is less than or equal to the third power threshold Next, send the power data to the display device.
  • the mobile terminal may not send the power data.
  • the mobile terminal may first send the training video identifier, the follow-up page identifier, and the follow-up video data to the display device, so that the display device first displays the follow-up video identifier according to the training video identifier, the follow-up page identifier, and the follow-up video data. practice page, and notify the mobile terminal to successfully display the follow-up page.
  • the terminal device can periodically obtain the power data of the mobile terminal, and compare the obtained power data with the previously obtained power data. If there is a change, the power data is sent to the mobile terminal; accordingly, if the obtained power data has no change compared with the previously obtained power data, the power data does not need to be sent.
  • the mobile terminal can also be used only as a camera.
  • an application that provides multimedia resources can be installed on the mobile terminal.
  • the application program that provides multimedia resources can also be installed on the display device.
  • the above training videos can be displayed on the application's pages.
  • the display device can receive the user's joint-screen follow-up operation for the training video, and determine the training video identification, follow-up page identification, and media asset identification corresponding to the training video, based on the training video identification, follow-up page identification, and media asset identification. Generate a target QR code and display the target QR code.
  • the mobile terminal After the mobile terminal scans the target QR code, the mobile terminal can be triggered to obtain the follow-up video data through the camera, and send the follow-up video data to the display device.
  • the display device The follow-up page data corresponding to the follow-up page identification can be determined, the corresponding training video data can be obtained from the server according to the training video identification, and the follow-up page can be displayed based on the follow-up page data, training video data and follow-up video data.
  • the mobile terminal after the mobile terminal scans the target QR code through the application, the training video identification, follow-up page identification and media asset identification can be obtained.
  • the mobile terminal can send the obtained training video identification, follow-up page identification and media asset identification. to the display device, and sends the obtained follow-up video data to the display device, so that the display device can determine the follow-up page data corresponding to the follow-up page identification, obtain the corresponding training video data from the server according to the training video identification, and based on the follow-up Practice page data, training video data and follow-up video data show the follow-up page.
  • the follow-up video data is continuous video streaming data sent in real time, so that the display device can display the local video picture on the local image window, and the power data can be sent periodically at predetermined time intervals, so as to reduce the mobile speed. device and display device loads.
  • the preset time interval can be 3 minutes, 5 minutes, etc., which is much longer than the time between two frames of video in the follow-up video.
  • the local video collected by the mobile terminal can be directly transmitted to the display device without being displayed on the mobile terminal.
  • the mobile terminal after establishing a video transmission connection, stops the screen and allows an application that provides multimedia resources (such as a fitness APP) to work in the background, so as to realize local video collection and transmission while reducing the power consumption of the mobile terminal.
  • multimedia resources such as a fitness APP
  • the transmission of local video collected by the mobile terminal (that is, the transmission of the above-mentioned follow-up video data) and the transmission of power data are two different transmission channels.
  • video transmission requires the video data to be According to the protocol encoding and transmission of the video format, the power data can be sent to the display device in the form of broadcast messages.
  • the local video collected by the mobile terminal is transmitted by an application that provides multimedia resources (such as a fitness APP) through the mobile SDK, and the power data is transmitted by the power management application through the mobile SDK.
  • multimedia resources such as a fitness APP
  • the display device determines the follow-up page data corresponding to the follow-up page identification, and obtains the corresponding training video data from the server according to the training video identification.
  • determining the follow-up page data corresponding to the follow-up page identifier may include: different page identifiers are set correspondingly for different pages. After obtaining the follow-up page identifier (Type code), the display device may obtain the Type code.
  • the follow-up page data may include the format information of the follow-up page (for example, color, page size, window size, window position, etc.), the follow-up page's Layout information, etc.
  • the layout information of the follow-up page may indicate the source of the data displayed by the first window and the second window.
  • the first window is used to display training video data obtained from the server
  • the second window may be used to display the training video data obtained from the server.
  • the display device preferentially selects the follow-up video data sent by the mobile terminal to be displayed on the first page.
  • the camera of the display device can be turned on to obtain the follow-up video data and displayed in the second window.
  • the corresponding training video data can also be obtained from the server by combining the media asset identifier and the training video identifier corresponding to the training video.
  • the server also stores different media asset identifiers corresponding to the media asset information.
  • the media asset information contains Including media information (for example, media information such as titles, posters, etc.) and multiple video data.
  • the display device displays the follow-up page based on the follow-up page data, training video data and follow-up video data.
  • the display device is based on the follow-up page data, training video data and follow-up video data.
  • it can first draw the frame part of the follow-up page based on the follow-up page data, including drawing the frame part of the follow-up page.
  • the first window and the second window and then draw the training video data in the first window, and draw the follow-up video data in the second window, so that the complete follow-up page can be displayed.
  • the training video data displayed in the first window of the follow-up page can be updated with the playback progress of the training video, and the content displayed in the second window of the follow-up page can be updated based on the follow-up video data obtained from the terminal device in real time.
  • the display device needs to render the follow-up page based on the follow-up page data, training video data and follow-up video data in real time, and display the follow-up page.
  • FIG 21 it is a schematic diagram of a scene for displaying a follow-up page provided by an embodiment of the present disclosure.
  • the mobile terminal 92 collects the follow-up video data and sends it to the display device 91.
  • the display device 91 displays the follow-up video data according to the mobile terminal. After the sent training video identification and follow-up page identification are determined, the follow-up page data and training video data can be displayed on the display screen of the display device 91.
  • the follow-up page includes two windows, one of which is The training video data 911 is displayed, and the follow-up video data 912 is displayed in another window.
  • the user can watch the displayed training video data and perform follow-up exercises, and the mobile terminal will continue to collect the follow-up video data of the user's follow-up exercises. , and transmitted to the display device.
  • the display device will display the follow-up video data and the training video data together on the display of the display device through different windows. In this way, the user can compare the training actions in the follow-up video data and the training video data, which is convenient for the user. Corrective action.
  • the video data may also be called a video stream, that is, the follow-up video data and the training video data are respectively called a follow-up video stream and a training video stream.
  • the display device displays the power data on the follow-up training page.
  • the obtained power data of the mobile terminal can also be displayed on the follow-up training page.
  • the power data can be displayed on the follow-up page in the form of icons and/or text.
  • FIG. 22 it is a schematic diagram of displaying power data in a follow-up training page provided by an embodiment of the present disclosure.
  • training video data 1001, follow-up video data 1002, and power data 1003 are displayed.
  • the power data shown in FIG. 22 is displayed in the form of icons. In practice, it can also be displayed in other ways, which is not limited by the embodiment of the present disclosure.
  • a power control is set on the second layer, and the display state of the power control changes with changes in the received power data.
  • the power control on the second layer is generated by the display device according to the local configuration file of the display device, and is not an image uploaded to the screen by the mobile terminal.
  • the configuration file corresponding to the power control can be set together with the configuration files of other windows, controls and other components in the follow-up interface, or it can be set separately from the configuration files in the follow-up interface.
  • the display device includes: a display configured to display a user interface; a communication interface configured to receive a training video identifier and a follow-up page identifier sent by a mobile terminal; receive follow-up video data sent by the mobile terminal,
  • the follow-up video data is video data collected by the mobile terminal; receives the power data of the mobile terminal sent by the mobile terminal;
  • the controller is configured to determine the follow-up page data corresponding to the follow-up page identification, and obtain the corresponding follow-up page data from the server according to the training video identification Training video data;
  • the control display displays the follow-up page based on the follow-up page data, training video data and follow-up video data.
  • the follow-up page includes a first window and a second window.
  • the first window displays the training video data
  • the second window displays the training video data.
  • prompt information can be output or the follow-up page can be controlled. , terminate the follow-up training and cancel the display of the follow-up training page.
  • the remaining power of the mobile terminal may be compared with the set power threshold to determine whether the remaining power of the mobile terminal is less than or equal to the set power threshold. , is still greater than the set power threshold.
  • the mobile terminal Before receiving the first notification message during the joint-screen follow-up training, the mobile terminal can call the camera of the mobile terminal to collect the follow-up video data in real time, and the preview interface of the user's follow-up training can be displayed in the above-mentioned application.
  • the preview interface The real-time collected follow-up video data is displayed in the mobile terminal.
  • the mobile terminal can send the follow-up video data to the terminal device.
  • the above-mentioned application program of the mobile terminal can stop calling the camera of the mobile terminal. The training video data will no longer be collected, and the preview interface will be cancelled.
  • the mobile terminal stops collecting the follow-up video data and sends a second notification message to the display device; wherein the first preset gesture is a preset gesture used to indicate that it is allowed to stop follow-up practice, and the second notification message is used to notify The battery of the mobile terminal of the display device is too low, and the display of the follow-up training page is cancelled.
  • the first preset gesture is a preset gesture used to indicate that it is allowed to stop follow-up practice
  • the second notification message is used to notify The battery of the mobile terminal of the display device is too low, and the display of the follow-up training page is cancelled.
  • the user can be prompted for the remaining power of the current mobile terminal, and detect whether there is a third gesture matching the first preset gesture in the follow-up video data.
  • a gesture When the first gesture exists, it is determined that the user allows to stop the follow-up training. At this time, the mobile terminal is controlled to stop collecting the follow-up video data and sends a second notification message to the display device.
  • the follow-up video data does not contain a gesture that matches the first preset gesture, the follow-up process will not be terminated.
  • the follow-up process when the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold, the follow-up process is not terminated directly, but the training process is collected by collecting whether the user performs the first gesture matching the first preset gesture. Gesture is used to indicate that it is allowed to stop following the practice. If the gesture is collected, the follow-up practice process will be terminated. In this way, the follow-up practice can be stopped according to the user's intention, which is more humane and improves the performance of human-computer interaction.
  • the method of outputting the first prompt information includes controlling the display to display the first prompt information on the follow-up page, and/or controlling the speaker to play the first prompt information.
  • the collection of follow-up video data may be stopped and a second notification message may be sent to the display device.
  • the second notification message may be The notification shows that the battery of the mobile terminal of the device is too low and the follow-up training page is cancelled.
  • Figure 23 it is a schematic flow chart of another follow-up page control method provided by an embodiment of the present disclosure. Combined with S808 shown in Figure 20, after the above S808, Figure 23 may also include but is not limited to the following steps:
  • the mobile terminal sends the power data of the mobile terminal to the display device.
  • the mobile terminal after collecting the power data of the mobile terminal, if the power data of the mobile terminal indicates that the remaining power is less than or equal to the second power threshold, the mobile terminal sends the power data of the mobile terminal to the display device.
  • the mobile terminal When the power data of the mobile terminal indicates that the remaining power is less than or equal to the second power threshold, the mobile terminal sends the power data of the mobile terminal to the display device, which can avoid sending the power data to the display device multiple times when the remaining power of the mobile terminal is large.
  • the display device sends the power data of the mobile terminal. The interaction is too frequent and has little practical effect, resulting in excessive power consumption and accelerating the power consumption of the mobile terminal.
  • a schematic diagram of displaying prompt information in the follow-up page is provided in an embodiment of the present disclosure.
  • the page shown in Figure 24 can be displayed.
  • the page In addition to displaying the power data 1201 of the mobile terminal, the page also displays the first prompt information 1202.
  • the first prompt information is displayed through text. "Mobile phone battery remaining 20%” prompts the user so that the user can know that the current mobile terminal battery is low and can charge in time or stop practicing.
  • the user's focus is not on the terminal device (such as a mobile phone), but on the follow-up training page displayed on the display device (such as a television).
  • the power data of the mobile terminal and the prompt information about the power are displayed on the follow-up page, so that the user can easily see the power data of the mobile terminal.
  • This display method of battery data and prompt information combines the characteristics of the actual scene, has the advantage of being easy to be discovered by users, and improves the performance of human-computer interaction.
  • the terminal device is a device with a small screen, such as a mobile phone or a phone watch
  • the display of power data and reminder information will be limited due to distance issues. It cannot be seen clearly by the user. Even if the user pays attention to the content displayed by the terminal device, it cannot have the effect of prompting the user. Therefore, in the case where the terminal device is a device with a small screen such as a mobile phone or a phone watch, the embodiment of this application
  • the methods provided improve user experience and can improve human-computer interaction performance.
  • FIG. 25 a schematic flow chart of another follow-up page control method provided by an embodiment of the present disclosure is shown in conjunction with Figure 23. After S810, the method shown in Figure 25 may also include the following steps:
  • the third power threshold is smaller than the second power threshold.
  • the third power threshold may be the same as the first power threshold or may be different from the first power threshold.
  • the third power threshold can be set according to actual conditions, and is not limited in this embodiment of the disclosure.
  • the first notification message is used to notify the mobile terminal to stop collecting follow-up video data.
  • the display device when the display device cancels the display of the follow-up training page and terminates the follow-up training, it may output a prompt interface for terminating the follow-up training and wait for the user to confirm whether to terminate the follow-up training within a certain period of time.
  • the mobile phone receives the user's click operation to enter the joint-screen fitness details page on the mobile APP and initiates the joint-screen fitness.
  • the fitness and training scenario is taken as an example for explanation.
  • the mobile application layer and mobile interactive SDK are set up for mobile APPs, while the TV application layer and TV interactive SDK are set up for TV APPs.
  • the mobile phone interactive SDK transmits operation instructions to the TV interactive SDK.
  • the content of this operation instruction includes: the above-mentioned Media ID, Video Id, Type Code (page number-full-screen follow-up playback mode page), and Action (execution operation-page jump).
  • TV interactive SDK sends operation instructions to the TV application layer.
  • the content of the above-mentioned operation instruction also includes: an application identifier, and the application identifier is used to indicate the above-mentioned TV terminal APP.
  • the TV After receiving the instruction content, the TV can determine which TV application needs to be launched based on the application identification, and determine based on the Type Code that the fitness full-screen follow-up playback page corresponding to the TV APP needs to be launched (i.e., the above-mentioned Follow the training page). And display the training video data in a window on the training playback page.
  • the mobile phone will also continuously send the follow-up video data collected in real time through the camera to the TV, so that after the TV receives the follow-up video data, it will be displayed on the follow-up page.
  • the operation instruction and the training video data may be serially transmitted one after another.
  • the mobile phone interactive SDK sends operation instructions to the TV interactive SDK
  • the mobile phone interactive SDK can send the follow-up video data collected by the camera in real time to the TV interactive SDK.
  • the mobile phone interactive SDK and the TV interactive SDK communicate through the same WiFi network they are connected to, and the command data is transmitted to the TV interactive SDK.
  • the TV interactive SDK After receiving the transmitted data, the TV interactive SDK notifies the upper-layer application through the callback function.
  • the TV application layer parses and obtains the identification (Type Code) of the follow-up page. According to the Type Code, it can call the system-side fitness details page interface (that is, the page interface corresponding to the follow-up page), and based on the Media ID , Video ID, obtain media asset playback data, launch the fitness full-screen follow-up playback page (i.e. follow-up page) and display it.
  • the mobile phone APP mobile application layer obtains the current battery percentage through the Battery Manager of the Android system, and calls the interactive SDK interface to send data instructions for battery data.
  • the content of the data instructions includes: mobile phone battery, and remaining battery percentage (data ).
  • the mobile phone interactive SDK is based on the network and transmits the data instructions to the TV interactive SDK.
  • TV interactive SDK receives mobile phone power data transmitted by mobile phone interactive SDK.
  • TV interactive SDK notifies the upper TV application layer of the mobile phone power data through the callback function.
  • the TV application layer can display based on the received power percentage data.
  • the mobile application layer will transmit the latest battery data to the mobile phone interactive SDK.
  • S10 and mobile phone interactive SDK transmit the latest power data to TV interactive SDK.
  • the TV interactive SDK sends the latest power data to the TV application layer.
  • the above-mentioned mobile phone APP will regularly monitor the power of the mobile phone (the current cycle can be once every minute). When the power percentage changes, the latest power data will be transmitted to the TV for the TV to refresh and display.
  • the TV APP When the TV APP detects that the latest received data on mobile phone battery power is less than or equal to 20% (this threshold can be adjusted through the system), it will prompt and save the displayed power prompt in the memory for subsequent No more prompts.
  • the user charges the mobile phone and the power is restored to more than 20%.
  • the TV APP receives that the latest power transmitted by the mobile phone is greater than the current power and there is a low battery prompt flag in the memory, it clears the flag to 0. Once the battery falls below 20% again, the user will be prompted again.
  • the mobile phone APP When the mobile phone APP detects that the current battery level is lower than 5% (the threshold can be adjusted through the system), it automatically turns off the camera, exits the joint-screen fitness follow-up page, and sends a stop command to the TV.
  • the content of the stop command includes: Action (execute operation-pause follow-up training).
  • the mobile phone interactive SDK sends the stop command to the TV interactive SDK.
  • the TV interactive SDK sends a stop command to the TV application layer.
  • the TV APP when the TV APP receives the stop command, it suspends the current training and prompts the user that the mobile phone battery is low.
  • FIG 28 it is an interaction schematic diagram of another follow-up page control method provided by an embodiment of the present disclosure.
  • the interaction process of this method is the same as the interaction process of steps S1 to S11 shown in Figure 27 above.
  • the difference is that
  • the user's follow-up stop (or pause) judgment logic occurs on the mobile phone, and the TV end is controlled to stop the follow-up practice by transmitting control instructions to the TV end.
  • step S11 choose to implement the training stop (or pause) judgment logic on the TV side.
  • the TV APP determines that the latest power data transmitted by the mobile phone reaches the power threshold for stopping follow-up training, the TV APP actively ends the current TV-side follow-up training and carries a notification to stop follow-up training in the return message through the interactive SDK.
  • Multi-screen collaboration technology refers to the collaborative work of multiple screens, which includes projecting the screen content of one device to other devices for display. For example, the screen content of the mobile phone is projected to the computer for display, so that the user can watch the content displayed on the screen of the mobile phone on the computer, thus realizing the same screen display between the mobile phone and the computer.
  • the second device displays the screen content of the first device.
  • the content displayed on the second device will be paused and the communication message will be accessed.
  • the user will follow the training and fitness video played by the second device.
  • the first device collects the user's follow-up fitness video and projects it to the second device, and the second device displays the training and fitness video. and follow-up fitness videos.
  • the first device receives the communication message, it will interrupt the training and fitness videos and follow-up fitness videos played by the second device, which reduces the user's experience.
  • the display device of some embodiments of the present disclosure further carries out the following design, and the screen projection method of some embodiments of the present disclosure further includes a communication message processing method.
  • the first device may discover the second device through the first network or the second network, and establish a network connection with the second device based on the first network or the second network. Through the established network connection, the first device can put the multimedia content that needs to be projected to the second device, and play it through the second device.
  • the first network may be a local area network, and the local area network may be a wired LAN or a wireless LAN. As shown in Figure 1B, the wireless LAN may be a Wi-Fi network formed by a router 500.
  • the second network may be a wide area network, such as the Internet.
  • a wide area network can include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, etc.
  • a wide area network may also include wireless links such as cellular links, satellite links, etc.
  • the hardware configuration of the first device and the second device is shown in Figure 3A
  • Figure 29A is a schematic flow diagram of a communication message processing method according to some embodiments.
  • Figure 29B is a schematic signal flow diagram of a communication message processing method according to some embodiments.
  • the communication message processing method includes:
  • the status information of the follow-up video stream can be determined by continuously obtaining the image information of the follow-up video stream with preset frame values, and by comparing the image information corresponding to adjacent frame values. .
  • the image information corresponding to three consecutive frames of the follow-up video stream is obtained, and the image information corresponding to the first frame and the image information corresponding to the second frame are sequentially compared to see whether they are consistent, and the image information corresponding to the second frame is consistent with the image information corresponding to the second frame. Whether the image information corresponding to the three frames is consistent.
  • the communication message processing method monitors the communication messages of the first device during the process of casting the screen to the second device. After monitoring the communication message, the communication message is obtained by obtaining the follow-up message displayed by the second device.
  • the status information of the video stream determines whether the user is following the training video stream played by the second device, and then sends a control instruction to the second device according to the obtained status information of the following video stream displayed by the second device to control the second device.
  • Display notification content that is, by obtaining the status information of the training video stream displayed by the second device, determine whether the user is following the training video stream played by the second device, and then control the control according to whether the user is following the training video stream played by the second device.
  • the second device displays the notification content to avoid directly sending the notification content received by the first device to the second device when the user is following the training video stream played by the second device, pausing the training video stream played by the second device and following the training.
  • Video streaming makes it impossible for users in the training state to respond in time, reducing the user experience.
  • Figure 30A is a schematic flow diagram of another communication message processing method according to some embodiments.
  • Figure 30B is a schematic signal flow diagram of another communication message processing method according to some embodiments.
  • the implementation of step S300 Methods include:
  • the controller of the second device when the controller of the second device monitors that the first device receives the communication message and obtains the status information of the follow-up video stream displayed by the second device as the follow-up state, the controller of the second device Send a first control instruction to the second device to control the second device to display the text corresponding to the first notification content, that is, only the text corresponding to the notification content received by the first device is displayed, and the speaker does not play the audio corresponding to the notification content.
  • the image collection module of the fitness application collects the user's follow-up video stream and projects it to the second device for display.
  • the fitness application of the first device monitors the communication message sent by the third device to the first device. For example, the first device receives an incoming call from user A. At this time, the first device obtains the caller from the user's address book based on the incoming call. Information is sent to the second device by calling the middleware of the first device. After receiving the caller information sent by the middleware of the first device, the controller of the second device sends the text data corresponding to the caller information to the second device for processing.
  • the caller information is the notification content
  • the incoming call audio is not played, such as the incoming call music set by the user, to avoid the notification content of the first device
  • the corresponding audio is played on the second device so that the audio corresponding to the notification content interrupts the follow-up video stream and the training video stream played by the second device.
  • a second control instruction is sent to the second device.
  • the second device is controlled to display the text corresponding to the second notification content and control the speaker to play the second notification.
  • the audio corresponding to the content is controlled to display the text corresponding to the second notification content and control the speaker to play the second notification.
  • the controller of the second device when the controller of the second device monitors that the first device receives the communication message and obtains the status information of the follow-up video stream displayed by the second device in the paused state, the controller of the second device sends The second control instruction is sent to the second device, the text corresponding to the second notification content, and the speaker is controlled to play the audio corresponding to the second notification content, that is, not only the text corresponding to the notification content received by the first device is displayed, but also the text corresponding to the notification content is played. audio.
  • the image collection module of the fitness application collects the user's follow-up video stream and projects it to the second device for display.
  • the fitness application of the first device monitors the incoming call from user A.
  • the first device obtains the caller information from the user's address book according to the incoming call, calls the first device middleware and sends it to the second device.
  • the second device After receiving the caller information sent by the middleware of the first device, the server sends the text data corresponding to the caller information to the second device for screen projection, and plays the incoming call music set by the first device, so that the user can pause the call.
  • text data corresponding to the communication message is displayed and audio data is played through the second device.
  • Figure 31A is a schematic flow diagram of yet another communication message processing method according to some embodiments.
  • Figure 31B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments.
  • the embodiment of the present disclosure is the implementation corresponding to Figure 30A Based on the example, as shown in Figure 31A and Figure 31B, the communication message processing method also includes:
  • a pause follow-up instruction signal is received, in S3032, a second control instruction is sent to the second device, and in S3033, the display of the second device is controlled to display the text corresponding to the notification content and the speaker is controlled to play the audio corresponding to the notification content.
  • the communication message when the communication message is monitored and the status information of the follow-up video stream displayed by the second device is the follow-up state, text corresponding to the notification content is displayed on the display to prompt the user that there is access to the communication message.
  • the user can ensure that the user receives communication messages normally.
  • the user can promptly receive prompt information that a communication message has been accessed based on the text corresponding to the notification content displayed on the display.
  • the user can control the pause of the training video stream displayed by the second device through voice control or control device. For example, the user can use voice control to pause the training video stream displayed on the second device. Control the second device to pause the training video stream.
  • the second device responds to the voice control signal output by the user and pauses the training video stream.
  • the controller responds to the pause follow-up instruction information received by the second device, that is, the controller receives the second
  • the display is controlled to display the text corresponding to the notification content
  • the speaker is controlled to play the audio corresponding to the notification content. That is, after receiving the instruction signal from the user to pause the training video stream played by the second device, through Control the display to display text corresponding to the notification content, and control the speaker to play the audio corresponding to the notification content, ensuring that users can receive notification content from a distance.
  • Figure 32A is a schematic flow diagram of another communication message processing method according to some embodiments.
  • Figure 32B is a schematic signal flow diagram of another communication message processing method according to some embodiments.
  • the embodiment of the present disclosure is the implementation corresponding to Figure 30A Based on the example, as shown in Figure 32A and Figure 32B, the communication message processing method also includes:
  • the triggering operation includes an opening operation, and the triggering operation can be performed based on a control device or based on voice control.
  • the user can trigger the text corresponding to the notification content displayed by the second device on the second device, thereby causing the controller to send the first instruction instruction to the first instruction. device, causing the first device to open the application corresponding to the notification content. At this time, the user can answer the communication message on the application of the first device. Since the first device has answered the communication message, the first device exits and casts the screen to the second device. After the user answers the communication message on the first device, the controller monitors the status information of the audio and video corresponding to the communication message of the first device, and determines the time node when the first device ends the communication message.
  • Figure 34A is a schematic flow diagram of yet another communication message processing method according to some embodiments.
  • Figure 34B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments.
  • the embodiment of the present disclosure is the implementation corresponding to Figure 32A Based on the example, when the communication message processing method includes step S305, the method also includes:
  • S3101 it is determined that the communication status of the audio and video corresponding to the communication message of the second device changes from the communication state to the communication end state.
  • a second control instruction is sent to the second device.
  • the display is controlled to continue playing the training video stream and following the training. Video streaming.
  • the user can trigger and open the text corresponding to the notification content displayed on the second device, thereby controlling the second device to pause the playback of the training video stream. and follow the video stream and play the audio corresponding to the notification content.
  • the second device includes an application corresponding to the notification content
  • the user can open the notification content through the second device to receive the communication message on the second device. Since the second device The device answered the communication message, and at this time, the follow-up video stream and training video stream played by the second device were paused.
  • the controller monitors the status information of the audio and video corresponding to the communication message of the second device, and determines the time node when the second device ends the communication message.
  • the controller monitors the communication message corresponding to the second device, When the audio and video communication status changes from the communication status to the communication end status, the control display continues to play the training video stream and the follow-up video stream.
  • Figure 35A is a schematic flow diagram of yet another communication message processing method according to some embodiments.
  • Figure 35B is a signal flow schematic diagram of yet another communication message processing method according to some embodiments.
  • the embodiment of the present disclosure is the corresponding implementation in Figure 29A Based on the example, obtaining the status information of the follow-up video stream displayed by the second device includes:
  • the second device By monitoring the prompt duration of the communication message, when the prompt duration of the communication message is greater than or equal to the preset threshold, the status information of the follow-up video stream displayed by the second device is obtained, and when the prompt duration of the communication message is less than the preset threshold, it is ensured that The second device normally displays the follow-up video stream projected on the screen of the first device, and then determines that the communication message received by the first device is a useless communication message, and there is no need to access the communication message to the second device.
  • An embodiment of the present disclosure provides a display device.
  • the display device includes: a display; and a controller configured to: monitor the communication messages of the first device during the process of projecting the screen from the first device to the second device; to the communication message, and obtain the status information of the follow-up video stream displayed by the second device.
  • the status information includes the follow-up state and the pause state.
  • the communication message represents the communication message sent by the third device to the first device; according to the follow-up video stream displayed by the second device, According to the status information of the video stream, a control instruction is sent to the second device to control the second device to display the notification content.
  • the notification content displayed on the monitor corresponding to different control instructions is different.
  • the display device monitors the communication messages of the first device during the process of the first device projecting the screen to the second device; and after monitoring the communication messages, obtains the content of the follow-up video stream displayed by the second device.
  • Status information the status information includes follow-up status and pause status; send control instructions to the second device according to the status information of the follow-up video stream displayed by the second device to control the second device to display notification content, and monitors corresponding to different control instructions
  • the displayed notification content is different to ensure that when the status information of the follow-up video stream displayed by the second device is in the follow-up state, the communication message sent by the third device received by the first device will not affect the follow-up video stream displayed by the second device. and training video streams to improve users’ experience.
  • the controller is specifically configured to: when the status information of the follow-up video stream displayed by the second device is the follow-up state, send a first control instruction to the second device to control the second device to display the first notification. Text corresponding to the content; when the status information of the follow-up video stream displayed by the second device is in a paused state, send a second control instruction to the second device to control the second device to display the text corresponding to the second notification content and control the speaker Play the audio corresponding to the second notification content.
  • the controller is further configured to: when the status information of the follow-up video stream displayed by the second device is the follow-up state, in response to the pause follow-up instruction signal received by the second device, control the display to display the notification content corresponding to text, and controls the speaker to play the audio corresponding to the notification content.
  • the present disclosure also provides an electronic device, including: a processor, the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, the steps of the above method embodiments are implemented.
  • FIG. 36 is a schematic structural diagram of an electronic device provided by the present disclosure.
  • FIG. 36 shows a block diagram of an electronic device suitable for implementing some embodiments of the present invention.
  • the electronic device shown in FIG. 36 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.
  • electronic device 800 is embodied in the form of a general computing device.
  • the components of electronic device 800 may include, but are not limited to: one or more processors 810, system memory 820, and a bus 830 connecting different system components (including system memory 820 and processors).
  • Bus 830 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect ( PCI) bus.
  • ISA Industry Standard Architecture
  • MAC Micro Channel Architecture
  • VESA Video Electronics Standards Association
  • PCI Peripheral Component Interconnect
  • Electronic device 800 typically includes a variety of computer system readable non-volatile storage media. These media can be any media that can be accessed by electronic device 800, including volatile and nonvolatile media, removable and non-removable media.
  • System memory 820 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 840 and/or cache memory 850 .
  • Electronic device 800 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 860 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as "hard drives").
  • Disk drives may be provided for reading and writing from removable non-volatile disks (e.g., "floppy disks"), and for reading and writing from removable non-volatile optical disks (e.g., CD-ROMs, DVD-ROMs, or other optical media).
  • CD-ROM drive may be connected to bus 830 through one or more data media interfaces.
  • System memory 820 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.
  • a program/utility 880 having a set of (at least one) program modules 870 may be stored, for example, in system memory 820 Data, each of these examples or some combination may include an implementation of a network environment.
  • Program modules 870 generally perform functions and/or methods in the described embodiments of the present invention.
  • the terminal device can perform screencasting operations to the display device.
  • the terminal device when the user follows the training video stream played by the display device, and the terminal device collects the user's follow-up video stream and projects the follow-up video stream to the display device, the terminal device will collect the user's training video stream.
  • the follow-up video stream is rendered with special effects and then sent to the display device.
  • the process of the terminal device rendering special effects on the user's follow-up video stream will inevitably lead to the inability to synchronize playback between the training video stream played by the display device and the follow-up video stream, which reduces the User experience.
  • the display device and the screen projection method of the embodiment of the present disclosure can be further implemented: after the display device receives the rendered follow-up video stream sent by the terminal device, it determines through comparison the training video stream played by the display device corresponding to the first playback moment. When the first training image does not match the first follow-up image action corresponding to the first playback moment in the rendered follow-up video stream, a first instruction signal is sent to the terminal device to instruct the terminal device to send the unrendered follow-up video. stream, that is, the display device directly receives the unrendered follow-up video stream sent by the terminal device.
  • the startup instruction may be a voice-based startup instruction, a startup instruction sent by a control device, or a startup instruction sent by an intelligent device.
  • the display device can also be controlled in a manner other than the control device and the smart device.
  • the display device can directly receive the user's voice command control through a module configured inside the display device to obtain voice commands, or it can be controlled through The voice control device is set externally to the display device to receive the user's voice command control.
  • S2000 Obtain the training video stream corresponding to the follow-up training interface from the server, and receive the rendered follow-up video stream sent by the terminal device.
  • the training video stream corresponding to the follow-up training interface is obtained from the server, and at S20002, the rendered follow-up video stream sent by the terminal device is received.
  • the rendered follow-up video stream is used to be displayed directly in the local window without being rendered by the display device.
  • the terminal device includes an image acquisition module.
  • the image acquisition module may be a camera, and the user video data is collected based on the image acquisition module of the terminal device.
  • the rendering operation will take a certain amount of time. Therefore, there may be a problem that the rendered follow-up video stream received by the display device is out of sync with the training video stream, for example , at a certain playback moment, the training video stream is played to the tenth frame, but the rendered follow-up video stream is only played to the eighth frame, so that the rendered follow-up video stream and the training video stream viewed by the user on the display device are In different frames, the user cannot confirm whether the movements are consistent with the training video stream, which reduces the user experience.
  • the first training image corresponding to the first playback moment in the training video stream played by the display device is first obtained. and the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream, and then compare whether the actions of the first training image and the first follow-up image match.
  • the actions of the first training image and the first follow-up image do not match,
  • matching it means that the training video stream played by the display device is out of sync with the follow-up video stream.
  • the out-of-sync between the training video stream and the follow-up video stream may be caused by the terminal device needing to render the training video stream.
  • searching for the second training image that matches the action of the first training image in the training video stream includes: in the training video stream, taking the first playback moment as the starting point, obtaining the first training video stream Play the candidate training image at a preset time before the time, and send the candidate training image and the first follow-up image to the server; obtain the server's comparison result of the candidate training image and the first follow-up image; compare it with the first follow-up image
  • the candidate training images whose matching degree meets the preset threshold are determined as second training images.
  • the first instruction signal is sent to the terminal device to instruct the terminal device to send the unrendered follow-up video stream. Since the follow-up video stream received by the display device The stream does not need to go through the rendering operation of the terminal device, that is, the display device directly receives the unrendered follow-up video stream from the terminal device. Therefore, it can reduce the training video stream displayed by the display device due to the time-consuming rendering operation of the follow-up video stream by the terminal device. The display delay between the training video stream and the training video stream.
  • the screen casting method provided by the embodiment of the present disclosure first responds to the received startup command, triggers the display to display the follow-up interface, then obtains the training video stream corresponding to the follow-up interface from the server, and receives the rendered follow-up sent by the terminal device.
  • Video stream when the first training image corresponding to the first playback moment in the training video stream does not match the first follow-up image action corresponding to the first playback moment in the rendered follow-up video stream, search the training video stream with The second training image matches the action of the first follow-up image.
  • a first instruction signal is sent to the terminal device to instruct the terminal device to send an unrendered follow-up video stream, that is, After the display device receives the rendered follow-up video stream sent by the terminal device, it determines through comparison that the first training image corresponding to the first playback moment in the training video stream played by the display device and the rendered follow-up video stream corresponding to the first playback moment are compared. When the actions of the first follow-up image at a playback moment do not match, the first instruction signal is sent to the terminal device to instruct the terminal device to send the unrendered follow-up video stream, that is, the display device directly receives the unrendered follow-up video from the terminal device.
  • the display delay between the training video stream displayed by the display device and the follow-up video stream caused by the time-consuming rendering operation of the follow-up video stream by the terminal device can be reduced, ensuring that the follow-up video stream displayed by the display device is consistent with Training video streams are synchronized to improve user experience.
  • Figure 38A is a schematic flow diagram of another screen projection method according to some embodiments.
  • Figure 38B is a signal flow diagram of another screen projection method according to some embodiments.
  • the embodiments of the present disclosure are based on the above embodiments, combined with Figure 38A and Figure 38B, when a specific implementation of step S3000 includes:
  • the first training image and the first follow-up image played by the terminal device may be different images.
  • the training video stream is first obtained.
  • the first follow-up image and the first training image are first determined
  • the action matching degree of The reason why the follow-up video stream is out of sync is because the terminal device renders the follow-up video stream before sending it to the display device for display. Therefore, the playback progress of the follow-up video stream is slower than the playback progress of the training video stream.
  • the training video stream of the follow-up image played by the stream has already been played. Therefore, the second training image matching the action of the first follow-up image can be found from the training video stream.
  • step S4000 includes:
  • S40011 search the training video stream for a second training image whose action matching degree with the first training image meets the preset threshold.
  • S40012 determine that the difference between the first playback time and the second playback time is greater than or equal to the preset difference. value, in S40013, the controller sends a first instruction signal to the terminal device, and in S40014, the terminal device sends an unrendered follow-up video stream to the controller.
  • the second playback moment corresponding to the second training image can be determined, according to the first training
  • the first playback time of the image and the second playback time of the second training image can determine the playback time at which the training video stream played by the display device is played, and the playback time at which the rendered follow-up video stream played by the display device is played. time, based on the relationship between the difference between the first playback time and the second playback time and the preset difference, the length of the delay time between the rendered follow-up video stream and the training video stream played by the display device is determined.
  • the delay time process between the rendered follow-up video stream played by the display device and the training video stream resulting in the rendered
  • the reason for the delay between the follow-up video stream and the training video stream may be that the terminal device needs to render the follow-up video stream collected by the image acquisition module, causing a delay in the terminal device sending the follow-up video stream data to the display device.
  • the controller of the display device sends a first instruction signal to the terminal device, instructing the terminal device to send an unrendered follow-up video stream, and the display device
  • the controller directly receives the image acquisition module of the terminal device to collect the follow-up video stream, and does not perform rendering operations on the follow-up video stream to avoid the problem of out-of-synchronization between the training video stream played by the display device and the follow-up video stream due to the rendering operation.
  • step S4000 When the screen casting method includes step S3001 and step S3002, other implementations of step S4000 include:
  • the terminal device sends the rendered follow-up video stream to the display device.
  • the display device when the difference between the first playback moment and the second playback moment is less than the preset difference, it indicates that the rendered follow-up video stream played by the display device is different from the training video stream.
  • the delay between video streams is within the acceptable range of the user, and the controller of the display device does not need to send the first instruction signal to the terminal device.
  • the display device normally receives the rendered follow-up video stream sent by the terminal device, ensuring that the terminal device and The follow-up video streams displayed on the display device are all rendered follow-up video streams, which improves the user experience.
  • Figure 39A is a schematic flow diagram of another screen projection method according to some embodiments.
  • Figure 39B is a signal flow diagram of another screen projection method according to some embodiments.
  • the embodiments of the present disclosure are based on the above embodiments, combined with Figure 39A and Figure 39B, the screen projection method also includes:
  • S5000 Receive the unrendered follow-up video stream sent by the terminal device.
  • the rendered representation played by the display device There is a delay between the follow-up video stream and the training video stream.
  • the reason for the delay between the rendered follow-up video stream played by the display device and the training video stream may be that the terminal device needs to collect the follow-up video stream collected by the image acquisition module.
  • the video stream is rendered, causing a delay in the terminal device sending the follow-up video stream data to the display device.
  • the controller of the display device sends the first The instruction signal is sent to the terminal device, instructing the terminal device to send an unrendered follow-up video stream, and the controller of the display device receives the unrendered follow-up video stream sent by the terminal device.
  • the controller After the controller obtains the unrendered follow-up video stream, if the controller directly renders the unrendered follow-up video stream from the second playback time and starts the second The follow-up video stream after the rendering operation is played during playback. At this time, the follow-up video stream and the training video stream played by the monitor are still out of sync.
  • the follow-up video stream and the training video stream played by the monitor are still out of sync.
  • first the second follow-up image that matches the first training image action of the training video stream is determined in the unrendered follow-up video stream.
  • S7000 Perform a rendering operation on the unrendered follow-up video stream and display the rendered follow-up video stream in the local window of the display.
  • the follow-up video stream displayed in the local window is played from the playback time corresponding to the second follow-up image.
  • the controller of the display device renders the unrendered follow-up video stream and then plays it on the display device. This avoids playing the unrendered follow-up video stream directly on the display device, which reduces user experience.
  • the feeling is that the follow-up video stream played on the display device is the rendered follow-up video stream, and the unrendered follow-up video stream played on the receiving terminal device.
  • the controller of the display device collects the follow-up video stream by directly receiving the image acquisition module of the terminal device to avoid the rendering operation causing the training video stream played by the display device to be inconsistent with the training video stream.
  • the first instruction signal that the controller of the display device can send is also used to instruct the terminal device to pause the rendering operation and reduce the power consumption of the terminal device.
  • An embodiment of the present disclosure also provides a display device.
  • the display device includes: a display; and a controller configured to: in response to a received startup instruction, trigger the display to display a follow-up training interface, wherein the follow-up training interface is provided with a display window and The local window and the display window are used to display the training video stream; obtain the training video stream corresponding to the follow-up interface from the server, and receive the rendered follow-up video stream sent by the terminal device, where the rendered follow-up video stream is used without The display device renders directly in the local window; when the first training image corresponding to the first playback moment in the training video stream does not match the action of the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream, in Search the training video stream for a second training image that matches the action of the first training image, where the first playback time is greater than the second playback time corresponding to the second training image; when there is a second training image in the training video stream, A first instruction signal is sent to the terminal device
  • the controller is further configured to: receive an unrendered follow-up video stream sent by the terminal device; determine in the unrendered follow-up video stream the first training image action that matches the training video stream. Second follow-up image; perform a rendering operation on the unrendered follow-up video stream and display the rendered follow-up video stream in the local window of the monitor.
  • the follow-up video stream displayed in the local window starts from the playback time corresponding to the second follow-up image. Play.

Abstract

Provided in the present application are a display device, a terminal device and a screen-projection method. The display device comprises a display and a controller connected to the display, wherein the controller is configured to display a follow-up interface on the display in response to a received starting instruction, wherein the follow-up interface comprises a first window and a second window, the first window is used for playing a training video stream acquired from a server, and the second window is used for playing a follow-up video stream received from a terminal device.

Description

显示设备及投屏方法Display equipment and screencasting methods
本申请要求2022年6月27日提交的申请号为202210743842.0、2022年6月16日提交的申请号为202210689400.2、2022年6月30日提交的申请号为202210767185.3和2022年6月29日提交的申请号为202210764007.5的中国专利申请的优先权,其全部内容通过引用结合在本公开中。This application requires application numbers 202210743842.0 submitted on June 27, 2022, application numbers 202210689400.2 submitted on June 16, 2022, 202210767185.3 submitted on June 30, 2022, and 202210767185.3 submitted on June 29, 2022. The priority of Chinese patent application with application number 202210764007.5, the entire content of which is incorporated into this disclosure by reference.
技术领域Technical field
本申请实施例涉及显示技术领域。更具体地讲,涉及一种显示设备及投屏方法。The embodiments of this application relate to the field of display technology. More specifically, it relates to a display device and a screen projection method.
背景技术Background technique
现如今,电视提供的功能越来越丰富,并且逐步开始支持通过手机作为摄像设备接入,用以完成需要拍摄相关的产品功能。随着终端技术和互联网技术的发展,多屏协同技术得到了广泛的应用。多屏协同技术是指多个屏幕协同工作,其包括将一个设备的屏幕内容投屏至其他设备上进行显示。比如,将手机的屏幕内容投屏至计算机上进行显示,这样用户就能在计算机上观看手机屏幕所显示的内容,从而实现手机和计算机之间的同屏显示。Nowadays, TVs provide more and more functions, and gradually begin to support access through mobile phones as camera equipment to complete product functions that require shooting. With the development of terminal technology and Internet technology, multi-screen collaboration technology has been widely used. Multi-screen collaboration technology refers to the collaborative work of multiple screens, which includes projecting the screen content of one device to other devices for display. For example, the screen content of the mobile phone is projected to the computer for display, so that the user can watch the content displayed on the screen of the mobile phone on the computer, thus realizing the same screen display between the mobile phone and the computer.
发明内容Contents of the invention
本申请一些实施例提供了一种显示设备,包括:显示器;控制器,被配置为:响应于接收到的启动指令,在所述显示器显示跟练界面,其中,所述跟练界面包括第一窗口和第二窗口,所述第一窗口用于播放从服务器获取的训练视频流,所述第二窗口用于播放从终端设备接收的跟练视频流。Some embodiments of the present application provide a display device, including: a display; and a controller configured to: in response to a received start instruction, display a follow-up training interface on the display, wherein the follow-up training interface includes a first window and a second window, the first window is used to play the training video stream obtained from the server, and the second window is used to play the follow-up video stream received from the terminal device.
本申请一些实施例提供了一种投屏方法,包括:响应于接收到的启动指令,在显示设备的显示器显示跟练界面,其中,所述跟练界面包括第一窗口和第二窗口,所述第一窗口用于播放从服务器获取的训练视频流,所述第二窗口用于播放从终端设备接收的跟练视频流。Some embodiments of the present application provide a screen projection method, including: in response to a received startup instruction, displaying a follow-up training interface on the display of the display device, wherein the follow-up training interface includes a first window and a second window, so The first window is used to play the training video stream obtained from the server, and the second window is used to play the follow-up video stream received from the terminal device.
附图说明Description of the drawings
图1A为根据一些实施例的投屏方法的场景架构图;Figure 1A is a scene architecture diagram of a screen casting method according to some embodiments;
图1B为根据一些实施例的一种通信消息处理方法的系统网络架构图;Figure 1B is a system network architecture diagram of a communication message processing method according to some embodiments;
图2为根据一些实施例的控制设备的硬件配置框图;Figure 2 is a hardware configuration block diagram of a control device according to some embodiments;
图3A为根据一些实施例的显示设备或终端设备的硬件配置框图;Figure 3A is a hardware configuration block diagram of a display device or terminal device according to some embodiments;
图3B为根据一些实施例的移动终端的硬件配置框图;Figure 3B is a hardware configuration block diagram of a mobile terminal according to some embodiments;
图4A为根据一些实施例的显示设备或移动终端的软件配置图;Figure 4A is a software configuration diagram of a display device or mobile terminal according to some embodiments;
图4B为移动终端和显示设备实现根据一些实施例的跟练页面控制方法的软件交互示意图;Figure 4B is a schematic diagram of software interaction between a mobile terminal and a display device implementing a follow-up page control method according to some embodiments;
图5为根据一些实施例的投屏方法的步骤流程图;Figure 5 is a step flow chart of a screen projection method according to some embodiments;
图6为根据另一些实施例的投屏方法的步骤流程图;Figure 6 is a step flow chart of a screen projection method according to other embodiments;
图7为图6所示投屏方法的场景示意图;Figure 7 is a schematic diagram of the scene of the screen projection method shown in Figure 6;
图8为图6所示投屏方法的原理图;Figure 8 is a schematic diagram of the screen projection method shown in Figure 6;
图9为根据另一些实施例的投屏方法的步骤流程图;Figure 9 is a step flow chart of a screen projection method according to other embodiments;
图10为图9所示投屏方法的原理图;Figure 10 is a schematic diagram of the screen projection method shown in Figure 9;
图11为根据另一些实施例的投屏方法的步骤流程图;Figure 11 is a step flow chart of a screen projection method according to other embodiments;
图12为图11所示投屏方法的场景示意图;Figure 12 is a schematic diagram of the scene of the screen projection method shown in Figure 11;
图13为图11所示投屏方法的原理图;Figure 13 is a schematic diagram of the screen projection method shown in Figure 11;
图14为根据另一些实施例的投屏方法的步骤流程图;Figure 14 is a step flow chart of a screen projection method according to other embodiments;
图15为图14所示投屏方法的原理图;Figure 15 is a schematic diagram of the screen projection method shown in Figure 14;
图16为根据另一些实施例的投屏方法的步骤流程图;Figure 16 is a step flow chart of a screen projection method according to other embodiments;
图17为图16所示投屏方法的场景示意图;Figure 17 is a schematic diagram of the scene of the screen projection method shown in Figure 16;
图18为图16所示投屏方法的原理图;Figure 18 is a schematic diagram of the screen projection method shown in Figure 16;
图19为根据一些实施例所示投屏方法的场景架构图;Figure 19 is a scene architecture diagram of a screencasting method according to some embodiments;
图20为根据一些实施例的一种跟练页面控制方法的流程示意图;Figure 20 is a schematic flowchart of a method for controlling a follow-up page according to some embodiments;
图21为根据一些实施例的一种显示跟练页面的场景示意图;Figure 21 is a schematic diagram of a scene displaying a follow-up page according to some embodiments;
图22为根据一些实施例的一种在跟练页面中显示电量数据的示意图;Figure 22 is a schematic diagram of displaying power data in a follow-up training page according to some embodiments;
图23为根据一些实施例的另一种跟练页面控制方法的流程示意图;Figure 23 is a schematic flowchart of another follow-up page control method according to some embodiments;
图24为根据一些实施例的一种在跟练页面中显示提示信息的示意图;Figure 24 is a schematic diagram of displaying prompt information in a follow-up page according to some embodiments;
图25为根据一些实施例的还一种跟练页面控制方法的流程示意图;Figure 25 is a schematic flowchart of another follow-up page control method according to some embodiments;
图26为根据一些实施例的一种在跟练页面中提示终止跟练的示意图;Figure 26 is a schematic diagram of prompting to terminate follow-up training on the follow-up training page according to some embodiments;
图27为根据一些实施例的一种跟练页面控制方法的交互示意图;Figure 27 is an interactive schematic diagram of a follow-up page control method according to some embodiments;
图28为根据一些实施例的另一种跟练页面控制方法的交互示意图;Figure 28 is an interactive schematic diagram of another follow-up page control method according to some embodiments;
图29A为根据一些实施例的一种通信消息处理方法的流程示意图;Figure 29A is a schematic flowchart of a communication message processing method according to some embodiments;
图29B为根据一些实施例的一种通信消息处理方法的信号流程示意图;Figure 29B is a schematic signal flow diagram of a communication message processing method according to some embodiments;
图30A为根据一些实施例的另一种通信消息处理方法的流程示意图;Figure 30A is a schematic flowchart of another communication message processing method according to some embodiments;
图30B为根据一些实施例的另一种通信消息处理方法的信号流程示意图;Figure 30B is a schematic signal flow diagram of another communication message processing method according to some embodiments;
图31A为根据一些实施例的又一种通信消息处理方法的流程示意图;Figure 31A is a schematic flowchart of yet another communication message processing method according to some embodiments;
图31B为根据一些实施例的又一种通信消息处理方法的信号流程示意图;Figure 31B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments;
图32A为根据一些实施例的又一种通信消息处理方法的流程示意图;Figure 32A is a schematic flowchart of yet another communication message processing method according to some embodiments;
图32B为根据一些实施例的又一种通信消息处理方法的信号流程示意图;Figure 32B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments;
图33A为根据一些实施例的又一种通信消息处理方法的流程示意图;Figure 33A is a schematic flowchart of yet another communication message processing method according to some embodiments;
图33B为根据一些实施例的又一种通信消息处理方法的信号流程示意图;Figure 33B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments;
图34A为根据一些实施例的又一种通信消息处理方法的流程示意图;Figure 34A is a schematic flowchart of yet another communication message processing method according to some embodiments;
图34B为根据一些实施例的又一种通信消息处理方法的信号流程示意图;Figure 34B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments;
图35A为根据一些实施例的又一种通信消息处理方法的流程示意图;Figure 35A is a schematic flowchart of yet another communication message processing method according to some embodiments;
图35B为根据一些实施例的又一种通信消息处理方法的信号流程示意图;Figure 35B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments;
图36为根据一些实施例的一种电子设备的结构示意图;Figure 36 is a schematic structural diagram of an electronic device according to some embodiments;
图37A为根据一些实施例的一种投屏方法的流程示意图;Figure 37A is a schematic flowchart of a screen projection method according to some embodiments;
图37B为根据一些实施例的一种投屏方法的信号流程示意图;Figure 37B is a schematic signal flow diagram of a screen projection method according to some embodiments;
图37C为根据一些实施例的一种交互示意图;Figure 37C is an interactive schematic diagram according to some embodiments;
图38A为根据一些实施例的另一种投屏方法的流程示意图;Figure 38A is a schematic flowchart of another screen projection method according to some embodiments;
图38B为根据一些实施例的另一种投屏方法的信号流程示意图;Figure 38B is a schematic signal flow diagram of another screen projection method according to some embodiments;
图38C为根据一些实施例的又一种投屏方法的流程示意图;Figure 38C is a schematic flowchart of yet another screencasting method according to some embodiments;
图38D为根据一些实施例的又一种投屏方法的信号流程示意图;Figure 38D is a schematic signal flow diagram of yet another screen projection method according to some embodiments;
图39A为根据一些实施例的又一种投屏方法的流程示意图;Figure 39A is a schematic flowchart of yet another screen projection method according to some embodiments;
图39B为根据一些实施例的又一种投屏方法的信号流程示意图。Figure 39B is a schematic signal flow diagram of yet another screen projection method according to some embodiments.
具体实施方式Detailed ways
下面将结合本申请一些实施例中的附图,对本申请一些实施方式进行描述,显然,描述的实施例仅是本申请一部分实施例,而不是全部的实施例。Some embodiments of the present application will be described below with reference to the accompanying drawings in some embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments.
相关领域在电视端实现同等的摄像头功能的方案为:通过手机与电视互联,并通过具有手机的摄像头进行视频的采集,以及将采集的图像投屏到电视上显示。然而,电视与手机屏幕的长宽比普遍存在很大差异,且手机可以以横屏录制、竖屏录制等多种姿态进行视频的采集,因此手机发送的投影视频往往与电视上用于播放投屏视频的视频播放窗口不匹配,进而导致出现视频画面不完整、比例失调等问题,严重影响用户的使用体验。因此在电视接收到手机发送的投屏视频流时,如何对调整投屏视频流以使投屏视频流能够适配视频播放窗口是一个亟待解决的问题。In related fields, the solution to achieve the same camera function on the TV side is to interconnect the mobile phone with the TV, collect the video through the camera of the mobile phone, and project the collected images to the TV for display. However, the aspect ratios of TV and mobile phone screens are generally very different, and mobile phones can capture videos in various postures such as horizontal screen recording and vertical screen recording. Therefore, the projected videos sent by mobile phones are often different from those used for playing projections on TVs. The video playback window of the screen video does not match, which leads to problems such as incomplete video images and imbalanced proportions, seriously affecting the user experience. Therefore, when the TV receives the screen projection video stream sent by the mobile phone, how to adjust the screen projection video stream so that the screen projection video stream can adapt to the video playback window is an urgent problem to be solved.
根据本申请一些实施方式提供一种显示设备和投屏方法,用于解决手机发送的投影视频可能会与电视上用于播放投屏视频的视频播放窗口不匹配的问题。According to some embodiments of the present application, a display device and a screen projection method are provided to solve the problem that the projected video sent by the mobile phone may not match the video playback window used to play the screen projection video on the TV.
图1A为本申请实施例提供的投屏方法的场景架构示意图。如图1A所示,本申请实施例提供的场景架构,包括:控制装置100、显示设备200、终端设备300以及服务器400。在一些实施例中,显示设备可以与服务器400进行数据通信。FIG. 1A is a schematic diagram of the scene architecture of the screen casting method provided by the embodiment of the present application. As shown in Figure 1A, the scene architecture provided by the embodiment of the present application includes: a control device 100, a display device 200, a terminal device 300, and a server 400. In some embodiments, the display device may be in data communication with server 400.
用户可通过终端设备300或控制装置100操作显示设备200,且可以通过终端设备300向显示设备200发送视频流,以控制显示设备200执行相应的操作,以及根据所述显示设备200发送视频流进行视频播放。本申请实施例提供的显示设备可以具有多种实施形式,例如,可以电视、具有显示功能的智能音箱冰箱、具有显示功能的窗帘、个人计算机(Personal Computer,PC)、激光投影设备、显示器(monitor)、电子白板(electronic bulletin board)、可穿戴设备、车载设备、电子桌面(electronic table)等。The user can operate the display device 200 through the terminal device 300 or the control device 100, and can send a video stream to the display device 200 through the terminal device 300 to control the display device 200 to perform corresponding operations, and perform operations according to the video stream sent by the display device 200. Video playback. The display device provided by the embodiment of the present application can have a variety of implementation forms, such as a television, a smart speaker refrigerator with a display function, a curtain with a display function, a personal computer (Personal Computer, PC), a laser projection device, a monitor (monitor) ), electronic whiteboard (electronic bulletin board), wearable devices, vehicle-mounted equipment, electronic desktop (electronic table), etc.
在一些实施例中,控制装置100可以是遥控器,遥控器和显示设备200的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式,通过无线或有线方式来控制显示设备200。用户可以通过遥控器上按键、语音输入、控制面板输入等输入用户指令,来控制显示设备200。In some embodiments, the control device 100 may be a remote controller. The communication between the remote controller and the display device 200 includes infrared protocol communication or Bluetooth protocol communication, and other short-distance communication methods to control the display device 200 through wireless or wired methods. The user can control the display device 200 by inputting user instructions through buttons on the remote control, voice input, control panel input, etc.
在一些实施例中,也可以使用终端设备300(如移动终端、平板电脑、计算机、笔记本电脑、AR/VR设备等)控制显示设备200。例如,使用在终端设备上运行的应用程序控制显示设备200。In some embodiments, the display device 200 can also be controlled using a terminal device 300 (such as a mobile terminal, a tablet, a computer, a laptop, an AR/VR device, etc.). For example, the display device 200 is controlled using an application program running on the terminal device.
在一些实施例中,也可以使用终端设备300和显示设备进行数据的通信。In some embodiments, the terminal device 300 and the display device may also be used to communicate data.
在一些实施例中,显示设备200还可以采用除了控制装置100和终端设备300之外的方式进行控制,例如,可以通过显示设备200内部配置的获取语音指令的模块直接接收用户的语音指令控制。In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the terminal device 300 . For example, the display device 200 can directly receive the user's voice command control through a module configured inside the display device 200 to obtain voice commands.
在一些实施例中,显示设备200还可以与服务器400进行数据通信,以从服务器获取相关媒体资源。可允许显示设备200通过局域网(LAN)、无线局域网(WLAN)与服务器400进行通信连接。服务器400可以向显示设备200提供媒体资源服务和各种内容和互动。In some embodiments, the display device 200 can also perform data communication with the server 400 to obtain related media resources from the server. The display device 200 may be allowed to communicate with the server 400 through a local area network (LAN) or a wireless local area network (WLAN). The server 400 can provide media resource services and various contents and interactions to the display device 200 .
图2为图1所示实施例中的控制装置100的配置框图。如图2所示,控制装置100包括控制器110、通信接口130、用户输入/输出接口140、存储器、供电电源。控制装置100可接收用户输入的操作指令,且将操作指令转换为显示设备200可识别和响应的指令,以及操作指令或转换语音指令得到的指令转发至显示设备200,起到用户与显示设备200之间交互中介作用。FIG. 2 is a block diagram illustrating the configuration of the control device 100 in the embodiment shown in FIG. 1 . As shown in Figure 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control device 100 can receive the operation instructions input by the user, convert the operation instructions into instructions that the display device 200 can recognize and respond to, and forward the operation instructions or instructions obtained by converting the voice instructions to the display device 200 to interact between the user and the display device 200 The intermediary role between.
如图3A,显示设备200或终端设备300包括调谐解调器210、通信器(也可称作通信接口)220、检测器230、外部装置接口240、控制器250、显示器260、音频输出接口285、存储器、供电电源、用户输入接口280中的至少一种。As shown in Figure 3A, the display device 200 or the terminal device 300 includes a tuner and demodulator 210, a communicator (also called a communication interface) 220, a detector 230, an external device interface 240, a controller 250, a display 260, and an audio output interface 285. , at least one of memory, power supply, and user input interface 280 .
在一些实施例中控制器250包括处理器,视频处理器,音频处理器,图形处理器,RAM,ROM,用于输入/输出的第一接口至第n接口。In some embodiments, the controller 250 includes a processor, a video processor, an audio processor, a graphics processor, RAM, ROM, and first to nth interfaces for input/output.
检测器230用于采集外部环境或与外部交互的信号。例如,检测器230包括光接收器,用于采集环境光线强度的传感器;或者,检测器230包括图像采集器,如摄像头,可以用于采集外部环境场景、用户的属性或用户交互手势,再或者,检测器230包括声音采集器,如麦克风等,用于接收外部声音。The detector 230 is used to collect signals from the external environment or interactions with the outside. For example, the detector 230 includes a light receiver, a sensor used to collect ambient light intensity; or the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures, or , the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.
外部装置接口240可以包括但不限于如下:高清多媒体接口(HDMI)、模拟或数据高清分量输入接口(分量)、复合视频输入接口(CVBS)、USB输入接口(USB)、RGB端口等任一个或多个接口。也可以是上述多个接口形成的复合性的输入/输出接口。The external device interface 240 may include, but is not limited to, any one of the following: high-definition multimedia interface (HDMI), analog or data high-definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, etc., or Multiple interfaces. It can also be a composite input/output interface formed by the above-mentioned multiple interfaces.
用户可在显示器260上显示的图形用户界面(GUI)输入用户命令,则用户接口通过图形用户界面(GUI)接收用户输入命令。或者,用户可通过输入特定的声音或手势进行输入用户命令,则用户接口通过传感器识别出声音或手势,来接收用户输入命令。The user may input a user command into a graphical user interface (GUI) displayed on the display 260, and the user interface receives the user input command through the graphical user interface (GUI). Alternatively, the user can input a user command by inputting a specific sound or gesture, and the user interface recognizes the sound or gesture through the sensor to receive the user input command.
在一些实施例中,用户输入接口280,为可用于接收控制输入的接口(如:显示设备本体上的实体按键,或其他等)。In some embodiments, the user input interface 280 is an interface that can be used to receive control input (such as physical buttons on the display device body, or others).
参见图4A,在一些实施例中,将显示设备200的操作系统分为四层,从上至下分别为应用程序(Applications)层(简称“应用层”),应用程序框架(Application Framework)层(简称“框架层”),安卓运行时(Android runtime)和系统库层(简称“系统运行库层”),以及内核层。Referring to Figure 4A, in some embodiments, the operating system of the display device 200 is divided into four layers. From top to bottom, they are the Applications layer (referred to as the "Application layer") and the Application Framework layer. (referred to as "framework layer"), Android runtime (Android runtime) and system library layer (referred to as "system runtime library layer"), and kernel layer.
如图4A所示,本申请实施例中应用程序框架层包括管理器(Managers),内容提供者(Content Provider)等,其中管理器包括以下模块中的至少一个:活动管理器(Activity Manager)用与和系统中正在运行的所有活动进行交互;位置管理器(Location Manager)用于给系统服务或应用提供了系统位置服务的访问;文件包管理器(Package Manager)用于检索当前安装在设备上的应用程序相关的各种信息;通知管理器(Notification Manager)用于控制通知消息的显示和清除;窗口管理器(Window Manager)用于管理用户界面上的图标、窗口、工具栏、壁纸和桌面部件。As shown in Figure 4A, the application framework layer in the embodiment of the present application includes managers (Managers), content providers (Content Provider), etc., where the manager includes at least one of the following modules: Activity Manager (Activity Manager) Interact with all activities running in the system; Location Manager is used to provide system services or applications with access to system location services; Package Manager is used to retrieve files currently installed on the device Various information related to the application; Notification Manager is used to control the display and clearing of notification messages; Window Manager is used to manage icons, windows, toolbars, wallpapers and desktops on the user interface part.
在一些实施例中,控制器250响应于接收到的触发指令(也可称作启动指令),在所述显示器260显示跟练界面,其中,所述跟练界面包括第一视频播放窗口和第二视频播放窗口(也可称作第一窗口和第二窗口),所述第二视频窗口用于播放从服务器获取的健身视频;In some embodiments, the controller 250 displays a follow-up interface on the display 260 in response to the received trigger instruction (also called a start instruction), where the follow-up interface includes a first video playback window and a third video playback window. Two video playback windows (also known as the first window and the second window), the second video window is used to play the fitness video obtained from the server;
在一些实施例中,当控制器250通过通信器220接收终端设备发送的所述终端设备基于其视频录制装置生成的第一视频流时,通过控制器250根据所述标识信息、视频播放参数以及所述第一视频流的尺寸获取缩放比例,根据所述缩放比例对所述第一视频流进行缩放获取第二视频流,以及根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数;基于所述布局偏移参数对所述第二视频流进行偏移,并控制所述显示器260在所述第一视频窗口播放偏移后的所述第二视频流。In some embodiments, when the controller 250 receives the first video stream generated by the terminal device based on its video recording device sent by the terminal device through the communicator 220, the controller 250 uses the identification information, video playback parameters and The size of the first video stream is used to obtain a scaling ratio, the first video stream is scaled according to the scaling ratio to obtain a second video stream, and the layout is obtained according to the video playback parameters and the size of the second video stream. Offset parameter: offset the second video stream based on the layout offset parameter, and control the display 260 to play the offset second video stream in the first video window.
在一些实施例中,第一视频窗口用于播放从服务器获取的健身视频,而第二视频窗口播放偏移后的所述第二视频流。In some embodiments, the first video window is used to play the fitness video obtained from the server, and the second video window plays the offset second video stream.
在一些实施例中,所述标识信息包括:第一姿态标识或第二姿态标识;当所述标识信息包括第一姿态标识时,所述标识信息用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为竖屏姿态;当所述标识信息包括第二姿态标识时,所述标识信息用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为横屏姿态。其中,所述第一姿态标识对应的视频播放参数和所述第二姿态标识对应的视频播放参数不同。In some embodiments, the identification information includes: a first gesture identification or a second gesture identification; when the identification information includes a first gesture identification, the identification information is used to identify the terminal device to record the first gesture. The posture when recording the video corresponding to the video stream is the portrait posture; when the identification information includes a second posture identification, the identification information is used to identify the posture when the terminal device records the video corresponding to the first video stream. Horizontal posture. Wherein, the video playback parameters corresponding to the first gesture identification and the video playback parameters corresponding to the second gesture identification are different.
在一些实施例中,当所述标识信息用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为 竖屏姿态时,所述控制器250根据所述缩放比例对所述第一视频流进行缩放获取第二视频流,以及根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数,包括,所述控制器250根据所述第一视频流的宽度和目标宽度获取第一缩放比例;所述目标宽度为所述第一视频播放窗口的宽度或者所述预设视频流尺寸中的宽度;In some embodiments, when the identification information is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a portrait posture, the controller 250 adjusts the posture of the terminal device according to the scaling ratio. The first video stream is scaled to obtain the second video stream, and the layout offset parameter is obtained according to the video playback parameter and the size of the second video stream, including: the controller 250 according to the width of the first video stream. and the target width to obtain the first scaling ratio; the target width is the width of the first video playback window or the width of the preset video stream size;
使用所述第一缩放比例对所述第一视频流进行缩放获取所述第二视频流;根据所述第二视频流的高度和所述第一视频播放窗口的高度,获取第一布局偏移参数;Scale the first video stream using the first scaling ratio to obtain the second video stream; obtain a first layout offset according to the height of the second video stream and the height of the first video playback window parameter;
所述控制器250基于所述布局偏移参数对所述第二视频流进行偏移包括,所述控制器基于所述第一布局偏移参数在高度方向上对所述第二视频流进行偏移。The controller 250 offsets the second video stream based on the layout offset parameter, including the controller offsets the second video stream in a height direction based on the first layout offset parameter. shift.
其中,所述第一缩放比例为所述目标宽度与所述第一视频流的宽度的比值;所述第一布局偏移参数为所述第二视频流的高度与所述第一视频播放窗口的高度的差值的二分之一。Wherein, the first scaling ratio is the ratio of the target width to the width of the first video stream; the first layout offset parameter is the height of the second video stream to the first video playback window. half the difference in height.
在一些实施例中,当所述标识信息用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为横屏姿态时,In some embodiments, when the identification information is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a horizontal screen posture,
所述控制器250根据所述标识信息、视频播放参数以及所述第一视频流的尺寸获取缩放比例,根据所述缩放比例对所述第一视频流进行缩放获取第二视频流,包括:The controller 250 obtains a scaling ratio according to the identification information, video playback parameters and the size of the first video stream, and scales the first video stream according to the scaling ratio to obtain a second video stream, including:
控制器250根据所述第一视频流的高度和目标高度,获取第二缩放比例;所述目标高度为所述第一视频播放窗口的高度或者所述预设视频流尺寸中的高度;使用所述第二缩放比例对所述第一视频流进行缩放,获取所述第二视频流;The controller 250 obtains the second scaling ratio according to the height of the first video stream and the target height; the target height is the height of the first video playback window or the height in the preset video stream size; using the The second scaling ratio scales the first video stream to obtain the second video stream;
所述控制器250根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数,包括:控制器250根据所述第二视频流的宽度和所述第一视频播放窗口的宽度,获取第二布局偏移参数;基于所述第二布局偏移参数在宽度方向上对所述第二视频流进行偏移。其中,所述第二缩放比例为所述目标高度与所述第一视频流的高度的比值;所述第二布局偏移参数为所述第二视频流的宽度与所述第一视频播放窗口的宽度的差值的二分之一。The controller 250 obtains the layout offset parameter according to the video playback parameter and the size of the second video stream, including: the controller 250 obtains the layout offset parameter according to the width of the second video stream and the width of the first video playback window. , obtain a second layout offset parameter; and offset the second video stream in the width direction based on the second layout offset parameter. Wherein, the second scaling ratio is the ratio of the target height to the height of the first video stream; the second layout offset parameter is the width of the second video stream and the first video play window half the difference in width.
在一些实施例中所述通信器250基于所述布局偏移参数对所述第二视频流进行偏移,并控制所述显示器在所述第一视频窗口播放偏移后的所述第二视频流之后,所述控制器250还被配置为:In some embodiments, the communicator 250 offsets the second video stream based on the layout offset parameter, and controls the display to play the offset second video in the first video window. After streaming, the controller 250 is also configured to:
响应于接收到的剪裁播放指令,根据所述选定区域的尺寸和所述第一视频播放窗口的尺寸,获取第三缩放比例;所述剪裁播放指令携带有选定区域的尺寸和所述选定区域的位置信息,用于指示基于所述选定区域内所述第一视频流的视频内容进行视频播放;所述第三缩放比例为第一比值与第二比值中较小的一个比值,所述第一比值为所述第一视频播放窗口的高度与所述选定区域的高度的比值,所述第二比值为所述第一视频播放窗口的宽度与所述选定区域的宽度的比值;In response to the received trimming and playback instruction, a third zoom ratio is obtained according to the size of the selected area and the size of the first video playback window; the trimming and playback instruction carries the size of the selected area and the size of the selected area. The position information of a certain area is used to indicate video playback based on the video content of the first video stream in the selected area; the third scaling ratio is the smaller of the first ratio and the second ratio, The first ratio is the ratio of the height of the first video playback window to the height of the selected area, and the second ratio is the ratio of the width of the first video playback window to the width of the selected area. ratio;
使用所述第三缩放比例对所述第一视频流进行缩放获取第三视频流;根据所述第三缩放比例、所述第一视频播放窗口的宽度、所述选定区域的位置信息以及所述选定区域的宽度获取第三布局偏移参数;根据所述第三缩放比例、所述第一视频播放窗口的高度、所述选定区域的位置信息以及所述选定区域的高度获取第四布局偏移参数;Use the third zoom ratio to zoom the first video stream to obtain a third video stream; according to the third zoom ratio, the width of the first video playback window, the position information of the selected area and the Obtain the third layout offset parameter based on the width of the selected area; obtain the third layout offset parameter according to the third scaling ratio, the height of the first video playback window, the position information of the selected area, and the height of the selected area. Four layout offset parameters;
基于所述第三视频流在所述第一视频播放窗口中进行视频播放,并基于所述第三布局偏移参数在宽度方向上对所述第三视频流进行偏移,基于所述第四布局偏移参数在高度方向上对所述第三视频流进行偏移,并控制所述显示器在所述第一视频窗口播放偏移后的所述第三视频流。Video playback is performed in the first video playback window based on the third video stream, and the third video stream is offset in the width direction based on the third layout offset parameter. Based on the fourth The layout offset parameter offsets the third video stream in the height direction, and controls the display to play the offset third video stream in the first video window.
在一些实施例中,所述控制器250根据所述第三缩放比例、所述第一视频播放窗口的宽度、所述选定区域的位置信息以及所述选定区域的宽度获取第三布局偏移参数,包括:In some embodiments, the controller 250 obtains a third layout bias according to the third zoom ratio, the width of the first video playback window, the position information of the selected area, and the width of the selected area. Shift parameters, including:
所述控制器250通过如下公式一计算所述第三布局偏移参数:The controller 250 calculates the third layout offset parameter through the following formula 1:
所述公式一为:CLIP 3=(X+select_w/2)*R3-WL/2; The first formula is: CLIP 3 = (X+select_w/2)*R3-WL/2;
所述控制器250根据所述第三缩放比例、所述第一视频播放窗口的高度、所述选定区域的位置信息以及所述选定区域的高度获取第四布局偏移参数,包括:所述控制器250通过如下公式二计算所述第三布局偏移参数:The controller 250 obtains a fourth layout offset parameter according to the third zoom ratio, the height of the first video playback window, the position information of the selected area, and the height of the selected area, including: The controller 250 calculates the third layout offset parameter through the following formula 2:
所述公式二为:CLIP 4=(Y+select_h/2)*R3-HL/2; The second formula is: CLIP 4 = (Y+select_h/2)*R3-HL/2;
其中,CLIP 3为所述第三布局偏移参数,CLIP 4为所述第四布局偏移参数,X为所述选定区域的左侧边缘到所述第一视频流的左侧边缘的距离,Y为所述选定区域的顶侧边缘到所述第一视频流的顶侧边缘的距离,select_w/2和select_h/2分别为所述选定区域的宽度和高度,R3为所述第三缩放比例,WL和HL分别为所述第一视频播放窗口的宽度和高度。 Wherein, CLIP 3 is the third layout offset parameter, CLIP 4 is the fourth layout offset parameter, and X is the distance from the left edge of the selected area to the left edge of the first video stream. , Y is the distance from the top edge of the selected area to the top edge of the first video stream, select_w/2 and select_h/2 are the width and height of the selected area respectively, and R3 is the Three scaling ratios, WL and HL are the width and height of the first video playback window respectively.
图5为根据本申请一些实施例提供的投屏方法的流程示意图,如图5所示,本申请实施例提供的投屏方法包括如下步骤:Figure 5 is a schematic flowchart of a screen casting method provided according to some embodiments of the present application. As shown in Figure 5, the screen casting method provided by embodiments of the present application includes the following steps:
S51、接收终端设备发送的第一视频流。S51. Receive the first video stream sent by the terminal device.
其中,所述第一视频流为通过所述终端设备的视频录制装置进行视频采集得到的视频流,且携带有用于标识所述终端设备录制所述第一视频流对应的视频时的姿态的标识信息。Wherein, the first video stream is a video stream obtained through video collection by a video recording device of the terminal device, and carries an identifier used to identify the posture of the terminal device when recording the video corresponding to the first video stream. information.
在一些实施例中,所述第一视频流可以为终端设备通过视频录制装置实时进行视频录制并发送到显示设备的视频流。在另一些实施例中,所述第一视频流也可以为终端设备对预先录制的视频进行投屏显示时向显示设备发送的视频流。In some embodiments, the first video stream may be a video stream that is recorded in real time by the terminal device through a video recording device and sent to the display device. In other embodiments, the first video stream may also be a video stream sent to the display device when the terminal device displays the pre-recorded video on the screen.
在一些实施例中,本申请实施例中的所述终端设备可以为手机,所述终端设备的视频录制装置可以为手机的前置/后置摄像头。In some embodiments, the terminal device in the embodiment of the present application may be a mobile phone, and the video recording device of the terminal device may be a front/rear camera of the mobile phone.
在接收终端设备发送的第一视频流之前,可以先接收触发指令,在显示器显示跟练界面,其中,跟练界面包括第一视频播放窗口和第二视频播放窗口,第二视频窗口用于播放从服务器获取的健身视频。Before receiving the first video stream sent by the terminal device, a triggering instruction may be received first to display a follow-up training interface on the display, where the follow-up training interface includes a first video playback window and a second video playback window, and the second video window is used for playback Fitness videos obtained from the server.
其中,该触发指令可以是用户在终端设备上进行触发显示跟练界面的操作之后触发的。The triggering instruction may be triggered after the user performs an operation on the terminal device to trigger the display of the follow-up training interface.
在一些实施例中,该触发指令也可以是显示设备接收的其他控制设备触发显示跟练界面的指令。In some embodiments, the triggering instruction may also be an instruction received by the display device from another control device to trigger display of the training interface.
S52、根据所述标识信息、视频播放参数以及所述第一视频流的尺寸获取缩放比例。S52. Obtain the scaling ratio according to the identification information, video playback parameters and the size of the first video stream.
其中,所述视频播放参数包括用于播放所述第一视频流的第一视频播放窗口的尺寸和/或预设视频流尺寸。Wherein, the video playback parameters include the size of the first video playback window used to play the first video stream and/or the preset video stream size.
在一些实施例中,可以仅根据所述标识信息、第一视频播放窗口的尺寸以及所述第一视频流的尺寸获取缩放比例,从而使缩放后的第一视频流的尺寸与第一视频播放窗口的尺寸相适应。In some embodiments, the scaling ratio may be obtained only based on the identification information, the size of the first video playback window, and the size of the first video stream, so that the size of the scaled first video stream is the same as that of the first video playback window. Adapt to the size of the window.
在一些实施例中,可以仅根据所述标识信息、预设视频流尺寸以及所述第一视频流的尺寸获取缩放比例,从而将第一视频流缩放为预设视频流尺寸的视频流。In some embodiments, the scaling ratio may be obtained only based on the identification information, the preset video stream size, and the size of the first video stream, thereby scaling the first video stream to a video stream of the preset video stream size.
在一些实施例中,可以根据所述标识信息、第一视频播放窗口的尺寸、预设视频流尺寸以及所述第一视频流的尺寸获取缩放比例,从而使缩放后的第一视频流的尺寸在与第一视频播放窗口的尺寸相适应的同时,更加符合原始视频的长宽比。例如:第一视频播放窗口的尺寸为629×629,为了使投屏视频的长宽比更加符合手机在竖屏状态下的长宽比,则可以将预设视频流尺寸设置为450×629。再例如:第一视频播放窗口的尺寸为629×629,为了使投屏视频的长宽比更加符合手机在横屏状态下的长宽比,则可以将预设视频流尺寸设置为629×450。In some embodiments, the scaling ratio can be obtained according to the identification information, the size of the first video playback window, the preset video stream size, and the size of the first video stream, so that the size of the scaled first video stream While adapting to the size of the first video playback window, it is more consistent with the aspect ratio of the original video. For example: the size of the first video playback window is 629×629. In order to make the aspect ratio of the projected video more consistent with the aspect ratio of the mobile phone in portrait mode, the default video stream size can be set to 450×629. Another example: the size of the first video playback window is 629×629. In order to make the aspect ratio of the screencast video more consistent with the aspect ratio of the mobile phone in landscape mode, the default video stream size can be set to 629×450. .
在一些实施例中,所述标识信息包括:第一姿态标识或第二姿态标识。In some embodiments, the identification information includes: a first posture identification or a second posture identification.
当所述标识信息包括第一姿态标识时,所述标识信息用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为竖屏姿态;When the identification information includes a first posture identification, the identification information is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a portrait posture;
当所述标识信息包括第二姿态标识时,所述标识信息用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为横屏姿态。When the identification information includes a second posture identification, the identification information is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a horizontal screen posture.
第一姿态标识对应的视频播放参数和所述第二姿态标识对应的视频播放参数不同。The video playback parameters corresponding to the first gesture identification and the video playback parameters corresponding to the second gesture identification are different.
视频播放参数包括用于播放第一视频流的第一视频播放窗口的尺寸和/或预设视频流尺寸,本公开实施例的一些实施例中,可以为不同姿态标识设置不同的视频播放参数,也就是说针对所述终端设备录制所述第一视频流对应的视频时的不同姿态,可以对应到不同的第一视频播放窗口的尺寸和/或预设视频流尺寸。The video playback parameters include the size of the first video playback window for playing the first video stream and/or the preset video stream size. In some embodiments of the present disclosure, different video playback parameters can be set for different gesture identifiers, That is to say, different gestures of the terminal device when recording the video corresponding to the first video stream may correspond to different sizes of the first video playback window and/or preset video stream sizes.
在一些实施例中,当所述标识信息包括第一姿态标识时,表示终端设备录制所述第一视频流对应的视频时的姿态为横屏姿态,该情况下对应的视频播放参数可以为:第一视频流的尺寸为1920×1080,所述第一视频播放窗口的尺寸为626×629。In some embodiments, when the identification information includes a first posture identification, it indicates that the posture of the terminal device when recording the video corresponding to the first video stream is a horizontal screen posture. In this case, the corresponding video playback parameters may be: The size of the first video stream is 1920×1080, and the size of the first video playback window is 626×629.
在一些实施例中,当所述标识信息包括第二姿态标识时,表示终端设备录制所述第一视频流对应的视频时的姿态为竖屏姿态,该情况下对应的视频播放参数可以为:第一视频流的尺寸为1080×1920、所述第一视频播放窗口的尺寸为626×629。In some embodiments, when the identification information includes a second posture identification, it indicates that the posture of the terminal device when recording the video corresponding to the first video stream is a portrait posture. In this case, the corresponding video playback parameters may be: The size of the first video stream is 1080×1920, and the size of the first video playback window is 626×629.
S53、根据所述缩放比例对所述第一视频流进行缩放获取第二视频流。S53. Scale the first video stream according to the scaling ratio to obtain the second video stream.
在一些实施例中,所述第一视频流的尺寸为1080×1920,所述缩放比例为R,则所述第二视频流的尺寸为1080*R×1920*R。In some embodiments, the size of the first video stream is 1080×1920, and the scaling ratio is R, then the size of the second video stream is 1080*R×1920*R.
通过上述步骤S53中的缩放操作可以使第一视频流的长度或宽度与视频播放参数相适应。Through the scaling operation in step S53, the length or width of the first video stream can be adapted to the video playback parameters.
S54、根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数。S54. Obtain a layout offset parameter according to the video playback parameter and the size of the second video stream.
通过上述步骤S53中可以使第二视频流的长度或宽度与视频播放参数相适应,但还需对第二视频流的长度和宽度中的另一个进行调整才能使第二视频流的长度和宽度均与视频播放参数相适应。本发明实施例中使第二视频流的长度和宽度中的另一个与视频播放参数相适应的方式为在根据所述第二视频流进行视频播放时,将所述第二视频流在长度和宽度中的另一个的方向上偏移,因此本发明实施例中需要首先根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数,以便后续播放根据所述第二视频流进行视频播放时进行布局偏移。Through the above step S53, the length or width of the second video stream can be adapted to the video playback parameters, but the other of the length and width of the second video stream needs to be adjusted to adjust the length and width of the second video stream. All are compatible with video playback parameters. In the embodiment of the present invention, the way to adapt the other one of the length and width of the second video stream to the video playback parameters is to adjust the second video stream between the length and the width when playing the video according to the second video stream. The width of the other one is offset in the direction. Therefore, in the embodiment of the present invention, it is necessary to first obtain the layout offset parameter according to the video playback parameters and the size of the second video stream, so that subsequent playback can be based on the second video stream. Layout offset during video playback.
S55、基于所述布局偏移参数对所述第二视频流进行偏移,并在所述第一视频播放窗口中播放偏移后的所述第二视频流。S55: Offset the second video stream based on the layout offset parameter, and play the offset second video stream in the first video playback window.
在一些实施例中,基于所述布局偏移参数对所述第二视频流进行偏移可以包括:基于布局参数调整所述第二视频流的坐标系原点,以对所述第二视频流进行偏移。在另一些实施例中,基于所述布局偏移参数 对所述第二视频流进行偏移也可以包括:基于布局参数调整计算所述第二视频流的各个边缘(上边缘、下边缘、左边缘以及右边缘)对应的第一视频播放窗口的边缘的距离,然后根据第二视频流的各个边缘对应的第一视频播放窗口的边缘的距离对所述第二视频流进行偏移。In some embodiments, offsetting the second video stream based on the layout offset parameter may include: adjusting the origin of the coordinate system of the second video stream based on the layout parameter to offset the second video stream. offset. In other embodiments, offsetting the second video stream based on the layout offset parameter may also include: calculating each edge (top edge, bottom edge, left edge, etc.) of the second video stream based on layout parameter adjustment. edge and right edge) of the first video playback window, and then offset the second video stream according to the distance between the edges of the first video playback window corresponding to each edge of the second video stream.
本申请实施例提供的投屏方法,在接收到接收终端设备发送的基于所述终端设备的视频录制装置生成的第一视频流时,会先根据所述第一视频流携带的标识信息视频播放参数以及所述第一视频流的尺寸获取缩放比例,然后根据所述缩放比例对所述第一视频流进行缩放获取第二视频流,并根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数,最终基于所述第二视频流在所述第一视频播放窗口中进行视频播放,并基于所述布局偏移参数对所述第二视频流进行偏移。由于所述标识信息用于标识所述终端设备录制所述第一视频流对应的视频时的姿态,且所述视频播放参数包括用于播放所述第一视频流的第一视频播放窗口的尺寸和/或预设视频流尺寸,因此本发明实施例可以根据终端设备录制所述第一视频流对应的视频时的姿态,对第一视频流缩放以使缩放,使得到的第二视频流在横向或纵向上与视频播放参数相适应;由于因为本发明实施例还会根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数,以及在进行视频播放时基于所述布局偏移参数对所述第二视频流进行偏移,因此本发明实施例可以使第二视频流在另一个方向上也与视频播放参数相适应。综上,本发明实例可以在横向和纵向使投屏视频流的尺寸与用于播放投屏视频流的视频播放窗口和/或预设视频流尺寸相适应。The screen projection method provided by the embodiment of the present application, when receiving the first video stream generated by the video recording device of the terminal device and sent by the receiving terminal device, will first play the video according to the identification information carried by the first video stream. parameters and the size of the first video stream to obtain the scaling ratio, then scale the first video stream according to the scaling ratio to obtain the second video stream, and obtain the second video stream according to the video playback parameters and the size of the second video stream. The size obtains the layout offset parameter, and finally performs video playback in the first video playback window based on the second video stream, and offsets the second video stream based on the layout offset parameter. Because the identification information is used to identify the posture of the terminal device when recording the video corresponding to the first video stream, and the video playback parameters include the size of the first video playback window used to play the first video stream. and/or the video stream size is preset. Therefore, the embodiment of the present invention can zoom the first video stream according to the posture of the terminal device when recording the video corresponding to the first video stream, so that the obtained second video stream is in horizontally or vertically adapted to the video playback parameters; because the embodiment of the present invention will also obtain the layout offset parameter based on the video playback parameters and the size of the second video stream, and based on the layout during video playback The offset parameter offsets the second video stream, so this embodiment of the present invention can make the second video stream adapt to the video playback parameters in another direction. In summary, examples of the present invention can adapt the size of the screen projection video stream to the video playback window and/or the preset video stream size for playing the screen projection video stream in both horizontal and vertical directions.
作为对上述实施例的扩展和细化,参照图6所示,本发明实施例提供的另一种投屏方法,包括:As an expansion and refinement of the above embodiment, as shown in Figure 6, another screen projection method provided by an embodiment of the present invention includes:
S601、接收终端设备发送的第一视频流。S601. Receive the first video stream sent by the terminal device.
其中,所述第一视频流为通过所述终端设备的视频录制装置进行视频录制得到的视频流,且携带有用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为竖屏姿态的标识信息;Wherein, the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries a message indicating that the posture of the terminal device when recording the video corresponding to the first video stream is vertical. Identification information of screen posture;
参照图7所示,图7中以显示设备71为电视、终端设备72为手机为例示出。终端设备72录制所述第一视频流对应的视频时的姿态为竖屏姿态。Referring to FIG. 7 , in FIG. 7 , the display device 71 is a television and the terminal device 72 is a mobile phone. The posture of the terminal device 72 when recording the video corresponding to the first video stream is a portrait posture.
S602、根据所述第一视频流的宽度和第一视频播放窗口的宽度获取第一缩放比例。S602. Obtain the first scaling ratio according to the width of the first video stream and the width of the first video playback window.
本发明实施例中的宽度是指像素行(横向)内包含的像素点的数量,高度是指像素列(纵向)内包含的像素点的数量。In the embodiment of the present invention, the width refers to the number of pixels included in the pixel row (horizontally), and the height refers to the number of pixels included in the pixel column (vertical).
由于本发明实施例中的第一视频流为基于所述终端设备的视频录制装置生成的视频流,因此所述第一视频流的尺寸与终端设备的屏幕的分辨率相同,例如:终端设备屏幕分辨率为1080×1920,则第一视频流的尺寸为1080×1920。Since the first video stream in the embodiment of the present invention is a video stream generated based on the video recording device of the terminal device, the size of the first video stream is the same as the resolution of the screen of the terminal device, for example: the screen of the terminal device The resolution is 1080×1920, and the size of the first video stream is 1080×1920.
在一些实施例中,所述第一缩放比例为所述第一视频播放窗口的宽度与所述第一视频流的宽度的比值。In some embodiments, the first scaling ratio is a ratio of a width of the first video playback window to a width of the first video stream.
设:所述第一缩放比例为R1,所述第一视频流的尺寸为W1×H1,所述第一视频播放窗口的尺寸为WL×HL,则有:Assume: the first scaling ratio is R1, the size of the first video stream is W1×H1, and the size of the first video playback window is WL×HL, then there is:
R1=WL/W1R1=WL/W1
在一些实施例中,当所述第一视频流的尺寸为1080×1920,所述第一视频播放窗口的尺寸为626×629时,所述第一缩放比例R1=629/1080。In some embodiments, when the size of the first video stream is 1080×1920 and the size of the first video playback window is 626×629, the first scaling ratio R1=629/1080.
S603、使用所述第一缩放比例对所述第一视频流进行缩放获取所述第二视频流。S603. Use the first scaling ratio to scale the first video stream to obtain the second video stream.
根据上述实施例,所述第一视频流的尺寸为1080×1920,所述第一视频播放窗口的尺寸为626×629,所述第一缩放比例R1=629/1080,则使用所述第一缩放比例对所述第一视频流进行缩放得到的第二视频流的尺寸为629×1118。According to the above embodiment, the size of the first video stream is 1080×1920, the size of the first video playback window is 626×629, and the first scaling ratio R1=629/1080, then the first The size of the second video stream obtained by scaling the first video stream by the scaling ratio is 629×1118.
至此,所述第二视频流的宽度已与所述第一视频播放窗口相适应。At this point, the width of the second video stream has adapted to the first video playback window.
S604、根据所述第二视频流的高度和所述第一视频播放窗口的高度,获取第一布局偏移参数。S604. Obtain the first layout offset parameter according to the height of the second video stream and the height of the first video playback window.
在一些实施例中,所述第一布局偏移参数为所述第二视频流的高度与所述第一视频播放窗口的高度的差值的二分之一。In some embodiments, the first layout offset parameter is half of the difference between the height of the second video stream and the height of the first video playback window.
设:所述第一布局偏移参数为CLIP 1,所述第二视频流的尺寸为W2×H2,所述第一视频播放窗口的尺寸为WL×HL,则有: Suppose: the first layout offset parameter is CLIP 1 , the size of the second video stream is W2×H2, and the size of the first video playback window is WL×HL, then there is:
CLIP 1=1/2(H2-HL) CLIP 1 =1/2(H2-HL)
在一些实施例中,当所述第二视频流的尺寸为629×1118,所述第一视频播放窗口的尺寸为629×629时,所述第一布局偏移参数CLIP 1=1/2(1118-629)。 In some embodiments, when the size of the second video stream is 629×1118 and the size of the first video playback window is 629×629, the first layout offset parameter CLIP 1 =1/2 ( 1118-629).
S605、基于所述第一布局偏移参数在高度方向上对所述第二视频流进行偏移,并在所述第一视频播放窗口中播放偏移后的所述第二视频流。S605. Offset the second video stream in the height direction based on the first layout offset parameter, and play the offset second video stream in the first video playback window.
参照图8所示,图8中以所述第一视频流的尺寸为1080×1920、所述第一视频播放窗口800的尺寸为629×629为例对上述实施例提供的投屏方法进行说明。参照图8所示,根据所述第一视频流81的宽度1080和第一视频播放窗口的宽度629获取第一缩放比例629/1080,然后根据第一缩放比例629/1080对所述第一视频流81进行缩放获取第二视频流82,第二视频流82的尺寸为629×1118,再根据所述第二视频流82的高度1118和所述第一视频播放窗口800的高度,获取第一布局偏移参 数1/2(1118-629)≈244;最后基于所述第二视频流82在所述第一视频播放窗口800中进行视频播放,并将所述第二视频流向上偏移第一布局偏移参数244,以实现图8所示的显示效果。Referring to FIG. 8 , the screen projection method provided in the above embodiment is explained by taking the size of the first video stream as 1080×1920 and the size of the first video playback window 800 as 629×629 as an example. . Referring to FIG. 8 , a first scaling ratio 629/1080 is obtained according to the width 1080 of the first video stream 81 and the width 629 of the first video playback window, and then the first video is scaled according to the first scaling ratio 629/1080. The stream 81 is zoomed to obtain the second video stream 82. The size of the second video stream 82 is 629×1118. Then, according to the height 1118 of the second video stream 82 and the height of the first video playback window 800, the first video stream 82 is obtained. Layout offset parameter 1/2 (1118-629) ≈ 244; finally, video playback is performed in the first video playback window 800 based on the second video stream 82, and the second video stream is offset upward by the second video stream. A layout offset parameter 244 to achieve the display effect shown in Figure 8.
作为对上述实施例的扩展和细化,参照图9所示,本发明实施例提供的另一种投屏方法,包括:As an expansion and refinement of the above embodiment, as shown in Figure 9, another screen projection method provided by an embodiment of the present invention includes:
S901、接收终端设备发送的第一视频流。S901. Receive the first video stream sent by the terminal device.
其中,所述第一视频流为通过所述终端设备的视频录制装置进行视频录制得到的视频流,且携带有用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为竖屏姿态的标识信息;Wherein, the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries a message indicating that the posture of the terminal device when recording the video corresponding to the first video stream is vertical. Identification information of screen posture;
S902、根据所述第一视频流的宽度和预设视频流尺寸中的宽度获取第一缩放比例。S902. Obtain the first scaling ratio according to the width of the first video stream and the width of the preset video stream size.
在一些实施例中,所述第一缩放比例为所述预设视频流尺寸中的宽度与所述第一视频流的宽度的比值。In some embodiments, the first scaling ratio is a ratio of a width in the preset video stream size to a width of the first video stream.
设:所述第一缩放比例为R1,所述第一视频流的尺寸为W1×H1,所述预设视频流尺寸为WS×HS,则有:Assume: the first scaling ratio is R1, the size of the first video stream is W1×H1, and the preset video stream size is WS×HS, then there is:
R1=WS/W1R1=WS/W1
在一些实施例中,当所述第一视频流的尺寸为1080×1920,所述预设视频流尺寸为450×629时,所述第一缩放比例R1=450/1080。In some embodiments, when the size of the first video stream is 1080×1920 and the preset video stream size is 450×629, the first scaling ratio R1=450/1080.
S903、使用所述第一缩放比例对所述第一视频流进行缩放获取所述第二视频流。S903. Use the first scaling ratio to scale the first video stream to obtain the second video stream.
根据上述实施例,所述第一视频流的尺寸为1080×1920,所述预设视频流尺寸为450×629,所述第一缩放比例R1=450/1080,则使用所述第一缩放比例对所述第一视频流进行缩放得到的第二视频流的尺寸为450×800。According to the above embodiment, the size of the first video stream is 1080×1920, the preset video stream size is 450×629, and the first scaling ratio R1=450/1080, then the first scaling ratio is used The size of the second video stream obtained by scaling the first video stream is 450×800.
至此,所述第二视频流的宽度已与所述预设视频播放流中的宽度相同。At this point, the width of the second video stream is the same as the width of the preset video playback stream.
S904、根据所述第二视频流的高度和所述第一视频播放窗口的高度,获取第一布局偏移参数。S904. Obtain the first layout offset parameter according to the height of the second video stream and the height of the first video playback window.
在一些实施例中,所述第一布局偏移参数为所述第二视频流的高度与所述第一视频播放窗口的高度的差值的二分之一。In some embodiments, the first layout offset parameter is half of the difference between the height of the second video stream and the height of the first video playback window.
设:所述第一布局偏移参数为CLIP 1,所述第二视频流的尺寸为W2×H2,所述第一视频播放窗口的尺寸为WL×HL,则有: Suppose: the first layout offset parameter is CLIP 1 , the size of the second video stream is W2×H2, and the size of the first video playback window is WL×HL, then there is:
CLIP 1=1/2(H2-HL) CLIP 1 =1/2(H2-HL)
在一些实施例中,当所述第二视频流的尺寸为629×800,所述第一视频播放窗口的尺寸为629×629时,所述第一布局偏移参数CLIP 1=1/2(800-629)。 In some embodiments, when the size of the second video stream is 629×800 and the size of the first video playback window is 629×629, the first layout offset parameter CLIP 1 =1/2 ( 800-629).
S905、基于所述第一布局偏移参数在高度方向上对所述第二视频流进行偏移,并在所述第一视频播放窗口中播放偏移后的所述第二视频流。S905. Offset the second video stream in the height direction based on the first layout offset parameter, and play the offset second video stream in the first video playback window.
参照图10所示,图10中以所述第一视频流的尺寸为1080×1920、所述第一视频播放窗口1000的尺寸为629×629、所述预设视频流尺寸为450×629为例对上述实施例提供的投屏方法进行说明。参照图10所示,根据所述第一视频流101的宽度1080和第一视频播放窗口的宽度450获取第一缩放比例450/1080,然后根据第一缩放比例450/1080对所述第一视频流101进行缩放获取第二视频流102,第二视频流102的尺寸为450×800,再根据所述第二视频流102的高度800和所述第一视频播放窗口1000的高度,获取第一布局偏移参数1/2(800-629)≈85;最后基于所述第二视频流102在所述第一视频播放窗口1000中进行视频播放,并将所述第二视频流向上偏移第一布局偏移参数85,以实现图10所示的显示效果。Referring to Figure 10, in Figure 10, the size of the first video stream is 1080×1920, the size of the first video playback window 1000 is 629×629, and the preset video stream size is 450×629. An example is provided to illustrate the screen projection method provided in the above embodiment. Referring to Figure 10, a first scaling ratio 450/1080 is obtained according to the width 1080 of the first video stream 101 and the width 450 of the first video playback window, and then the first video is scaled according to the first scaling ratio 450/1080. The stream 101 is zoomed to obtain the second video stream 102. The size of the second video stream 102 is 450×800. Then, according to the height 800 of the second video stream 102 and the height of the first video playback window 1000, the first video stream 102 is obtained. Layout offset parameter 1/2 (800-629) ≈ 85; finally, video playback is performed in the first video playback window 1000 based on the second video stream 102, and the second video stream is offset upward by the second video stream 102. A layout offset parameter of 85 is used to achieve the display effect shown in Figure 10.
图9所示投屏方法中最终显示的视频的长宽比更加接近竖屏状态下终端设备的屏幕的长宽比,因此可以更好的展示终端设备的投屏画面。The aspect ratio of the video finally displayed in the screen projection method shown in Figure 9 is closer to the aspect ratio of the screen of the terminal device in the portrait mode, so the projection screen of the terminal device can be better displayed.
作为对上述实施例的扩展和细化,参照图11所示,本发明实施例提供的另一种投屏方法,包括:As an expansion and refinement of the above embodiment, as shown in Figure 11, another screen projection method provided by an embodiment of the present invention includes:
S111、接收终端设备发送的第一视频流。S111. Receive the first video stream sent by the terminal device.
其中,所述第一视频流为通过所述终端设备的视频录制装置进行视频录制得到的视频流,且携带有用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为横屏姿态的标识信息;Wherein, the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries a message indicating that the posture of the terminal device when recording the video corresponding to the first video stream is horizontal. Identification information of screen posture;
参照图12所示,图12中以显示设备121为电视、终端设备122为手机为例示出。终端设备122录制所述第一视频流对应的视频时的姿态为横屏姿态。Referring to FIG. 12 , in FIG. 12 , the display device 121 is a television and the terminal device 122 is a mobile phone. The posture of the terminal device 122 when recording the video corresponding to the first video stream is a horizontal screen posture.
S112、根据所述第一视频流的高度和第一视频播放窗口的高度获取第二缩放比例。S112. Obtain the second scaling ratio according to the height of the first video stream and the height of the first video playback window.
同样,此处的宽度是指像素行(横向)内包含的像素点的数量,高度是指像素列(纵向)内包含的像素点的数量。Similarly, the width here refers to the number of pixels contained in the pixel row (horizontally), and the height refers to the number of pixels contained in the pixel column (vertical).
在一些实施例中,所述第一缩放比例为所述第一视频播放窗口的高度与所述第一视频流的高度的比值。In some embodiments, the first scaling ratio is a ratio of a height of the first video playback window to a height of the first video stream.
设:所述第二缩放比例为R2,所述第一视频流的尺寸为W1×H1,所述第一视频播放窗口的尺寸为WL×HL,则有:Assume that the second scaling ratio is R2, the size of the first video stream is W1×H1, and the size of the first video playback window is WL×HL, then there is:
R2=HL/H1R2=HL/H1
在一些实施例中,当所述第一视频流的尺寸为1920×1080,所述第一视频播放窗口的尺寸为626×629时,所述第一缩放比例R2=629/1080。In some embodiments, when the size of the first video stream is 1920×1080 and the size of the first video playback window is 626×629, the first scaling ratio R2=629/1080.
S113、使用所述第一缩放比例对所述第一视频流进行缩放获取所述第二视频流。S113. Use the first scaling ratio to scale the first video stream to obtain the second video stream.
根据上述实施例,所述第一视频流的尺寸为1920×1080,所述第一视频播放窗口的尺寸为626×629,所述第二缩放比例R2=629/1080,则使用所述第一缩放比例对所述第一视频流进行缩放得到的第二视频流的尺寸为1118×629。According to the above embodiment, the size of the first video stream is 1920×1080, the size of the first video playback window is 626×629, and the second scaling ratio R2=629/1080, then the first The size of the second video stream obtained by scaling the first video stream by the scaling ratio is 1118×629.
至此,所述第二视频流的高度已与所述第一视频播放窗口相适应。At this point, the height of the second video stream has adapted to the first video playback window.
S114、根据所述第二视频流的宽度和所述第一视频播放窗口的宽度,获取第二布局偏移参数。S114. Obtain a second layout offset parameter according to the width of the second video stream and the width of the first video playback window.
在一些实施例中,所述第二布局偏移参数为所述第二视频流的宽度与所述第一视频播放窗口的宽度的差值的二分之一。In some embodiments, the second layout offset parameter is half of the difference between the width of the second video stream and the width of the first video playback window.
设:所述第二布局偏移参数为CLIP 2,所述第二视频流的尺寸为W2×H2,所述第一视频播放窗口的尺寸为WL×HL,则有: Assume: the second layout offset parameter is CLIP 2 , the size of the second video stream is W2×H2, and the size of the first video playback window is WL×HL, then there is:
CLIP 2=1/2(W2-WL) CLIP 2 =1/2(W2-WL)
在一些实施例中,当所述第二视频流的尺寸为1118×629,所述第一视频播放窗口的尺寸为629×629时,所述第二布局偏移参数CLIP 2=1/2(1118-629)。 In some embodiments, when the size of the second video stream is 1118×629 and the size of the first video playback window is 629×629, the second layout offset parameter CLIP 2 =1/2 ( 1118-629).
S115、基于所述第一布局偏移参数在宽度方向上对所述第二视频流进行偏移,并在所述第一视频播放窗口中播放偏移后的所述第二视频流。S115. Offset the second video stream in the width direction based on the first layout offset parameter, and play the offset second video stream in the first video playback window.
参照图13所示,图13中以所述第一视频流的尺寸为1920×1080、所述第一视频播放窗口1300的尺寸为629×629为例对上述实施例提供的投屏方法进行说明。参照图13所示,根据所述第一视频流131的高度1080和第一视频播放窗口的宽度629获取第一缩放比例629/1080,然后根据第一缩放比例629/1080对所述第一视频流131进行缩放获取第二视频流132,第二视频流132的尺寸为1118×629,再根据所述第二视频流132的宽度1118和所述第一视频播放窗口800的高度,获取第二布局偏移参数
Figure PCTCN2022140843-appb-000001
最后基于所述第二视频流132在所述第一视频播放窗口1300中进行视频播放,并将所述第二视频流向左偏移第一布局偏移参数244,以实现图13所示的显示效果。
Referring to FIG. 13 , in FIG. 13 , the screen projection method provided by the above embodiment is explained by taking the size of the first video stream as 1920×1080 and the size of the first video playback window 1300 as 629×629 as an example. . Referring to Figure 13, a first scaling ratio 629/1080 is obtained according to the height 1080 of the first video stream 131 and the width 629 of the first video playback window, and then the first video is scaled according to the first scaling ratio 629/1080. The stream 131 is zoomed to obtain the second video stream 132. The size of the second video stream 132 is 1118×629. Then, according to the width 1118 of the second video stream 132 and the height of the first video playback window 800, the second video stream 132 is obtained. Layout offset parameters
Figure PCTCN2022140843-appb-000001
Finally, video playback is performed in the first video playback window 1300 based on the second video stream 132, and the second video stream is offset to the left by the first layout offset parameter 244 to achieve the display shown in Figure 13 Effect.
作为对上述实施例的扩展和细化,参照图14所示,本发明实施例提供的另一种投屏方法,包括:As an expansion and refinement of the above embodiment, as shown in Figure 14, another screen projection method provided by an embodiment of the present invention includes:
S141、接收终端设备发送的第一视频流。S141. Receive the first video stream sent by the terminal device.
其中,所述第一视频流为通过所述终端设备的视频录制装置进行视频录制得到的视频流,且携带有用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为横屏姿态的标识信息;Wherein, the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries a message indicating that the posture of the terminal device when recording the video corresponding to the first video stream is horizontal. Identification information of screen posture;
S142、根据所述第一视频流的高度和预设视频流尺寸中的高度获取第二缩放比例。S142. Obtain the second scaling ratio according to the height of the first video stream and the height in the preset video stream size.
在一些实施例中,所述第二缩放比例为所述预设视频流尺寸中的高度与所述第一视频流的高度的比值。In some embodiments, the second scaling ratio is a ratio of a height in the preset video stream size to a height of the first video stream.
设:所述第二缩放比例为R2,所述第一视频流的尺寸为W1×H1,所述预设视频流尺寸为WS×HS,则有:Assume: the second scaling ratio is R2, the size of the first video stream is W1×H1, and the preset video stream size is WS×HS, then there is:
R1=HS/H1R1=HS/H1
在一些实施例中,当所述第一视频流的尺寸为1920×1080,所述预设视频流尺寸为450×629时,所述第一缩放比例R1=450/1080。In some embodiments, when the size of the first video stream is 1920×1080 and the preset video stream size is 450×629, the first scaling ratio R1=450/1080.
S143、使用所述第一缩放比例对所述第一视频流进行缩放获取所述第二视频流。S143. Use the first scaling ratio to scale the first video stream to obtain the second video stream.
根据上述实施例,所述第一视频流的尺寸为1920×1080,所述预设视频流尺寸为450×629,所述第二缩放比例R2=450/1080,则使用所述第二缩放比例对所述第一视频流进行缩放得到的第二视频流的尺寸为800×450。According to the above embodiment, the size of the first video stream is 1920×1080, the preset video stream size is 450×629, and the second scaling ratio R2=450/1080, then the second scaling ratio is used The size of the second video stream obtained by scaling the first video stream is 800×450.
至此,所述第二视频流的高度已与所述预设视频播放流中的高度相同。At this point, the height of the second video stream is the same as the height of the preset video playback stream.
S144、根据所述第二视频流的宽度和所述第一视频播放窗口的宽度,获取第二布局偏移参数。S144. Obtain a second layout offset parameter according to the width of the second video stream and the width of the first video playback window.
在一些实施例中,所述第二布局偏移参数为所述第二视频流的宽度与所述第一视频播放窗口的宽度的差值的二分之一。In some embodiments, the second layout offset parameter is half of the difference between the width of the second video stream and the width of the first video playback window.
设:所述第二布局偏移参数为CLIP 2,所述第二视频流的尺寸为W2×H2,所述第一视频播放窗口的尺寸为WL×HL,则有: Assume: the second layout offset parameter is CLIP 2 , the size of the second video stream is W2×H2, and the size of the first video playback window is WL×HL, then there is:
CLIP 2=1/2(W2-WL) CLIP 2 =1/2(W2-WL)
在一些实施例中,当所述第二视频流的尺寸为800×629,所述第一视频播放窗口的尺寸为629×629时,所述第二布局偏移参数CLIP 2=1/2(800-629)。 In some embodiments, when the size of the second video stream is 800×629 and the size of the first video playback window is 629×629, the second layout offset parameter CLIP 2 =1/2 ( 800-629).
S145、基于所述第一布局偏移参数在宽度方向上对所述第二视频流进行偏移,并在所述第一视频播放窗口中播放偏移后的所述第二视频流。S145. Offset the second video stream in the width direction based on the first layout offset parameter, and play the offset second video stream in the first video playback window.
参照图15所示,图15中以所述第一视频流的尺寸为1920×1080、所述第一视频播放窗口1500的尺寸为629×629、所述预设视频流尺寸为450×629为例对上述实施例提供的投屏方法进行说明。参照图15所示,根据所述第一视频流151的高度1080和第一视频播放窗口的高度450获取第一缩放比例450/1080,然后根据第一缩放比例450/1080对所述第一视频流151进行缩放获取第二视频流 152,第二视频流152的尺寸为800×450,再根据所述第二视频流152的宽度800和所述第一视频播放窗口1500的宽度,获取第二布局偏移参数1/2(800-629)≈85;最后基于所述第二视频流152在所述第一视频播放窗口1500中进行视频播放,并将所述第二视频流向左偏移第一布局偏移参数85,以实现图15所示的显示效果。Referring to Figure 15, in Figure 15, the size of the first video stream is 1920×1080, the size of the first video playback window 1500 is 629×629, and the preset video stream size is 450×629. An example is provided to illustrate the screen projection method provided in the above embodiment. Referring to Figure 15, a first scaling ratio 450/1080 is obtained according to the height 1080 of the first video stream 151 and the height 450 of the first video playback window, and then the first video is scaled according to the first scaling ratio 450/1080. The stream 151 is zoomed to obtain the second video stream 152. The size of the second video stream 152 is 800×450. Then, according to the width 800 of the second video stream 152 and the width of the first video playback window 1500, the second video stream 152 is obtained. Layout offset parameter 1/2 (800-629) ≈ 85; finally, video playback is performed in the first video playback window 1500 based on the second video stream 152, and the second video stream is offset to the left by the second video stream. A layout offset parameter of 85 is used to achieve the display effect shown in Figure 15.
图16所示投屏方法中最终显示的视频的长宽比更加接近横屏状态下终端设备的屏幕的长宽比,因此可以更好的展示终端设备的投屏画面。The aspect ratio of the video finally displayed in the screen projection method shown in Figure 16 is closer to the aspect ratio of the screen of the terminal device in the horizontal screen state, so the projection screen of the terminal device can be better displayed.
参照图16所示,本发明另一实施例提供的投屏方法,包括:Referring to Figure 16, a screen projection method provided by another embodiment of the present invention includes:
S161、接收终端设备发送的第一视频流。S161. Receive the first video stream sent by the terminal device.
其中,所述第一视频流为通过所述终端设备的视频录制装置进行视频录制得到的视频流,且携带有用于标识所述终端设备录制所述第一视频流对应的视频时的姿态的标识信息。Wherein, the first video stream is a video stream obtained by video recording by a video recording device of the terminal device, and carries an identifier used to identify the posture of the terminal device when recording the video corresponding to the first video stream. information.
在上述图5、图6、图9、图11、图14中任一投屏方法之后,针对后续接收到的终端设备发送的第一视频流还可以按照图16所示的方式进行处理和显示。After any of the above-mentioned screen projection methods in Figures 5, 6, 9, 11, and 14, the subsequently received first video stream sent by the terminal device can also be processed and displayed in the manner shown in Figure 16 .
S162、接收剪裁播放指令。S162. Receive the trimming and playback instruction.
其中,所述剪裁播放指令携带有选定区域的尺寸和所述选定区域的位置信息,用于指示基于所述选定区域内所述第一视频流的视频内容进行视频播放。Wherein, the trimming and playback instruction carries the size of the selected area and the position information of the selected area, and is used to instruct video playback based on the video content of the first video stream in the selected area.
参照图17所示,图17中以显示设备171为电视、终端设备172为手机为例示出。终端设备172响应于用户操作确定选定区域1700,并向显示设备171发送用于指示基于选定区域内所述第一视频流的视频内容进行视频播放的剪裁播放指令。Referring to FIG. 17 , in FIG. 17 , the display device 171 is a television and the terminal device 172 is a mobile phone. The terminal device 172 determines the selected area 1700 in response to the user operation, and sends a trimming playback instruction to the display device 171 for instructing video playback based on the video content of the first video stream in the selected area.
在一些实施例中,可以通过选定区域右上侧顶点的位置坐标(x1,y1)和选定区域左下侧顶点的位置坐标(x2,y2)表征所述选定区域的尺寸和所述选定区域的位置信息。In some embodiments, the size of the selected area and the selected area can be characterized by the position coordinates (x1, y1) of the upper right vertex of the selected area and the position coordinates (x2, y2) of the lower left vertex of the selected area. Location information for the region.
S163、响应于剪裁播放指令,根据所述选定区域的尺寸和所述第一视频播放窗口的尺寸,获取第三缩放比例。S163. In response to the trimming playback instruction, obtain a third zoom ratio according to the size of the selected area and the size of the first video playback window.
其中,所述第三缩放比例为第一比值与第二比值中较小的一个比值,所述第一比值为所述第一视频播放窗口的高度与所述选定区域的高度的比值,所述第二比值为所述第一视频播放窗口的宽度与所述选定区域的宽度的比值。Wherein, the third scaling ratio is the smaller of the first ratio and the second ratio, and the first ratio is the ratio of the height of the first video playback window to the height of the selected area, so The second ratio is the ratio of the width of the first video playback window to the width of the selected area.
设:选定区域的尺寸为select_w×select_h、第一视频播放窗口的尺寸629×629、所述第三缩放比例为R3,则有:Assume: the size of the selected area is select_w×select_h, the size of the first video playback window is 629×629, and the third scaling ratio is R3, then there is:
R3=min(629/select_w,692/select_h)R3=min(629/select_w,692/select_h)
在一些实施例中,当所述选定区域的尺寸为265×360,所述第一视频播放窗口的尺寸为629×629时,所述第三缩放比例R3=629/360。In some embodiments, when the size of the selected area is 265×360 and the size of the first video playback window is 629×629, the third scaling ratio R3=629/360.
在一些实施例中,当所述选定区域的尺寸为256×128,所述第一视频播放窗口的尺寸为629×629时,所述第三缩放比例R3=629/256。In some embodiments, when the size of the selected area is 256×128 and the size of the first video playback window is 629×629, the third scaling ratio R3=629/256.
S164、使用所述第三缩放比例对所述第一视频流进行缩放,获取第三视频流。S164. Scale the first video stream using the third scaling ratio to obtain a third video stream.
在一些实施例中,所述第一视频流的尺寸为1920×1080,所述第一视频播放窗口的尺寸为629×629,所述选定区域的尺寸为480×270,则所述第三缩放比例R3=629/480,所述使用所述第三缩放比例对所述第一视频流进行缩放得到的第三视频流尺寸为2516×1415。In some embodiments, the size of the first video stream is 1920×1080, the size of the first video playback window is 629×629, and the size of the selected area is 480×270, then the size of the third The scaling ratio R3=629/480, and the size of the third video stream obtained by scaling the first video stream using the third scaling ratio is 2516×1415.
S165、根据所述第三缩放比例、所述第一视频播放窗口的宽度、所述选定区域的位置信息以及所述选定区域的宽度获取第三布局偏移参数。S165. Obtain a third layout offset parameter according to the third zoom ratio, the width of the first video playback window, the position information of the selected area, and the width of the selected area.
在一些实施例中,所述控制器,具体被配置为通过如下公式一计算所述第三布局偏移参数,所述公式一为:In some embodiments, the controller is specifically configured to calculate the third layout offset parameter through the following formula 1, where the formula 1 is:
CLIP 3=(X+select_w/2)*R3-WL/2 CLIP 3 =(X+select_w/2)*R3-WL/2
其中,CLIP 3为所述第三布局偏移参数,X为所述选定区域的左侧边缘到所述第一视频流的左侧边缘的距离,select_w/2为所述选定区域的宽度,R3为所述第三缩放比例,WL为所述第一视频播放窗口的宽度。 Wherein, CLIP 3 is the third layout offset parameter, X is the distance from the left edge of the selected area to the left edge of the first video stream, and select_w/2 is the width of the selected area. , R3 is the third scaling ratio, and WL is the width of the first video playback window.
在一些实施例中,当所述第一视频播放窗口的尺寸为629×629,所述选定区域的左侧边缘到所述第一视频流的左侧边缘的距离为1000,所述选定区域的尺寸为480×270时,所述第三布局偏移参数CLIP 3=1310。 In some embodiments, when the size of the first video playback window is 629×629, the distance from the left edge of the selected area to the left edge of the first video stream is 1000, and the selected When the size of the area is 480×270, the third layout offset parameter CLIP 3 =1310.
S166、根据所述第三缩放比例、所述第一视频播放窗口的高度、所述选定区域的位置信息以及所述选定区域的高度获取第四布局偏移参数。S166. Obtain a fourth layout offset parameter according to the third zoom ratio, the height of the first video playback window, the position information of the selected area, and the height of the selected area.
在一些实施例中,所述控制器,具体被配置为通过如下公式二计算所述第四布局偏移参数:In some embodiments, the controller is specifically configured to calculate the fourth layout offset parameter through the following formula 2:
设:所述第四布局偏移参数为CLIP 4,所述第三视频流的尺寸为W3×H3,所述第一视频播放窗口的尺寸为WL×HL,则所述公式二为: Assume that the fourth layout offset parameter is CLIP 4 , the size of the third video stream is W3×H3, and the size of the first video playback window is WL×HL, then the second formula is:
CLIP 4=(Y+select_h/2)*R3-HL/2 CLIP 4 =(Y+select_h/2)*R3-HL/2
其中,CLIP 4为所述第四布局偏移参数,Y为所述选定区域的顶侧边缘到所述第一视频流的顶侧边缘 的距离,select_h/2为所述选定区域的高度,R3为所述第三缩放比例,HL为所述第一视频播放窗口的高度。 Wherein, CLIP 4 is the fourth layout offset parameter, Y is the distance from the top edge of the selected area to the top edge of the first video stream, select_h/2 is the height of the selected area , R3 is the third scaling ratio, and HL is the height of the first video playback window.
在一些实施例中,当所述第一视频播放窗口的尺寸为629×629,所述选定区域的左侧边缘到所述第一视频流的左侧边缘的距离为400,所述选定区域的尺寸为480×270时,所述第四布局偏移参数CLIP 4=386。 In some embodiments, when the size of the first video playback window is 629×629, the distance from the left edge of the selected area to the left edge of the first video stream is 400, and the selected When the size of the area is 480×270, the fourth layout offset parameter CLIP 4 =386.
S167、基于所述第三布局偏移参数在宽度方向上对所述第三视频流进行偏移,基于所述第四布局偏移参数在高度方向上对所述第三视频流进行偏移,并在所述第一视频窗口播放偏移后的所述第三视频流。S167. Offset the third video stream in the width direction based on the third layout offset parameter, offset the third video stream in the height direction based on the fourth layout offset parameter, and playing the offset third video stream in the first video window.
在一些实施例中,基于所述第三布局偏移参数在宽度方向上对所述第二视频流进行偏移,基于所述第四布局偏移参数在高度方向上对所述第三视频流进行偏移可以包括:基于第三布局偏移参数和所述第四布局偏移参数调整所述第三视频流的坐标系原点,以对所述第三视频流进行偏移。在另一些实施例中,基于所述布局偏移参数对所述第二视频流进行偏移也可以包括:基于布局参数调整计算所述第三视频流的各个边缘(上边缘、下边缘、左边缘以及右边缘)对应的第一视频播放窗口的边缘的距离,然后根据第二视频流的各个边缘对应的第一视频播放窗口的边缘的距离对所述第三视频流进行偏移。In some embodiments, the second video stream is offset in the width direction based on the third layout offset parameter, and the third video stream is offset in the height direction based on the fourth layout offset parameter. Offsetting may include: adjusting a coordinate system origin of the third video stream based on a third layout offset parameter and the fourth layout offset parameter to offset the third video stream. In other embodiments, offsetting the second video stream based on the layout offset parameter may also include: calculating each edge (top edge, bottom edge, left edge, etc.) of the third video stream based on layout parameter adjustment. edge and right edge) of the first video playback window, and then offset the third video stream according to the distance between the edges of the first video playback window corresponding to each edge of the second video stream.
参照图18所示,图18中以所述第一视频流的尺寸为1920×1080、所述第一视频播放窗口的尺寸为629×629、所述选定区域的尺寸为480×270、所述选定区域的左侧边缘到所述第一视频流的左侧边缘的距离为1000,所述选定区域的顶侧边缘到所述第一视频流的顶侧边缘的距离400为例对上述实施例提供的投屏方法进行说明。参照图18所示,首先,由于629/480<629/270,因此确定第三缩放比例为629/480。其次,根据第三缩放比例对所述第一视频流181进行缩放获取第三视频流182,第三视频流的尺寸为2516×1415,再根据所述第三缩放比例、所述第一视频播放窗口的宽度、所述选定区域的位置信息以及所述选定区域的宽度获取第三布局偏移参数1310,以及根据所述第三缩放比例、所述第一视频播放窗口的高度、所述选定区域的位置信息以及所述选定区域的高度获取第四布局偏移参数386,最后基于所述第三视频流182在所述第一视频播放窗口1800中进行视频播放,并将所述第三视频流分别向左偏移第三布局偏移参数1310、向上偏移第四布局偏移参数386,以实现图18所示的显示效果。Referring to Figure 18, in Figure 18, the size of the first video stream is 1920×1080, the size of the first video playback window is 629×629, and the size of the selected area is 480×270. The distance from the left edge of the selected area to the left edge of the first video stream is 1000, and the distance from the top edge of the selected area to the top edge of the first video stream is 400. For example, The screen projection method provided by the above embodiment will be described. Referring to FIG. 18 , first, since 629/480<629/270, the third scaling ratio is determined to be 629/480. Secondly, the first video stream 181 is scaled according to the third scaling ratio to obtain the third video stream 182. The size of the third video stream is 2516×1415, and then the first video is played according to the third scaling ratio. The width of the window, the position information of the selected area, and the width of the selected area are used to obtain the third layout offset parameter 1310, and according to the third scaling ratio, the height of the first video playback window, the The position information of the selected area and the height of the selected area are obtained to obtain the fourth layout offset parameter 386. Finally, video playback is performed in the first video playback window 1800 based on the third video stream 182, and the The third video stream is offset to the left by the third layout offset parameter 1310 and upward by the fourth layout offset parameter 386 to achieve the display effect shown in FIG. 18 .
在上述任一实施例的基础上,本发明实施例提供的投屏方法还包括:接收服务器发送的第二视频流;以及基于所述第二视频流在第二视频播放窗口中进行视频播放。Based on any of the above embodiments, the screen casting method provided by the embodiment of the present invention further includes: receiving a second video stream sent by the server; and performing video playback in the second video playback window based on the second video stream.
在一些实施例中,以下以视频健身场景为例对上述实施例进行说明,如图19所示,场景建构中包括健身视频服务器191、显示设备192以及终端设备193。显示设备192可以从健身视频服务器191获取健身视频并在第二视频播放窗口1922中播放;用户可以观看显示设备192所播放的健身视频,并跟随健身视频进行健身训练;终端设备193可以通过视频录制装置进行视频录制得到的第一视频流,并将第一视频流发送至显示设备192,显示设备接收到终端设备193发送的第一视频流后,通过本发明实施例提供的投屏方法在第一视频播放窗口1921中进行投屏视频的播放。In some embodiments, the above embodiments are described below by taking a video fitness scene as an example. As shown in FIG. 19 , the scene construction includes a fitness video server 191 , a display device 192 and a terminal device 193 . The display device 192 can obtain the fitness video from the fitness video server 191 and play it in the second video playback window 1922; the user can watch the fitness video played by the display device 192 and follow the fitness video for fitness training; the terminal device 193 can record through the video The device performs video recording to obtain the first video stream, and sends the first video stream to the display device 192. After the display device receives the first video stream sent by the terminal device 193, the screen projection method provided by the embodiment of the present invention is used to perform the first video stream. A video playback window 1921 is used to play the screencast video.
目前,在电视通过手机作为摄像设备接入的过程中,一些场景下如果为了拍摄到用户,一般用户与手机之间需要保持一定的距离,此时,手机的画面用户无法看很清楚,如果在手机作为摄像设备接入电视的过程中,手机的电量耗尽,用户难以察觉,会导致影响使用手机的基本功能。At present, when the TV is connected through the mobile phone as a camera device, in some scenarios, in order to capture the user, the general user needs to maintain a certain distance from the mobile phone. At this time, the user cannot see the mobile phone picture clearly. When the mobile phone is used as a camera device and connected to the TV, the battery of the mobile phone is exhausted, which is difficult for the user to notice, which will affect the basic functions of the mobile phone.
在一些实施例中,在手机与电视机联动健身的场景下,或者手机与电视机联动跳舞的场景下,用户与手机之间需要保持一定的距离,此时,手机的画面用户无法看很清楚,如果在手机作为摄像设备接入电视的过程中拍摄用户跟练舞蹈或者跟练健身的过程中,手机的电量耗尽用户难以察觉,会导致影响使用手机的基本功能。In some embodiments, in a scenario where a mobile phone is linked to a TV for fitness, or a scenario where a mobile phone is linked to a TV to dance, a certain distance needs to be maintained between the user and the mobile phone. At this time, the user cannot see the screen of the mobile phone clearly. , if the mobile phone is connected to the TV as a camera device to record the user practicing dance or fitness, the battery of the mobile phone will be exhausted and the user will not be able to detect it, which will affect the basic functions of using the mobile phone.
考虑上述问题,根据本公开一些实施例的显示设备进一步进行以下设计,并且根据本公开一些实施例的投屏方法进一步包括跟练页面控制方法,另外,本公开还提供了一种移动终端。在移动终端中响应于用户触发针对某一训练视频进行跟练之后,显示器可以通过移动终端采集跟练视频数据,并根据移动终端发送的训练视频标识和跟练页面标识确定对应的训练视频数据和跟练页面数据,还可以获取移动终端的电量数据,如此,显示器可以基于跟练视频数据、训练视频数据和跟练页面数据,生成跟练页面,并且在该跟练页面中显示移动终端的电量数据。从而在针对健身视频、舞蹈视频等的跟练场景中,用户距离移动终端有一定距离的情况下,在显示设备的跟练页面上显示该移动终端的电量数据,由于用户在跟练过程中会关注该显示设备的显示器中的跟练页面,因此会同时看到移动终端的电量数据,在该场景下,从而可以及时发现移动终端的耗电情况,及时进行充电,保证移动终端的基本功能使用。Considering the above problems, the display device according to some embodiments of the present disclosure further carries out the following design, and the screen projection method according to some embodiments of the present disclosure further includes a follow-up page control method. In addition, the present disclosure also provides a mobile terminal. After following a certain training video in response to a user trigger in the mobile terminal, the display can collect the follow-up video data through the mobile terminal, and determine the corresponding training video data and follow-up page identification according to the training video identification and follow-up page identification sent by the mobile terminal. The follow-up page data can also obtain the power data of the mobile terminal. In this way, the display can generate a follow-up page based on the follow-up video data, training video data and follow-up page data, and display the power of the mobile terminal in the follow-up page. data. Therefore, in a follow-up training scenario for fitness videos, dance videos, etc., when the user is at a certain distance from the mobile terminal, the power data of the mobile terminal is displayed on the follow-up training page of the display device. Since the user will Pay attention to the follow-up page on the monitor of the display device, so you will see the power data of the mobile terminal at the same time. In this scenario, you can discover the power consumption of the mobile terminal in time, charge it in time, and ensure the basic functions of the mobile terminal. .
在一些实施例中,如图1A所示为本公开实施例提供的场景示意图。如图1所示,该场景中包括:终端设备300、显示设备200以及服务器400。In some embodiments, FIG. 1A is a schematic diagram of a scenario provided by an embodiment of the present disclosure. As shown in Figure 1, this scene includes: a terminal device 300, a display device 200 and a server 400.
根据一些实施例的显示设备200的硬件配置参见图3A所示的框图。The hardware configuration of the display device 200 according to some embodiments is shown in the block diagram shown in FIG. 3A.
在一些实施例中,终端设备300为移动终端300'。移动终端300'可与显示设备200安装软件应用,通过网络通信协议实现连接通信,实现一对一控制操作的和数据通信的目的。也可以将移动终端300'上显示音视频内容传输到显示设备200上,实现同步显示功能。其中,显示设备200还可以与服务器400通过多 种通信方式进行数据通信。可允许显示设备200通过局域网(LAN)、无线局域网(WLAN)和其他网络进行通信连接。服务器400可以向显示设备200提供各种内容和互动。显示设备200除了提供广播接收电视功能之外,还可以附加提供计算机支持功能的网络电视功能。In some embodiments, the terminal device 300 is a mobile terminal 300'. The mobile terminal 300' can install a software application with the display device 200, realize connection communication through a network communication protocol, and achieve the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300' can also be transmitted to the display device 200 to realize the synchronous display function. The display device 200 can also perform data communication with the server 400 through a variety of communication methods. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 can provide various content and interactions to the display device 200. In addition to providing broadcast reception and television functions, the display device 200 may also additionally provide an Internet television function that provides computer support functions.
其中,上述显示设备200可以具有多种实施形式,例如,可以是电视机、电视、激光投影设备、显示器(monitor)、电子白板(electronic bulletin board)、电子桌面(electronic table)等。上述移动终端300'也可以具有多种实施形式,例如,手机、平板电脑、手表等可以采集图像和视频的移动终端。The above-mentioned display device 200 can have a variety of implementation forms, for example, it can be a television, a television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. The above-mentioned mobile terminal 300' may also have various implementation forms, for example, a mobile phone, a tablet computer, a watch, etc. that can collect images and videos.
图3B示出了根据一些实施例的移动终端300'的硬件配置框图,如图3B所示,该移动终端300'中包括:控制器110、检测器120、通信接口130、用户输入/输出接口(也称为用户接口)140、显示器150,以及存储器、供电电源等。其中,通信接口130用于和外部通信,包含WIFI芯片,蓝牙模块,NFC或可替代模块中的至少一种。用户接口140包含麦克风,扬声器,触摸板,传感器,摄像头或可替代模块中的至少一种。其中,显示器150用于显示用户界面。Figure 3B shows a hardware configuration block diagram of a mobile terminal 300' according to some embodiments. As shown in Figure 3B, the mobile terminal 300' includes: a controller 110, a detector 120, a communication interface 130, and a user input/output interface. (also called user interface) 140, display 150, as well as memory, power supply, etc. The communication interface 130 is used to communicate with the outside and includes at least one of a WIFI chip, a Bluetooth module, NFC or a replaceable module. The user interface 140 includes at least one of a microphone, a speaker, a touch pad, a sensor, a camera, or a replaceable module. Among them, the display 150 is used to display the user interface.
在本公开一些实施例中,检测器120,被配置为:采集跟练视频数据;In some embodiments of the present disclosure, the detector 120 is configured to: collect follow-up video data;
控制器110,被配置为:获取所述移动终端的电量数据;通信接口130,被配置为:向显示设备发送所述跟练视频数据,以及所述移动终端的电量数据。在本公开一些实施例中,用户接口140,被配置为:接收用户针对训练视频的联屏跟练操作;The controller 110 is configured to obtain the power data of the mobile terminal; the communication interface 130 is configured to send the follow-up video data and the power data of the mobile terminal to a display device. In some embodiments of the present disclosure, the user interface 140 is configured to: receive the user's joint screen follow-up operation for the training video;
检测器120,被配置为:响应于所述用户接口接收的所述联屏跟练操作,采集跟练视频数据;The detector 120 is configured to: in response to the joint-screen follow-up operation received by the user interface, collect follow-up video data;
控制器110,被配置为:响应于所述用户接口接收的所述联屏跟练操作,确定所述训练视频对应的训练视频标识和跟练页面标识;The controller 110 is configured to: in response to the joint-screen follow-up training operation received by the user interface, determine the training video identification and follow-up page identification corresponding to the training video;
所述控制器110,还被配置为:获取所述移动终端的电量数据;The controller 110 is also configured to: obtain the power data of the mobile terminal;
通信接口130,被配置为:向显示设备发送所述训练视频标识、所述跟练页面标识、所述跟练视频数据,以及所述移动终端的电量数据。The communication interface 130 is configured to: send the training video identifier, the follow-up page identifier, the follow-up video data, and the power data of the mobile terminal to the display device.
在本公开一些实施例中,所述控制器110,还被配置为:在确定所述移动终端的电量数据指示剩余电量小于或等于第一电量阈值的情况下,取消显示所述跟练页面;以及控制所述通信接口向所述移动终端发送第一通知消息,所述第一通知消息用于通知所述移动终端停止采集所述跟练视频数据。In some embodiments of the present disclosure, the controller 110 is further configured to: cancel the display of the follow-up training page when it is determined that the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold; and controlling the communication interface to send a first notification message to the mobile terminal, where the first notification message is used to notify the mobile terminal to stop collecting the follow-up video data.
在本公开一些实施例中,所述控制器110,还被配置为:在确定所述电量数据指示剩余电量小于或等于第二电量阈值的情况下,输出第一提示信息,所述第一提示信息用于提示所述移动终端电量过低;In some embodiments of the present disclosure, the controller 110 is further configured to: output first prompt information when it is determined that the power data indicates that the remaining power is less than or equal to the second power threshold, and the first prompt The information is used to prompt that the battery of the mobile terminal is too low;
其中,所述输出第一提示信息的方式包括以下至少一种:Wherein, the method of outputting the first prompt information includes at least one of the following:
控制所述显示器在所述跟练页面中显示所述第一提示信息;Control the display to display the first prompt information on the follow-up page;
控制扬声器播放所述第一提示信息。Control the speaker to play the first prompt information.
在本公开一些实施例中,所述通信接口130,还被配置为:In some embodiments of the present disclosure, the communication interface 130 is further configured to:
在所述控制器110输出所述第一提示信息之后,持续接收所述移动终端发送的所述移动终端的电量数据;并在确定所述移动终端的电量数据指示剩余电量小于或等于第二电量阈值,且大于或等于第三电量阈值的情况下,不再输出所述第一提示信息,其中,所述第三电量阈值小于所述第二电量阈值;After the controller 110 outputs the first prompt information, it continues to receive the power data of the mobile terminal sent by the mobile terminal; and determines that the power data of the mobile terminal indicates that the remaining power is less than or equal to the second power. threshold, and is greater than or equal to the third power threshold, the first prompt information is no longer output, wherein the third power threshold is smaller than the second power threshold;
在确定所述移动终端的电量数据指示剩余电量小于或等于第三电量阈值的情况下,取消显示所述跟练页面;以及控制所述通信接口向所述移动终端发送第一通知消息,所述第一通知消息用于通知所述移动终端停止采集所述跟练视频数据。When it is determined that the power data of the mobile terminal indicates that the remaining power is less than or equal to the third power threshold, canceling the display of the follow-up page; and controlling the communication interface to send a first notification message to the mobile terminal, The first notification message is used to notify the mobile terminal to stop collecting the follow-up video data.
输出接口(显示器260,和/或,音频输出接口270),被配置为输出用户交互信息;An output interface (display 260, and/or audio output interface 270) configured to output user interaction information;
通信接口220,用于与服务器400或其它设备进行通信。The communication interface 220 is used to communicate with the server 400 or other devices.
在一些实施例中,显示器260,被配置为:显示用户界面;控制器250,被配置为:获取训练视频标识、跟练页面标识、跟练视频数据和移动终端的电量数据,所述跟练视频数据为所述移动终端采集的视频数据;确定所述跟练页面标识对应的跟练页面数据,根据所述训练视频标识从服务器获取对应的训练视频数据;控制所述显示器260基于所述跟练页面数据、所述训练视频数据和所述跟练视频数据,显示跟练页面,所述跟练页面中包括第一窗口和第二窗口,所述第一窗口中显示所述训练视频数据,所述第二窗口中显示所述跟练视频数据;所述控制器250,还被配置为:控制所述显示器在所述跟练页面中显示所述电量数据。In some embodiments, the display 260 is configured to display a user interface; the controller 250 is configured to obtain a training video identifier, a follow-up page identifier, follow-up video data, and power data of the mobile terminal. The video data is video data collected by the mobile terminal; determine the follow-up page data corresponding to the follow-up page identification, obtain the corresponding training video data from the server according to the training video identification; control the display 260 based on the follow-up page identification The training page data, the training video data and the following training video data display the following training page, the following training page includes a first window and a second window, and the training video data is displayed in the first window, The follow-up video data is displayed in the second window; the controller 250 is also configured to control the display to display the power data in the follow-up page.
在一些实施例中,通信接口220,被配置为:接收移动终端发送的训练视频标识、跟练页面标识、跟练视频数据和所述移动终端的电量数据,所述跟练视频数据为所述移动终端采集的视频数据;控制器250,被配置为:确定所述跟练页面标识对应的跟练页面数据,根据所述训练视频标识从服务器获取对应的训练视频数据;控制所述显示器基于所述跟练页面数据、所述训练视频数据和所述跟练视频数据,显示跟练页面,所述跟练页面中包括第一窗口和第二窗口,所述第一窗口中显示所述训练视频数据,所述第二窗口中显示所述跟练视频数据;In some embodiments, the communication interface 220 is configured to: receive the training video identifier, the follow-up page identifier, the follow-up video data and the power data of the mobile terminal sent by the mobile terminal, where the follow-up video data is the Video data collected by the mobile terminal; the controller 250 is configured to: determine the follow-up page data corresponding to the follow-up page identification, obtain the corresponding training video data from the server according to the training video identification; control the display based on the The following training page data, the training video data and the following training video data display the following training page, the following training page includes a first window and a second window, and the training video is displayed in the first window data, the following training video data is displayed in the second window;
所述控制器250,还被配置为:控制所述显示器在所述跟练页面中显示所述电量数据。The controller 250 is also configured to control the display to display the power data in the follow-up page.
在本公开一些实施例中,所述控制器250,还被配置为:In some embodiments of the present disclosure, the controller 250 is further configured to:
在确定所述移动终端的电量数据指示剩余电量小于或等于第一电量阈值的情况下,取消显示所述跟练页面;When it is determined that the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold, cancel the display of the follow-up page;
以及控制所述通信接口向所述移动终端发送第一通知消息,所述第一通知消息用于通知所述移动终端停止采集所述跟练视频数据。and controlling the communication interface to send a first notification message to the mobile terminal, where the first notification message is used to notify the mobile terminal to stop collecting the follow-up video data.
在本公开一些实施例中,所述控制器250,还被配置为:In some embodiments of the present disclosure, the controller 250 is further configured to:
在确定所述电量数据指示剩余电量小于或等于第二电量阈值的情况下,输出第一提示信息,所述第一提示信息用于提示所述移动终端电量过低;When it is determined that the power data indicates that the remaining power is less than or equal to the second power threshold, output first prompt information, where the first prompt information is used to prompt the mobile terminal that the power is too low;
其中,所述输出第一提示信息的方式包括控制所述显示器在所述跟练页面中显示所述第一提示信息;和/或,控制扬声器播放所述第一提示信息。Wherein, the method of outputting the first prompt information includes controlling the display to display the first prompt information on the follow-up page; and/or controlling the speaker to play the first prompt information.
在本公开一些实施例中,所述通信接口220,还被配置为:In some embodiments of the present disclosure, the communication interface 220 is further configured to:
在所述控制器输出所述第一提示信息之后,持续接收所述移动终端发送的所述移动终端的电量数据;并在确定所述移动终端的电量数据指示剩余电量小于或等于第二电量阈值,且大于或等于第三电量阈值的情况下,不再输出所述第一提示信息,其中,所述第三电量阈值小于所述第二电量阈值;在确定所述移动终端的电量数据指示剩余电量小于或等于第三电量阈值的情况下,取消显示所述跟练页面;以及控制所述通信接口向所述移动终端发送第一通知消息,所述第一通知消息用于通知所述移动终端停止采集所述跟练视频数据。After the controller outputs the first prompt information, continue to receive the power data of the mobile terminal sent by the mobile terminal; and determine that the power data of the mobile terminal indicates that the remaining power is less than or equal to the second power threshold. , and is greater than or equal to the third power threshold, the first prompt information is no longer output, wherein the third power threshold is less than the second power threshold; when it is determined that the power data of the mobile terminal indicates remaining When the power is less than or equal to the third power threshold, cancel the display of the follow-up page; and control the communication interface to send a first notification message to the mobile terminal, where the first notification message is used to notify the mobile terminal Stop collecting the training video data.
根据一些实施例的显示设备200中或移动终端300'的软件配置参见图4A所示。The software configuration in the display device 200 or the mobile terminal 300' according to some embodiments is shown in FIG. 4A.
如图4B所示,为移动终端和显示设备实现根据一些实施例的跟练页面控制方法的软件交互示意图,移动终端中应用程序框架、系统库层和内核层可以统称为Android系统层,应用程序框架、系统库层和内核层可以统称为Android系统层,在图4B中可以表示为移动终端APP,该移动终端APP中包括有APP应用层和软件开发工具包(Software Development Kit,SDK)层,其中SDK层中包括有播放SDK和互动SDK,其中播放SDK封装了一些播放的通用逻辑,让上层应用与播放解耦,互动SDK负责移动终端与显示设备的通信数据传输,支持移动终端对显示设备进行操控,APP应用层,负责完成跟练业务在移动终端的用户界面(User Interface,UI)展示以及各种交互操作,并从Android系统层读取系统电量,以拿到移动终端的电量数据。显示设备中应用程序框架、系统库层和内核层可以统称为显示设备平台层(为基于显示设备定制的的android系统,可能与移动终端的android系统存在一定差异),本公开实施例中,应用层中可以运行有显示设备中提供多媒体资源的应用程序(Application,APP),在图4B中表示为显示设备APP,该显示设备APP中包括有APP应用层和软件开发工具包(Software Development Kit,SDK)层,其中SDK层中包括有播放SDK和互动SDK,其中,播放SDK封装了一些播放的通用逻辑,让上层应用与播放解耦,互动SDK负责显示设备与移动终端的通信数据传输,APP应用层负责完成跟练业务在显示设备的用户界面(User Interface,UI)展示。可以看出,在移动终端中APP应用层中的互动SDK可以将从Android系统层读取得到的移动终端的电量数据、跟练视频数据,以及用户触发的训练视频标识等信息,发送至显示设备中APP应用层中的互动SDK,这样显示设备在接收到之后,可以基于这些数据显示跟练页面,并在跟练页面中显示移动终端的电量。As shown in Figure 4B, a schematic diagram of software interaction for mobile terminals and display devices to implement follow-up page control methods according to some embodiments. The application framework, system library layer and kernel layer in the mobile terminal can be collectively referred to as the Android system layer, and the application program The framework, system library layer and kernel layer can be collectively referred to as the Android system layer, which can be represented as a mobile terminal APP in Figure 4B. The mobile terminal APP includes an APP application layer and a software development kit (Software Development Kit, SDK) layer. The SDK layer includes playback SDK and interactive SDK. The playback SDK encapsulates some common playback logic to decouple upper-layer applications from playback. The interactive SDK is responsible for the communication data transmission between mobile terminals and display devices, and supports mobile terminals to display devices. For control, the APP application layer is responsible for completing the user interface (UI) display and various interactive operations of the follow-up business on the mobile terminal, and reading the system power from the Android system layer to obtain the power data of the mobile terminal. The application framework, system library layer and kernel layer in the display device can be collectively referred to as the display device platform layer (an Android system customized based on the display device, which may be somewhat different from the Android system of the mobile terminal). In the embodiment of the present disclosure, the application The layer can run an application (Application, APP) that provides multimedia resources in the display device, which is represented as a display device APP in Figure 4B. The display device APP includes an APP application layer and a software development kit (Software Development Kit, SDK) layer, in which the SDK layer includes playback SDK and interactive SDK. Among them, the playback SDK encapsulates some common playback logic to decouple upper-layer applications from playback. The interactive SDK is responsible for the communication data transmission between the display device and the mobile terminal. APP The application layer is responsible for completing the follow-up business and displaying it on the user interface (UI) of the display device. It can be seen that the interactive SDK in the APP application layer of the mobile terminal can read the mobile terminal's power data, follow-up video data, and user-triggered training video identification and other information from the Android system layer and send them to the display device. Interactive SDK in the APP application layer, so that after receiving the data, the display device can display the follow-up page based on the data, and display the power of the mobile terminal on the follow-up page.
以下将以一些实施例结合图20进行说明,可以理解的是,图20中所涉及的步骤在实际实现时可以包括更多的步骤,或者更少的步骤,并且这些步骤之间的顺序也可以不同,以能够实现根据一些实施例的提供的跟练页面控制方法为准。Some embodiments will be described below with reference to Figure 20. It can be understood that the steps involved in Figure 20 may include more steps or fewer steps during actual implementation, and the order between these steps may also be Different, whichever can implement the follow-up page control method provided according to some embodiments.
如图20所示,为本公开实施例提供的一种跟练页面控制方法的流程示意图,该方法可以包括但不限于以下步骤:As shown in Figure 20, it is a schematic flowchart of a follow-up page control method provided by an embodiment of the present disclosure. The method may include but is not limited to the following steps:
S801、移动终端接收用户针对训练视频的联屏跟练操作。S801. The mobile terminal receives the user's joint screen follow-up operation for the training video.
其中,上述训练视频可以为健身视频或者舞蹈视频等。Among them, the above training video can be a fitness video or a dance video, etc.
本公开实施例中,联屏跟练操作是指触发显示设备进入联屏跟练模式的操作,在联屏跟练模式下,可以将在媒资平台(提供多媒体资源的应用程序)中选择的媒资在显示设备中播放,同时通过移动终端获取跟练视频数据在显示设备中播放,其中,该显示设备为与该移动终端处于同一WiFi网络的设备。In the embodiment of the present disclosure, the joint-screen follow-up operation refers to the operation of triggering the display device to enter the joint-screen follow-up mode. In the joint-screen follow-up mode, the selected content in the media asset platform (an application that provides multimedia resources) can be The media assets are played in the display device, and at the same time, the follow-up video data is obtained through the mobile terminal and played in the display device, where the display device is a device in the same WiFi network as the mobile terminal.
在一些实施例中,上述移动终端上可以安装有提供多媒体资源的应用程序,相应的,在显示设备上也可以安装有该提供多媒体资源的应用程序。该应用程序的页面中可以展示上述训练视频。In some embodiments, an application program that provides multimedia resources may be installed on the mobile terminal. Correspondingly, the application program that provides multimedia resources may also be installed on the display device. The above training videos can be displayed on the application's pages.
其中,用户可以通过在该移动终端上安装的提供多媒体资源的应用程序上触发针对该训练视频进行联屏跟练操作。在一些实施例中,该应用程序上可以设置针对训练视频的联屏跟练详情页,在用户在该页面中点击“开始”控件之后,移动终端接收用户针对训练视频的联屏跟练操作。The user can trigger the joint-screen follow-up operation for the training video through an application installed on the mobile terminal that provides multimedia resources. In some embodiments, a detailed page for joint-screen follow-up training for training videos can be set on the application. After the user clicks the "Start" control on this page, the mobile terminal receives the user's joint-screen follow-up training operation for the training video.
本公开实施例中,移动终端和显示设备可以通过同一WiFi网络连接。In the embodiment of the present disclosure, the mobile terminal and the display device can be connected through the same WiFi network.
S802、移动终端响应于接收的联屏跟练操作,确定训练视频对应的训练视频标识和跟练页面标识。S802. In response to the received joint-screen follow-up training operation, the mobile terminal determines the training video identifier and the follow-up training page identifier corresponding to the training video.
本公开实施例中,每个多媒体资源都可以设施唯一标识,上述训练视频标识(Video ID)用于唯一标识上述训练视频。In this disclosed embodiment, each multimedia resource can be uniquely identified, and the above-mentioned training video identifier (Video ID) is used to uniquely identify the above-mentioned training video.
上述跟练页面标识,用于表示基于该训练视频设置的跟练页面,跟练页面标识是一种页面编号(Type Code),该页面编号可以指示跟练播放模式页面,其中该跟练播放模式页面可以为全屏跟练播放模式页面,也可以为非全屏隔帘播放模式页面。The above-mentioned follow-up page identifier is used to represent the follow-up page set based on the training video. The follow-up page identifier is a page number (Type Code). This page number can indicate the follow-up playback mode page, where the follow-up playback mode The page can be a full-screen follow-up playback mode page or a non-full-screen curtain playback mode page.
在一些实施例中,移动终端响应于用户接口接收的联屏跟练操作,除了确定训练视频对应的训练视频标识和跟练页面标识之外,还可以确定训练视频对应的媒资标识(Media ID)。该媒资标识可以指示该训练视频对应的媒体信息,该媒体信息可以包括该训练视频的标题、海报等媒体信息。In some embodiments, in response to the joint-screen follow-up operation received by the user interface, the mobile terminal, in addition to determining the training video identification and follow-up page identification corresponding to the training video, can also determine the media asset identification (Media ID) corresponding to the training video. ). The media asset identifier may indicate media information corresponding to the training video, and the media information may include media information such as the title and poster of the training video.
在一些实施例中,移动终端响应于用户接口接收的联屏跟练操作之后可以生成操作指令发送至显示设备,该操作指令中包括上述训练视频标识和跟练页面标识。In some embodiments, in response to the joint-screen follow-up operation received by the user interface, the mobile terminal can generate an operation instruction and send it to the display device. The operation instruction includes the above-mentioned training video identification and follow-up page identification.
在一些实施例中,上述该操作指令中可以包括上述训练视频标识、跟练页面标识和媒资标识。在一些实施例中,上述该操作指令中可以包括上述Video ID、Type Code、Media ID以及执行操作(Action)。In some embodiments, the above-mentioned operation instructions may include the above-mentioned training video identification, follow-up page identification and media asset identification. In some embodiments, the above-mentioned operation instructions may include the above-mentioned Video ID, Type Code, Media ID and execution operation (Action).
其中,Action用于表示执行页面跳转,跳转至该训练视频对应的跟练页面。Among them, Action is used to represent the execution page jump and jump to the follow-up page corresponding to the training video.
在上述操作指令中包括上述媒资标识的情况下,显示设备在接收到该操作指令之后,可以在显示跟练页面时,在显示该训练视频的同时,显示该训练视频的一些媒体资源。In the case where the above operation instruction includes the above media asset identifier, after receiving the operation instruction, the display device may display some media resources of the training video while displaying the training video when displaying the follow-up page.
S803、移动终端响应于接收的联屏跟练操作,采集跟练视频数据。S803. The mobile terminal collects follow-up video data in response to the received joint-screen follow-up operation.
其中,移动终端响应于接收的连屏跟练操作之后,可以调用摄像头实时采集跟练视频数据。Among them, after the mobile terminal responds to the received continuous screen follow-up operation, it can call the camera to collect the follow-up video data in real time.
S804、移动终端获取移动终端的电量数据。S804. The mobile terminal obtains the power data of the mobile terminal.
移动终端可以通过Android系统层中的电池管理模块(BatteryManager),获取移动终端的电量数据。The mobile terminal can obtain the power data of the mobile terminal through the battery management module (BatteryManager) in the Android system layer.
其中,该电量数据可以包括剩余电量和/或剩余电量百分比。The power data may include remaining power and/or remaining power percentage.
在一些实施例中,剩余电量可以表示为:剩余1000mA电量,剩余电量百分比可以表示为:剩余30%电量。In some embodiments, the remaining power can be expressed as: 1000mA of power remaining, and the percentage of remaining power can be expressed as: 30% of power remaining.
S805、移动终端向显示设备发送训练视频标识、跟练页面标识、跟练视频数据,以及移动终端的电量数据。S805. The mobile terminal sends the training video identifier, the follow-up page identifier, the follow-up video data, and the power data of the mobile terminal to the display device.
本公开实施例中,移动终端向显示设备发送训练视频标识、跟练页面标识、跟练视频数据,以及移动终端的电量数据时,移动终端可以通过同一个消息一起发送至显示设备,也可以分开发送至显示设备。In the embodiment of the present disclosure, when the mobile terminal sends the training video identifier, the follow-up page identifier, the follow-up video data, and the power data of the mobile terminal to the display device, the mobile terminal can send it to the display device together through the same message, or it can also be sent separately. Sent to display device.
本公开实施例中,终端设备和显示设备通过上述同一WiFi网络建立数据传输通道,并通过该数据传输通道实现训练视频标识、跟练页面标识、跟练视频数据,以及移动终端的电量数据的传输。In the embodiment of the present disclosure, the terminal device and the display device establish a data transmission channel through the same WiFi network mentioned above, and realize the transmission of training video identification, follow-up page identification, follow-up video data, and power data of the mobile terminal through the data transmission channel. .
在一些实施例中,移动终端可以实时采集跟练视频数据,并通过移动终端与显示设备所处的同一WiFi网络建立数据传输通道,将实时采集的跟练视频数据,实时的传输到显示设备。In some embodiments, the mobile terminal can collect the follow-up video data in real time, and establish a data transmission channel through the same WiFi network where the mobile terminal and the display device are located, and transmit the real-time collected follow-up video data to the display device in real time.
在一些实施例中,上述训练视频标识、跟练页面标识、跟练视频数据移动终端可以通过操作指令发送至显示设备,在此之后移动终端可以再获取移动终端的电量数据,并发送至显示设备。In some embodiments, the above-mentioned training video identification, follow-up page identification, and follow-up video data can be sent to the display device by the mobile terminal through operation instructions. After that, the mobile terminal can obtain the power data of the mobile terminal and send it to the display device. .
在一些实施例中,在移动终端接收到联屏跟练操作之后,终端设备可以获取周期性的获取移动终端的电量数据,并向显示设备发送电量数据;相应的,在接收到联屏跟练操作之前,移动终端可以不发送电量数据。In some embodiments, after the mobile terminal receives the joint-screen follow-up operation, the terminal device can periodically obtain the power data of the mobile terminal and send the power data to the display device; accordingly, after receiving the joint-screen follow-up operation Before operation, the mobile terminal does not need to send power data.
在一些实施例中,在移动终端接收到联屏跟练操作之后,终端设备可以周期性的获取移动终端的电量数据,在该电量数据小于或等于第三电量阈值的情况下,向显示设备发送该电量数据。相应的,在接收到联屏跟练操作之前,和/或,该电量数据大于第三电量阈值的情况下,移动终端可以不发送该电量数据。In some embodiments, after the mobile terminal receives the joint-screen follow-up operation, the terminal device can periodically obtain the power data of the mobile terminal, and when the power data is less than or equal to the third power threshold, send the power data to the display device. The power data. Correspondingly, the mobile terminal may not send the power data before receiving the joint screen follow-up operation and/or when the power data is greater than the third power threshold.
其中,该第三电量阈值可以根据实际需求进行设置。Wherein, the third power threshold can be set according to actual needs.
在一些实施例中,在移动终端接收到联屏跟练操作之后,移动终端后续可以周期性的获取电量数据,并在获取的电量数据相比于在先获取的电量数据存在变化的情况下,向移动终端发送该电量数据;相应的,在获取的电量数据相比于在先获取的电量数据没有变化的情况下,可以不发送该电量数据。In some embodiments, after the mobile terminal receives the joint-screen follow-up operation, the mobile terminal can periodically obtain the power data, and if the obtained power data changes compared with the previously obtained power data, The power data is sent to the mobile terminal; correspondingly, when the obtained power data has no change compared with the previously obtained power data, the power data does not need to be sent.
在一些实施例中,移动终端可以先将训练视频标识、跟练页面标识、跟练视频数据发送至显示设备,以使得显示设备根据训练视频标识、跟练页面标识、跟练视频数据先显示跟练页面,并通知移动终端成功显示跟练页面,在移动终端接收到该通知之后,终端设备可以周期性的获取移动终端的电量数据,并向显示设备发送该电量数据。In some embodiments, the mobile terminal may first send the training video identifier, the follow-up page identifier, and the follow-up video data to the display device, so that the display device first displays the follow-up video identifier according to the training video identifier, the follow-up page identifier, and the follow-up video data. practice page, and notify the mobile terminal to successfully display the practice page. After the mobile terminal receives the notification, the terminal device can periodically obtain the power data of the mobile terminal and send the power data to the display device.
在一些实施例中,移动终端可以先将训练视频标识、跟练页面标识、跟练视频数据发送至显示设备,以使得显示设备根据训练视频标识、跟练页面标识、跟练视频数据先显示跟练页面,并通知移动终端显示设备成功显示跟练页面,在移动终端接收到该通知之后,终端设备可以周期性的获取移动终端的电量数据,在该电量数据小于或等于第三电量阈值的情况下,向显示设备发送该电量数据。相应的,在移动终端获知显示设备成功显示跟练页面之前,在该电量数据大于第三电量阈值的情况下,移动终端可以不发送该电量数据。In some embodiments, the mobile terminal may first send the training video identifier, the follow-up page identifier, and the follow-up video data to the display device, so that the display device first displays the follow-up video identifier according to the training video identifier, the follow-up page identifier, and the follow-up video data. practice page, and notify the mobile terminal display device to successfully display the follow-up page. After the mobile terminal receives the notification, the terminal device can periodically obtain the power data of the mobile terminal. When the power data is less than or equal to the third power threshold Next, send the power data to the display device. Correspondingly, before the mobile terminal learns that the display device successfully displays the follow-up page, if the power data is greater than the third power threshold, the mobile terminal may not send the power data.
在一些实施例中,移动终端可以先将训练视频标识、跟练页面标识、跟练视频数据发送至显示设备,以使得显示设备根据训练视频标识、跟练页面标识、跟练视频数据先显示跟练页面,并通知移动终端成功显示跟练页面,在移动终端接收到该通知之后,终端设备可以周期性的获取移动终端的电量数据,并在获 取的电量数据相比于在先获取的电量数据存在变化的情况下,向移动终端发送该电量数据;相应的,在获取的电量数据相比于在先获取的电量数据没有变化的情况下,可以不发送该电量数据。In some embodiments, the mobile terminal may first send the training video identifier, the follow-up page identifier, and the follow-up video data to the display device, so that the display device first displays the follow-up video identifier according to the training video identifier, the follow-up page identifier, and the follow-up video data. practice page, and notify the mobile terminal to successfully display the follow-up page. After the mobile terminal receives the notification, the terminal device can periodically obtain the power data of the mobile terminal, and compare the obtained power data with the previously obtained power data. If there is a change, the power data is sent to the mobile terminal; accordingly, if the obtained power data has no change compared with the previously obtained power data, the power data does not need to be sent.
其中,上述移动终端获取电量数据的时间周期可以根据实际情况设置,本公开实施例不做具体限定。The time period for the above-mentioned mobile terminal to obtain power data can be set according to the actual situation, and is not specifically limited in the embodiment of the present disclosure.
在一些实施例中,移动终端还可以仅作为摄像头使用,在该场景下,移动终端上可以安装有提供多媒体资源的应用程序。相应的,在显示设备上也可以安装有该提供多媒体资源的应用程序。该应用程序的页面中可以展示上述训练视频。该场景中显示设备可以接收用户针对训练视频的联屏跟练操作,并确定训练视频对应的训练视频标识、跟练页面标识和媒资标识,基于训练视频标识、跟练页面标识和媒资标识生成目标二维码,并展示该目标二维码,在移动终端扫描该目标二维码之后可以触发移动终端通过摄像头获取跟练视频数据,并将这些跟练视频数据发送至显示设备,显示设备可以确定跟练页面标识对应的跟练页面数据,根据训练视频标识从服务器获取对应的训练视频数据,并且基于跟练页面数据、训练视频数据和跟练视频数据,显示跟练页面。In some embodiments, the mobile terminal can also be used only as a camera. In this scenario, an application that provides multimedia resources can be installed on the mobile terminal. Correspondingly, the application program that provides multimedia resources can also be installed on the display device. The above training videos can be displayed on the application's pages. In this scenario, the display device can receive the user's joint-screen follow-up operation for the training video, and determine the training video identification, follow-up page identification, and media asset identification corresponding to the training video, based on the training video identification, follow-up page identification, and media asset identification. Generate a target QR code and display the target QR code. After the mobile terminal scans the target QR code, the mobile terminal can be triggered to obtain the follow-up video data through the camera, and send the follow-up video data to the display device. The display device The follow-up page data corresponding to the follow-up page identification can be determined, the corresponding training video data can be obtained from the server according to the training video identification, and the follow-up page can be displayed based on the follow-up page data, training video data and follow-up video data.
其中,在移动终端通过该应用程序扫描该目标二维码之后可以获取训练视频标识、跟练页面标识和媒资标识。针对在移动终端扫描该目标二维码之后,电视机由于用户控制或者其他原因又退出了跟练页面的情况下,移动终端可以通过将获取的训练视频标识、跟练页面标识和媒资标识发送至显示设备,并将获取的跟练视频数据发送至显示设备,以使得显示设备可以确定跟练页面标识对应的跟练页面数据,根据训练视频标识从服务器获取对应的训练视频数据,并且基于跟练页面数据、训练视频数据和跟练视频数据,显示跟练页面。Among them, after the mobile terminal scans the target QR code through the application, the training video identification, follow-up page identification and media asset identification can be obtained. In the case that after the mobile terminal scans the target QR code, the TV exits the follow-up page due to user control or other reasons, the mobile terminal can send the obtained training video identification, follow-up page identification and media asset identification. to the display device, and sends the obtained follow-up video data to the display device, so that the display device can determine the follow-up page data corresponding to the follow-up page identification, obtain the corresponding training video data from the server according to the training video identification, and based on the follow-up Practice page data, training video data and follow-up video data show the follow-up page.
在一些实施例中,跟练视频数据是实时发送的持续的视频流数据,以便于显示设备在本地图像窗口上显示本地视频画面,电量数据可以以预定时间间隔周期性的发送,以便于降低移动设备和显示设备的负载。预设时间间隔可以是3分钟,5分钟等,远大于跟练视频中两帧视频之间的时长。In some embodiments, the follow-up video data is continuous video streaming data sent in real time, so that the display device can display the local video picture on the local image window, and the power data can be sent periodically at predetermined time intervals, so as to reduce the mobile speed. device and display device loads. The preset time interval can be 3 minutes, 5 minutes, etc., which is much longer than the time between two frames of video in the follow-up video.
在一些实施例中,移动终端采集的本地视频可以直接被传输给显示设备,不在移动终端显示。In some embodiments, the local video collected by the mobile terminal can be directly transmitted to the display device without being displayed on the mobile terminal.
在一些实施例中,在建立视频传输连接后,移动终端息屏并使提供多媒体资源的应用程序(如健身APP)在后台工作,以在实现本地视频采集和传输的同时降低移动终端电量的损耗。In some embodiments, after establishing a video transmission connection, the mobile terminal stops the screen and allows an application that provides multimedia resources (such as a fitness APP) to work in the background, so as to realize local video collection and transmission while reducing the power consumption of the mobile terminal. .
在一些实施例中,移动终端所采集的本地视频的传输(即传输上述跟练视频数据)和电量数据的传输是两个不同的传输通道,在一些实施例中,视频传输是需要对视频数据按照视频格式的协议编码传输,电量数据可以以广播消息的方式发送给显示设备。In some embodiments, the transmission of local video collected by the mobile terminal (that is, the transmission of the above-mentioned follow-up video data) and the transmission of power data are two different transmission channels. In some embodiments, video transmission requires the video data to be According to the protocol encoding and transmission of the video format, the power data can be sent to the display device in the form of broadcast messages.
在一些实施例中,移动终端所采集的本地视频的传输是提供多媒体资源的应用程序(如健身APP)通过移动端SDK发送的,电量数据是通过电量管理应用通过移动端SDK发送的。In some embodiments, the local video collected by the mobile terminal is transmitted by an application that provides multimedia resources (such as a fitness APP) through the mobile SDK, and the power data is transmitted by the power management application through the mobile SDK.
S806、显示设备确定跟练页面标识对应的跟练页面数据,根据训练视频标识从服务器获取对应的训练视频数据。S806. The display device determines the follow-up page data corresponding to the follow-up page identification, and obtains the corresponding training video data from the server according to the training video identification.
服务器中可以保存应用程序中多媒体资源对应的各种多媒体数据,显示设备可以根据跟练页面标识在服务器中确定跟练页面数据,并且根据视频标识从服务器获取对应的训练视频数据。The server can store various multimedia data corresponding to the multimedia resources in the application. The display device can determine the follow-up page data in the server based on the follow-up page identification, and obtain the corresponding training video data from the server based on the video identification.
在一些实施例中,显示设备可以先确定跟练页面标识对应的跟练页面数据,然后根据训练视频标识从服务器获取对应的训练视频数据,或者,显示设备可以先根据训练视频标识从服务器获取对应的训练视频数据,然后确定跟练页面标识对应的跟练页面数据,或者,显示设备可以同时执行确定跟练页面标识对应的跟练页面数据的步骤,以及根据训练视频标识从服务器获取对应的训练视频数据,本公开实施例不作限定。在一些实施例中,确定跟练页面标识对应的跟练页面数据可以包括:针对不同页面对应设置有不同的页面标识,显示设备在获取跟练页面标识(Type code)之后,可以获取与Type code对应设置的跟练页面的跟练页面数据,该跟练页面数据中可以包括所述跟练页面的格式信息(例如,颜色、页面大小、页面中窗口大小、窗口位置等)、跟练页面的布局信息等。其中,跟练页面的布局信息可以指示第一窗口和第二窗口所对应展示的数据来源,本公开实施例中,可以是指示第一窗口用于展示从服务器获取的训练视频数据,第二窗口用于展示跟练视频数据。在获取到该跟练页面数据之后,还可以结合从移动终端获取的跟练视频数据。In some embodiments, the display device may first determine the follow-up page data corresponding to the follow-up page identification, and then obtain the corresponding training video data from the server based on the training video identification. Alternatively, the display device may first obtain the corresponding training video data from the server based on the training video identification. training video data, and then determine the follow-up page data corresponding to the follow-up page identifier, or the display device can simultaneously perform the steps of determining the follow-up page data corresponding to the follow-up page identifier, and obtain the corresponding training from the server according to the training video identifier Video data is not limited in the embodiments of this disclosure. In some embodiments, determining the follow-up page data corresponding to the follow-up page identifier may include: different page identifiers are set correspondingly for different pages. After obtaining the follow-up page identifier (Type code), the display device may obtain the Type code. Follow-up page data corresponding to the set follow-up page. The follow-up page data may include the format information of the follow-up page (for example, color, page size, window size, window position, etc.), the follow-up page's Layout information, etc. The layout information of the follow-up page may indicate the source of the data displayed by the first window and the second window. In the embodiment of the present disclosure, it may indicate that the first window is used to display training video data obtained from the server, and the second window may be used to display the training video data obtained from the server. Used to display follow-up video data. After obtaining the follow-up page data, it can also be combined with the follow-up video data obtained from the mobile terminal.
在一些实施例中,针对移动终端触发显示设备显示跟练页面的情况,在移动终端向显示设备发送跟练视频数据的情况下,显示设备优先选择移动终端发送的该跟练视频数据展示在第二窗口,如果显示设备没有接收到移动终端发送的跟练视频数据的情况下,可以开启显示设备的摄像头获取该跟练视频数据,并展示在第二窗口。In some embodiments, for the situation where the mobile terminal triggers the display device to display the follow-up page, when the mobile terminal sends the follow-up video data to the display device, the display device preferentially selects the follow-up video data sent by the mobile terminal to be displayed on the first page. In the second window, if the display device does not receive the follow-up video data sent by the mobile terminal, the camera of the display device can be turned on to obtain the follow-up video data and displayed in the second window.
在一些实施例中,移动终端触发显示设备显示跟练页面的情况可以包括:例如,移动终端接收用户针对训练视频的联屏跟练操作,移动终端响应于接收的联屏跟练操作,采集跟练视频数据,并发送至显示设备;又例如,显示设备可以接收用户针对训练视频的联屏跟练操作,并确定训练视频对应的训练视频标识、跟练页面标识和媒资标识,基于训练视频标识、跟练页面标识和媒资标识生成目标二维码,并展示该目标二维码,在移动终端扫描该目标二维码之后可以触发移动终端通过摄像头获取跟练视频数据,并将这些跟练视频数据发送至显示设备。In some embodiments, the situation where the mobile terminal triggers the display device to display the follow-up page may include: for example, the mobile terminal receives the user's joint-screen follow-up operation for the training video, and the mobile terminal collects the follow-up operation in response to the received joint-screen follow-up operation. Practice video data and send it to the display device; for another example, the display device can receive the user's joint screen follow-up operation for the training video, and determine the training video identification, follow-up page identification and media asset identification corresponding to the training video, based on the training video The target QR code is generated by the logo, the follow-up page logo and the media asset logo, and the target QR code is displayed. After the mobile terminal scans the target QR code, the mobile terminal can be triggered to obtain follow-up video data through the camera, and these tracking The training video data is sent to the display device.
在一些实施例中,根据训练视频标识从服务器获取对应的训练视频数据可以包括:服务器中对应保存有不同视频标识和不同视频数据,在获取到训练视频标识之后,服务器可以从保存的视频标识中确定是否存在该训练视频标识,如果存在,就进一步获取与该训练视频标识对应保存的训练视频数据。In some embodiments, obtaining the corresponding training video data from the server according to the training video identification may include: different video identifications and different video data are correspondingly stored in the server. After obtaining the training video identification, the server may obtain the training video identification from the saved video identification. Determine whether the training video identifier exists, and if so, further obtain the training video data stored corresponding to the training video identifier.
在一些实施例中,还可以结合训练视频对应的媒资标识和训练视频标识,从服务器获取对应的训练视频数据,服务器中还将不同媒资标识与媒资信息对应保存,该媒资信息中包括媒体信息(例如,标题、海报等媒体信息)和多个视频数据,在服务器获取到训练视频对应的媒资标识之后,可以先确定保存的媒资标识中是否存在该训练视频对应的媒资标识,如果存在,就进一步根据该训练视频标识,从多个视频数据中确定与该训练视频标识对应保存的视频数据作为训练视频数据。In some embodiments, the corresponding training video data can also be obtained from the server by combining the media asset identifier and the training video identifier corresponding to the training video. The server also stores different media asset identifiers corresponding to the media asset information. The media asset information contains Including media information (for example, media information such as titles, posters, etc.) and multiple video data. After the server obtains the media asset identifier corresponding to the training video, it can first determine whether the media asset corresponding to the training video exists in the saved media asset identifier. If the identifier exists, the video data stored corresponding to the training video identifier is determined from multiple video data as the training video data based on the training video identifier.
S807、显示设备基于跟练页面数据、训练视频数据和跟练视频数据,显示跟练页面。S807. The display device displays the follow-up page based on the follow-up page data, training video data and follow-up video data.
其中,跟练页面中包括第一窗口和第二窗口,第一窗口中显示训练视频数据,第二窗口中显示跟练视频数据。The follow-up training page includes a first window and a second window. The first window displays training video data, and the second window displays follow-up video data.
显示设备基于跟练页面数据、训练视频数据和跟练视频数据,显示跟练页面的过程中,可以先根据跟练页面数据绘制跟练页面的框架部分,其中,包括绘制出该跟练页面中的第一窗口和第二窗口,然后再第一窗口中绘制该训练视频数据,以及在第二窗口中绘制该跟练视频数据,这样就可以显示完整的跟练页面。跟练页面中第一窗口中显示的训练视频数据可以随着该训练视频的播放进度更新,跟练页面中第二窗口中显示的内容可以根据实时从终端设备获取到的跟练视频数据更新。也就是说,显示设备需要实时的基于跟练页面数据、训练视频数据和跟练视频数据,进行跟练页面的渲染,并显示跟练页面。The display device is based on the follow-up page data, training video data and follow-up video data. In the process of displaying the follow-up page, it can first draw the frame part of the follow-up page based on the follow-up page data, including drawing the frame part of the follow-up page. The first window and the second window, and then draw the training video data in the first window, and draw the follow-up video data in the second window, so that the complete follow-up page can be displayed. The training video data displayed in the first window of the follow-up page can be updated with the playback progress of the training video, and the content displayed in the second window of the follow-up page can be updated based on the follow-up video data obtained from the terminal device in real time. In other words, the display device needs to render the follow-up page based on the follow-up page data, training video data and follow-up video data in real time, and display the follow-up page.
如图21所示,为本公开实施例提供的一种显示跟练页面的场景示意图,图21中,移动终端92采集跟练视频数据,并发送至显示设备91,显示设备91在根据移动终端发送的训练视频标识和跟练页面标识,确定跟练页面数据和训练视频数据之后,可以在显示设备91的显示屏中显示跟练页面,该跟练页面中包括有两个窗口,其中一个窗口显示训练视频数据911,在另一个窗口中显示跟练视频数据912。As shown in Figure 21, it is a schematic diagram of a scene for displaying a follow-up page provided by an embodiment of the present disclosure. In Figure 21, the mobile terminal 92 collects the follow-up video data and sends it to the display device 91. The display device 91 displays the follow-up video data according to the mobile terminal. After the sent training video identification and follow-up page identification are determined, the follow-up page data and training video data can be displayed on the display screen of the display device 91. The follow-up page includes two windows, one of which is The training video data 911 is displayed, and the follow-up video data 912 is displayed in another window.
上述实施例中,通过移动终端与显示设备的交互,显示跟练页面的情况下,用户可以看着显示的训练视频数据,进行跟练,而移动终端会持续采集用户跟练的跟练视频数据,并传输到显示设备,显示设备将跟练视频数据和训练视频数据,一起通过不同窗口展示在显示设备的显示器中,这样用户可以对比跟练视频数据和训练视频数据中的训练动作,方便用户纠正动作。在一些实施例中,视频数据也可称作视频流,即跟练视频数据和训练视频数据分别称为跟练视频流和训练视频流。In the above embodiment, through the interaction between the mobile terminal and the display device, when the follow-up page is displayed, the user can watch the displayed training video data and perform follow-up exercises, and the mobile terminal will continue to collect the follow-up video data of the user's follow-up exercises. , and transmitted to the display device. The display device will display the follow-up video data and the training video data together on the display of the display device through different windows. In this way, the user can compare the training actions in the follow-up video data and the training video data, which is convenient for the user. Corrective action. In some embodiments, the video data may also be called a video stream, that is, the follow-up video data and the training video data are respectively called a follow-up video stream and a training video stream.
S808、显示设备在跟练页面中显示电量数据。S808. The display device displays the power data on the follow-up training page.
本公开实施例中,在显示跟练页面的过程中,还可以将得到的跟移动终端的电量数据,显示在该跟练页面。In the embodiment of the present disclosure, during the process of displaying the follow-up training page, the obtained power data of the mobile terminal can also be displayed on the follow-up training page.
其中,该电量数据可以通过图标和/或文字的方式显示在跟练页面中。The power data can be displayed on the follow-up page in the form of icons and/or text.
如图22所示,为本公开实施例提供的一种在跟练页面中显示电量数据的示意图,如8中显示有训练视频数据1001和跟练视频数据1002,以及电量数据1003。其中,上述图22所示的电量数据是以图标方式显示的,在实际中还可以采用其他方式展示,本公开实施例不作限定。As shown in Figure 22, it is a schematic diagram of displaying power data in a follow-up training page provided by an embodiment of the present disclosure. As shown in Figure 8, training video data 1001, follow-up video data 1002, and power data 1003 are displayed. The power data shown in FIG. 22 is displayed in the form of icons. In practice, it can also be displayed in other ways, which is not limited by the embodiment of the present disclosure.
在一些实施例中,健身功能的示范视频窗口和本地视频窗口是在相同的第一图层显示,电量数据是在第一图层上方的第二图层显示。In some embodiments, the fitness function demonstration video window and the local video window are displayed on the same first layer, and the power data is displayed on the second layer above the first layer.
在一些实施例中,第二图层上设置电量控件,电量控件的展示状态随接收到的电量数据的变化而变化。In some embodiments, a power control is set on the second layer, and the display state of the power control changes with changes in the received power data.
在一些实施例中,第二图层上的电量控件是显示设备根据显示设备端的本地配置文件生成的,不是移动端传屏的影像。电量控件对应的配置文件可以和跟练界面中的其他窗口,控件等组件的配置文件设置在一起,也可以相区分与跟练界面的配置文件单独设置。In some embodiments, the power control on the second layer is generated by the display device according to the local configuration file of the display device, and is not an image uploaded to the screen by the mobile terminal. The configuration file corresponding to the power control can be set together with the configuration files of other windows, controls and other components in the follow-up interface, or it can be set separately from the configuration files in the follow-up interface.
本公开实施例提供的显示设备,包括:显示器,被配置为显示用户界面;通信接口,被配置为接收移动终端发送的训练视频标识和跟练页面标识;接收移动终端发送的跟练视频数据,跟练视频数据为移动终端采集的视频数据;接收移动终端发送的移动终端的电量数据;控制器,被配置为确定跟练页面标识对应的跟练页面数据,根据训练视频标识从服务器获取对应的训练视频数据;控制显示器基于跟练页面数据、训练视频数据和跟练视频数据,显示跟练页面,跟练页面中包括第一窗口和第二窗口,第一窗口中显示训练视频数据,第二窗口中显示跟练视频数据;以及控制显示器在跟练页面中显示电量数据。通过该方案,在移动终端中响应于用户触发针对某一训练视频进行跟练之后,显示器可以通过移动终端采集跟练视频数据,并根据移动终端发送的训练视频标识和跟练页面标识确定对应的训练视频数据和跟练页面数据,还可以获取移动终端的电量数据,如此,显示器可以基于跟练视频数据、训练视频数据和跟练页面数据,生成跟练页面,并且在该跟练页面中显示移动终端的电量数据。从而在针对健身视频、舞蹈视频等的跟练场景中,用户距离移动终端有一定距离的情况下,在显示设备的跟练页面上显示该移动终端的电量数据,由于用户在跟练过程中会关注该显示设备的显示器中的跟练页面,因此会同时看到移动终端的电量数据,在该场景下,从而可以及时发现移动终端的耗电情况,及时进行充电,保证移动终端的基本功能使用。The display device provided by the embodiment of the present disclosure includes: a display configured to display a user interface; a communication interface configured to receive a training video identifier and a follow-up page identifier sent by a mobile terminal; receive follow-up video data sent by the mobile terminal, The follow-up video data is video data collected by the mobile terminal; receives the power data of the mobile terminal sent by the mobile terminal; the controller is configured to determine the follow-up page data corresponding to the follow-up page identification, and obtain the corresponding follow-up page data from the server according to the training video identification Training video data; the control display displays the follow-up page based on the follow-up page data, training video data and follow-up video data. The follow-up page includes a first window and a second window. The first window displays the training video data, and the second window displays the training video data. Display the follow-up video data in the window; and control the display to display the power data on the follow-up page. Through this solution, after the mobile terminal responds to the user triggering a follow-up training video for a certain training video, the display can collect the follow-up video data through the mobile terminal, and determine the corresponding training video identification and follow-up page identification sent by the mobile terminal. The training video data and follow-up page data can also obtain the power data of the mobile terminal. In this way, the display can generate a follow-up page based on the follow-up video data, training video data and follow-up page data, and display it on the follow-up page. Power data of mobile terminal. Therefore, in a follow-up training scenario for fitness videos, dance videos, etc., when the user is at a certain distance from the mobile terminal, the power data of the mobile terminal is displayed on the follow-up training page of the display device. Since the user will Pay attention to the follow-up page on the monitor of the display device, so you will see the power data of the mobile terminal at the same time. In this scenario, you can discover the power consumption of the mobile terminal in time, charge it in time, and ensure the basic functions of the mobile terminal. .
本公开实施例中,在跟练页面中显示电量数据的基础上,还可以在移动终端的电量数据指示剩余电量 小于或等于设定的电量阈值时,会输出提示信息或者对跟练页面进行控制,终止跟练,取消跟练页面的显示。In the embodiment of the present disclosure, in addition to displaying the power data in the follow-up training page, when the power data of the mobile terminal indicates that the remaining power is less than or equal to the set power threshold, prompt information can be output or the follow-up page can be controlled. , terminate the follow-up training and cancel the display of the follow-up training page.
其中,在确定移动终端的剩余电量是否小于设定的电量阈值时,可以将移动终端的剩余电量与设定的电量阈值进行比较,以确定移动终端的剩余电量是小于或等于设定的电量阈值,还是大于设定的电量阈值。When determining whether the remaining power of the mobile terminal is less than the set power threshold, the remaining power of the mobile terminal may be compared with the set power threshold to determine whether the remaining power of the mobile terminal is less than or equal to the set power threshold. , is still greater than the set power threshold.
在一些实施例中,在显示设备确定移动终端的电量数据指示剩余电量小于或等于第一电量阈值的情况下,显示设备取消显示跟练页面,并向移动终端发送第一通知消息,第一通知消息用于通知移动终端停止采集跟练视频数据。In some embodiments, when the display device determines that the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold, the display device cancels display of the follow-up page and sends the first notification message to the mobile terminal. The first notification The message is used to notify the mobile terminal to stop collecting follow-up video data.
在联屏跟练过程中接收到第一通知消息之前,移动终端可以调用移动终端的摄像头,实时采集跟练视频数据,并且在该上述应用程序中可以显示用户跟练的预览界面,该预览界面中显示有实时采集的跟练视频数据,移动终端可以向终端设备发送跟练视频数据,在移动终端接收到上述第一通知消息之后,移动终端的上述应用程序可以停止调用该移动终端的摄像头,不再采集跟练视频数据,并且取消显示该预览界面。Before receiving the first notification message during the joint-screen follow-up training, the mobile terminal can call the camera of the mobile terminal to collect the follow-up video data in real time, and the preview interface of the user's follow-up training can be displayed in the above-mentioned application. The preview interface The real-time collected follow-up video data is displayed in the mobile terminal. The mobile terminal can send the follow-up video data to the terminal device. After the mobile terminal receives the above-mentioned first notification message, the above-mentioned application program of the mobile terminal can stop calling the camera of the mobile terminal. The training video data will no longer be collected, and the preview interface will be cancelled.
在一些实施例中,在移动终端的电量数据指示剩余电量小于或等于第一电量阈值的情况下,若在第一时长内检测到跟练视频数据中存在与第一预设手势匹配的第一手势,则移动终端停止采集跟练视频数据,并向显示设备发送第二通知消息;其中,第一预设手势为预设的用于指示允许停止跟练的手势,第二通知消息用于通知显示设备移动终端电量过低,取消显示跟练页面。In some embodiments, when the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold, if it is detected within the first duration that there is a first character matching the first preset gesture in the follow-up video data. gesture, the mobile terminal stops collecting the follow-up video data and sends a second notification message to the display device; wherein the first preset gesture is a preset gesture used to indicate that it is allowed to stop follow-up practice, and the second notification message is used to notify The battery of the mobile terminal of the display device is too low, and the display of the follow-up training page is cancelled.
其中,在移动终端的电量数据指示剩余电量小于或等于第一电量阈值的情况下,可以提示用户当前移动终端的剩余电量,并检测跟练视频数据中是否存在与第一预设手势匹配的第一手势,在存在该第一手势时,确定用户允许停止跟练,此时控制移动终端停止采集跟练视频数据,并向显示设备发送第二通知消息。相应的,如果跟练视频数据不存在与第一预设手势匹配的手势,则不终止跟练过程。Wherein, when the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold, the user can be prompted for the remaining power of the current mobile terminal, and detect whether there is a third gesture matching the first preset gesture in the follow-up video data. A gesture. When the first gesture exists, it is determined that the user allows to stop the follow-up training. At this time, the mobile terminal is controlled to stop collecting the follow-up video data and sends a second notification message to the display device. Correspondingly, if the follow-up video data does not contain a gesture that matches the first preset gesture, the follow-up process will not be terminated.
上述实施例中,在移动终端的电量数据指示剩余电量小于或等于第一电量阈值的情况下,不是直接终止跟练过程,而是通过采集是否用户执行了与第一预设手势匹配的第一手势,来表示允许停止跟练,如果采集到该手势,才终止跟练过程,这样可以根据用户的意图来停止跟练,更加人性化,提高了人机交互性能。In the above embodiment, when the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold, the follow-up process is not terminated directly, but the training process is collected by collecting whether the user performs the first gesture matching the first preset gesture. Gesture is used to indicate that it is allowed to stop following the practice. If the gesture is collected, the follow-up practice process will be terminated. In this way, the follow-up practice can be stopped according to the user's intention, which is more humane and improves the performance of human-computer interaction.
在一些实施例中,在确定电量数据指示剩余电量小于或等于第二电量阈值的情况下,输出第一提示信息,该第一提示信息用于提示移动终端电量过低。In some embodiments, when it is determined that the power data indicates that the remaining power is less than or equal to the second power threshold, first prompt information is output, and the first prompt information is used to prompt the mobile terminal that the power is too low.
其中,输出第一提示信息的方式包括控制显示器在跟练页面中显示第一提示信息,和/或,控制扬声器播放第一提示信息。The method of outputting the first prompt information includes controlling the display to display the first prompt information on the follow-up page, and/or controlling the speaker to play the first prompt information.
在一些实施例中,上述第二电量阈值小于上述第一电量阈值。In some embodiments, the second power threshold is smaller than the first power threshold.
上述第一电量阈值和第二电量阈值可以根据实际需求设置,本公开实施例不做限定。The above-mentioned first power threshold and second power threshold can be set according to actual needs, and are not limited in the embodiments of the present disclosure.
在一些实施例中,在移动终端的电量数据指示剩余电量小于或等于第一电量阈值的情况下,可以停止采集跟练视频数据,并向显示设备发送第二通知消息,该第二通知消息用于通知显示设备移动终端电量过低,取消显示跟练页面。In some embodiments, when the power data of the mobile terminal indicates that the remaining power is less than or equal to the first power threshold, the collection of follow-up video data may be stopped and a second notification message may be sent to the display device. The second notification message may be The notification shows that the battery of the mobile terminal of the device is too low and the follow-up training page is cancelled.
如图23所示,为本公开实施例提供的另一种跟练页面控制方法的流程示意图,结合图20所示的S808,在上述S808之后,图23还可以包括但不限于以下步骤:As shown in Figure 23, it is a schematic flow chart of another follow-up page control method provided by an embodiment of the present disclosure. Combined with S808 shown in Figure 20, after the above S808, Figure 23 may also include but is not limited to the following steps:
S809、移动终端向显示设备发送移动终端的电量数据。S809. The mobile terminal sends the power data of the mobile terminal to the display device.
其中,移动终端可以实时采集移动终端的电量数据,并发送至显示设备。移动终端也可以每间隔预设时长采集一次移动终端的电量数据,并发送至显示设备。Among them, the mobile terminal can collect the power data of the mobile terminal in real time and send it to the display device. The mobile terminal can also collect the power data of the mobile terminal at preset intervals and send it to the display device.
在一些实施例中,在采集移动终端的电量数据之后,在移动终端的电量数据指示剩余电量小于或等于第二电量阈值的情况下,移动终端向显示设备发送移动终端的电量数据。In some embodiments, after collecting the power data of the mobile terminal, if the power data of the mobile terminal indicates that the remaining power is less than or equal to the second power threshold, the mobile terminal sends the power data of the mobile terminal to the display device.
在移动终端的电量数据指示剩余电量小于或等于第二电量阈值的情况下,移动终端才向显示设备发送移动终端的电量数据,可以避免在移动终端的剩余电量较多的情况下,多次向显示设备发送移动终端的电量数据,交互过于频繁且实际作用不大,导致功耗过大,加快移动终端的电量消耗。When the power data of the mobile terminal indicates that the remaining power is less than or equal to the second power threshold, the mobile terminal sends the power data of the mobile terminal to the display device, which can avoid sending the power data to the display device multiple times when the remaining power of the mobile terminal is large. The display device sends the power data of the mobile terminal. The interaction is too frequent and has little practical effect, resulting in excessive power consumption and accelerating the power consumption of the mobile terminal.
S810、显示设备在确定电量数据指示剩余电量小于或等于第二电量阈值的情况下,输出第一提示信息。S810. When the display device determines that the power data indicates that the remaining power is less than or equal to the second power threshold, output the first prompt information.
在一些实施例中,如图24所示,为本公开实施例提供的一种在跟练页面中显示提示信息的示意图,在显示跟练页面的过程在,如果显示设备确定电量数据指示剩余电量小于或等于第二电量阈值,那么可以显示如图24所示的页面,该页面中除了显示了移动终端的电量数据1201之外,还显示该第一提示信息1202,该第一提示信息通过文本“手机电量剩余20%”来提示用户,方便用户获知当前移动终端电量较低,可以及时充电或者停止跟练。In some embodiments, as shown in Figure 24, a schematic diagram of displaying prompt information in the follow-up page is provided in an embodiment of the present disclosure. During the process of displaying the follow-up page, if the display device determines that the power data indicates the remaining power is less than or equal to the second power threshold, then the page shown in Figure 24 can be displayed. In addition to displaying the power data 1201 of the mobile terminal, the page also displays the first prompt information 1202. The first prompt information is displayed through text. "Mobile phone battery remaining 20%" prompts the user so that the user can know that the current mobile terminal battery is low and can charge in time or stop practicing.
本公开实施例中,在联屏跟练的场景中,用户关注点不在终端设备(如手机)上,而是处于显示设备(如电视机)显示的跟练页面上,针对该场景中用户关注点与其他场景中的不同,本公开实施例中将移动终端的电量数据,以及关于电量的提示信息在跟练页面上显示,这样可以使得用户可以方便看到移动终端的电量数据,相比于移动终端自身电量提醒的方案,这种电量数据和提示信息的展示方式结合了实际场景的特点,存在易于被用户发现的优点,提高了人机交互性能。In the embodiment of the present disclosure, in the scenario of joint-screen follow-up training, the user's focus is not on the terminal device (such as a mobile phone), but on the follow-up training page displayed on the display device (such as a television). For the user's focus in this scenario Different from other scenarios, in the embodiment of the present disclosure, the power data of the mobile terminal and the prompt information about the power are displayed on the follow-up page, so that the user can easily see the power data of the mobile terminal. Compared with The mobile terminal's own battery reminder solution. This display method of battery data and prompt information combines the characteristics of the actual scene, has the advantage of being easy to be discovered by users, and improves the performance of human-computer interaction.
进一步的,由于在联屏跟练的场景中,用户与终端设备具有一段距离,针对终端设备是手机、电话手表这一类屏幕较小的设备时,电量数据和提醒信息的展示会由于距离问题而无法被用户看清,即使用户关注该终端设备显示的内容,也无法起到提示用户的效果,因此针对终端设备是手机、电话手表这一类屏幕较小的设备的情况,本申请实施例提供的方法提升用户体验,可以提高人机交互性能。Furthermore, in a joint-screen training scenario, there is a certain distance between the user and the terminal device. When the terminal device is a device with a small screen, such as a mobile phone or a phone watch, the display of power data and reminder information will be limited due to distance issues. It cannot be seen clearly by the user. Even if the user pays attention to the content displayed by the terminal device, it cannot have the effect of prompting the user. Therefore, in the case where the terminal device is a device with a small screen such as a mobile phone or a phone watch, the embodiment of this application The methods provided improve user experience and can improve human-computer interaction performance.
如图25所示,为本公开实施例提供的还一种跟练页面控制方法的流程示意图,结合图23所示,在S810之后,图25所示的方法还可以包括以下步骤:As shown in Figure 25, a schematic flow chart of another follow-up page control method provided by an embodiment of the present disclosure is shown in conjunction with Figure 23. After S810, the method shown in Figure 25 may also include the following steps:
S812、移动终端向显示设备发送移动终端的电量数据。S812. The mobile terminal sends the power data of the mobile terminal to the display device.
S813、显示设备在确定移动终端的电量数据指示剩余电量小于或等于第三电量阈值的情况下,取消显示跟练页面。S813. When the display device determines that the power data of the mobile terminal indicates that the remaining power is less than or equal to the third power threshold, cancel the display of the follow-up page.
其中,该第三电量阈值小于该第二电量阈值。该第三电量阈值可以与第一电量阈值相同也可以和第一电量阈值不同。该第三电量阈值可以根据实际情况设置,本公开实施例不作限定。Wherein, the third power threshold is smaller than the second power threshold. The third power threshold may be the same as the first power threshold or may be different from the first power threshold. The third power threshold can be set according to actual conditions, and is not limited in this embodiment of the disclosure.
在一些实施例中,上述第一电量阈值和第三电量阈值可以为5%,上述第二电量阈值可以为20%。In some embodiments, the first power threshold and the third power threshold may be 5%, and the second power threshold may be 20%.
S814、显示设备向移动终端发送第一通知消息。S814. The display device sends the first notification message to the mobile terminal.
其中,第一通知消息用于通知移动终端停止采集跟练视频数据。The first notification message is used to notify the mobile terminal to stop collecting follow-up video data.
上述实施例中,在通过第一提示信息进行过一次电量过低的提示的情况下,在用户没有终止跟练的情况下,在剩余电量进一步减小到剩余电量小于或等于第三电量阈值的情况下,可以强制取消显示跟练页面,终止跟练过程,保证移动终端不会在跟练过程中电量耗尽。In the above embodiment, when the first prompt information is used to prompt that the battery is too low, and the user does not terminate the follow-up training, the remaining battery further reduces to the point where the remaining battery is less than or equal to the third battery threshold. In this case, you can forcefully cancel the display of the follow-up training page and terminate the follow-up training process to ensure that the mobile terminal will not run out of power during the follow-up training process.
在一些实施例中,在显示设备取消显示跟练页面,终止跟练时,可以输出终止跟练的提示界面,并等待用户在一定时间内确认是否终止跟练。In some embodiments, when the display device cancels the display of the follow-up training page and terminates the follow-up training, it may output a prompt interface for terminating the follow-up training and wait for the user to confirm whether to terminate the follow-up training within a certain period of time.
在一些实施例中,如图26所示,为本公开实施例提供的一种在跟练页面中提示终止跟练的示意图,可以在跟练页面中弹出如图26中所示的提示窗口1401来提示用户,手机(即移动终端)的电量不足,已经暂停跟练。进一步的用户可以通过针对控件“好的,知道了”的选择操作,来退出该跟练页面。In some embodiments, as shown in Figure 26, a schematic diagram of prompting to terminate the follow-up practice in the follow-up practice page provided by the embodiment of the present disclosure can pop up a prompt window 1401 as shown in Figure 26 in the follow-up practice page. To remind the user that the battery of the mobile phone (i.e. mobile terminal) is low and the follow-up training has been suspended. Further users can exit the training page by selecting "OK, got it" on the control.
在一些实施例中,假设移动终端为手机、显示设备为电视(电视机),在基于如图4B所示的软件交互示意图进行交互时,涉及到手机应用层、手机互动SDK、电视应用层以及电视互动SDK之间的交互,以下基于手机应用层、手机互动SDK、电视应用层以及电视互动SDK之间的交互来说明本公开实施例提供的跟练页面控制方法。In some embodiments, assuming that the mobile terminal is a mobile phone and the display device is a television (television set), when interacting based on the software interaction diagram shown in Figure 4B, it involves the mobile phone application layer, mobile phone interaction SDK, TV application layer and As for the interaction between TV interactive SDKs, the follow-up page control method provided by the embodiment of the present disclosure will be described below based on the interaction between the mobile phone application layer, the mobile phone interactive SDK, the TV application layer, and the TV interactive SDK.
如图27所示,为本公开实施例提供的一种跟练页面控制方法的交互示意图,该方法可以包括以下步骤:As shown in Figure 27, it is an interactive schematic diagram of a follow-up page control method provided by an embodiment of the present disclosure. The method may include the following steps:
S1、手机接收用户针对手机端APP上进入联屏健身详情页的点击操作,发起联屏健身。S1. The mobile phone receives the user's click operation to enter the joint-screen fitness details page on the mobile APP and initiates the joint-screen fitness.
本实施例中,是健身跟练场景为例进行说明的。手机应用层、手机互动SDK为针对手机端APP设置的,电视应用层以及电视互动SDK是针对电视端APP设置的。In this embodiment, the fitness and training scenario is taken as an example for explanation. The mobile application layer and mobile interactive SDK are set up for mobile APPs, while the TV application layer and TV interactive SDK are set up for TV APPs.
S2、手机端APP接收到用户的该操作后,通知到手机应用层(即APP应用层),手机应用层调用互动SDK提供的数据发送(Send Data)接口,向手机互动SDK发送操作指令。S2. After the mobile APP receives the user's operation, it notifies the mobile application layer (i.e. APP application layer). The mobile application layer calls the data sending (Send Data) interface provided by the interactive SDK and sends operation instructions to the mobile interactive SDK.
S3、手机互动SDK向电视互动SDK传输操作指令。S3. The mobile phone interactive SDK transmits operation instructions to the TV interactive SDK.
其中,该操作指令的内容包含:上述Media ID、Video Id、Type Code(页面编号-全屏跟练播放模式页面),以及Action(执行操作-页面跳转)。Among them, the content of this operation instruction includes: the above-mentioned Media ID, Video Id, Type Code (page number-full-screen follow-up playback mode page), and Action (execution operation-page jump).
S4、电视互动SDK发送操作指令到电视应用层。S4. TV interactive SDK sends operation instructions to the TV application layer.
S5、获取健身训练的媒资播放数据(即训练视频数据),拉起健身全屏跟练播放页面(也称为健身全屏跟练播放页面),展示跟练页面(也称为跟练界面),进行跟练。S5. Obtain the media playback data of fitness training (i.e., training video data), open the fitness full-screen follow-up playback page (also called the fitness full-screen follow-up playback page), and display the follow-up page (also called the follow-up interface). Do follow-up exercises.
其中,在上述操作指令的内容中还包括:应用标识,该应用标识用于指示上述电视端APP。The content of the above-mentioned operation instruction also includes: an application identifier, and the application identifier is used to indicate the above-mentioned TV terminal APP.
电视可以在接收到该指令内容之后,根据该应用标识确定需要拉起那个电视端应用,并且根据该Type Code,确定需要拉起的是该电视端APP对应的健身全屏跟练播放页面(即上述跟练页面)。并将训练视频数据展示在该跟练播放页面中的一个窗口中。After receiving the instruction content, the TV can determine which TV application needs to be launched based on the application identification, and determine based on the Type Code that the fitness full-screen follow-up playback page corresponding to the TV APP needs to be launched (i.e., the above-mentioned Follow the training page). And display the training video data in a window on the training playback page.
在此过程中,手机还将通过摄像头实时采集的跟练视频数据,持续发送至电视,以使得电视在接收到该跟练视频数据之后,展示在跟练页面中。该操作指令和该跟练视频数据可以是先后串行传输的。例如,手机互动SDK向电视互动SDK发送操作指令之后,手机互动SDK可以将摄像头实时采集的跟练视频数据发送至电视互动SDK。During this process, the mobile phone will also continuously send the follow-up video data collected in real time through the camera to the TV, so that after the TV receives the follow-up video data, it will be displayed on the follow-up page. The operation instruction and the training video data may be serially transmitted one after another. For example, after the mobile phone interactive SDK sends operation instructions to the TV interactive SDK, the mobile phone interactive SDK can send the follow-up video data collected by the camera in real time to the TV interactive SDK.
手机互动SDK和电视互动SDK之间通过接入的同一WiFi网络通信,将该指令数据传输到电视互动SDK。电视互动SDK接收到传输的数据后,通过回调函数通知上层应用。电视应用层接收到该回调函数后,解析并获取跟练页面的标识(Type Code),根据该Type Code可以调用系统端健身详情页接口(即跟练页面对应的页面接口),并根据Media ID、Video Id,获取媒资播放数据,拉起健身全屏跟练播放页面(即跟练页面)并展示。The mobile phone interactive SDK and the TV interactive SDK communicate through the same WiFi network they are connected to, and the command data is transmitted to the TV interactive SDK. After receiving the transmitted data, the TV interactive SDK notifies the upper-layer application through the callback function. After receiving the callback function, the TV application layer parses and obtains the identification (Type Code) of the follow-up page. According to the Type Code, it can call the system-side fitness details page interface (that is, the page interface corresponding to the follow-up page), and based on the Media ID , Video ID, obtain media asset playback data, launch the fitness full-screen follow-up playback page (i.e. follow-up page) and display it.
S6、手机端APP(手机应用层)通过Android系统的Battery Manager获取到当前电量的百分比,调 用互动SDK接口发送电量数据的数据指令,该数据指令的内容包括:手机电量,以及电量剩余百分比(data)。S6. The mobile phone APP (mobile application layer) obtains the current battery percentage through the Battery Manager of the Android system, and calls the interactive SDK interface to send data instructions for battery data. The content of the data instructions includes: mobile phone battery, and remaining battery percentage (data ).
其中,手机互动SDK基于网络,将该数据指令传输到电视互动SDK。Among them, the mobile phone interactive SDK is based on the network and transmits the data instructions to the TV interactive SDK.
S7、电视互动SDK接收手机互动SDK传输的手机电量数据。S7, TV interactive SDK receives mobile phone power data transmitted by mobile phone interactive SDK.
S8、电视互动SDK通过回调函数通知上层电视应用层手机电量数据。S8, TV interactive SDK notifies the upper TV application layer of the mobile phone power data through the callback function.
其中,电视应用层可以根据接收到的电量百分比数据进行展示。Among them, the TV application layer can display based on the received power percentage data.
S9、当电量百分比有变化时,手机应用层向手机互动SDK发送会传输最新电量数据。S9. When the battery percentage changes, the mobile application layer will transmit the latest battery data to the mobile phone interactive SDK.
S10、手机互动SDK将最新电量数据传输到电视互动SDK。S10 and mobile phone interactive SDK transmit the latest power data to TV interactive SDK.
S11、电视互动SDK向电视应用层发送最新电量数据。S11. The TV interactive SDK sends the latest power data to the TV application layer.
上述手机端APP会定时对手机电量进行监控(当前周期可以为1分钟一次),当电量百分比有变化时,会传输最新的电量数据到电视端,供电视端刷新展示。The above-mentioned mobile phone APP will regularly monitor the power of the mobile phone (the current cycle can be once every minute). When the power percentage changes, the latest power data will be transmitted to the TV for the TV to refresh and display.
电视端APP检测到当前接收到的手机电量最新数据小于等于20%时(该阈值可通过系统端下发进行调整),会进行提示,并将此次已展示过电量提示保存在内存中,后续不再继续提示。When the TV APP detects that the latest received data on mobile phone battery power is less than or equal to 20% (this threshold can be adjusted through the system), it will prompt and save the displayed power prompt in the memory for subsequent No more prompts.
在一些实施例中,手机电量不足20%时,用户给手机进行充电,电量恢复到20%以上。当电视端APP接收到手机端传输的最新电量大于当前电量且内存中存有电量低提示标记位时,对标记位进行清0,一旦电量重新低于20%,则会再次对用户进行提示。In some embodiments, when the power of the mobile phone is less than 20%, the user charges the mobile phone and the power is restored to more than 20%. When the TV APP receives that the latest power transmitted by the mobile phone is greater than the current power and there is a low battery prompt flag in the memory, it clears the flag to 0. Once the battery falls below 20% again, the user will be prompted again.
S12、手机端APP监测到当前电量低于5%时,手机应用层向手机互动SDK发送停止指令指令。S12. When the mobile phone APP detects that the current battery level is lower than 5%, the mobile phone application layer sends a stop command to the mobile phone interactive SDK.
手机端APP监测到当前电量低于5%时(该阈值可通过系统端下发进行调整),自动关闭摄像头,退出联屏健身跟练页面,同时发送停止指令指令到电视端。该停止指令的内容包含:Action(执行操作-暂停跟练)。When the mobile phone APP detects that the current battery level is lower than 5% (the threshold can be adjusted through the system), it automatically turns off the camera, exits the joint-screen fitness follow-up page, and sends a stop command to the TV. The content of the stop command includes: Action (execute operation-pause follow-up training).
S13、手机互动SDK将停止指令发送到电视互动SDK。S13. The mobile phone interactive SDK sends the stop command to the TV interactive SDK.
S14、电视互动SDK向电视应用层发送停止指令。S14. The TV interactive SDK sends a stop command to the TV application layer.
其中,电视端APP接收到停止指令时,暂停当前跟练,并提示用户,手机端电量不足。Among them, when the TV APP receives the stop command, it suspends the current training and prompts the user that the mobile phone battery is low.
如图28所示,为本公开实施例提供的另一种跟练页面控制方法的交互示意图,该方法交互流程中,与上述图27中所示的步骤S1至S11的交互流程相同,区别在于上述图27所示的流程中用户跟练停止(或暂停)判断逻辑发生在手机端,通过传输控制指令到电视端控制电视端跟练停止,而图28所示的流程中,在步骤S11之后,选择在电视端实现该跟练停止(或暂停)判断逻辑。即当电视端APP判断当前手机端传输的最新电量数据达到停止跟练的电量阈值时,电视端APP主动结束当前电视端的跟练,并通过互动SDK在返回消息中携带停止跟练的通知。As shown in Figure 28, it is an interaction schematic diagram of another follow-up page control method provided by an embodiment of the present disclosure. The interaction process of this method is the same as the interaction process of steps S1 to S11 shown in Figure 27 above. The difference is that In the process shown in Figure 27 above, the user's follow-up stop (or pause) judgment logic occurs on the mobile phone, and the TV end is controlled to stop the follow-up practice by transmitting control instructions to the TV end. In the process shown in Figure 28, after step S11 , choose to implement the training stop (or pause) judgment logic on the TV side. That is, when the TV APP determines that the latest power data transmitted by the mobile phone reaches the power threshold for stopping follow-up training, the TV APP actively ends the current TV-side follow-up training and carries a notification to stop follow-up training in the return message through the interactive SDK.
随着终端技术和互联网技术的发展,多屏协同技术得到了广泛的应用。多屏协同技术是指多个屏幕协同工作,其包括将一个设备的屏幕内容投屏至其他设备上进行显示。比如,将手机的屏幕内容投屏至计算机上进行显示,这样用户就能在计算机上观看手机屏幕所显示的内容,从而实现手机和计算机之间的同屏显示。With the development of terminal technology and Internet technology, multi-screen collaboration technology has been widely used. Multi-screen collaboration technology refers to the collaborative work of multiple screens, which includes projecting the screen content of one device to other devices for display. For example, the screen content of the mobile phone is projected to the computer for display, so that the user can watch the content displayed on the screen of the mobile phone on the computer, thus realizing the same screen display between the mobile phone and the computer.
相关技术中,在第一设备向第二设备投屏的过程中,第二设备显示有第一设备的屏幕内容。但是,在第一设备接收到通信消息后,第二设备显示的内容会暂停显示,接入通信消息。但是在一些使用场景下,例如健身场景下,用户会跟练第二设备播放的训练健身视频,第一设备采集用户的跟练健身视频并投屏至第二设备,第二设备显示训练健身视频和跟练健身视频,当第一设备接收到通信消息后,会打断第二设备播放的训练健身视频和跟练健身视频,降低了用户的使用感受。In the related art, during the process of the first device projecting the screen to the second device, the second device displays the screen content of the first device. However, after the first device receives the communication message, the content displayed on the second device will be paused and the communication message will be accessed. However, in some usage scenarios, such as fitness scenarios, the user will follow the training and fitness video played by the second device. The first device collects the user's follow-up fitness video and projects it to the second device, and the second device displays the training and fitness video. and follow-up fitness videos. When the first device receives the communication message, it will interrupt the training and fitness videos and follow-up fitness videos played by the second device, which reduces the user's experience.
为了解决上述技术问题或者至少部分地解决上述技术问题,本公开一些实施例的显示设备进一步进行以下设计,并且本公开一些实施例的投屏方法进一步包括通信消息处理方法。In order to solve the above technical problems or at least partially solve the above technical problems, the display device of some embodiments of the present disclosure further carries out the following design, and the screen projection method of some embodiments of the present disclosure further includes a communication message processing method.
图1B示出了根据本申请实施例的投屏方法的投屏系统网络架构图。投屏系统网络架构图中包括第一设备(也可称作终端设备300)、第二设备(也可称作显示设备200)、路由器500和服务器400等。其中:第一设备,可以作为投屏系统网络架构中的发送端,用于将多媒体内容和各类指令发送到第二设备中。在一些实施例中,第一设备包括,但不限于,智能手机、平板电脑、游戏机、膝上型计算机等。第二设备,可以作为投屏系统网络架构中的展示端,用于接收第一设备的多媒体内容和各类指令,并将接收到的多媒体内容同步播放到自身设备的显示面板或关联设备的显示面板中。第二设备可以是诸如虚拟现实设备、机顶盒、智能电视、车辆终端、大型露天显示面板等屏幕较大的相关设备,当然,也可以是智能手机、平板电脑、膝上型计算机等屏幕较小的相关设备。Figure 1B shows a network architecture diagram of the screen projection system according to the screen projection method according to the embodiment of the present application. The network architecture diagram of the screen projection system includes a first device (also called a terminal device 300), a second device (also called a display device 200), a router 500, a server 400, etc. Among them: the first device can be used as the sending end in the network architecture of the screen projection system, and is used to send multimedia content and various instructions to the second device. In some embodiments, the first device includes, but is not limited to, a smartphone, a tablet, a game console, a laptop, or the like. The second device can be used as a display end in the network architecture of the screen projection system, used to receive multimedia content and various instructions from the first device, and synchronously play the received multimedia content to the display panel of its own device or the display of an associated device. in the panel. The second device may be a related device with a larger screen, such as a virtual reality device, a set-top box, a smart TV, a vehicle terminal, a large open-air display panel, etc. Of course, it may also be a device with a smaller screen, such as a smartphone, a tablet, a laptop, etc. relative devices.
路由器500,可以作为投屏系统网络架构中的网关,用于组建局域网以及提供互联网服务。路由器能够为第一设备和第二设备之间提供本地连接。The router 500 can be used as a gateway in the network architecture of the screen projection system to establish a local area network and provide Internet services. The router can provide a local connection between the first device and the second device.
第一设备可以通过第一网络或第二网络发现第二设备,并且基于第一网络或第二网络与第二设备建立网络连接。通过该建立的网络连接,第一设备可以将需要投屏的多媒体内容投放到第二设备中,通过第二设备播放出来。第一网络可以是局域网,局域网可以是有线局域网或无线局域网。如图1B所示,无线局 域网可以是由路由器500组建的Wi-Fi网络。第二网络可以是广域网,如互联网。广域网可以包括物理链路,例如同轴电缆链路,双绞线电缆链路,光纤链路,其组合等。广域网还可以包括无线链路,诸如蜂窝链路,卫星链路等。The first device may discover the second device through the first network or the second network, and establish a network connection with the second device based on the first network or the second network. Through the established network connection, the first device can put the multimedia content that needs to be projected to the second device, and play it through the second device. The first network may be a local area network, and the local area network may be a wired LAN or a wireless LAN. As shown in Figure 1B, the wireless LAN may be a Wi-Fi network formed by a router 500. The second network may be a wide area network, such as the Internet. A wide area network can include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, etc. A wide area network may also include wireless links such as cellular links, satellite links, etc.
在一些实施例中,第一设备和第二设备的硬件配置参见图3A所示In some embodiments, the hardware configuration of the first device and the second device is shown in Figure 3A
图29A为根据一些实施例的一种通信消息处理方法的流程示意图,图29B为根据一些实施例的一种通信消息处理方法的信号流程示意图,结合图29A和图29B,通信消息处理方法包括:Figure 29A is a schematic flow diagram of a communication message processing method according to some embodiments. Figure 29B is a schematic signal flow diagram of a communication message processing method according to some embodiments. With reference to Figures 29A and 29B, the communication message processing method includes:
S100、在第一设备向第二设备投屏的过程中,对第一设备的通信消息进行监听。S100. During the process of the first device projecting the screen to the second device, monitor the communication messages of the first device.
在S1001第一设备向第二设备投屏;在S1002监听第一设备的通信消息。In S1001, the first device projects the screen to the second device; in S1002, the first device monitors communication messages.
在一些实施方式中,第一设备包括图像采集模块,在一些实施例中,图像采集模块可以为摄像头,基于第一设备的图像采集模块采集用户视频数据。In some embodiments, the first device includes an image acquisition module. In some embodiments, the image acquisition module may be a camera, and user video data is collected based on the image acquisition module of the first device.
在一些实施例中,第二设备播放训练视频流,例如,健身训练视频流、舞蹈训练视频流,用户通过跟练第二设备播放的训练视频流,第一设备的图像采集模块采集用户跟练视频流并通过投屏在第二设备上显示。In some embodiments, the second device plays a training video stream, for example, a fitness training video stream, a dance training video stream, the user follows the training video stream played by the second device, and the image collection module of the first device collects the user's follow-up training The video is streamed and displayed on the second device via screen casting.
其中,设置第一设备与第二设备之间的距离小于预设距离阈值,且第一设备的图像采集模块的朝向与第二设备的显示屏朝向之间的角度小于预设角度阈值。Wherein, the distance between the first device and the second device is set to be less than a preset distance threshold, and the angle between the orientation of the image acquisition module of the first device and the orientation of the display screen of the second device is less than the preset angle threshold.
在一些实施例中,当用户通过跟练第二设备播放的训练视频流进行连续肢体动作,例如,进行舞蹈动作、体操动作等,利用第一设备的图像采集模块采集用户跟练视频流。可以理解地,为了保持图像采集模块位置固定,防止发生抖动,第一设备可以设置于固定支架上,即与第二设备之间的距离小于预设距离阈值,且第一设备的图像采集模块的朝向与第二设备的显示屏朝向之间的角度小于预设角度阈值,保证用户可以跟练第二设备播放的训练视频流的同时,第一设备的图像采集模块可以采集到用户跟练视频流。In some embodiments, when the user performs continuous body movements by following the training video stream played by the second device, for example, performing dance movements, gymnastics movements, etc., the image acquisition module of the first device is used to collect the user's training video stream. It can be understood that in order to keep the image acquisition module in a fixed position and prevent jitter, the first device can be installed on the fixed bracket, that is, the distance between the first device and the second device is less than the preset distance threshold, and the image acquisition module of the first device can The angle between the orientation and the orientation of the display screen of the second device is less than the preset angle threshold, ensuring that while the user can follow the training video stream played by the second device, the image acquisition module of the first device can collect the user's follow-up video stream. .
在一些实施例中,在第一设备向第二设备投屏的过程中,第二设备可以在展示窗口显示训练视频流,在投屏窗口显示第一设备的投屏内容(即跟练视频流)。比如,该投屏窗口用于显示第一设备的屏幕内容,即该投屏窗口内的显示内容与第一设备的屏幕所显示的内容相同。In some embodiments, during the process of the first device casting the screen to the second device, the second device can display the training video stream in the display window, and display the screencast content of the first device (i.e., follow-up video stream) in the screen casting window. ). For example, the screen projection window is used to display the screen content of the first device, that is, the display content in the screen projection window is the same as the content displayed on the screen of the first device.
需要说明的是,投屏通常包括推送投屏和镜像投屏。本公开主要应用于镜像投屏场景中。It should be noted that screencasting usually includes push screencasting and mirroring screencasting. This disclosure is mainly used in mirror projection scenarios.
其中,推送投屏是指将一个设备的多媒体资源投放至其他设备上进行播放,多媒体资源包括音、视频资源。例如将手机上的视频投放至智能电视上进行播放,在此过程中并不影响用户对手机的使用,用户仍然可以对手机进行操作。镜像投屏是指将一个设备的屏幕内容投放至其他设备上进行显示,即将一个设备的整个屏幕镜像显示在其他设备上。例如将手机的屏幕内容投放至投影仪上进行显示,在此过程中,手机显示什么内容,投影仪的投屏窗口也将显示什么内容。Among them, push screencasting refers to putting the multimedia resources of one device onto other devices for playback. Multimedia resources include audio and video resources. For example, putting videos on a mobile phone onto a smart TV for playback does not affect the user's use of the mobile phone, and the user can still operate the mobile phone. Mirroring refers to projecting the screen content of one device to other devices for display, that is, mirroring the entire screen of one device to display on other devices. For example, the screen content of a mobile phone is projected onto a projector for display. During this process, whatever content is displayed on the mobile phone will also be displayed on the projection window of the projector.
另外,在第一设备向第二设备投屏的过程中,第二设备还可以根据第二设备中的投屏窗口对第一设备进行反向控制。In addition, during the process of the first device casting the screen to the second device, the second device can also perform reverse control on the first device according to the screen casting window in the second device.
在一些实施方式中,当第一设备向第二设备投屏的过程中,为避免第一设备接收到的通信消息对第二设备播放的训练视频流和跟练视频流的影响,在第一设备向第二设备投屏的过程中,首先对第一设备的通信消息进行监听。In some embodiments, when the first device projects the screen to the second device, in order to avoid the impact of the communication message received by the first device on the training video stream and follow-up video stream played by the second device, the first device In the process of casting the screen to the second device, the device first monitors the communication messages of the first device.
通信是指可以交流的工具,消息的内容可以是语音、视频、电话、文本等类型。Communication refers to tools that can communicate. The content of messages can be voice, video, phone, text, etc.
通信消息表征第一设备接收到了第三设备发送的通话请求中的通信消息,其中,通话请求包括:蜂窝网络通话请求(需要SIM卡,不需要应用)或非蜂窝网络通话请求(不需要SIM卡,需要应用),非蜂窝网络通话请求可以包括:运营商数据网络通话请求、互联网通话请求、局域网通话请求,通信消息类型可以是语音、视频、电话、文本等类型(第三设备向第一设备发送通信消息的过程中有音频提示消息)。The communication message indicates that the first device has received the communication message in the call request sent by the third device, where the call request includes: a cellular network call request (requires a SIM card, no application is required) or a non-cellular network call request (requires a SIM card) , application required), non-cellular network call requests may include: operator data network call requests, Internet call requests, LAN call requests, communication message types may be voice, video, phone, text, etc. (the third device sends a request to the first device There is an audio prompt message during the process of sending communication messages).
S200、在监听到通信消息,获取第二设备显示的跟练视频流的状态信息。S200: After monitoring the communication message, obtain the status information of the follow-up video stream displayed by the second device.
在S2001确定监听到对设备的通信消息,在S2002获取第二设备显示的跟练视频流的状态信息。In S2001, it is determined that the communication message to the device is monitored, and in S2002, status information of the follow-up video stream displayed by the second device is obtained.
状态信息包括跟练状态和暂停状态。Status information includes follow-up status and pause status.
第二设备显示跟练视频流以及训练视频流,其中,训练视频流是第二设备播放的视频流,跟练视频流是第一设备的图像采集模块采集的用户跟练第一设备播放的训练视频流对应的跟练视频数据,然后投屏至第二设备显示的。The second device displays the follow-up video stream and the training video stream. The training video stream is the video stream played by the second device, and the follow-up video stream is the training video collected by the image acquisition module of the first device and the user follows the training played by the first device. The training video data corresponding to the video stream is then projected to the second device for display.
当第二设备的服务器监听到第一设备接收到通信消息,第二设备的控制器获取第二设备的投屏窗口显示的跟练视频流的状态信息,即基于第二设备的投屏窗口显示的跟练视频流的状态信息,可以确定用户是否跟练第二设备播放的训练视频流,若第二设备显示的跟练视频流的状态信息为跟练状态,则可以确定用户跟练第二设备播放的训练视频流,若第二设备显示的跟练视频流的状态信息为暂停状态,则可以确定用户未跟练第二设备播放的训练视频流。When the server of the second device monitors that the first device receives the communication message, the controller of the second device obtains the status information of the follow-up video stream displayed in the projection window of the second device, that is, based on the display of the projection window of the second device The status information of the follow-up video stream can be used to determine whether the user is following the training video stream played by the second device. If the status information of the follow-up video stream displayed by the second device is in the follow-up state, it can be determined that the user is following the training video stream played by the second device. If the status information of the training video stream played by the device is paused, it can be determined that the user has not followed the training video stream played by the second device.
在一些实施例中,跟练视频流的状态信息可以通过连续获取预设帧值的跟练视频流的图像信息,通过比对相邻帧值对应的图像信息,确定跟练视频流的状态信息。在一些实施例中,获取跟练视频流连续三帧对应的图像信息,依次比对第一帧对应的图像信息与第二帧对应的图像信息是否一致,以及第二帧对应的 图像信息与第三帧对应的图像信息是否一致,当第一帧对应的图像信息与第二帧对应的图像信息一致,第二帧对应的图像信息与第三帧对应的图像信息一致,则可以确定跟练视频流处于暂停状态。当第一帧对应的图像信息与第二帧对应的图像信息不一致,和/或第二帧对应的图像信息与第三帧对应的图像信息不一致,则可以确定跟练视频流处于跟练状态。In some embodiments, the status information of the follow-up video stream can be determined by continuously obtaining the image information of the follow-up video stream with preset frame values, and by comparing the image information corresponding to adjacent frame values. . In some embodiments, the image information corresponding to three consecutive frames of the follow-up video stream is obtained, and the image information corresponding to the first frame and the image information corresponding to the second frame are sequentially compared to see whether they are consistent, and the image information corresponding to the second frame is consistent with the image information corresponding to the second frame. Whether the image information corresponding to the three frames is consistent. When the image information corresponding to the first frame is consistent with the image information corresponding to the second frame, and the image information corresponding to the second frame is consistent with the image information corresponding to the third frame, then the follow-up video can be determined The stream is paused. When the image information corresponding to the first frame is inconsistent with the image information corresponding to the second frame, and/or the image information corresponding to the second frame is inconsistent with the image information corresponding to the third frame, it can be determined that the follow-up video stream is in the follow-up state.
S300、根据第二设备显示的跟练视频流的状态信息,发送控制指令至第二设备,以控制第二设备显示通知内容。S300. Send a control instruction to the second device according to the status information of the follow-up video stream displayed by the second device to control the second device to display notification content.
不同控制指令对应的第二设备显示的通知内容不同。The notification content displayed by the second device corresponding to different control instructions is different.
在第一设备向第二设备投屏,且第一设备接收到通信消息时,本公开实施例通过获取第二设备显示的跟练视频流的状态信息,发送控制指令至第二设备,以控制第二设备显示通知内容,避免在第一设备向第二设备投屏的过程中,第一设备接收到的通信消息后直接在第二设备投屏显示通信消息对应的通知内容,使得通信消息对应的通知内容打断第二设备显示的跟练视频流和训练视频流,降低了用户的使用感受。When the first device projects the screen to the second device and the first device receives the communication message, the embodiment of the present disclosure obtains the status information of the follow-up video stream displayed by the second device and sends a control instruction to the second device to control The second device displays the notification content to prevent the first device from directly displaying the notification content corresponding to the communication message on the screen of the second device after receiving the communication message during the process of the first device projecting the screen to the second device, so that the communication message corresponds to The notification content interrupts the follow-up video stream and training video stream displayed on the second device, which reduces the user's experience.
本公开实施例提供的通信消息处理方法,在第一设备向第二设备投屏的过程中,对第一设备的通信消息进行监听,在监听到通信消息,通过获取第二设备显示的跟练视频流的状态信息,确定用户是否跟练第二设备播放的训练视频流,然后根据获取的第二设备显示的跟练视频流的状态信息,发送控制指令至第二设备,以控制第二设备显示通知内容,即通过获取第二设备显示的跟练视频流的状态信息,确定用户是否跟练第二设备播放的训练视频流,进而根据用户是否跟练第二设备播放的训练视频流,控制第二设备显示通知内容,避免在用户跟练第二设备播放的训练视频流时,直接将第一设备接收的通知内容发送至第二设备上,暂停第二设备播放的训练视频流以及跟练视频流,而使得跟练状态的用户无法做出及时反应,降低用户的使用感受。The communication message processing method provided by the embodiment of the present disclosure monitors the communication messages of the first device during the process of casting the screen to the second device. After monitoring the communication message, the communication message is obtained by obtaining the follow-up message displayed by the second device. The status information of the video stream determines whether the user is following the training video stream played by the second device, and then sends a control instruction to the second device according to the obtained status information of the following video stream displayed by the second device to control the second device. Display notification content, that is, by obtaining the status information of the training video stream displayed by the second device, determine whether the user is following the training video stream played by the second device, and then control the control according to whether the user is following the training video stream played by the second device. The second device displays the notification content to avoid directly sending the notification content received by the first device to the second device when the user is following the training video stream played by the second device, pausing the training video stream played by the second device and following the training. Video streaming makes it impossible for users in the training state to respond in time, reducing the user experience.
图30A为根据一些实施例的另一种通信消息处理方法的流程示意图,图30B为根据一些实施例的另一种通信消息处理方法的信号流程示意图,结合图30A和图30B,步骤S300的实施方式包括:Figure 30A is a schematic flow diagram of another communication message processing method according to some embodiments. Figure 30B is a schematic signal flow diagram of another communication message processing method according to some embodiments. With reference to Figure 30A and Figure 30B, the implementation of step S300 Methods include:
S301、当第二设备显示的跟练视频流的状态信息为跟练状态时,发送第一控制指令至第二设备,以控制第二设备显示第一通知内容对应的文本。S301. When the status information of the follow-up video stream displayed by the second device is the follow-up state, send a first control instruction to the second device to control the second device to display text corresponding to the first notification content.
在S3011当第二设备显示的跟练视频流的状态信息为跟练状态时发送第一控制指令至第二设备,在S3012控制第二设备显示第一通知内容对应的文本。In S3011, when the status information of the follow-up video stream displayed by the second device is in the follow-up state, a first control instruction is sent to the second device, and in S3012, the second device is controlled to display text corresponding to the first notification content.
在一些实施方式中,第二设备的控制器在监听到第一设备接收到通信消息,且获取的第二设备显示的跟练视频流的状态信息为跟练状态时,第二设备的控制器发送第一控制指令至第二设备,控制第二设备显示第一通知内容对应的文本,即仅仅将第一设备接收的通知内容对应的文本进行显示,而扬声器不播放通知内容对应的音频。In some implementations, when the controller of the second device monitors that the first device receives the communication message and obtains the status information of the follow-up video stream displayed by the second device as the follow-up state, the controller of the second device Send a first control instruction to the second device to control the second device to display the text corresponding to the first notification content, that is, only the text corresponding to the notification content received by the first device is displayed, and the speaker does not play the audio corresponding to the notification content.
在一些实施例中,若第一设备打开健身应用程序,健身应用程序的图像采集模块采集用户的跟练视频流并投屏至第二设备进行显示,在第一设备向第二设备投屏的过程中,第一设备的健身应用程序监听到第三设备向第一设备发送通信消息,例如第一设备接收到用户A的来电,此时,第一设备根据来电从用户通讯录中获取来电人信息,调用第一设备中间件发送给第二设备,第二设备的控制器在接收到第一设备的中间件发送的来电人信息后,将来电人信息对应的文本数据发送至第二设备进行投屏显示(来电人信息为通知内容),即仅仅在第二设备的显示屏显示用户A来电文本,不播放来电音频,例如用户设置的第一设备的来电音乐,避免第一设备的通知内容对应的音频在第二设备播放以致通知内容对应的音频打断第二设备播放的跟练视频流和训练视频流。In some embodiments, if the first device opens a fitness application, the image collection module of the fitness application collects the user's follow-up video stream and projects it to the second device for display. When the first device projects the screen to the second device, During the process, the fitness application of the first device monitors the communication message sent by the third device to the first device. For example, the first device receives an incoming call from user A. At this time, the first device obtains the caller from the user's address book based on the incoming call. Information is sent to the second device by calling the middleware of the first device. After receiving the caller information sent by the middleware of the first device, the controller of the second device sends the text data corresponding to the caller information to the second device for processing. Screen projection display (the caller information is the notification content), that is, only the text of user A's call is displayed on the display screen of the second device, and the incoming call audio is not played, such as the incoming call music set by the user, to avoid the notification content of the first device The corresponding audio is played on the second device so that the audio corresponding to the notification content interrupts the follow-up video stream and the training video stream played by the second device.
S302、当第二设备显示的跟练视频流的状态信息为暂停状态时,发送第二控制指令至第二设备,以控制第二设备显示第二通知内容对应的文本,并控制扬声器播放第二通知内容对应的音频。S302. When the status information of the follow-up video stream displayed by the second device is in the paused state, send a second control instruction to the second device to control the second device to display the text corresponding to the second notification content and control the speaker to play the second notification content. The audio corresponding to the notification content.
在S3021当第二设备显示的跟练视频流的状态信息为暂停状态时发送第二控制指令至第二设备,在S3022控制第二设备显示第二通知内容对应的文本并控制扬声器播放第二通知内容对应的音频。In S3021, when the status information of the follow-up video stream displayed by the second device is in the paused state, a second control instruction is sent to the second device. In S3022, the second device is controlled to display the text corresponding to the second notification content and control the speaker to play the second notification. The audio corresponding to the content.
在一些实施方式中,第二设备的控制器在监听到第一设备接收到通信消息,且获取的第二设备显示的跟练视频流的状态信息为暂停状态时,第二设备的控制器发送第二控制指令至第二设备,第二通知内容对应的文本,并控制扬声器播放第二通知内容对应的音频,即不仅将第一设备接收的通知内容对应的文本进行显示,而且播放通知内容对应的音频。In some implementations, when the controller of the second device monitors that the first device receives the communication message and obtains the status information of the follow-up video stream displayed by the second device in the paused state, the controller of the second device sends The second control instruction is sent to the second device, the text corresponding to the second notification content, and the speaker is controlled to play the audio corresponding to the second notification content, that is, not only the text corresponding to the notification content received by the first device is displayed, but also the text corresponding to the notification content is played. audio.
在一些实施例中,若第一设备打开健身应用程序,健身应用程序的图像采集模块采集用户的跟练视频流并投屏至第二设备进行显示,在第一设备向第二设备投屏的过程中,第一设备的健身应用程序监听到用户A的来电,此时,第一设备根据来电从用户通讯录中获取来电人信息,调用第一设备中间件发送给第二设备,第二设备的服务器在接收到第一设备的中间件发送的来电人信息后,将来电人信息对应的文本数据发送至第二设备进行投屏显示,并播放第一设备设置的来电音乐,实现用户在暂停跟练状态时,通过第二设备显示通信消息对应的文本数据以及播放音频数据。In some embodiments, if the first device opens a fitness application, the image collection module of the fitness application collects the user's follow-up video stream and projects it to the second device for display. When the first device projects the screen to the second device, During the process, the fitness application of the first device monitors the incoming call from user A. At this time, the first device obtains the caller information from the user's address book according to the incoming call, calls the first device middleware and sends it to the second device. The second device After receiving the caller information sent by the middleware of the first device, the server sends the text data corresponding to the caller information to the second device for screen projection, and plays the incoming call music set by the first device, so that the user can pause the call. In the follow-up state, text data corresponding to the communication message is displayed and audio data is played through the second device.
图31A为根据一些实施例的又一种通信消息处理方法的流程示意图,图31B为根据一些实施例的又一种通信消息处理方法的信号流程示意图,本公开实施例是在图30A对应的实施例的基础上,如图31A 和图31B所示,通信消息处理方法还包括:Figure 31A is a schematic flow diagram of yet another communication message processing method according to some embodiments. Figure 31B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments. The embodiment of the present disclosure is the implementation corresponding to Figure 30A Based on the example, as shown in Figure 31A and Figure 31B, the communication message processing method also includes:
S303、当第二设备显示的跟练视频流的状态信息为跟练状态时,响应于第二设备接收的暂停跟练指示信号,控制显示器显示通知内容对应的文本,并控制扬声器播放通知内容对应的音频。S303. When the status information of the follow-up video stream displayed by the second device is in the follow-up state, in response to the pause follow-up instruction signal received by the second device, control the display to display the text corresponding to the notification content, and control the speaker to play the corresponding text audio.
在S3031接收暂停跟练指示信号,在S3032发送第二控制指令至第二设备,在S3033控制第二设备的显示器显示通知内容对应的文本并控制扬声器播放通知内容对应的音频。In S3031, a pause follow-up instruction signal is received, in S3032, a second control instruction is sent to the second device, and in S3033, the display of the second device is controlled to display the text corresponding to the notification content and the speaker is controlled to play the audio corresponding to the notification content.
在一些实施方式中,当监听到通信消息,且第二设备显示的跟练视频流的状态信息为跟练状态时,通过控制显示器显示通知内容对应的文本,以提示用户有通信消息接入,在不影响用户跟练训练视频流的基础上,可以保证用户正常接收通信消息。而用户可基于显示器显示通知内容对应的文本及时接收到有通信消息接入的提示信息,此时,用户可以通过语音控制或者控制设备控制第二设备显示的训练视频流暂停,例如,用户通过语音控制第二设备暂停训练视频流,第二设备响应用户输出的语音控制信号,并暂停训练视频流,此时,控制器响应第二设备接收的暂停跟练指示信息,即控制器接收到第二设备的训练视频流暂停播放的信号后,控制显示器显示通知内容对应的文本,并控制扬声器播放通知内容对应的音频,即在接收到用户暂停第二设备播放的训练视频流的指示信号后,通过控制显示器显示通知内容对应的文本,并控制扬声器播放通知内容对应的音频,保证用户可以实现远距离接收通知内容。In some embodiments, when the communication message is monitored and the status information of the follow-up video stream displayed by the second device is the follow-up state, text corresponding to the notification content is displayed on the display to prompt the user that there is access to the communication message. On the basis of not affecting the user's follow-up training video stream, it can ensure that the user receives communication messages normally. The user can promptly receive prompt information that a communication message has been accessed based on the text corresponding to the notification content displayed on the display. At this time, the user can control the pause of the training video stream displayed by the second device through voice control or control device. For example, the user can use voice control to pause the training video stream displayed on the second device. Control the second device to pause the training video stream. The second device responds to the voice control signal output by the user and pauses the training video stream. At this time, the controller responds to the pause follow-up instruction information received by the second device, that is, the controller receives the second After receiving a signal indicating that the training video stream of the device is paused, the display is controlled to display the text corresponding to the notification content, and the speaker is controlled to play the audio corresponding to the notification content. That is, after receiving the instruction signal from the user to pause the training video stream played by the second device, through Control the display to display text corresponding to the notification content, and control the speaker to play the audio corresponding to the notification content, ensuring that users can receive notification content from a distance.
图32A为根据一些实施例的又一种通信消息处理方法的流程示意图,图32B为根据一些实施例的又一种通信消息处理方的信号流程示意图,本公开实施例是在图30A对应的实施例的基础上,如图32A和图32B所示,通信消息处理方法还包括:Figure 32A is a schematic flow diagram of another communication message processing method according to some embodiments. Figure 32B is a schematic signal flow diagram of another communication message processing method according to some embodiments. The embodiment of the present disclosure is the implementation corresponding to Figure 30A Based on the example, as shown in Figure 32A and Figure 32B, the communication message processing method also includes:
S304、当第二设备显示的跟练视频流的状态信息为跟练状态时,响应于第二设备接收的触发操作,发送第一指示指令至第一设备,以指示第一设备打开通知内容对应的应用。S304. When the status information of the follow-up video stream displayed by the second device is in the follow-up state, in response to the trigger operation received by the second device, send a first instruction instruction to the first device to instruct the first device to open the notification content corresponding Applications.
在S3040接收触发操作,在S3041发送第一控制指令至第一设备,在S3042第一设备打开通知内容对应的应用。A trigger operation is received in S3040, a first control instruction is sent to the first device in S3041, and the first device opens an application corresponding to the notification content in S3042.
在一些实施例中,触发操作包括打开操作,触发操作可基于控制设备进行,也可基于语音控制。In some embodiments, the triggering operation includes an opening operation, and the triggering operation can be performed based on a control device or based on voice control.
当第二设备显示的跟练视频流的状态信息为跟练状态时,根据一些实施方式,用户可以通过语音控制或者控制设备控制触发第二设备显示的通知内容,此时,控制器响应用户在第二设备的的触发操作,发送第一指示指令至第一设备,在第一设备打开通知内容对应的应用/功能。When the status information of the follow-up video stream displayed by the second device is in the follow-up state, according to some embodiments, the user can trigger the notification content displayed by the second device through voice control or control device control. At this time, the controller responds to the user's The second device triggers the operation, sends the first instruction instruction to the first device, and opens the application/function corresponding to the notification content on the first device.
在一些实施例中,若第一设备监听到应用程序A中有通信消息,通信消息为用户A接收到用户B的视频通话,在第二设备显示的跟练视频流的状态信息为跟练状态时,第二设备以消息提示的方式在第二设备显示该通知内容对应的文本“用户B的视频通话”,此时,若用户触发第二设备显示的通知内容对应的文本“用户B的视频通话”,控制器响应用户在第二设备触发的通知内容对应的文本,并发送第一指示指令至第一设备,以指示第一设备打开应用程序A。In some embodiments, if the first device monitors a communication message in application A, the communication message is that user A receives a video call from user B, and the status information of the follow-up video stream displayed on the second device is the follow-up status. At this time, the second device displays the text "User B's video call" corresponding to the notification content on the second device in the form of a message prompt. At this time, if the user triggers the text corresponding to the notification content "User B's video call" displayed on the second device. "Call", the controller responds to the text corresponding to the notification content triggered by the user on the second device, and sends a first instruction instruction to the first device to instruct the first device to open application A.
S305、控制显示器暂停播放训练视频流和跟练视频流,并控制扬声器播放通知内容对应的音频。S305. Control the display to pause the training video stream and the follow-up video stream, and control the speaker to play the audio corresponding to the notification content.
在S3051发送第二控制指令至第二设备;在S3052第二设备的显示器暂停播放训练视频流和跟练视频流,并控制扬声器播放通知内容对应的音频。In S3051, a second control instruction is sent to the second device; in S3052, the display of the second device pauses playing the training video stream and the follow-up video stream, and controls the speaker to play audio corresponding to the notification content.
当第二设备显示的跟练视频流的状态信息为跟练状态时,在一些实施例中,用户可以通过语音控制或者控制设备控制触发第二设备显示的通知内容对应的文本,此时,控制器响应用户在第二设备的触发操作,控制显示器暂停播放训练视频流和跟练视频流,并控制扬声器播放通知内容对应的音频。When the status information of the follow-up video stream displayed by the second device is in the follow-up state, in some embodiments, the user can trigger the text corresponding to the notification content displayed by the second device through voice control or control device control. At this time, control The controller responds to the user's trigger operation on the second device, controls the display to pause and play the training video stream and the follow-up video stream, and controls the speaker to play the audio corresponding to the notification content.
在一些实施例中,若第一设备监听到应用程序A中有通信消息,通信消息为用户A接收到用户B的视频通话,在第二设备显示的跟练视频流的状态信息为跟练状态时,第二设备以消息提示的方式在第二设备显示该通知内容对应的文本“用户B的视频通话”,此时,若用户触发第二设备显示的通知内容对应的文本“用户B的视频通话”,控制器响应用户在第二设备触发的通知内容对应的文本,控制显示器暂停播放训练视频流和跟练视频流,并控制扬声器播放通知内容对应的音频。In some embodiments, if the first device monitors a communication message in application A, the communication message is that user A receives a video call from user B, and the status information of the follow-up video stream displayed on the second device is the follow-up status. At this time, the second device displays the text "User B's video call" corresponding to the notification content on the second device in the form of a message prompt. At this time, if the user triggers the text corresponding to the notification content "User B's video call" displayed on the second device. "Call", the controller responds to the text corresponding to the notification content triggered by the user on the second device, controls the display to pause the playback of the training video stream and the follow-up video stream, and controls the speaker to play the audio corresponding to the notification content.
图33A为根据一些实施例的又一种通信消息处理方法的流程示意图,图33B为根据一些实施例的又一种通信消息处理方法的信号流程示意图,本公开实施例是在图32A对应的实施例的基础上,当通信消息处理方法包括步骤S304时,所述方法还包括:Figure 33A is a schematic flow diagram of yet another communication message processing method according to some embodiments. Figure 33B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments. The embodiment of the present disclosure is the corresponding implementation in Figure 32A Based on the example, when the communication message processing method includes step S304, the method also includes:
S306、监听第一设备的通信消息对应的音视频的通信状态。S306. Monitor the communication status of the audio and video corresponding to the communication message of the first device.
S307、当第一设备的通信消息对应的音视频的通信状态由通信中状态转为通信结束状态,建立第一设备和第二设备的投屏通信通道。S307. When the communication state of the audio and video corresponding to the communication message of the first device changes from the communication in progress state to the communication end state, establish a screen projection communication channel between the first device and the second device.
在S3071监听到第一设备的通信消息对应的音视频的通信状态由通信中状态转为通信结束状态,在S3072通信通道再次建立。In S3071, the communication state of the audio and video corresponding to the communication message of the first device is monitored from the communication in progress state to the communication end state, and the communication channel is established again in S3072.
当第二设备显示的跟练视频流的状态信息为跟练状态时,用户可通过在第二设备触发第二设备显示的通知内容对应的文本,进而使得控制器发送第一指示指令至第一设备,使得第一设备打开通知内容对应的应用。此时,用户可以实现在第一设备的应用上接听通信消息,由于第一设备接听了通信消息,此时第一设备退出向第二设备投屏。当用户在第一设备接听通信消息后,控制器监听第一设备通信消息对应的音视 频的状态信息,判断第一设备结束通信消息的时间节点,当控制器监听到第一设备的通信消息对应的音视频的通信状态由通信中状态转为通信结束状态时,第一设备可再次发送投屏请求,控制器响应第一设备发送的投屏请求,将投屏请求发送至第二设备,实现第一设备和第二设备的投屏通道的再次建立。When the status information of the follow-up video stream displayed by the second device is in the follow-up state, the user can trigger the text corresponding to the notification content displayed by the second device on the second device, thereby causing the controller to send the first instruction instruction to the first instruction. device, causing the first device to open the application corresponding to the notification content. At this time, the user can answer the communication message on the application of the first device. Since the first device has answered the communication message, the first device exits and casts the screen to the second device. After the user answers the communication message on the first device, the controller monitors the status information of the audio and video corresponding to the communication message of the first device, and determines the time node when the first device ends the communication message. When the controller monitors the communication message corresponding to the first device, When the audio and video communication status changes from the communication state to the communication end state, the first device can send a screen casting request again, and the controller responds to the screen casting request sent by the first device and sends the screen casting request to the second device to achieve The screen projection channel between the first device and the second device is established again.
图34A为根据一些实施例的又一种通信消息处理方法的流程示意图,图34B为根据一些实施例的又一种通信消息处理方法的信号流程示意图,本公开实施例是在图32A对应的实施例的基础上,当通信消息处理方法包括步骤S305时,所述方法还包括:Figure 34A is a schematic flow diagram of yet another communication message processing method according to some embodiments. Figure 34B is a schematic signal flow diagram of yet another communication message processing method according to some embodiments. The embodiment of the present disclosure is the implementation corresponding to Figure 32A Based on the example, when the communication message processing method includes step S305, the method also includes:
S308、在第二设备包括通知内容对应的应用时,通过第二设备的应用打开通知内容。S308. When the second device includes an application corresponding to the notification content, open the notification content through the application of the second device.
在S3081确定第二设备包括通知内容对应的应用,在S3082通过第二设备的应用打开通知内容。In S3081, it is determined that the second device includes an application corresponding to the notification content, and in S3082, the notification content is opened through the application of the second device.
S309、监听通信消息对应的音视频的通信状态。S309. Monitor the communication status of the audio and video corresponding to the communication message.
S310、当第二设备的通信消息对应的音视频的通信状态由通信中状态转为通信结束状态,控制显示器继续播放训练视频流和跟练视频流。S310. When the communication status of the audio and video corresponding to the communication message of the second device changes from the communication state to the communication end state, control the display to continue playing the training video stream and the follow-up video stream.
在S3101确定第二设备的通信消息对应的音视频的通信状态由通信中状态转为通信结束状态,在S3102发送第二控制指令至第二设备,在S3103控制显示器继续播放训练视频流和跟练视频流。In S3101, it is determined that the communication status of the audio and video corresponding to the communication message of the second device changes from the communication state to the communication end state. In S3102, a second control instruction is sent to the second device. In S3103, the display is controlled to continue playing the training video stream and following the training. Video streaming.
而当第二设备显示的跟练视频流的状态信息为跟练状态时,用户可通过在第二设备触发打开第二设备显示的通知内容对应的文本,进而控制第二设备暂停播放训练视频流和跟练视频流并播放通知内容对应的音频,此时,在第二设备包括通知内容对应的应用时,用户可以通过第二设备打开通知内容,实现在第二设备接听通信消息,由于第二设备接听了通信消息,此时第二设备播放的跟练视频流和训练视频流处于暂停状态。当用户在第二设备接听通信消息后,控制器监听第二设备通信消息对应的音视频的状态信息,判断第二设备结束通信消息的时间节点,当控制器监听到第二设备的通信消息对应的音视频的通信状态由通信中状态转为通信结束状态时,控制显示器继续播放训练视频流和跟练视频流。When the status information of the follow-up video stream displayed on the second device is in the follow-up state, the user can trigger and open the text corresponding to the notification content displayed on the second device, thereby controlling the second device to pause the playback of the training video stream. and follow the video stream and play the audio corresponding to the notification content. At this time, when the second device includes an application corresponding to the notification content, the user can open the notification content through the second device to receive the communication message on the second device. Since the second device The device answered the communication message, and at this time, the follow-up video stream and training video stream played by the second device were paused. After the user answers the communication message on the second device, the controller monitors the status information of the audio and video corresponding to the communication message of the second device, and determines the time node when the second device ends the communication message. When the controller monitors the communication message corresponding to the second device, When the audio and video communication status changes from the communication status to the communication end status, the control display continues to play the training video stream and the follow-up video stream.
图35A为根据一些实施例的又一种通信消息处理方法的流程示意图,图35B为根据一些实施例的又一种通信消息处理方法的信号流程示意图,本公开实施例是在图29A对应的实施例的基础上,获取第二设备显示的跟练视频流的状态信息包括:Figure 35A is a schematic flow diagram of yet another communication message processing method according to some embodiments. Figure 35B is a signal flow schematic diagram of yet another communication message processing method according to some embodiments. The embodiment of the present disclosure is the corresponding implementation in Figure 29A Based on the example, obtaining the status information of the follow-up video stream displayed by the second device includes:
S201、在监测到第一设备接收的通信消息的提示时长大于或等于预设阈值时,获取第二设备显示的跟练视频流的状态信息。S201. When it is detected that the prompt duration of the communication message received by the first device is greater than or equal to the preset threshold, obtain the status information of the follow-up video stream displayed by the second device.
在S2011监测到第一设备接收的通信消息的提示时长大于或等于预设阈值,在S2012获取第二设备显示的跟练视频流的状态信息。In S2011, it is detected that the prompt duration of the communication message received by the first device is greater than or equal to the preset threshold, and in S2012, status information of the follow-up video stream displayed by the second device is obtained.
通过监听通信消息的提示时长,在通信消息的提示时长大于或等于预设阈值时,获取第二设备显示的跟练视频流的状态信息,而当通信消息的提示时长小于预设阈值时,保证第二设备正常显示第一设备投屏的跟练视频流,则判定第一设备接收的通信消息为无用通信消息,无需将通信消息接入第二设备。By monitoring the prompt duration of the communication message, when the prompt duration of the communication message is greater than or equal to the preset threshold, the status information of the follow-up video stream displayed by the second device is obtained, and when the prompt duration of the communication message is less than the preset threshold, it is ensured that The second device normally displays the follow-up video stream projected on the screen of the first device, and then determines that the communication message received by the first device is a useless communication message, and there is no need to access the communication message to the second device.
本公开实施例提供的一种显示设备,显示设备包括:显示器;控制器,被配置为:在第一设备向第二设备投屏的过程中,对第一设备的通信消息进行监听;在监听到通信消息,获取第二设备显示的跟练视频流的状态信息,状态信息包括跟练状态和暂停状态,通信消息表征第三设备向第一设备发送的通信消息;根据第二设备显示的跟练视频流的状态信息,发送控制指令至第二设备,以控制第二设备显示通知内容,不同控制指令对应的显示器显示的通知内容不同。An embodiment of the present disclosure provides a display device. The display device includes: a display; and a controller configured to: monitor the communication messages of the first device during the process of projecting the screen from the first device to the second device; to the communication message, and obtain the status information of the follow-up video stream displayed by the second device. The status information includes the follow-up state and the pause state. The communication message represents the communication message sent by the third device to the first device; according to the follow-up video stream displayed by the second device, According to the status information of the video stream, a control instruction is sent to the second device to control the second device to display the notification content. The notification content displayed on the monitor corresponding to different control instructions is different.
本公开实施例提供的显示设备,在第一设备向第二设备投屏的过程中,对第一设备的通信消息进行监听;在监听到通信消息,获取第二设备显示的跟练视频流的状态信息,状态信息包括跟练状态和暂停状态;根据第二设备显示的跟练视频流的状态信息,发送控制指令至第二设备,以控制第二设备显示通知内容,不同控制指令对应的显示器显示的通知内容不同,保证当第二设备显示的跟练视频流的状态信息为跟练状态时,第一设备接收的第三设备发送的通信消息不会影响第二设备显示的跟练视频流和训练视频流,提高用户的使用感受。The display device provided by the embodiment of the present disclosure monitors the communication messages of the first device during the process of the first device projecting the screen to the second device; and after monitoring the communication messages, obtains the content of the follow-up video stream displayed by the second device. Status information, the status information includes follow-up status and pause status; send control instructions to the second device according to the status information of the follow-up video stream displayed by the second device to control the second device to display notification content, and monitors corresponding to different control instructions The displayed notification content is different to ensure that when the status information of the follow-up video stream displayed by the second device is in the follow-up state, the communication message sent by the third device received by the first device will not affect the follow-up video stream displayed by the second device. and training video streams to improve users’ experience.
根据一些实施方式,控制器具体被配置为:当第二设备显示的跟练视频流的状态信息为跟练状态时,发送第一控制指令至第二设备,以控制第二设备显示第一通知内容对应的文本;当第二设备显示的跟练视频流的状态信息为暂停状态时,发送第二控制指令至第二设备,以控制第二设备显示第二通知内容对应的文本,并控制扬声器播放第二通知内容对应的音频。According to some embodiments, the controller is specifically configured to: when the status information of the follow-up video stream displayed by the second device is the follow-up state, send a first control instruction to the second device to control the second device to display the first notification. Text corresponding to the content; when the status information of the follow-up video stream displayed by the second device is in a paused state, send a second control instruction to the second device to control the second device to display the text corresponding to the second notification content and control the speaker Play the audio corresponding to the second notification content.
根据一些实施方式,控制器还被配置为:当第二设备显示的跟练视频流的状态信息为跟练状态时,响应于第二设备接收的暂停跟练指示信号,控制显示器显示通知内容对应的文本,并控制扬声器播放通知内容对应的音频。According to some embodiments, the controller is further configured to: when the status information of the follow-up video stream displayed by the second device is the follow-up state, in response to the pause follow-up instruction signal received by the second device, control the display to display the notification content corresponding to text, and controls the speaker to play the audio corresponding to the notification content.
本公开还提供一种电子设备,包括:处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现上述方法实施例的步骤。The present disclosure also provides an electronic device, including: a processor, the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, the steps of the above method embodiments are implemented.
图36为本公开提供的一种电子设备的结构示意图,图36示出了适于用来实现本发明一些实施方式的电子设备的框图。图36显示的电子设备仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 36 is a schematic structural diagram of an electronic device provided by the present disclosure. FIG. 36 shows a block diagram of an electronic device suitable for implementing some embodiments of the present invention. The electronic device shown in FIG. 36 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.
如图36所示,电子设备800以通用计算设备的形式表现。电子设备800的组件可以包括但不限于:一个或者多个处理器810,系统存储器820,连接不同系统组件(包括系统存储器820和处理器)的总线830。As shown in Figure 36, electronic device 800 is embodied in the form of a general computing device. The components of electronic device 800 may include, but are not limited to: one or more processors 810, system memory 820, and a bus 830 connecting different system components (including system memory 820 and processors).
总线830表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。 Bus 830 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics accelerated port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect ( PCI) bus.
电子设备800典型地包括多种计算机系统可读非易失性存储介质。这些介质可以是任何能够被电子设备800访问的介质,包括易失性和非易失性介质,可移动的和不可移动的介质。 Electronic device 800 typically includes a variety of computer system readable non-volatile storage media. These media can be any media that can be accessed by electronic device 800, including volatile and nonvolatile media, removable and non-removable media.
系统存储器820可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)840和/或高速缓存存储器850。电子设备800可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统860可以用于读写不可移动的、非易失性磁介质(通常称为“硬盘驱动器”)。可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM、DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线830相连。系统存储器820可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明实施例各实施例的功能。 System memory 820 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 840 and/or cache memory 850 . Electronic device 800 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 860 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as "hard drives"). Disk drives may be provided for reading and writing from removable non-volatile disks (e.g., "floppy disks"), and for reading and writing from removable non-volatile optical disks (e.g., CD-ROMs, DVD-ROMs, or other optical media). CD-ROM drive. In these cases, each drive may be connected to bus 830 through one or more data media interfaces. System memory 820 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.
具有一组(至少一个)程序模块870的程序/实用工具880,可以存储在例如系统存储器820中,这样的程序模块870包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块870通常执行本发明实施例所描述的实施例中的功能和/或方法。A program/utility 880 having a set of (at least one) program modules 870, including but not limited to an operating system, one or more applications, other program modules, and programs, may be stored, for example, in system memory 820 Data, each of these examples or some combination may include an implementation of a network environment. Program modules 870 generally perform functions and/or methods in the described embodiments of the present invention.
处理器810通过运行存储在系统存储器820中的多个程序中的至少一个程序,从而执行各种功能应用以及信息处理,例如实现本发明实施例所提供的方法实施例。The processor 810 executes at least one program among multiple programs stored in the system memory 820 to execute various functional applications and information processing, for example, to implement the method embodiments provided by the embodiments of the present invention.
终端设备可以向显示设备实施投屏操作。但是,相关技术中,当用户跟练显示设备播放的训练视频流的过程中,终端设备采集用户跟练视频流并将跟练视频流投屏到显示设备的过程中,终端设备将采集的用户跟练视频流进行特效渲染后发送至显示设备,但是终端设备对用户跟练视频流进行特效渲染的过程势必会导致显示设备播放的训练视频流与跟练视频流之间无法同步播放,降低了用户的使用体验。The terminal device can perform screencasting operations to the display device. However, in the related technology, when the user follows the training video stream played by the display device, and the terminal device collects the user's follow-up video stream and projects the follow-up video stream to the display device, the terminal device will collect the user's training video stream. The follow-up video stream is rendered with special effects and then sent to the display device. However, the process of the terminal device rendering special effects on the user's follow-up video stream will inevitably lead to the inability to synchronize playback between the training video stream played by the display device and the follow-up video stream, which reduces the User experience.
本公开实施例的显示设备和投屏方法可以进一步实现:当显示设备接收终端设备发送的已渲染的跟练视频流后,通过比对确定显示设备播放的训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像动作不匹配时,通过发送第一指示信号给终端设备,以指示终端设备发送未渲染的跟练视频流,即显示设备直接接收终端设备发送的未渲染的跟练视频流。因此,可以减少因终端设备对跟练视频流进行渲染操作的耗时导致显示设备显示的训练视频流与跟练视频流之间存在的显示延迟,保证显示设备显示的跟练视频流和训练视频流同步,提高用户的使用感受。The display device and the screen projection method of the embodiment of the present disclosure can be further implemented: after the display device receives the rendered follow-up video stream sent by the terminal device, it determines through comparison the training video stream played by the display device corresponding to the first playback moment. When the first training image does not match the first follow-up image action corresponding to the first playback moment in the rendered follow-up video stream, a first instruction signal is sent to the terminal device to instruct the terminal device to send the unrendered follow-up video. stream, that is, the display device directly receives the unrendered follow-up video stream sent by the terminal device. Therefore, it is possible to reduce the display delay between the training video stream displayed by the display device and the follow-up video stream due to the time-consuming operation of the terminal device rendering the follow-up video stream, and ensure that the follow-up video stream and training video displayed by the display device are Stream synchronization improves user experience.
根据本申请一些实施的投屏方法的投屏系统网络架构图可以参见图1B所示。The network architecture diagram of the screen projection system according to some implementations of the screen projection method of this application can be seen in Figure 1B.
终端设备300和显示设备200还可以包括渲染模块,用于提供音频或视频特效渲染服务,音频特效可以包括音频混响、变速、变调、限制、回声、压缩、增益控制、均衡控制等,视频特效可以包括美颜、美妆、人脸识别、二维贴纸、三维贴纸等。The terminal device 300 and the display device 200 may also include a rendering module for providing audio or video special effects rendering services. The audio special effects may include audio reverberation, speed change, pitch change, limitation, echo, compression, gain control, equalization control, etc., and video special effects It can include beauty, makeup, face recognition, 2D stickers, 3D stickers, etc.
图37A为根据一些实施例的一种投屏方法的流程示意图,图37B为根据一些实施例的一种投屏方法的信号流程示意图,图37C为根据一些实施例的一种交互示意图,结合图37A、图37B和图37C,投屏方法包括:Figure 37A is a schematic flow diagram of a screen casting method according to some embodiments. Figure 37B is a schematic signal flow diagram of a screen casting method according to some embodiments. Figure 37C is an interaction schematic diagram according to some embodiments. Combined with Figure 37A, Figure 37B and Figure 37C, the screen projection methods include:
S1000、响应于接收到的启动指令,触发显示器显示跟练界面。S1000. In response to the received start command, trigger the display to display the follow-up training interface.
其中,跟练界面设置有展示窗口和本地窗口,展示窗口用于展示训练视频流。Among them, the follow-up training interface is equipped with a display window and a local window, and the display window is used to display the training video stream.
启动指令可以为基于语音的启动指令,也可以为控制装置发送的启动指令,又或者为智能设备发送的启动指令。The startup instruction may be a voice-based startup instruction, a startup instruction sent by a control device, or a startup instruction sent by an intelligent device.
在一些实施例中,控制装置可以是遥控器,遥控器和显示设备的通信包括红外协议通信或蓝牙协议通信,及其他短距离通信方式,通过无线或有线方式来控制显示设备。用户可以通过遥控器上按键、语音输入、控制面板输入等输入用户指令,来控制显示设备。In some embodiments, the control device may be a remote controller. The communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-distance communication methods to control the display device through wireless or wired methods. Users can control the display device by inputting user commands through buttons on the remote control, voice input, control panel input, etc.
在一些实施例中,也可以使用智能设备(如移动终端、平板电脑、计算机、笔记本电脑等)以控制显示设备。例如,使用在智能设备上运行的应用程序控制显示设备。In some embodiments, smart devices (such as mobile terminals, tablets, computers, laptops, etc.) can also be used to control the display device. For example, control a display device using an application running on a smart device.
在一些实施例中,显示设备可以不使用上述的智能设备或控制设备接收指令,而是通过触摸或者手势等接收用户的控制。In some embodiments, the display device may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.
在一些实施例中,显示设备还可以采用除了控制装置和智能设备之外的方式进行控制,例如,可以通过显示设备设备内部配置的获取语音指令的模块直接接收用户的语音指令控制,也可以通过显示设备设备外部设置的语音控制设备来接收用户的语音指令控制。In some embodiments, the display device can also be controlled in a manner other than the control device and the smart device. For example, the display device can directly receive the user's voice command control through a module configured inside the display device to obtain voice commands, or it can be controlled through The voice control device is set externally to the display device to receive the user's voice command control.
S2000、从服务器获取跟练界面对应的训练视频流,并接收终端设备发送的已渲染的跟练视频流。S2000: Obtain the training video stream corresponding to the follow-up training interface from the server, and receive the rendered follow-up video stream sent by the terminal device.
在S20001从服务器获取跟练界面对应的训练视频流,在S20002接收终端设备发送的已渲染的跟练视频流。At S20001, the training video stream corresponding to the follow-up training interface is obtained from the server, and at S20002, the rendered follow-up video stream sent by the terminal device is received.
其中,已渲染的跟练视频流用于不经显示设备渲染直接在本地窗口显示。Among them, the rendered follow-up video stream is used to be displayed directly in the local window without being rendered by the display device.
显示器的展示界面展示的训练视频流从显示设备的服务器上获取。The training video stream displayed on the display interface of the display is obtained from the server of the display device.
在一些实施方式中,终端设备包括图像采集模块,在一些实施例中,图像采集模块可以为摄像头,基于终端设备的图像采集模块采集用户视频数据。In some embodiments, the terminal device includes an image acquisition module. In some embodiments, the image acquisition module may be a camera, and the user video data is collected based on the image acquisition module of the terminal device.
作为一种具体的实施方式,显示设备播放训练视频流,例如,健身训练视频流、舞蹈训练视频流,用户通过跟练显示设备播放的训练视频流,终端设备的图像采集模块采集用户跟练视频流。As a specific implementation manner, the display device plays a training video stream, for example, a fitness training video stream, a dance training video stream, a training video stream played by the user through follow-up training on the display device, and the image acquisition module of the terminal device collects the user's follow-up training video flow.
其中,设置终端设备与显示设备之间的距离小于预设距离阈值,且终端设备的图像采集模块的朝向与显示设备的显示屏朝向之间的角度小于预设角度阈值。Wherein, the distance between the terminal device and the display device is set to be less than a preset distance threshold, and the angle between the orientation of the image acquisition module of the terminal device and the orientation of the display screen of the display device is less than the preset angle threshold.
在本公开实施例中,当用户通过跟练显示设备播放的训练视频流进行连续肢体动作,例如,进行舞蹈动作、体操动作等,利用终端设备的图像采集模块采集用户跟练视频流。可以理解地,为了保持图像采集模块位置固定,防止发生抖动,终端设备可以设置于固定支架上,即与显示设备之间的距离小于预设距离阈值,且终端设备的图像采集模块的朝向与显示设备的显示屏朝向之间的角度小于预设角度阈值,保证用户可以跟练显示设备播放的训练视频流的同时,终端设备的图像采集模块可以采集到用户跟练视频流。In the embodiment of the present disclosure, when the user performs continuous body movements through the training video stream played by the training display device, for example, performing dance movements, gymnastics movements, etc., the image acquisition module of the terminal device is used to collect the user's training video stream. It can be understood that in order to keep the image acquisition module in a fixed position and prevent jitter, the terminal device can be set on a fixed bracket, that is, the distance to the display device is less than the preset distance threshold, and the image acquisition module of the terminal device is oriented in the same direction as the display. The angle between the display orientations of the device is less than the preset angle threshold, ensuring that the user can follow the training video stream played by the display device and at the same time, the image acquisition module of the terminal device can collect the user's follow-up video stream.
而为了保证用户的使用感受,现有技术中,终端设备的图像采集模块在采集到跟练视频流后,将采集到的的跟练视频流发送至渲染模块,通过渲染模块对跟练视频流进行渲染操作后发送至显示设备,保证在显示设备播放的跟练视频流是已渲染的跟练视频流。In order to ensure the user's experience, in the existing technology, after collecting the follow-up video stream, the image acquisition module of the terminal device sends the collected follow-up video stream to the rendering module, and uses the rendering module to process the follow-up video stream. After the rendering operation is performed, it is sent to the display device to ensure that the follow-up video stream played on the display device is the rendered follow-up video stream.
S3000、在训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像动作不匹配时,在训练视频流中查找与第一跟练图像动作相匹配的第二训练图像。S3000. When the action of the first training image corresponding to the first playback moment in the training video stream does not match the action of the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream, search the training video stream for the first training image corresponding to the first playback moment. A second training image that matches the actions of the training image.
在S30001确定训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像动作不匹配,在S30002在训练视频流中查找与第一跟练图像动作相匹配的第二训练图像。In S30001, it is determined that the first training image corresponding to the first playback moment in the training video stream does not match the action of the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream. In S30002, search for the match in the training video stream. A second training image that matches the actions of the first training image.
其中,第一播放时刻大于第二训练图像对应的第二播放时刻。The first playback time is greater than the second playback time corresponding to the second training image.
由于终端设备需要对采集的跟练视频流进行渲染操作,渲染操作会占用一定的时间,因此,可能会存在显示设备接收到的已渲染的跟练视频流与训练视频流不同步的问题,例如,在某个播放时刻训练视频流播放至第十帧画面,而已渲染的跟练视频流仅仅播放至第八帧画面,使得用户在显示设备观看的已渲染的跟练视频流与训练视频流为不同帧画面,用户无法确认是否与跟练视频流的动作保持一致,降低了用户使用感受。Since the terminal device needs to perform a rendering operation on the collected follow-up video stream, the rendering operation will take a certain amount of time. Therefore, there may be a problem that the rendered follow-up video stream received by the display device is out of sync with the training video stream, for example , at a certain playback moment, the training video stream is played to the tenth frame, but the rendered follow-up video stream is only played to the eighth frame, so that the rendered follow-up video stream and the training video stream viewed by the user on the display device are In different frames, the user cannot confirm whether the movements are consistent with the training video stream, which reduces the user experience.
基于现有技术存在的问题,本公开实施例中,在接收到终端设备发送的已渲染的跟练视频流后,首先获取显示设备播放的训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像,然后比较第一训练图像与第一跟练图像动作是否匹配,当第一训练图像与第一跟练图像动作不匹配时,此时表征显示设备播放的训练视频流与跟练视频流不同步,而训练视频流与跟练视频流不同步可能是因为终端设备需要对训练视频流进行渲染操作导致的,此时通过在训练视频流中查找与第一跟练图像相匹配的第二训练图像,即在训练视频流中查找第一播放时刻之前与第一跟练图像相匹配的第二训练图像以及该第二训练图像对应的第二播放时刻。Based on the problems existing in the existing technology, in the embodiment of the present disclosure, after receiving the rendered follow-up video stream sent by the terminal device, the first training image corresponding to the first playback moment in the training video stream played by the display device is first obtained. and the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream, and then compare whether the actions of the first training image and the first follow-up image match. When the actions of the first training image and the first follow-up image do not match, When matching, it means that the training video stream played by the display device is out of sync with the follow-up video stream. The out-of-sync between the training video stream and the follow-up video stream may be caused by the terminal device needing to render the training video stream. At this time By searching for the second training image that matches the first following training image in the training video stream, that is, searching for the second training image that matches the first following training image before the first playback moment and the second training image in the training video stream. The second playback moment corresponding to the training image.
在一些实施方式中,在训练视频流中查找与第一跟练图像动作相匹配的第二训练图像,包括:在训练视频流中,以第一播放时刻为起点,获取训练视频流的第一播放时刻的前预设时刻的候选训练图像,并发送候选训练图像和第一跟练图像至服务器;获取服务器对候选训练图像和第一跟练图像的比对结果;将与第一跟练图像的匹配程度满足预设阈值的所述候选训练图像确定为第二训练图像。In some embodiments, searching for the second training image that matches the action of the first training image in the training video stream includes: in the training video stream, taking the first playback moment as the starting point, obtaining the first training video stream Play the candidate training image at a preset time before the time, and send the candidate training image and the first follow-up image to the server; obtain the server's comparison result of the candidate training image and the first follow-up image; compare it with the first follow-up image The candidate training images whose matching degree meets the preset threshold are determined as second training images.
在一些实施例中,以显示设备播放的训练视频流的第一训练图像的第一播放时刻为起点,获取训练视频流的第一播放时刻的前预设时刻的候选训练图像,比较第一播放时刻的前一播放时刻的候选训练图像与第一跟练图像的匹配程度,当第一播放时刻的前一播放时刻的候选训练图像与第一跟练图像的匹配程度满足预设阈值时,确定第二训练图像为第一播放时刻的前一播放时刻对应的候选训练图像;当第一播放时刻的前一播放时刻的候选训练图像与第一跟练图像的匹配程度不满足预设阈值时,获取训练视频流的第一播放时刻的前两个时刻对应的候选训练图像,比较第一播放时刻的前两个播放时刻的候选训练图像与第一跟练图像的匹配程度,当第一播放时刻的前两个播放时刻的候选训练图像与第一跟练图像的匹配程度满足预设阈值时,确定第二训练图像为第一播放时刻的前两个播放时刻对应的候选训练图像,以此类推,依次比对各候选训练图像,直至确定第二训练图像,若各候选训练图像比对结束,未获取到与第一跟练图像的匹配程度满足预设阈值的候选图像时,此时,可以确定训练视频流中不存在第二训练图像。In some embodiments, taking the first playback moment of the first training image of the training video stream played by the display device as the starting point, obtaining candidate training images at a preset time before the first playback moment of the training video stream, and comparing the first playback moment The matching degree between the candidate training image at the previous playback moment and the first follow-up image is determined when the matching degree between the candidate training image at the previous playback moment and the first follow-up image meets the preset threshold. The second training image is the candidate training image corresponding to the playback moment before the first playback moment; when the matching degree of the candidate training image at the playback moment before the first playback moment and the first follow-up image does not meet the preset threshold, Obtain the candidate training images corresponding to the first two moments of the first playback moment of the training video stream, and compare the matching degree of the candidate training images of the first two playback moments of the first playback moment with the first follow-up image. When the first playback moment When the matching degree between the candidate training images of the first two playback moments and the first follow-up training image meets the preset threshold, the second training image is determined to be the candidate training image corresponding to the first two playback moments of the first playback moment, and so on. , compare each candidate training image in sequence until the second training image is determined. If the comparison of each candidate training image ends and no candidate image is obtained whose matching degree with the first follow-up image meets the preset threshold, at this time, you can Determine that the second training image does not exist in the training video stream.
在一些实施方式中,获取服务器对候选训练图像和第一跟练图像的比对结果的具体过程包括:In some embodiments, the specific process of obtaining the server's comparison results of the candidate training image and the first follow-up image includes:
服务器在获取到显示设备的控制器发送的候选训练图像和第一跟练图像后,首先提取候选训练图像的 第一图像特征点以及第一跟练图像的第二图像特征点,然后基于图像处理算法,对提取的候选训练图像的第一图像特征点和第一跟练图像的第二图像特征点进行比对,确定特征点比对结果。After acquiring the candidate training image and the first follow-up image sent by the controller of the display device, the server first extracts the first image feature point of the candidate training image and the second image feature point of the first follow-up image, and then based on image processing The algorithm compares the extracted first image feature points of the candidate training image and the second image feature point of the first follow-up image to determine the feature point comparison result.
S4000、在训练视频流中存在第二训练图像时,发送第一指示信号给终端设备,以指示终端设备发送未渲染的跟练视频流。S4000. When there is a second training image in the training video stream, send a first instruction signal to the terminal device to instruct the terminal device to send an unrendered follow-up video stream.
在S40001确定训练视频流中存在第二训练图像,在S40002发送第一指示信号给终端设备,在S40003终端设备发送未渲染的跟练视频流。In S40001, it is determined that the second training image exists in the training video stream, in S40002, the first instruction signal is sent to the terminal device, and in S40003, the terminal device sends the unrendered follow-up video stream.
当训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像动作不匹配,且训练视频流中存在第二训练图像时,此时表征显示设备播放的训练视频流与跟练视频流不同步,通过发送第一指示信号给终端设备,以指示终端设备发送未渲染的跟练视频流,由于显示设备接收的跟练视频流无需经过终端设备的渲染操作,即显示设备直接接收终端设备未渲染的跟练视频流,因此,可以减少因终端设备对跟练视频流进行渲染操作的耗时导致显示设备显示的训练视频流与跟练视频流之间存在的显示延迟。When the action of the first training image corresponding to the first playback moment in the training video stream does not match the action of the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream, and there is a second training image in the training video stream , at this time, it means that the training video stream played by the display device is out of synchronization with the follow-up video stream. The first instruction signal is sent to the terminal device to instruct the terminal device to send the unrendered follow-up video stream. Since the follow-up video stream received by the display device The stream does not need to go through the rendering operation of the terminal device, that is, the display device directly receives the unrendered follow-up video stream from the terminal device. Therefore, it can reduce the training video stream displayed by the display device due to the time-consuming rendering operation of the follow-up video stream by the terminal device. The display delay between the training video stream and the training video stream.
本公开实施例提供的投屏方法,首先响应于接收到的启动指令,触发显示器显示跟练界面,然后从服务器获取跟练界面对应的训练视频流,并接收终端设备发送的已渲染的跟练视频流,在训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像动作不匹配时,在训练视频流中查找与第一跟练图像动作相匹配的第二训练图像,最后在训练视频流中存在第二训练图像时,发送第一指示信号给终端设备,以指示终端设备发送未渲染的跟练视频流,即当显示设备接收终端设备发送的已渲染的跟练视频流后,通过比对确定显示设备播放的训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像动作不匹配时,通过发送第一指示信号给终端设备,以指示终端设备发送未渲染的跟练视频流,即显示设备直接接收终端设备未渲染的跟练视频流,因此,可以减少因终端设备对跟练视频流进行渲染操作的耗时导致显示设备显示的训练视频流与跟练视频流之间存在的显示延迟,保证显示设备显示的跟练视频流和训练视频流同步,提高用户的使用感受。The screen casting method provided by the embodiment of the present disclosure first responds to the received startup command, triggers the display to display the follow-up interface, then obtains the training video stream corresponding to the follow-up interface from the server, and receives the rendered follow-up sent by the terminal device. Video stream, when the first training image corresponding to the first playback moment in the training video stream does not match the first follow-up image action corresponding to the first playback moment in the rendered follow-up video stream, search the training video stream with The second training image matches the action of the first follow-up image. Finally, when the second training image exists in the training video stream, a first instruction signal is sent to the terminal device to instruct the terminal device to send an unrendered follow-up video stream, that is, After the display device receives the rendered follow-up video stream sent by the terminal device, it determines through comparison that the first training image corresponding to the first playback moment in the training video stream played by the display device and the rendered follow-up video stream corresponding to the first playback moment are compared. When the actions of the first follow-up image at a playback moment do not match, the first instruction signal is sent to the terminal device to instruct the terminal device to send the unrendered follow-up video stream, that is, the display device directly receives the unrendered follow-up video from the terminal device. stream, therefore, the display delay between the training video stream displayed by the display device and the follow-up video stream caused by the time-consuming rendering operation of the follow-up video stream by the terminal device can be reduced, ensuring that the follow-up video stream displayed by the display device is consistent with Training video streams are synchronized to improve user experience.
图38A为根据一些实施例的另一种投屏方法的流程示意图,图38B为根据一些实施例的另一种投屏方法的信号流程示意图,本公开实施例是上述实施例的基础上,结合图38A和图38B,当步骤S3000的一种具体实施方式包括:Figure 38A is a schematic flow diagram of another screen projection method according to some embodiments. Figure 38B is a signal flow diagram of another screen projection method according to some embodiments. The embodiments of the present disclosure are based on the above embodiments, combined with Figure 38A and Figure 38B, when a specific implementation of step S3000 includes:
S3001、获取训练视频流在第一播放时刻的第一训练图像,以及已渲染的跟练视频流中对应第一播放时刻的第一跟练图像。S3001. Obtain the first training image of the training video stream at the first playback moment, and the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream.
由于显示设备接收的跟练视频流是经过渲染后的跟练视频流,因此,终端设备播放的第一训练图像和第一跟练图像可能为不同的画面,此时,首先获取训练视频流在第一播放时刻的第一训练图像以及已渲染的跟练视频流中对应第一播放时刻的第一跟练图像。Since the follow-up video stream received by the display device is a rendered follow-up video stream, the first training image and the first follow-up image played by the terminal device may be different images. In this case, the training video stream is first obtained. The first training image at the first playback time and the first follow-up image corresponding to the first playback time in the rendered follow-up video stream.
S3002、在第一跟练图像与第一训练图像的动作匹配程度低于预设阈值时,从训练视频流中查找与第一跟练图像动作匹配程度满足预设阈值的第二训练图像。S3002. When the action matching degree between the first follow-up image and the first training image is lower than the preset threshold, search for a second training image whose action matching degree with the first follow-up image meets the preset threshold from the training video stream.
在获取到训练视频流在第一播放时刻的第一训练图像以及已渲染的跟练视频流中对应第一播放时刻的第一跟练图像后,首选确定第一跟练图像与第一训练图像的动作匹配程度,当第一训练图像与第一跟练图像的动作匹配程度低于预设阈值时,此时表征显示设备播放的训练视频流与跟练视频流不同步,而训练视频流与跟练视频流不同步的原因是由于终端设备对跟练视频流进行渲染操作后才发送至显示设备进行显示的,因此,跟练视频流播放进度相比较训练视频流播放进度慢,跟练视频流播放的跟练图像训练视频流已经播放过了,因此,可从训练视频流中查找与第一跟练图像动作匹配的第二训练图像。After obtaining the first training image of the training video stream at the first playback moment and the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream, the first follow-up image and the first training image are first determined The action matching degree of The reason why the follow-up video stream is out of sync is because the terminal device renders the follow-up video stream before sending it to the display device for display. Therefore, the playback progress of the follow-up video stream is slower than the playback progress of the training video stream. The training video stream of the follow-up image played by the stream has already been played. Therefore, the second training image matching the action of the first follow-up image can be found from the training video stream.
当投屏方法包括步骤S3001和步骤S3002时,此时步骤S4000的一种具体实施方式包括:When the screen projection method includes step S3001 and step S3002, a specific implementation of step S4000 includes:
S4001、在第一播放时刻与第二播放时刻的差值大于或等于预设差值时,发送第一指示信号给终端设备,以指示终端设备发送未渲染的跟练视频流。S4001. When the difference between the first playback time and the second playback time is greater than or equal to the preset difference, send a first instruction signal to the terminal device to instruct the terminal device to send an unrendered follow-up video stream.
在S40011、训练视频流中查找与第一跟练图像动作匹配程度满足预设阈值的第二训练图像,在S40012、判断在第一播放时刻与第二播放时刻的差值大于或等于预设差值,在S40013、控制器向终端设备发送第一指示信号,在S40014、终端设备向控制器发送未渲染的跟练视频流。In S40011, search the training video stream for a second training image whose action matching degree with the first training image meets the preset threshold. In S40012, determine that the difference between the first playback time and the second playback time is greater than or equal to the preset difference. value, in S40013, the controller sends a first instruction signal to the terminal device, and in S40014, the terminal device sends an unrendered follow-up video stream to the controller.
在一些实施方式中,当从训练视频流中查找与第一跟练图像动作匹配程度满足预设阈值的第二训练图像后,可以确定第二训练图像对应的第二播放时刻,根据第一训练图像的第一播放时刻以及第二训练图像的第二播放时刻,可以确定显示设备播放的训练视频流播放到哪一个播放时刻,以及显示设备播放的已渲染的跟练视频流播放到哪一个播放时刻,根据第一播放时刻与第二播放时刻的差值与预设差值的关系,确定显示设备播放的已渲染的跟练视频流与训练视频流的延迟时间的长短,当第一播放时刻与第二播放时刻的差值大于或等于预设差值时,此时,表征显示设备播放的已渲染的跟练视频流与训练视频流之间延迟时间过程,而造成显示设备播放的已渲染的跟练视频流与训练视频流之间有延迟的原因可能是终端设备需要对图像采集模块采集到的跟练视频流进行渲染处理,造成终端设备将跟练视频流数据发送至显示设备的延迟,为保证显示设备播放的跟练视频流与训练视频流的同步,此时,显示设备的控制器通过发送第一指示 信号给终端设备,指示终端设备发送未渲染的跟练视频流,显示设备的控制器直接接收终端设备的图像采集模块采集跟练视频流,不对跟练视频流进行渲染操作,避免因渲染操作造成显示设备播放的训练视频流与跟练视频流不同步的问题。In some embodiments, after searching for the second training image whose action matching degree with the first training image meets the preset threshold from the training video stream, the second playback moment corresponding to the second training image can be determined, according to the first training The first playback time of the image and the second playback time of the second training image can determine the playback time at which the training video stream played by the display device is played, and the playback time at which the rendered follow-up video stream played by the display device is played. time, based on the relationship between the difference between the first playback time and the second playback time and the preset difference, the length of the delay time between the rendered follow-up video stream and the training video stream played by the display device is determined. When the first playback time When the difference from the second playback time is greater than or equal to the preset difference, at this time, it represents the delay time process between the rendered follow-up video stream played by the display device and the training video stream, resulting in the rendered The reason for the delay between the follow-up video stream and the training video stream may be that the terminal device needs to render the follow-up video stream collected by the image acquisition module, causing a delay in the terminal device sending the follow-up video stream data to the display device. , in order to ensure the synchronization of the follow-up video stream played by the display device and the training video stream, at this time, the controller of the display device sends a first instruction signal to the terminal device, instructing the terminal device to send an unrendered follow-up video stream, and the display device The controller directly receives the image acquisition module of the terminal device to collect the follow-up video stream, and does not perform rendering operations on the follow-up video stream to avoid the problem of out-of-synchronization between the training video stream played by the display device and the follow-up video stream due to the rendering operation.
当投屏方法包括步骤S3001和步骤S3002时,此时步骤S4000的另一些实施方式包括:When the screen casting method includes step S3001 and step S3002, other implementations of step S4000 include:
S4002、在第一播放时刻与第二播放时刻的差值小于预设差值时,不发送第一指示信号给终端设备。S4002. When the difference between the first playback time and the second playback time is less than the preset difference, do not send the first instruction signal to the terminal device.
在S40021、终端设备向显示设备发送渲染的跟练视频流。In S40021, the terminal device sends the rendered follow-up video stream to the display device.
在一些实施例中,如图图38C和图38D所示,当第一播放时刻与第二播放时刻的差值小于预设差值时,表征显示设备播放的已渲染的跟练视频流与训练视频流之间延迟在用户可接收范围内,显示设备的控制器无需发送第一指示信号给终端设备,此时,显示设备正常接收终端设备发送的已渲染的跟练视频流,保证终端设备和显示设备显示的跟练视频流均为已渲染的跟练视频流,提高用户的使用感受。In some embodiments, as shown in FIGS. 38C and 38D , when the difference between the first playback moment and the second playback moment is less than the preset difference, it indicates that the rendered follow-up video stream played by the display device is different from the training video stream. The delay between video streams is within the acceptable range of the user, and the controller of the display device does not need to send the first instruction signal to the terminal device. At this time, the display device normally receives the rendered follow-up video stream sent by the terminal device, ensuring that the terminal device and The follow-up video streams displayed on the display device are all rendered follow-up video streams, which improves the user experience.
图39A为根据一些实施例的又一种投屏方法的流程示意图,图39B为根据一些实施例的又一种投屏方法的信号流程示意图,本公开实施例是上述实施例的基础上,结合图39A和图39B,投屏方法还包括:Figure 39A is a schematic flow diagram of another screen projection method according to some embodiments. Figure 39B is a signal flow diagram of another screen projection method according to some embodiments. The embodiments of the present disclosure are based on the above embodiments, combined with Figure 39A and Figure 39B, the screen projection method also includes:
S5000、接收终端设备发送的未渲染的跟练视频流。S5000: Receive the unrendered follow-up video stream sent by the terminal device.
当训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像动作不匹配时,此时,表征显示设备播放的已渲染的跟练视频流与训练视频流之间有延迟,而造成显示设备播放的已渲染的跟练视频流与训练视频流之间延迟的原因可能是终端设备需要对图像采集模块采集到的跟练视频流进行渲染处理,造成终端设备将跟练视频流数据发送至显示设备的延迟,为保证显示设备播放的跟练视频流与训练视频流的同步,此时,显示设备的控制器发送第一指示信号给终端设备,指示终端设备发送未渲染的跟练视频流,显示设备的控制器接收终端设备发送的未渲染的跟练视频流。When the action of the first training image corresponding to the first playback moment in the training video stream does not match the action of the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream, at this time, the rendered representation played by the display device There is a delay between the follow-up video stream and the training video stream. The reason for the delay between the rendered follow-up video stream played by the display device and the training video stream may be that the terminal device needs to collect the follow-up video stream collected by the image acquisition module. The video stream is rendered, causing a delay in the terminal device sending the follow-up video stream data to the display device. In order to ensure the synchronization of the follow-up video stream played by the display device and the training video stream, at this time, the controller of the display device sends the first The instruction signal is sent to the terminal device, instructing the terminal device to send an unrendered follow-up video stream, and the controller of the display device receives the unrendered follow-up video stream sent by the terminal device.
S6000、在未渲染的跟练视频流中确定和训练视频流的第一训练图像动作匹配的第二跟练图像。S6000. Determine the second training image in the unrendered training video stream that matches the action of the first training image of the training video stream.
由于在初始状态下,控制器接收终端设备发送的已渲染的跟练视频流,当显示器展示的训练视频流的第一训练图像和跟练视频流的第一跟练图像的动作不匹配时,为保证显示器展示的训练视频流和跟练视频流同步播放,控制器首先发送第一指示信号给终端设备,指示终端设备发送未渲染的跟练视频流,但由于显示器播放的已渲染的跟练视频流的播放进度比训练视频流的播放进度慢,控制器在获取到未渲染的跟练视频流后,若直接从第二播放时刻对未渲染的跟练视频流进行渲染操作并从第二播放时刻播放渲染操作后的跟练视频流,此时,显示器播放的跟练视频流和训练视频流依旧是不同步的。而本公开实施例中,在接收到终端设备发送的跟练视频流后,首先在未渲染的跟练视频流中确定和训练视频流的第一训练图像动作匹配的第二跟练图像。Since in the initial state, the controller receives the rendered follow-up video stream sent by the terminal device, when the actions of the first training image of the training video stream displayed on the display and the first follow-up image of the follow-up video stream do not match, In order to ensure that the training video stream and the follow-up video stream displayed on the monitor are played synchronously, the controller first sends a first instruction signal to the terminal device, instructing the terminal device to send an unrendered follow-up video stream. However, because the rendered follow-up video stream played on the monitor The playback progress of the video stream is slower than the playback progress of the training video stream. After the controller obtains the unrendered follow-up video stream, if the controller directly renders the unrendered follow-up video stream from the second playback time and starts the second The follow-up video stream after the rendering operation is played during playback. At this time, the follow-up video stream and the training video stream played by the monitor are still out of sync. In the embodiment of the present disclosure, after receiving the follow-up video stream sent by the terminal device, first the second follow-up image that matches the first training image action of the training video stream is determined in the unrendered follow-up video stream.
S7000、对未渲染的跟练视频流进行渲染操作后在显示器的本地窗口展示渲染后的跟练视频流,本地窗口展示的跟练视频流从第二跟练图像对应的播放时刻进行播放。S7000: Perform a rendering operation on the unrendered follow-up video stream and display the rendered follow-up video stream in the local window of the display. The follow-up video stream displayed in the local window is played from the playback time corresponding to the second follow-up image.
从未渲染的跟练视频流中确定和训练视频流的第一训练图像动作匹配的第二跟练图像后,对未渲染的跟练视频流进行渲染操作后在显示器的本地窗口展示渲染后的跟练视频流,且本地窗口展示的跟练视频流从第二跟练图像对应的播放时刻进行播放。After determining the second training image that matches the action of the first training image of the training video stream from the unrendered training video stream, perform a rendering operation on the non-rendered training video stream and display the rendered image in the local window of the display. Follow-up video stream, and the follow-up video stream displayed in the local window is played from the playback time corresponding to the second follow-up image.
但为了保证用户的使用感受,显示设备的控制器对未渲染的跟练视频流进行渲染操作后在显示设备播放,避免直接在显示设备播放未渲染的跟练视频流,而降低了用户的使用感受,即在显示设备播放的跟练视频流为渲染后的跟练视频流,在接收到终端设备播放未渲染的跟练视频流。However, in order to ensure the user experience, the controller of the display device renders the unrendered follow-up video stream and then plays it on the display device. This avoids playing the unrendered follow-up video stream directly on the display device, which reduces user experience. The feeling is that the follow-up video stream played on the display device is the rendered follow-up video stream, and the unrendered follow-up video stream played on the receiving terminal device.
作为一种实施方式,在训练视频流中存在第二训练图像时,发送第一指示信号给终端设备,以指示终端设备发送未渲染的跟练视频流之时,第一指示信号还用于指示终端设备暂停渲染操作。As an implementation manner, when there is a second training image in the training video stream, a first instruction signal is sent to the terminal device to instruct the terminal device to send an unrendered follow-up video stream. The first instruction signal is also used to indicate The end device pauses rendering operations.
为保证显示设备播放的跟练视频流与训练视频流的同步,显示设备的控制器通过直接接收终端设备的图像采集模块采集跟练视频流,避免因渲染操作造成显示设备播放的训练视频流与跟练视频流不同步的问题,此时,显示设备的控制器可以发送的第一指示信号还用于指示终端设备暂停渲染操作,降低终端设备的功耗。In order to ensure that the follow-up video stream played by the display device is synchronized with the training video stream, the controller of the display device collects the follow-up video stream by directly receiving the image acquisition module of the terminal device to avoid the rendering operation causing the training video stream played by the display device to be inconsistent with the training video stream. To address the problem of out-of-synchronization of video streams, at this time, the first instruction signal that the controller of the display device can send is also used to instruct the terminal device to pause the rendering operation and reduce the power consumption of the terminal device.
本公开实施例还提供的一种显示设备,显示设备包括:显示器;控制器,被配置为:响应于接收到的启动指令,触发显示器显示跟练界面,其中,跟练界面设置有展示窗口和本地窗口,展示窗口用于展示训练视频流;从服务器获取跟练界面对应的训练视频流,并接收终端设备发送的已渲染的跟练视频流,其中,已渲染的跟练视频流用于不经显示设备渲染直接在本地窗口显示;在训练视频流中对应第一播放时刻的第一训练图像与已渲染的跟练视频流中对应第一播放时刻的第一跟练图像动作不匹配时,在训练视频流中查找与第一跟练图像动作相匹配的第二训练图像,其中,第一播放时刻大于第二训练图像对应的第二播放时刻;在训练视频流中存在第二训练图像时,发送第一指示信号给终端设备,以指示终端设备发送未渲染的跟练视频流。An embodiment of the present disclosure also provides a display device. The display device includes: a display; and a controller configured to: in response to a received startup instruction, trigger the display to display a follow-up training interface, wherein the follow-up training interface is provided with a display window and The local window and the display window are used to display the training video stream; obtain the training video stream corresponding to the follow-up interface from the server, and receive the rendered follow-up video stream sent by the terminal device, where the rendered follow-up video stream is used without The display device renders directly in the local window; when the first training image corresponding to the first playback moment in the training video stream does not match the action of the first follow-up image corresponding to the first playback moment in the rendered follow-up video stream, in Search the training video stream for a second training image that matches the action of the first training image, where the first playback time is greater than the second playback time corresponding to the second training image; when there is a second training image in the training video stream, A first instruction signal is sent to the terminal device to instruct the terminal device to send an unrendered follow-up video stream.
作为一种实施方式,控制器,还被配置为:接收终端设备发送的未渲染的跟练视频流;在未渲染的跟练视频流中确定和训练视频流的第一训练图像动作匹配的第二跟练图像;对未渲染的跟练视频流进行渲染操作后在显示器的本地窗口展示渲染后的跟练视频流,本地窗口展示的跟练视频流从第二跟练图像对应的 播放时刻进行播放。As an implementation manner, the controller is further configured to: receive an unrendered follow-up video stream sent by the terminal device; determine in the unrendered follow-up video stream the first training image action that matches the training video stream. Second follow-up image; perform a rendering operation on the unrendered follow-up video stream and display the rendered follow-up video stream in the local window of the monitor. The follow-up video stream displayed in the local window starts from the playback time corresponding to the second follow-up image. Play.
作为一种实施方式,控制器,还被配置为:在第一播放时刻与第二播放时刻的差值小于预设差值时,不发送第一指示信号给终端设备。As an implementation manner, the controller is further configured to not send the first instruction signal to the terminal device when the difference between the first playback time and the second playback time is less than a preset difference.
本公开还提供一种电子设备,包括:处理器,所述处理器用于执行存储于存储器的计算机程序,所述计算机程序被处理器执行时实现上述方法实施例的步骤。The present disclosure also provides an electronic device, including: a processor, the processor is configured to execute a computer program stored in a memory, and when the computer program is executed by the processor, the steps of the above method embodiments are implemented.
为了方便解释,已经结合具体的实施方式进行了上述说明。但是,上述在一些实施例中讨论不是意图穷尽或者将实施方式限定到上述公开的具体形式。根据上述的教导,可以得到多种修改和变形。上述实施方式的选择和描述是为了更好的解释原理以及实际的应用,从而使得本领域技术人员更好的使用所述实施方式以及适于具体使用考虑的各种不同的变形的实施方式。For convenience of explanation, the above description has been made in conjunction with specific implementation modes. However, the above discussion of some embodiments is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed. Various modifications and variations are possible in light of the above teachings. The above embodiments are selected and described to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various modified embodiments suitable for specific use considerations.

Claims (25)

  1. 一种显示设备,包括:A display device including:
    显示器;monitor;
    控制器,与所述显示器连接,所述控制器被配置为:A controller, connected to the display, and the controller is configured to:
    响应于接收到的启动指令,在所述显示器显示跟练界面,其中,所述跟练界面包括第一窗口和第二窗口,所述第一窗口用于播放从服务器获取的训练视频流,所述第二窗口用于播放从终端设备接收的跟练视频流。In response to the received startup instruction, a follow-up training interface is displayed on the display, wherein the follow-up training interface includes a first window and a second window, and the first window is used to play the training video stream obtained from the server, so The second window is used to play the training video stream received from the terminal device.
  2. 根据权利要求1所述的显示设备,其中,控制器进一步被配置为:The display device of claim 1, wherein the controller is further configured to:
    接收终端设备发送的第一视频流,其中,所述第一视频流为所述终端设备的视频录制装置采集得到的视频流,且携带有用于标识所述终端设备采集所述第一视频流对应的视频时的姿态的标识信息;Receive a first video stream sent by a terminal device, wherein the first video stream is a video stream collected by a video recording device of the terminal device, and carries a corresponding message used to identify the terminal device for collecting the first video stream. The identification information of the posture in the video;
    根据所述标识信息、视频播放参数以及所述第一视频流的尺寸获取缩放比例,根据所述缩放比例对所述第一视频流进行缩放获取第二视频流,以及根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数;所述视频播放参数包括所述第二窗口的尺寸和/或预设视频流尺寸;Obtain the scaling ratio according to the identification information, video playback parameters and the size of the first video stream, scale the first video stream according to the scaling ratio to obtain the second video stream, and obtain the second video stream according to the video playback parameters and The size of the second video stream obtains layout offset parameters; the video playback parameters include the size of the second window and/or the preset video stream size;
    基于所述布局偏移参数对所述第二视频流进行偏移,并控制所述显示器在所述第二窗口播放偏移后的所述第二视频流作为跟练视频流。Offset the second video stream based on the layout offset parameter, and control the display to play the offset second video stream in the second window as a follow-up video stream.
  3. 根据权利要求2所述的显示设备,其中,所述标识信息包括:第一姿态标识或第二姿态标识;The display device according to claim 2, wherein the identification information includes: a first posture identification or a second posture identification;
    所述第一姿态标识用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为竖屏姿态;The first posture identifier is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a portrait posture;
    所述第二姿态标识用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为横屏姿态;The second posture identifier is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a horizontal screen posture;
    其中,所述第一姿态标识对应的视频播放参数和所述第二姿态标识对应的视频播放参数不同。Wherein, the video playback parameters corresponding to the first gesture identification and the video playback parameters corresponding to the second gesture identification are different.
  4. 根据权利要求3所述的显示设备,其中,响应于所述标识信息包括所述第一姿态标识,The display device of claim 3, wherein in response to the identification information including the first gesture identification,
    所述控制器根据所述缩放比例对所述第一视频流进行缩放获取第二视频流、以及根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数包括:The controller scales the first video stream according to the scaling ratio to obtain a second video stream, and obtains layout offset parameters according to the video playback parameters and the size of the second video stream, including:
    所述控制器根据所述第一视频流的宽度和目标宽度获取第一缩放比例,所述目标宽度为所述第二窗口的宽度或者所述预设视频流尺寸中的宽度;使用所述第一缩放比例对所述第一视频流进行缩放获取所述第二视频流;根据所述第二视频流的高度和所述第二窗口的高度,获取第一布局偏移参数;The controller obtains a first scaling ratio according to the width of the first video stream and a target width, where the target width is the width of the second window or the width in the preset video stream size; using the third Scale the first video stream by a scaling ratio to obtain the second video stream; obtain a first layout offset parameter according to the height of the second video stream and the height of the second window;
    所述控制器基于所述布局偏移参数对所述第二视频流进行偏移包括:所述控制器基于所述第一布局偏移参数在高度方向上对所述第二视频流进行偏移。The controller offsets the second video stream based on the layout offset parameter including: the controller offsets the second video stream in a height direction based on the first layout offset parameter. .
  5. 根据权利要求4所述的显示设备,其中,The display device according to claim 4, wherein
    所述第一缩放比例为所述目标宽度与所述第一视频流的宽度的比值;The first scaling ratio is the ratio of the target width to the width of the first video stream;
    所述第一布局偏移参数为所述第二视频流的高度与所述第二窗口的高度的差值的二分之一。The first layout offset parameter is half the difference between the height of the second video stream and the height of the second window.
  6. 根据权利要求3所述的显示设备,其中,响应于所述标识信息包括所述第二姿态标识,The display device of claim 3, wherein in response to the identification information including the second gesture identification,
    所述控制器根据所述标识信息、视频播放参数以及所述第一视频流的尺寸获取缩放比例、根据所述缩放比例对所述第一视频流进行缩放获取第二视频流包括:The controller obtains the scaling ratio according to the identification information, video playback parameters and the size of the first video stream, and scales the first video stream according to the scaling ratio to obtain the second video stream including:
    所述控制器根据所述第一视频流的高度和目标高度,获取第二缩放比例,所述目标高度为所述第二窗口的高度或者所述预设视频流尺寸中的高度;使用所述第二缩放比例对所述第一视频流进行缩放,获取所述第二视频流;The controller obtains a second scaling ratio based on the height of the first video stream and a target height, where the target height is the height of the second window or the height in the preset video stream size; using the Scale the first video stream with a second scaling ratio to obtain the second video stream;
    所述控制器根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数包括:所述控制器根据所述第二视频流的宽度和所述第二窗口的宽度,获取第二布局偏移参数;The controller obtaining the layout offset parameter according to the video playback parameter and the size of the second video stream includes: the controller obtaining the layout offset parameter according to the width of the second video stream and the width of the second window. 2. Layout offset parameters;
    所述控制器基于所述布局偏移参数对所述第二视频流进行偏移包括:The controller offsets the second video stream based on the layout offset parameter including:
    所述控制器基于所述第二布局偏移参数在宽度方向上对所述第二视频流进行偏移。The controller offsets the second video stream in a width direction based on the second layout offset parameter.
  7. 根据权利要求6所述的显示设备,其中,The display device according to claim 6, wherein
    所述第二缩放比例为所述目标高度与所述第一视频流的高度的比值;The second scaling ratio is the ratio of the target height to the height of the first video stream;
    所述第二布局偏移参数为所述第二视频流的宽度与所述第二窗口的宽度的差值的二分之一。The second layout offset parameter is one-half of the difference between the width of the second video stream and the width of the second window.
  8. 根据权利要求2-7任一项所述的显示设备,其中,所述控制器还被配置为:所述控制器基于所述布局偏移参数对所述第二视频流进行偏移、并控制所述显示器在所述第二窗口播放偏移后的所述第二视频流之后,The display device according to any one of claims 2-7, wherein the controller is further configured to offset the second video stream based on the layout offset parameter and control After the display plays the offset second video stream in the second window,
    响应于接收到的剪裁播放指令,根据所述选定区域的尺寸和所述第二窗口的尺寸,获取第三缩放比例,其中所述剪裁播放指令携带有选定区域的尺寸和所述选定区域的位置信息,用于指示基于所述选定区域内所述第一视频流的视频内容进行视频播放,其中所述第三缩放比例为第一比值与第二比值中较小的一个比值,所述第一比值为所述第二窗口的高度与所述选定区域的高度的比值,所述第二比值为所述第二窗口的宽度与所述选定区域的宽度的比值;In response to the received trimming play instruction, a third zoom ratio is obtained according to the size of the selected area and the size of the second window, wherein the trimming play instruction carries the size of the selected area and the selected The location information of the area is used to indicate video playback based on the video content of the first video stream in the selected area, wherein the third scaling ratio is the smaller of the first ratio and the second ratio, The first ratio is the ratio of the height of the second window to the height of the selected area, and the second ratio is the ratio of the width of the second window to the width of the selected area;
    使用所述第三缩放比例对所述第一视频流进行缩放获取第三视频流;根据所述第三缩放比例、所述第 二窗口的宽度、所述选定区域的位置信息以及所述选定区域的宽度获取第三布局偏移参数;根据所述第三缩放比例、所述第二窗口的高度、所述选定区域的位置信息以及所述选定区域的高度获取第四布局偏移参数;Use the third zoom ratio to zoom the first video stream to obtain a third video stream; according to the third zoom ratio, the width of the second window, the position information of the selected area and the selected Obtain the third layout offset parameter based on the width of a certain area; obtain the fourth layout offset according to the third scaling ratio, the height of the second window, the position information of the selected area, and the height of the selected area. parameter;
    基于所述第三视频流在所述第二窗口中进行视频播放,并基于所述第三布局偏移参数在宽度方向上对所述第三视频流进行偏移,基于所述第四布局偏移参数在高度方向上对所述第三视频流进行偏移,并控制所述显示器在所述第二窗口播放偏移后的所述第三视频流。Perform video playback in the second window based on the third video stream, offset the third video stream in the width direction based on the third layout offset parameter, and offset the third video stream based on the fourth layout offset parameter. The shift parameter offsets the third video stream in the height direction, and controls the display to play the offset third video stream in the second window.
  9. 根据权利要求8所述的显示设备,其中,所述控制器根据所述第三缩放比例、所述第二窗口的宽度、所述选定区域的位置信息以及所述选定区域的宽度获取第三布局偏移参数包括:The display device of claim 8, wherein the controller obtains a third zoom ratio, a width of the second window, position information of the selected area, and a width of the selected area. Three layout offset parameters include:
    所述控制器通过如下公式一计算所述第三布局偏移参数:The controller calculates the third layout offset parameter through the following formula 1:
    所述公式一为:CLIP 3=(X+select_w/2)*R3-WL/2; The first formula is: CLIP 3 = (X+select_w/2)*R3-WL/2;
    所述控制器根据所述第三缩放比例、所述第二窗口的高度、所述选定区域的位置信息以及所述选定区域的高度获取第四布局偏移参数包括:所述控制器通过如下公式二计算所述第三布局偏移参数:The controller obtaining the fourth layout offset parameter according to the third scaling ratio, the height of the second window, the position information of the selected area, and the height of the selected area includes: the controller passes The third layout offset parameter is calculated using the following formula 2:
    所述公式二为:CLIP 4=(Y+select_h/2)*R3-HL/2; The second formula is: CLIP 4 = (Y+select_h/2)*R3-HL/2;
    其中,CLIP 3为所述第三布局偏移参数,CLIP 4为所述第四布局偏移参数,X为所述选定区域的左侧边缘到所述第一视频流的左侧边缘的距离,Y为所述选定区域的顶侧边缘到所述第一视频流的顶侧边缘的距离,select_w/2和select_h/2分别为所述选定区域的宽度和高度,R3为所述第三缩放比例,WL和HL分别为所述第二窗口的宽度和高度。 Wherein, CLIP 3 is the third layout offset parameter, CLIP 4 is the fourth layout offset parameter, and X is the distance from the left edge of the selected area to the left edge of the first video stream. , Y is the distance from the top edge of the selected area to the top edge of the first video stream, select_w/2 and select_h/2 are the width and height of the selected area respectively, and R3 is the Three scaling ratios, WL and HL are the width and height of the second window respectively.
  10. 根据权利要求1所述的显示设备,其中,The display device according to claim 1, wherein
    控制器还被配置为:获取训练视频标识、跟练页面标识、作为所述跟练视频流的跟练视频数据所述跟练视频数据为所述终端设备采集的视频数据;The controller is also configured to: obtain a training video identifier, a follow-up page identifier, and follow-up video data as the follow-up video stream, where the follow-up video data is video data collected by the terminal device;
    确定所述跟练页面标识对应的跟练页面数据,根据所述训练视频标识从服务器获取对应的作为所述训练视频流的训练视频数据;控制所述显示器基于所述跟练页面数据、所述训练视频数据和所述跟练视频数据,显示跟练页面。Determine the follow-up page data corresponding to the follow-up page identification, obtain the corresponding training video data as the training video stream from the server according to the training video identification; control the display based on the follow-up page data, the The training video data and the following training video data are displayed, and the following training page is displayed.
  11. 根据权利要求10所述的显示设备,其中,所述显示设备还包括:通信接口,被配置为:与终端设备进行数据通信;The display device according to claim 10, wherein the display device further comprises: a communication interface configured to: perform data communication with a terminal device;
    所述控制器,还被配置为:The controller is also configured to:
    获取终端设备的电量数据,控制所述显示器在所述跟练页面中显示所述电量数据;Obtain the power data of the terminal device, and control the display to display the power data in the follow-up page;
    响应于确定所述终端设备的电量数据指示剩余电量小于或等于第一电量阈值,取消显示所述跟练页面;以及In response to determining that the power data of the terminal device indicates that the remaining power is less than or equal to the first power threshold, canceling the display of the follow-up page; and
    控制所述通信接口向所述终端设备发送第一通知消息,所述第一通知消息用于通知所述终端设备停止采集所述跟练视频数据。Control the communication interface to send a first notification message to the terminal device, where the first notification message is used to notify the terminal device to stop collecting the follow-up video data.
  12. 根据权利要求10所述的显示设备,其中,所述控制器,还被配置为:The display device according to claim 10, wherein the controller is further configured to:
    获取终端设备的电量数据,控制所述显示器在所述跟练页面中显示所述电量数据;Obtain the power data of the terminal device, and control the display to display the power data in the follow-up page;
    响应于确定所述电量数据指示剩余电量小于或等于第二电量阈值,输出第一提示信息,所述第一提示信息用于提示所述终端设备电量过低;In response to determining that the power data indicates that the remaining power is less than or equal to the second power threshold, output first prompt information, where the first prompt information is used to prompt the terminal device that the power is too low;
    其中,所述输出第一提示信息的方式包括以下至少一种:Wherein, the method of outputting the first prompt information includes at least one of the following:
    控制所述显示器在所述跟练页面中显示所述第一提示信息;Control the display to display the first prompt information on the follow-up page;
    控制扬声器播放所述第一提示信息。Control the speaker to play the first prompt information.
  13. 根据权利要求12所述的显示设备,其中,所述显示设备还包括:通信接口,被配置为:与终端设备进行数据通信;The display device according to claim 12, wherein the display device further comprises: a communication interface configured to: perform data communication with a terminal device;
    所述通信接口,还被配置为:响应于所述控制器输出所述第一提示信息,持续接收所述终端设备发送的所述终端设备的电量数据;并响应于确定所述终端设备的电量数据指示剩余电量小于或等于第二电量阈值且大于或等于第三电量阈值,不再输出所述第一提示信息,其中,所述第三电量阈值小于所述第二电量阈值;The communication interface is further configured to: in response to the controller outputting the first prompt information, continue to receive the power data of the terminal device sent by the terminal device; and in response to determining the power of the terminal device The data indicates that the remaining power is less than or equal to the second power threshold and greater than or equal to the third power threshold, and the first prompt information is no longer output, wherein the third power threshold is less than the second power threshold;
    响应于确定所述终端设备的电量数据指示剩余电量小于或等于第三电量阈值,取消显示所述跟练页面;以及In response to determining that the power data of the terminal device indicates that the remaining power is less than or equal to the third power threshold, canceling the display of the follow-up page; and
    控制所述通信接口向所述终端设备发送第一通知消息,所述第一通知消息用于通知所述终端设备停止采集所述跟练视频数据。Control the communication interface to send a first notification message to the terminal device, where the first notification message is used to notify the terminal device to stop collecting the follow-up video data.
  14. 根据权利要求1所述的显示设备,其中,The display device according to claim 1, wherein
    控制器,被配置为:Controller, configured as:
    响应于从终端设备接收跟练视频流,对所述终端设备的通信消息进行监听;In response to receiving the follow-up video stream from the terminal device, monitor the communication message of the terminal device;
    响应于监听到所述通信消息,获取所述显示设备显示的跟练视频流的状态信息,所述状态信息包括跟练状态和暂停状态,所述通信消息表征第三设备向所述终端设备发送的通信消息;In response to monitoring the communication message, obtain status information of the follow-up video stream displayed by the display device, where the status information includes a follow-up state and a pause state, and the communication message represents a third device sending to the terminal device communication messages;
    根据所述显示设备显示的跟练视频流的状态信息,发送控制指令至所述显示设备,以控制所述显示设备显示通知内容,不同控制指令对应的所述显示器显示的通知内容不同。According to the status information of the follow-up video stream displayed by the display device, a control instruction is sent to the display device to control the display device to display notification content. The notification content displayed by the display corresponding to different control instructions is different.
  15. 根据权利要求14所述的显示设备,其中,The display device according to claim 14, wherein
    所述控制器具体被配置为:The controller is specifically configured as:
    响应于所述显示设备显示的跟练视频流的状态信息为跟练状态,发送第一控制指令至所述显示设备,以控制所述显示设备显示所述第一通知内容对应的文本;In response to the status information of the follow-up video stream displayed by the display device being the follow-up state, sending a first control instruction to the display device to control the display device to display text corresponding to the first notification content;
    响应于所述显示设备显示的跟练视频流的状态信息为暂停状态,发送第二控制指令至所述显示设备,以控制所述显示设备显示所述第二通知内容对应的文本,并控制扬声器播放所述第二通知内容对应的音频。In response to the status information of the follow-up video stream displayed by the display device being in a paused state, sending a second control instruction to the display device to control the display device to display the text corresponding to the second notification content and control the speaker Play the audio corresponding to the second notification content.
  16. 根据权利要求14所述的显示设备,其中,The display device according to claim 14, wherein
    所述控制器还被配置为:The controller is also configured to:
    基于所述显示设备显示的跟练视频流的状态信息为跟练状态,响应于所述显示设备接收的暂停跟练指示信号,控制显示器显示所述通知内容对应的文本,并控制扬声器播放所述通知内容对应的音频。Based on the status information of the follow-up video stream displayed by the display device being the follow-up state, in response to the pause follow-up instruction signal received by the display device, the display is controlled to display the text corresponding to the notification content, and the speaker is controlled to play the The audio corresponding to the notification content.
  17. 根据权利要求1所述的显示设备,其中,The display device according to claim 1, wherein
    从服务器获取所述跟练界面对应的训练视频流,并接收终端设备发送的已渲染的跟练视频流,其中,所述已渲染的跟练视频流用于不经显示设备渲染直接在所述第二窗口显示;Obtain the training video stream corresponding to the follow-up interface from the server, and receive the rendered follow-up video stream sent by the terminal device, wherein the rendered follow-up video stream is used to directly display the training video stream on the third page without being rendered by the display device. Second window display;
    响应于所述训练视频流中对应第一播放时刻的第一训练图像与所述已渲染的跟练视频流中对应所述第一播放时刻的第一跟练图像动作不匹配,在所述训练视频流中查找与所述第一跟练图像动作相匹配的第二训练图像,其中,所述第一播放时刻大于所述第二训练图像对应的第二播放时刻;In response to the mismatch between the first training image corresponding to the first playback moment in the training video stream and the first follow-up image action corresponding to the first playback moment in the rendered follow-up video stream, in the training Search the video stream for a second training image that matches the action of the first training image, wherein the first playback time is greater than the second playback time corresponding to the second training image;
    响应于所述训练视频流中存在所述第二训练图像,发送第一指示信号给所述终端设备,以指示所述终端设备发送未渲染的跟练视频流。In response to the presence of the second training image in the training video stream, a first instruction signal is sent to the terminal device to instruct the terminal device to send an unrendered follow-up video stream.
  18. 根据权利要求17所述的显示设备,其中,The display device according to claim 17, wherein
    所述控制器,还被配置为:The controller is also configured to:
    接收所述终端设备发送的未渲染的跟练视频流;Receive an unrendered follow-up video stream sent by the terminal device;
    在所述未渲染的跟练视频流中确定和所述训练视频流的第一训练图像动作匹配的第二跟练图像;Determine a second follow-up image in the non-rendered follow-up video stream that matches the action of the first training image of the training video stream;
    对所述未渲染的跟练视频流进行渲染操作后在所述显示器的第二窗口展示渲染后的跟练视频流,所述第二窗口展示的跟练视频流从所述第二跟练图像对应的播放时刻进行播放。After performing a rendering operation on the non-rendered follow-up video stream, the rendered follow-up video stream is displayed in the second window of the display. The follow-up video stream displayed in the second window is derived from the second follow-up image. Play at the corresponding playback time.
  19. 根据权利要求17所述的显示设备,其中,The display device according to claim 17, wherein
    所述控制器,还被配置为:The controller is also configured to:
    响应于所述第一播放时刻与所述第二播放时刻的差值小于预设差值,不发送第一指示信号给所述终端设备。In response to the difference between the first playback time and the second playback time being less than the preset difference, the first instruction signal is not sent to the terminal device.
  20. 一种投屏方法,包括:A method of screencasting, including:
    响应于接收到的启动指令,在显示设备的显示器显示跟练界面,其中,所述跟练界面包括第一窗口和第二窗口,所述第一窗口用于播放从服务器获取的训练视频流,所述第二窗口用于播放从终端设备接收的跟练视频流。In response to the received startup instruction, a follow-up training interface is displayed on the display of the display device, wherein the follow-up training interface includes a first window and a second window, and the first window is used to play the training video stream obtained from the server, The second window is used to play the training video stream received from the terminal device.
  21. 根据权利要求20所述的方法,其中,The method of claim 20, wherein:
    接收终端设备发送的第一视频流,其中,所述第一视频流为所述终端设备的视频录制装置采集得到的视频流,且携带有用于标识所述终端设备录制所述第一视频流对应的视频时的姿态的标识信息;Receive a first video stream sent by a terminal device, where the first video stream is a video stream collected by a video recording device of the terminal device, and carries a corresponding message used to identify the terminal device for recording the first video stream. The identification information of the posture in the video;
    根据所述标识信息、视频播放参数以及所述第一视频流的尺寸获取缩放比例,根据所述缩放比例对所述第一视频流进行缩放获取第二视频流,以及根据所述视频播放参数和所述第二视频流的尺寸获取布局偏移参数;所述视频播放参数包括所述第二窗口的尺寸和/或预设视频流尺寸;Obtain the scaling ratio according to the identification information, video playback parameters and the size of the first video stream, scale the first video stream according to the scaling ratio to obtain the second video stream, and obtain the second video stream according to the video playback parameters and The size of the second video stream obtains layout offset parameters; the video playback parameters include the size of the second window and/or the preset video stream size;
    基于所述布局偏移参数对所述第二视频流进行偏移,并在所述第二窗口播放偏移后的所述第二视频流作为跟练视频流。The second video stream is offset based on the layout offset parameter, and the offset second video stream is played in the second window as a follow-up video stream.
  22. 根据权利要求21所述的方法,其中,所述标识信息包括:第一姿态标识或第二姿态标识;The method according to claim 21, wherein the identification information includes: a first posture identification or a second posture identification;
    所述第一姿态标识用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为竖屏姿态;The first posture identifier is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a portrait posture;
    所述第二姿态标识用于标识所述终端设备录制所述第一视频流对应的视频时的姿态为横屏姿态;The second posture identifier is used to identify that the posture of the terminal device when recording the video corresponding to the first video stream is a horizontal screen posture;
    其中,所述第一姿态标识对应的视频播放参数和所述第二姿态标识对应的视频播放参数不同。Wherein, the video playback parameters corresponding to the first gesture identification and the video playback parameters corresponding to the second gesture identification are different.
  23. 根据权利要求20所述的方法,其中,所述方法还包括:The method of claim 20, wherein the method further includes:
    获取训练视频标识、跟练页面标识、作为所述跟练视频流的跟练视频数据,所述跟练视频数据为所述终端设备采集的视频数据;Obtain a training video identifier, a follow-up page identifier, and follow-up video data as the follow-up video stream, where the follow-up video data is video data collected by the terminal device;
    确定所述跟练页面标识对应的跟练页面数据,根据所述训练视频标识从服务器获取对应的作为所述训练视频流的训练视频数据;基于所述跟练页面数据、所述训练视频数据和所述跟练视频数据,显示跟练页面。Determine the follow-up page data corresponding to the follow-up page identification, and obtain the corresponding training video data as the training video stream from the server according to the training video identification; based on the follow-up page data, the training video data and The following training video data displays the following training page.
  24. 根据权利要求23所述的方法,其中,所述方法还包括:The method of claim 23, wherein the method further includes:
    获取终端设备的电量数据,控制所述显示器在所述跟练页面中显示所述电量数据;Obtain the power data of the terminal device, and control the display to display the power data in the follow-up page;
    响应于确定所述终端设备的电量数据指示剩余电量小于或等于第一电量阈值,取消显示所述跟练页面;以及In response to determining that the power data of the terminal device indicates that the remaining power is less than or equal to the first power threshold, canceling the display of the follow-up page; and
    控制所述通信接口向所述终端设备发送第一通知消息,所述第一通知消息用于通知所述终端设备停止采集所述跟练视频数据。Control the communication interface to send a first notification message to the terminal device, where the first notification message is used to notify the terminal device to stop collecting the follow-up video data.
  25. 根据权利要求23所述的方法,其中,所述方法还包括:The method of claim 23, wherein the method further includes:
    获取终端设备的电量数据,控制所述显示器在所述跟练页面中显示所述电量数据;Obtain the power data of the terminal device, and control the display to display the power data in the follow-up page;
    响应于确定所述电量数据指示剩余电量小于或等于第二电量阈值,输出第一提示信息,所述第一提示信息用于提示所述终端设备电量过低;In response to determining that the power data indicates that the remaining power is less than or equal to the second power threshold, output first prompt information, where the first prompt information is used to prompt the terminal device that the power is too low;
    其中,所述输出第一提示信息的方式包括以下至少一种:Wherein, the method of outputting the first prompt information includes at least one of the following:
    控制所述显示器在所述跟练页面中显示所述第一提示信息;Control the display to display the first prompt information on the follow-up page;
    控制扬声器播放所述第一提示信息。Control the speaker to play the first prompt information.
PCT/CN2022/140843 2022-06-16 2022-12-21 Display device and screen-projection method WO2023240973A1 (en)

Applications Claiming Priority (8)

Application Number Priority Date Filing Date Title
CN202210689400.2 2022-06-16
CN202210689400.2A CN116795462A (en) 2022-06-16 2022-06-16 Display device, mobile terminal and heel training page control method
CN202210743842.0A CN116801027A (en) 2022-06-27 2022-06-27 Display device and screen projection method
CN202210743842.0 2022-06-27
CN202210764007.5 2022-06-29
CN202210764007.5A CN116801019A (en) 2022-06-29 2022-06-29 Screen projection method and display device
CN202210767185.3A CN116800707A (en) 2022-06-30 2022-06-30 Communication message processing method and display device
CN202210767185.3 2022-06-30

Publications (1)

Publication Number Publication Date
WO2023240973A1 true WO2023240973A1 (en) 2023-12-21

Family

ID=89193036

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/140843 WO2023240973A1 (en) 2022-06-16 2022-12-21 Display device and screen-projection method

Country Status (1)

Country Link
WO (1) WO2023240973A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130057641A1 (en) * 2011-09-05 2013-03-07 Panasonic Corporation Television communication system, terminal, and method
CN107743220A (en) * 2017-10-24 2018-02-27 西安万像电子科技有限公司 The method, apparatus of condition prompting moves on to screen system with
CN112272324A (en) * 2020-10-15 2021-01-26 聚好看科技股份有限公司 Follow-up mode control method and display device
CN112399234A (en) * 2019-08-18 2021-02-23 聚好看科技股份有限公司 Interface display method and display equipment
CN112565839A (en) * 2020-11-23 2021-03-26 青岛海信传媒网络技术有限公司 Display method and display device of screen projection image
CN112689191A (en) * 2020-12-14 2021-04-20 努比亚技术有限公司 Screen projection control method, terminal and computer readable storage medium
CN113794917A (en) * 2021-09-15 2021-12-14 海信视像科技股份有限公司 Display device and display control method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130057641A1 (en) * 2011-09-05 2013-03-07 Panasonic Corporation Television communication system, terminal, and method
CN107743220A (en) * 2017-10-24 2018-02-27 西安万像电子科技有限公司 The method, apparatus of condition prompting moves on to screen system with
CN112399234A (en) * 2019-08-18 2021-02-23 聚好看科技股份有限公司 Interface display method and display equipment
CN112272324A (en) * 2020-10-15 2021-01-26 聚好看科技股份有限公司 Follow-up mode control method and display device
CN112565839A (en) * 2020-11-23 2021-03-26 青岛海信传媒网络技术有限公司 Display method and display device of screen projection image
CN112689191A (en) * 2020-12-14 2021-04-20 努比亚技术有限公司 Screen projection control method, terminal and computer readable storage medium
CN113794917A (en) * 2021-09-15 2021-12-14 海信视像科技股份有限公司 Display device and display control method
CN115278325A (en) * 2021-09-15 2022-11-01 海信视像科技股份有限公司 Display device, mobile terminal and body-building follow-up training method

Similar Documents

Publication Publication Date Title
CN111741372B (en) Screen projection method for video call, display device and terminal device
WO2020248668A1 (en) Display and image processing method
WO2020248640A1 (en) Display device
WO2020248680A1 (en) Video data processing method and apparatus, and display device
CN112272417B (en) double-Bluetooth sound box reconnection method and display device
CN114302190A (en) Display device and image quality adjusting method
CN113794917A (en) Display device and display control method
CN111526415A (en) Double-screen display equipment and HDMI switching method thereof
WO2020248714A1 (en) Data transmission method and device
US11917329B2 (en) Display device and video communication data processing method
CN114296949A (en) Virtual reality equipment and high-definition screen capturing method
CN112788422A (en) Display device
CN114428598A (en) Screen projection method and device, electronic equipment and storage medium
CN117837150A (en) Display device, communication terminal and screen-throwing picture dynamic display method
WO2022088974A1 (en) Remote control method, electronic device and system
WO2020248829A1 (en) Audio and video processing method and display device
WO2021031598A1 (en) Self-adaptive adjustment method for video chat window position, and display device
WO2023240973A1 (en) Display device and screen-projection method
CN112783380A (en) Display apparatus and method
CN114501089B (en) Screen-throwing communication method and device, electronic equipment and storage medium
CN116801027A (en) Display device and screen projection method
WO2023138222A1 (en) Display device and live broadcasting method
CN115086722B (en) Display method and display device for secondary screen content
WO2020248886A1 (en) Image processing method and display device
CN111970547B (en) Display device

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: 22946638

Country of ref document: EP

Kind code of ref document: A1