Video screen mirroring method, electronic device, and computer-readable storage medium

By setting the video decoder parameters of the target screen projection scene mode on the screen projection receiving end, the video stream is directly intercepted from the sending end for decoding and displaying, solving the problem of repeated work on the screen projection sending end, and achieving low power consumption and low latency video projection.

WO2025139421A1PCT designated stage expired Publication Date: 2025-07-03ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/131464
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-12-27
Filing Date
2024-11-12
Publication Date
2025-07-03

AI Technical Summary

Technical Problem

During the video projection process, the screen projection sender needs to decode and encode the video stream, resulting in repeated work increases power consumption and delay.

Method used

By setting the video decoder parameters of the target screen projection scene mode on the screen projection receiving end, the video stream is directly intercepted from the screen projection sending end for decoding and displaying. The screen projection sending end is only used as an operation panel and does not decode and encode.

Benefits of technology

It reduces the workload of the screen projection sender, reduces power consumption and reduces video latency, and improves the screen projection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024131464_03072025_PF_FP_ABST
    Figure CN2024131464_03072025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and provides a video screen mirroring method, an electronic device, and a computer-readable storage medium. The method comprises: in response to a video screen mirroring operation triggered by a user on a first terminal, determining a target screen mirroring scene mode and acquiring a first video decoder parameter corresponding to the target screen mirroring scene mode, the video screen mirroring operation being used for instructing to mirror the video content of a first application running on the first terminal to a second terminal for display; sending to the second terminal screen mirroring signaling for controlling the display on the second terminal to switch to the target screen mirroring scene mode, the screen mirroring signaling comprising information for controlling the second terminal to set a second video decoder parameter of the second terminal on the basis of the first video decoder parameter; and acquiring a target video stream to be decoded, and sending the target video stream to the second terminal, the target video stream being controlled to be displayed after the second terminal decodes the target video stream on the basis of the second video decoder parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Video projection method, electronic device, and computer-readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application No. 202311832507.9 filed on December 27, 2023, the contents of which are incorporated herein by reference in their entirety. Technical Field

[0003] The present application relates to the field of communication technology, and in particular to a video projection method, an electronic device, and a computer-readable storage medium. Background Art

[0004] In smart terminal screen casting services, especially those involving video players, such as casting video content played on a mobile terminal to a large-screen tablet or TV, the screen casting sender needs to decode the video stream, perform display rendering, and then re-encode the entire terminal image and send it to the screen casting receiver, which then decodes and displays it again. For the video stream in the video player, the sender does not need to watch the video, but the decoding and encoding work is added, resulting in duplicate work on the sender, increased power consumption, and delayed video casting.

[0005] Summary of the Invention

[0006] The present application provides a video projection method, an electronic device and a computer-readable storage medium.

[0007] The present application provides a video projection method, including: in response to a video projection operation triggered by a user on a first terminal, determining a target projection scene mode and obtaining first video decoder parameters corresponding to the target projection scene mode; the video projection operation is used to indicate that the video content of a first application running on the first terminal is projected to a second terminal for display; sending a projection signaling to the second terminal to control the display on the second terminal to switch to the target projection scene mode, the projection signaling including information for controlling the second terminal to set the second video decoder parameters of the second terminal according to the first video decoder parameters; obtaining a target video stream to be decoded, and sending the target video stream to the second terminal, the target video stream being controlled to be displayed after being decoded by the second terminal according to the second video decoder parameters.

[0008] The present application provides a video screen projection method, including: receiving a screen projection signaling sent by a first terminal, the screen projection signaling is used to control the display on the second terminal to switch to a target screen projection scene mode, the screen projection signaling includes information for controlling the second terminal to set the second video decoder parameters of the second terminal according to the first video decoder parameters corresponding to the target screen projection scene mode; receiving a target video stream sent by the first terminal; decoding the target video stream according to the second video decoder parameters and displaying it on the second terminal.

[0009] The present application provides an electronic device, comprising: at least one processor; a memory on which at least one computer program is stored. When the at least one computer program is executed by the at least one processor, the at least one processor implements the above-mentioned video projection method.

[0010] The present application provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor, so that the processor implements the above-mentioned video projection method.

[0011] With respect to the above embodiments and other aspects of the present application and their implementation, further description is provided in the accompanying drawings, detailed description and claims. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG1 shows a flow chart of a video projection method provided in the present application.

[0013] Figure 2 shows a schematic diagram of the operating interface of a screen projection scene mode provided by this application.

[0014] FIG3 shows a schematic diagram of an application scenario of a video projection method provided in the present application.

[0015] FIG4 shows a flow chart of a video projection method provided in the present application.

[0016] FIG5 shows a block diagram of a video projection terminal provided in the present application.

[0017] FIG6 shows a block diagram of an electronic device provided by the present application. DETAILED DESCRIPTION

[0018] To make the purpose, technical solutions and advantages of this application more clear, the technical solutions of this application will be described in detail below with reference to the accompanying drawings. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of this application can be combined with each other in any way.

[0019] In related technologies, when performing video projection, the projection transmitter needs to decode the video stream, perform display rendering, and then re-encode the entire terminal image and send it to the projection receiver, which then decodes and displays it again. For the projection transmitter, there is no need to watch the video, but the projection process requires an additional decoding and encoding task, which causes duplication of work and increases the power consumption of the projection transmitter. It also causes a delay in the video projection.

[0020] The present application provides a video projection method, a video projection terminal, an electronic device and a computer-readable storage medium, which can solve the problems existing in the above-mentioned related technologies.

[0021] FIG1 is a flow chart showing a method for video screen projection provided by the present application. The method can be applied to a first terminal. As shown in FIG1 , the method for video screen projection in the present application includes but is not limited to the following steps S11 to S13.

[0022] Step S11, in response to the video projection operation triggered by the user on the first terminal, determine the target projection scene mode and obtain the first video decoder parameters corresponding to the target projection scene mode. The video projection operation is used to indicate that the video content of the first application running on the first terminal is projected to the second terminal for display.

[0023] When a user performs a video projection operation on an application (such as a video application) currently running in the foreground of the first terminal, in response to the video projection operation triggered by the user on the first terminal, the target projection scene mode of the video projection operation is determined, and the first video decoder parameters corresponding to the target projection scene mode are obtained.

[0024] In this application, the screen projection scene mode refers to the scene mode of screen projection display. The screen projection scene modes available for users to select can be configured according to actual needs. For example, the screen projection scene mode may include normal mode, movie mode, pure video playback mode, direct playback mode, etc.

[0025] In some embodiments, the screen projection method of the normal mode and the screen projection methods of other scene modes such as the movie mode, pure video playback mode, and straight-through playback mode may be different. The normal mode can be used as the default screen projection scene mode, and other scene modes such as the movie mode, pure video playback mode, and straight-through playback mode can be used as preset screen projection scene modes; for the normal mode, the first terminal can perform video screen projection operations through the screen projection method in the above-mentioned related technology; and for the preset screen projection scene mode, the first terminal can use the video screen projection method provided in this application to perform video screen projection operations.

[0026] It should be noted that when performing video projection, in normal mode, the first terminal and the second terminal display the same content. In preset projection scene modes such as movie mode, pure video playback mode, and direct playback mode, the first terminal does not display the video content, while the second terminal displays the video content.

[0027] In this application, the first video decoder parameters refer to the decoder parameters of the video decoder required to be called for decoding when the first application running on the first terminal performs a video projection operation. The first video decoder parameters may include frame rate, bit rate, resolution, encoding format, etc.

[0028] In some implementations, different video decoder parameters may correspond to different screen projection scene modes. When the screen projection scene mode changes, the corresponding video decoder parameters are also changed accordingly.

[0029] Step S12, sending a screen projection signaling to the second terminal to control the display on the second terminal to switch to the target screen projection scene mode, the screen projection signaling includes information for controlling the second terminal to set the second video decoder parameters of the second terminal according to the first video decoder parameters.

[0030] In this application, the first terminal serves as a screen projection sending terminal, which refers to a terminal that needs to send the video to be projected to other terminals for screen projection display. The second terminal serves as a screen projection receiving terminal, which refers to a terminal that receives the video sent by the screen projection sending terminal and projects it for screen display. The first terminal and the second terminal can communicate with each other via a wireless connection. Both the first terminal and the second terminal can be any of smart terminals such as smartphones, smart TVs, tablets, laptops, and desktop computers.

[0031] In the present application, after determining the target screen projection scene mode, a screen projection signaling is sent to the second terminal. The signaling may carry the first video decoder parameters corresponding to the target screen projection scene mode. In response to receiving the screen projection signaling, the second terminal reads and parses the first video decoder parameters corresponding to the target screen projection scene mode in the signaling, and updates and sets the second video decoder parameters of the video decoder of the second terminal according to the first video decoder parameters corresponding to the target screen projection scene mode, and sets the second video decoder parameters of the video decoder of the second terminal to the first video decoder parameters corresponding to the target screen projection scene mode, so as to facilitate decoding of the video stream projected by the first terminal.

[0032] In some embodiments, for the second terminal, if the video decoder of the second terminal is currently decoding other video stream data, the other video stream data is discarded after the decoding is completed, and then the second video decoder parameters of its own video decoder are reset according to the first video decoder parameters corresponding to the target projection scene mode.

[0033] Step S13: obtaining a target video stream to be decoded, and sending the target video stream to the second terminal. The target video stream is controlled so that the second terminal decodes the target video stream according to the second video decoder parameters and then displays the decoded video stream.

[0034] When performing video projection, the first application needs to call the video decoder of the first terminal to decode the target video stream to be projected. In this application, after sending a projection signaling to the second terminal so that the second terminal updates the video decoder parameters of its own video decoder according to the first video decoder parameters, the current target video stream to be decoded is directly intercepted from the video decoder of the first terminal, and the target video stream is transmitted to the second terminal. The second terminal can decode the target video stream according to the second video decoder parameters updated by its own video decoder and display it.

[0035] According to the video screen projection method provided in the present application, the first terminal responds to the video screen projection operation triggered by the user's application on the first terminal, intercepts the video decoder parameters and video stream data transmitted by the application to the video decoder at the video decoder, and sends the video decoder parameters and video stream data to the second terminal. After setting the video decoder parameters, the second terminal receives the video stream data and decodes and displays it. During the video screen projection process, the first terminal only serves as a video playback operation panel and does not need to decode, encode and display the video content. This can save the workload of the first terminal during the video screen projection process, improve the screen projection efficiency of the first terminal, and reduce the working power consumption generated by the first terminal during the video screen projection operation. At the same time, it is beneficial to reduce the video screen projection playback delay and reduce the impact on the normal operation of other services of the first terminal.

[0036] In some embodiments, in the above step S11, before obtaining the first video decoder parameter corresponding to the target projection scene mode, the video projection method may further include: providing a selectable preset projection scene mode; and determining the target projection scene mode in response to the user's selection operation of the preset projection scene mode. The projection scene mode may include normal mode, movie mode, pure video playback mode, direct playback mode, etc. The normal mode is the initial default projection scene mode, and other scene modes such as movie mode, pure video playback mode, direct playback mode, etc. are preset projection scene modes. The target projection scene mode can be any one of the preset projection scene modes.

[0037] In some embodiments, providing selectable preset screen projection scene modes may further include: displaying the selectable preset screen projection scene modes by providing a mode switching button. The mode switching button may be in the form of a floating box or a menu item.

[0038] Exemplarily, as shown in Figure 2, the screen projection scene mode includes normal mode and movie mode. In the initial state, the text on the mode switch button is displayed as "Normal Mode" by default. After that, each time the user clicks the mode switch button, the screen projection scene mode is switched. For example, after one click, the mode switch button switches from displaying "Normal Mode" to displaying "Movie Mode", indicating that the current screen projection scene mode is switched from normal mode to movie mode; similarly, if you click in movie mode, it will switch to normal mode.

[0039] In some embodiments, in response to the user's selection operation of a preset projection scene mode, the mode switching content is recorded through a mode record table, that is, the mode switching record is performed after the scene mode switch is performed. The mode switching content may include: the application name of the application and the current projection scene mode. The application name is the package name or the name of the application. Different projection scene modes can be identified by different symbols, codes or numbers.

[0040] For example, if the current projection scene mode is normal mode, the current projection scene mode is recorded as 1 in the mode record table. If the current projection scene mode is movie mode, the current projection scene mode is recorded as 0 in the mode record table. Alternatively, other methods can be used to distinguish different projection scene modes, not limited to using the numbers 1 and 0 for distinction.

[0041] In some embodiments, in the above step S11, before obtaining the first video decoder parameter corresponding to the target projection scene mode, the video projection method may further include: when the video projection operation is an abnormal display projection operation, and the video being played on the first application running on the first terminal is in full-screen display mode, determining that the current projection scene mode is the target projection scene mode. The abnormal display projection operation refers to the situation where the first terminal is projecting the video played on the second application, and the user opens the video on the first application on the first terminal and performs the projection operation, that is, during the normal projection of the video played by an application on the first terminal, the user opens another application on the first terminal and opens the video on the other application, and the video is in full-screen display mode. In the case of the abnormal display projection operation, the video opened on the other application is not displayed on the first terminal, but the video content to be displayed is sent to the second terminal for projection display. The projection receiving terminal for normal projection and the projection receiving terminal for abnormal display projection can be the same terminal or different terminals.

[0042] In some embodiments, in the above step S11, obtaining the first video decoder parameters corresponding to the target screen projection scene mode may further include: intercepting a decoding request sent to the video decoder of the first terminal by the first application running on the first terminal, the decoding request including the first video decoder parameters corresponding to the target screen projection scene mode.

[0043] After the video projection operation is started, the first application needs to call the video decoder of the first terminal to perform the decoding operation of the target video stream to be decoded. Therefore, the first application needs to send a decoding request to the video decoder of the first terminal. Therefore, the first terminal can obtain the first video decoder parameters corresponding to the target projection scene mode by intercepting the decoding request sent by the first application to the video decoder.

[0044] In some embodiments, before providing a selectable preset screen projection scene mode, the video screen projection method may further include: detecting whether the current application interface of the first application is playing a video.

[0045] In some embodiments, providing a selectable preset screen projection scene mode may further include: providing a selectable preset screen projection scene mode when it is detected that the current application interface of the first application is playing a video.

[0046] In some embodiments, detecting whether the current application interface of the first application is playing a video may further include: determining that the current application interface of the first application is playing a video when the interface name of the current application interface of the first application is in a preset whitelist; or determining that the current application interface of the first application is not playing a video when the interface name of the current application interface of the first application is not in a preset whitelist.

[0047] The whitelist can be configured through the network background. When the screen projection function is started, the first application will query whether the content of the whitelist has changed in order to update the preset whitelist. In some embodiments, other methods can also be used for judgment, for example, parsing the application interface and checking whether the interface name of the application interface contains the word "video" (video format), or detecting whether the decoder is initialized at startup, or detecting whether a surface view (surface view) or media play (media play) is created, etc. Common detection methods can be used to identify whether there is video playback in the current application interface.

[0048] In some embodiments, when obtaining the target video stream to be decoded, the video projection method may further include: returning a preset decoding result to the first application via the video decoder of the first terminal, where the preset decoding result includes a preset image. For example, the preset image may be a pure white image.

[0049] A video decoder is usually created when an application opens a video, and the creator of the video decoder, i.e., the application, is recorded during creation. When starting video projection, the first application usually needs to call the video decoder to decode the target video stream. In some embodiments, the decoding function of the video decoder is optimized so that the video decoder queries the projection scene mode of the application that calls the video decoder before decoding the target video stream. For example, the current projection scene mode can be determined according to the above-mentioned mode record table. If the current projection scene mode is found to be movie mode, the video decoder does not decode the target video stream, and caches the target video stream to be decoded so that the first terminal can intercept it and send it to the second terminal. At the same time, the preset decoding result is returned to the first application. If the current projection scene mode is found to be normal mode, the normal projection process is not changed, and the projection method in the relevant technology is used for processing.

[0050] In some embodiments, the normal mode is used as the default screen projection scene mode. In the normal mode, when performing a video screen projection operation, the screen projection method in the normal mode is used by default. The screen projection process in the normal mode includes: the application downloads the video stream from the network, and then transmits it to the video decoder for decoding. After the decoding is completed, it is rendered and displayed. During the screen projection process, the screen image data is captured and encoded through the video encoder, and then sent to the second terminal for screen projection display. In the normal mode, after the user selects a preset screen projection scene mode such as movie mode as the target screen projection scene mode, that is, after the screen projection scene mode is switched to the target screen projection scene mode, the screen is projected according to the video screen projection method provided in this application. At the same time that the video decoder of the first terminal returns the preset decoding result to the first application, the first terminal stops capturing the screen data, stops video encoding of the screen data, and stops sending the screen video stream to the second terminal. In a preset screen projection scene mode such as movie mode, when the user clicks to exit the preset screen projection scene mode or switches the screen projection scene mode to normal mode, the first terminal resends the video decoder parameters to the second terminal so that the second terminal resets the video decoder parameters. At the same time, the first terminal cancels the decoding request and the interception of the video stream. The application normally calls the video decoder to decode the video stream, and the first terminal starts the screen image data capture, encoding and sending process.

[0051] In some embodiments, before sending the projection signaling to the second terminal, the video projection method may further include: providing selectable projection paths, each projection path corresponding to a second terminal, and different projection paths corresponding to different second terminals; in response to the user's selection operation of the projection path, determining the second terminal corresponding to the video projection operation.

[0052] A projection path is a route along which screen projection can be performed. Each projection path corresponds to a projection receiving terminal, and different projection paths correspond to different second terminals. In some application scenarios, multiple second terminals can be used for projection, and one or more second terminals can be selected for the same or different projection displays.

[0053] In some embodiments, providing a selectable projection path may further include: displaying the selectable projection terminals by providing a projection path selection button. The projection path selection button may be in the form of a floating box or a menu item.

[0054] Exemplarily, as shown in Figure 2, when screen projection is started, a screen projection path selection button is provided on the display interface of the first terminal, such as the "Screen Projection Mode" shown in Figure 2. When the "Screen Projection Mode" button is clicked, a screen projection path menu pops up, providing one or more selectable screen projection paths. For example, the selectable screen projection terminal (i.e., the second terminal) is displayed in the screen projection path menu. If screen projection is being performed on the screen projection terminal, the current screen projection scene mode and information about the application performing the video screen projection operation can be displayed behind the screen projection terminal. Then, in response to the user's selection operation of the screen projection path on the screen projection path menu, the second terminal corresponding to the video screen projection operation on the first application running on the first terminal is determined, and subsequent screen projection operations are performed.

[0055] In some application scenarios, users can open different videos in different applications and select different projection paths to cast different videos, or select the same projection path to cast videos. For example, a user can open an application a on a first terminal, play video a1, and cast the video to a second terminal A. Then, the user can open another application b on the first terminal, play video b1, and cast the video to a second terminal B. Alternatively, the user can cast video b1 to a second terminal A, at which point the second terminal A stops displaying video a1 and starts displaying video b1.

[0056] In one application scenario, a user opens an application on a first terminal and plays a video. During the video playback, a video screen projection operation is triggered. Screen projection is performed according to the video screen projection method provided in this application, so that the video is projected to a second terminal for display. Furthermore, during the screen projection process, the user can open another application on the first terminal and play a video. When the user triggers the video screen projection operation, the video screen projection operation is an abnormal display screen projection operation. If the video playback mode is a full-screen playback mode at this time, the target screen projection scene mode is automatically entered, and screen projection is performed according to the video screen projection method provided in this application, so that the video is projected to a second terminal for display. For example, as shown in FIG3 , the first terminal can be a mobile phone terminal, and the second terminal can be a tablet computer (Pad), a TV, a personal computer (PC), etc.

[0057] In some embodiments, the second terminal can serve only as the playback end of the video and only be used to project the video, while the first terminal can serve as the control end of the video and can control the video to perform operations such as pause / play, fast forward / background, and double-speed playback. At the same time, the second terminal does not need to return control instructions to the first terminal.

[0058] FIG4 shows a flow chart of a video screen projection method provided by the present application. The method can be applied to a second terminal. As shown in FIG4 , the video screen projection method in the present application includes but is not limited to the following steps S21 to S23.

[0059] Step S21, receive the screen projection signaling sent by the first terminal, the screen projection signaling is used to control the display on the second terminal to switch to the target screen projection scene mode, and the screen projection signaling includes information for controlling the second terminal to set the second video decoder parameters of the second terminal according to the first video decoder parameters corresponding to the target screen projection scene mode.

[0060] Step S22: receiving a target video stream sent by the first terminal.

[0061] Step S23: Decode the target video stream according to the second video decoder parameters and display it on the second terminal.

[0062] Regarding the specific implementation method of the video projection method based on the second terminal, please refer to the description of the operations performed by the second terminal in the above-mentioned video projection method based on the first terminal, which will not be repeated here.

[0063] The present application also provides a video projection terminal. The video projection terminal according to the present application is introduced in detail below in conjunction with the accompanying drawings. Figure 5 shows a block diagram of the composition of a video projection terminal provided by the present application.

[0064] As shown in FIG5 , the video projection terminal 100 includes but is not limited to the following modules: an acquisition module 101 , a sending module 102 and a projection module 103 .

[0065] The acquisition module 101 is configured to determine the target projection scene mode and obtain the first video decoder parameters corresponding to the target projection scene mode in response to the video projection operation triggered by the user on the first terminal. The video projection operation is used to indicate that the video content of the first application running on the first terminal is projected to the second terminal for display.

[0066] The sending module 102 is configured to send a screen projection signaling to the second terminal to control the display on the second terminal to switch to the target screen projection scene mode. The screen projection signaling includes information for controlling the second terminal to set the second video decoder parameters of the second terminal according to the first video decoder parameters.

[0067] The screen projection module 103 is configured to obtain the target video stream to be decoded and send the target video stream to the second terminal. The target video stream is controlled by the second terminal to be displayed after decoding the target video stream according to the second video decoder parameters.

[0068] In some embodiments, the video projection terminal 100 further includes a mode determination module, which is configured to: provide selectable preset projection scene modes; and determine a target projection scene mode in response to a user's selection operation of the preset projection scene mode.

[0069] In some embodiments, the video projection terminal 100 also includes a mode determination module, which is configured to determine the current projection scene mode as the target projection scene mode when the video projection operation is an abnormal display projection operation and the video being played on the first application running on the first terminal is in full-screen display mode. The abnormal display projection operation refers to the operation in which the user opens the video on the first application on the first terminal and performs projection when the first terminal is projecting the video played on the second application.

[0070] In some embodiments, the acquisition module 101 is configured to intercept a decoding request sent by a first application running on the first terminal to a video decoder of the first terminal, where the decoding request includes first video decoder parameters corresponding to a target projection scene mode.

[0071] In some embodiments, the video projection terminal 100 also includes a detection module, which is configured to detect whether the current application interface of the first application is playing a video; the mode determination module is configured to provide a selectable preset projection scene mode when the detection module detects that the current application interface of the first application is playing a video.

[0072] In some embodiments, the detection module is configured to: determine that the current application interface of the first application is playing a video when the interface name of the current application interface of the first application is in a preset whitelist; or determine that the current application interface of the first application is not playing a video when the interface name of the current application interface of the first application is not in a preset whitelist.

[0073] In some embodiments, the mode determination module is configured to display selectable preset screen projection scene modes by providing a floating box or menu item.

[0074] In some embodiments, the video projection terminal 100 further includes a decoding feedback module, which is configured to return a preset decoding result to the first application through the video decoder of the first terminal, where the preset decoding result includes a preset picture.

[0075] In some embodiments, the video projection terminal 100 also includes a projection path selection module, which is configured to: provide selectable projection paths, each projection path corresponds to a second terminal, and different projection paths correspond to different second terminals; in response to the user's selection operation of the projection path, determine the second terminal corresponding to the video projection operation.

[0076] It should be noted that the video projection terminal 100 in this application can implement the video projection method applied to the video projection terminal in this application. For specific related descriptions, please refer to the description of the video projection method in the above application, which will not be repeated here.

[0077] According to the video projection terminal provided in the present application, the video projection terminal can serve as a first terminal. The first terminal responds to the video projection operation triggered by the user's application on the first terminal, intercepts the video decoder parameters and video stream data transmitted by the application to the video decoder at the video decoder, and sends the video decoder parameters and video stream data to the second terminal. After setting the video decoder parameters, the second terminal receives the video stream data and decodes and displays it. During the video projection process, the first terminal only serves as a video playback operation panel, and may not decode, encode and display the video content. This can save the workload of the first terminal during the video projection process, improve the projection efficiency of the first terminal, and reduce the working power consumption generated by the first terminal during the video projection work. At the same time, it is beneficial to reduce the video projection playback delay and reduce the impact on the normal operation of other services of the first terminal.

[0078] It should be understood that the present application is not limited to the specific configurations and processes described in the above embodiments and illustrated in the figures. For the sake of convenience and brevity, detailed descriptions of known methods are omitted here, and the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the aforementioned methods and will not be repeated here.

[0079] FIG6 shows a block diagram of an electronic device provided by the present application.

[0080] As shown in Figure 6, the electronic device includes: at least one processor 601, at least one memory 602, and at least one I / O interface 603. At least one or more I / O interfaces 603 are connected between the processor 601 and the memory 602. The memory 602 stores at least one computer program, which is executed by the at least one processor 601 to enable the at least one processor 601 to implement the above-mentioned video projection method.

[0081] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the processor to implement the above-mentioned video projection method. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium.

[0082] The foregoing is merely an exemplary embodiment of the present application and is not intended to limit the scope of protection of the present application. Generally speaking, various embodiments of the present application can be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. For example, some aspects can be implemented in hardware, while other aspects can be implemented in firmware or software that can be executed by a controller, microprocessor, or other computing device, although the present application is not limited thereto.

[0083] Embodiments of the present application may be implemented by a processor executing computer program instructions, for example, in a processor entity, or by hardware, or by a combination of software and hardware. The computer program instructions may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages.

[0084] The block diagram of any logical flow in the accompanying drawings of the present application can represent program steps, or can represent interconnected logical circuits, modules and functions, or can represent a combination of program steps and logical circuits, modules and functions. The computer program can be stored on a memory. The memory can have any type suitable for the local technical environment and can be implemented using any suitable data storage technology, such as but not limited to read-only memory (ROM), random access memory (RAM), optical storage device and system (digital versatile disc DVD or CD optical disc) etc. The computer readable medium may include non-transient storage media. The processor can be any type suitable for the local technical environment, such as but not limited to a general-purpose computer, a special-purpose computer, a microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a programmable logic device (FPGA) and a processor based on a multi-core processor architecture.

[0085] The above description of exemplary embodiments of the present application has been provided by way of exemplary and non-limiting examples. However, various modifications and adaptations to the above embodiments will be apparent to those skilled in the art, when considered in conjunction with the accompanying drawings and claims, without departing from the scope of the present application. Therefore, the proper scope of the present application will be determined by reference to the claims.

Claims

1. A video projection method, comprising: In response to a video projection operation triggered by a user on a first terminal, determining a target projection scene mode and obtaining first video decoder parameters corresponding to the target projection scene mode; The video projection operation is used to indicate that the video content of a first application running on the first terminal is projected onto a second terminal for display; Sending a projection signaling to the second terminal to control the display on the second terminal to be switched to the target projection scene mode, the projection signaling including information for controlling the second terminal to set second video decoder parameters of the second terminal according to the first video decoder parameters; Obtaining a target video stream to be decoded, and sending the target video stream to the second terminal, where the target video stream is controlled to be decoded by the second terminal according to the second video decoder parameters and then displayed.

2. The method according to claim 1, further comprising: Before obtaining the first video decoder parameters corresponding to the target projection scene mode, providing selectable preset projection scene modes; Determining the target projection scene mode in response to a selection operation of the user on the preset projection scene modes.

3. The method according to claim 1, further comprising: Before obtaining the first video decoder parameters corresponding to the target projection scene mode, when the video projection operation is a different display projection operation and the video being played on the first application running on the first terminal is in full-screen display mode, determining the current projection scene mode as the target projection scene mode, where the different display projection operation refers to an operation in which when the first terminal is projecting and displaying a video played on a second application, the user opens and projects the video on the first application on the first terminal.

4. The method according to claim 1, wherein The obtaining the first video decoder parameters corresponding to the target projection scene mode includes: Intercepting a decoding request sent by the first application running on the first terminal to the video decoder of the first terminal, the decoding request including the first video decoder parameters corresponding to the target projection scene mode.

5. The method according to claim 2 further comprises: Before providing the selectable preset projection scene modes, detecting whether the current application interface of the first application is playing a video; The providing the selectable preset projection scene modes includes: when it is detected that the current application interface of the first application is playing a video, providing the selectable preset projection scene modes.

6. The method according to claim 5, wherein, The detecting whether the current application interface of the first application is playing a video includes: When the interface name of the current application interface of the first application is within a preset white list, determining that the current application interface of the first application is playing a video; or When the interface name of the current application interface of the first application is not within the preset white list, determining that the current application interface of the first application is not playing a video.

7. The method according to claim 1, further comprising: When obtaining a target video stream to be decoded, a preset decoding result is returned to the first application through a video decoder of the first terminal, and the preset decoding result includes a preset picture.

8. The method according to claim 1, further comprising: Before sending a screen mirroring signaling to the second terminal to control the display on the second terminal to be switched to the target screen mirroring scene mode, providing selectable screen mirroring paths, each screen mirroring path corresponding to a second terminal, and different screen mirroring paths corresponding to different second terminals respectively; Responding to a user's selection operation on a screen mirroring path, determining the second terminal corresponding to the video screen mirroring operation.

9. A video screen mirroring method, comprising: Receiving a screen mirroring signaling sent by a first terminal, the screen mirroring signaling being used to control the display on a second terminal to be switched to a target screen mirroring scene mode, and the screen mirroring signaling including information for controlling the second terminal to set second video decoder parameters of the second terminal according to first video decoder parameters corresponding to the target screen mirroring scene mode; Receiving the target video stream sent by the first terminal; Decoding the target video stream according to the second video decoder parameters and displaying the decoded video stream on the second terminal.

10. An electronic device, comprising: At least one processor; A memory having at least one computer program stored thereon, and when the at least one computer program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 9.

11. A computer-readable storage medium, the computer-readable storage medium storing a computer program, and the computer program being executed by a processor to cause the processor to implement the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Video streaming in a wireless communication system

    CN105191326A

  • Data transmission method, device and equipment

    CN110392047A

  • Display device and image quality adjusting method

    CN114302190A

  • Content mirroring

    US20160092154A1