Redirection method, device, equipment, storage medium and program product
By creating source and destination redirection instances in the screencasting technology, the problem that existing technology is difficult to handle many-to-many screencasting scenarios is solved, multi-level many-to-multiple orientations are achieved, and the applicability to complex scenarios is improved. .
Patent Information
- Application Number
- CN202111249916.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-10-26
AI Technical Summary
Existing screencasting technology is difficult to adapt to complex many-to-many screencasting scenarios, and cannot effectively handle multi-level many-to-multi-directional requirements.
By creating a source redirection instance and a destination redirection instance between the source device and the destination device, and using these instances to transmit redirection data, the destination device can display the target redirection based on the source device identifier and the target screen identifier. Object to realize multi-level many-to-multiple orientation.
Improved applicability to complex redirection scenarios, allowing different projection objects in the same source device to be projected to different destination devices. Different screens of the same destination device display different projection objects. The screen of the destination device Display multiple screen projection objects at the same time.
Smart Images

Figure CN113992966B
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of screen projection technology, and in particular to a redirection method, device, equipment, storage medium and program product. Background Art
[0002] Redirection refers to the technology of transferring certain capabilities from one device to another. The capabilities transferred include video, audio, control, etc. Common redirection technologies in daily life include device screen projection.
[0003] With the help of the screen projection function, the source device can project the currently displayed screen to the destination device to achieve a better display effect. The screen projection solution provided by the relevant technology is suitable for simple screen projection scenarios, such as one-to-one screen projection scenarios or many-to-one screen projection scenarios. However, as the complexity of the screen projection scenario increases, such as many-to-many screen projection scenarios, the current screen projection solution will not be applicable. Summary of the invention
[0004] The embodiments of the present application provide a redirection method, apparatus, device, storage medium and program product. The technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a redirection method, which is used for a source device, and the method includes:
[0006] Creating a source redirection instance based on a source device identifier and a target redirection object identifier, wherein the target redirection object identifier is used to represent a target redirection object;
[0007] The redirection data corresponding to the source redirection instance is transmitted to the destination device, so that the destination device displays the target redirection object through the target screen indicated by the destination redirection instance based on the redirection data. The destination redirection instance corresponds to the same redirection event as the source redirection instance, and the destination redirection instance is created based on the destination device identifier and the target screen identifier.
[0008] On the other hand, an embodiment of the present application provides a redirection method, which is used for a destination device, and the method includes:
[0009] Creating a destination redirection instance based on a destination device identifier and a target screen identifier, wherein the target screen identifier is used to represent a target screen of the destination device;
[0010] Receiving redirection data corresponding to a source redirection instance transmitted by a source device, wherein the source redirection instance and the destination redirection instance correspond to the same redirection event, and the destination redirection instance is created based on a source device identifier and a target redirection object identifier, and the target redirection object identifier is used to represent a target redirection object;
[0011] Based on the redirection data, the target redirection object is displayed through the target screen.
[0012] On the other hand, an embodiment of the present application provides a redirection device, the device comprising:
[0013] A creation module, used to create a source redirection instance based on a source device identifier and a target redirection object identifier, wherein the target redirection object identifier is used to represent a target redirection object;
[0014] A transmission module is used to transmit the redirection data corresponding to the source redirection instance to the destination device, so that the destination device displays the target redirection object through the target screen indicated by the destination redirection instance based on the redirection data. The destination redirection instance corresponds to the source redirection instance, and the destination redirection instance is created based on the destination device identifier and the target screen identifier.
[0015] On the other hand, an embodiment of the present application provides a redirection device, the device comprising:
[0016] A creation module, used to create a destination redirection instance based on a destination device identifier and a target screen identifier, wherein the target screen identifier is used to represent a target screen of the destination device;
[0017] a receiving module, configured to receive redirection data corresponding to a source redirection instance transmitted by a source device, wherein the source redirection instance and the destination redirection instance correspond to the same redirection event, and the destination redirection instance is created based on a source device identifier and a target redirection object identifier, and the target redirection object identifier is used to represent a target redirection object;
[0018] A display module is used to display the target redirection object through the target screen based on the redirection data.
[0019] On the other hand, an embodiment of the present application provides a redirection system, the redirection system comprising: at least one source device and at least one destination device;
[0020] The source-end device is used to create a source-end redirection instance based on a source-end device identifier and a target redirection object identifier, wherein the target redirection object identifier is used to represent a target redirection object; and transmit redirection data corresponding to the source-end redirection instance to a destination-end device;
[0021] The destination device is used to create a destination redirection instance based on a destination device identifier and a target screen identifier, wherein the target screen identifier is used to represent a target screen of the destination device; receive redirection data corresponding to the source redirection instance transmitted by the source device, wherein the source redirection instance and the destination redirection instance correspond to the same redirection event; and based on the redirection data, display the target redirection object through the target screen.
[0022] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the redirection method described in the above aspect.
[0023] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one program code is stored, and the program code is loaded and executed by a processor to implement the redirection method as described in the above aspects.
[0024] On the other hand, an embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program includes a computer instruction, the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the redirection method provided in various optional implementations of the above aspects.
[0025] During the redirection process, the source device creates a source redirection instance based on the source device identifier and the target redirection object identifier, and the destination device creates a destination redirection instance corresponding to the source redirection instance based on the destination device identifier and the target screen identifier, so that after receiving the redirection data corresponding to the source redirection instance, the target redirection object is displayed through the target screen indicated by the destination redirection instance; adopting the scheme provided in the embodiment of the present application, multi-level many-to-many redirection can be achieved by creating source redirection instances and destination redirection instances. For example, different projection objects in the same source device can be projected to different destination devices, the same projection object in the source device can be projected to multiple screens at the same time, different screens of the same destination device can display different projection objects, the screen of the destination device can display multiple projection objects at the same time, etc. It is suitable for many-to-many redirection scenarios at the source device level, redirection object level, destination device and device screen level, and improves the applicability to complex redirection scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 A schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application is shown;
[0028] Figure 2 A flowchart of a redirection method provided by an exemplary embodiment of the present application is shown;
[0029] Figure 3 is a schematic diagram of a hierarchical architecture of a redirection module shown in an exemplary embodiment of the present application;
[0030] Figure 4 A flowchart of a redirection method provided by another exemplary embodiment of the present application is shown;
[0031] Figure 5 is a schematic diagram of an implementation of the encoding, transmission and decoding process shown in an exemplary embodiment of the present application;
[0032] Figure 6 is a flowchart of a video encoding, decoding and transmission process shown in an exemplary embodiment of the present application;
[0033] Figure 7 is a schematic diagram of an implementation of the encoding, transmission and decoding process shown in another exemplary embodiment of the present application;
[0034] Figure 8 is a flow chart of a reverse control process of a destination device shown in an exemplary embodiment of the present application;
[0035] Fig. 9 is a flow chart of a reverse control instruction generation process shown in an exemplary embodiment of the present application;
[0036] Fig.10 is a schematic diagram of an implementation of a touch coordinate determination process shown in an exemplary embodiment of the present application;
[0037] Fig.11 is a schematic diagram of a hierarchical architecture of a redirection module shown in another exemplary embodiment of the present application;
[0038] Fig.12 is a flowchart of a process of obtaining redirection information shown in an exemplary embodiment of the present application;
[0039] Fig.13 is an interface schematic diagram of a redirection setting interface shown in an exemplary embodiment of the present application;
[0040] Fig.14 A structural block diagram of a redirection device provided by an embodiment of the present application is shown;
[0041] Fig.15 A structural block diagram of a redirection device provided by another embodiment of the present application is shown;
[0042] Fig.16 is a system architecture diagram of a redirection system provided by an embodiment of the present application;
[0043] Fig.17 A structural block diagram of a computer device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0045] Figure 1 A schematic diagram of an implementation environment provided by an exemplary embodiment of the present application is shown. The implementation environment may include: at least one source device 110 and at least one destination device 120.
[0046] The source device 110 is an electronic device with a redirection requirement, which may be a mobile terminal such as a smart phone, a tablet computer, or a personal computer. Figure 1 In the description, the source device 110 includes a tablet computer 111 and a smart phone 112 as an example.
[0047] The object with redirection requirements in the source device 110 is called a redirection object, which can be a screen mirror or a redirection application, and the redirection content of the redirection object can include at least one of video, audio, and control. The redirection application can be a navigation application, a video application, a game application, etc. The embodiment of the present application does not limit the specific type of the screen projection application. Optionally, when the redirection object is an application, the application can be in the background running state during the redirection process.
[0048] In an embodiment of the present application, the same source device can redirect at least two redirection objects at the same time. For example, screen mirroring and video applications can be cast at the same time, or video applications and navigation applications can be cast at the same time. Among them, the number of redirection objects that the source device supports to redirect simultaneously has an upper limit, and the upper limit is related to the processing performance of the source device.
[0049] The destination device 120 is an electronic device used to display the redirection results, which may be a smart phone, a tablet computer, a personal computer, a smart TV, or a vehicle-mounted terminal (such as a vehicle computer), etc. Figure 1 In the example, the destination device 120 includes a first vehicle-mounted terminal 121 and a second vehicle-mounted terminal 122, wherein the first vehicle-mounted terminal 121 and the second vehicle-mounted terminal 122 are arranged in the same vehicle, and the first vehicle-mounted terminal 121 and the second vehicle-mounted terminal 122 are respectively controlled by different SoCs (System on Chip). For example, the first vehicle-mounted terminal 121 is an on-board terminal arranged in the front row of the vehicle, and the second vehicle-mounted terminal 122 is an on-board terminal arranged in the back row of the vehicle.
[0050] Optionally, the destination device 120 has at least one screen. Figure 1 As shown, the first vehicle terminal 121 has a first screen 1211 and a second screen 1212 (both controlled by the first SoC 1213 of the first vehicle terminal 121), and the second vehicle terminal 122 has a third screen 1221 and a fourth screen 1222 (both controlled by the second SoC 1223 of the second vehicle terminal 122).
[0051] In some embodiments, when the destination device 120 has at least two screens, at least two screens can display different projection contents at the same time, or the same projection contents, and the projection contents displayed on each screen can be a single projection object or multiple projection objects (displaying multiple projection objects in split screen).
[0052] In addition to the function of displaying the projected content, the destination device 120 may also have an audio playback function. The audio played during the screen projection process is the audio of the projected object.
[0053] In addition to the audio and video playback function, the destination device 120 can also realize the reverse control function of the projection content through the input and output components. Optionally, the input and output components can be a touch screen of the destination device 120, an external control device of the destination device 120, such as a handle, keyboard, mouse or touchpad, etc., which is not limited in this embodiment.
[0054] The many-to-many redirection in the embodiment of the present application is embodied in multiple source devices (multiple source devices participate in redirection), multiple redirection objects (multiple redirection objects in the same source device participate in redirection), multiple destination devices (multiple destination devices participate in redirection) and multiple screens (multiple screens of the same destination device participate in redirection). In a possible many-to-many screen projection scenario, such as Figure 1 As shown, the video application in the tablet computer 111 is projected to the first screen 1211 of the first vehicle-mounted terminal 121; the first game application is projected to the second screen 1212 of the first vehicle-mounted terminal 121. The navigation application in the smart phone 112 is projected to the first screen 1211 of the first vehicle-mounted terminal 121, and is displayed in split screen with the video application; the second game application in the smart phone 112 is projected to the third screen 1221 and the fourth screen 1222 of the second vehicle-mounted terminal 122, that is, the third screen 1221 and the fourth screen 1222 display the same projected content. In addition, since each screen of the first vehicle-mounted terminal 121 and the second vehicle-mounted terminal 122 has a touch function, the user can operate the projected application on the screen, thereby achieving reverse control of the projected application.
[0055] It should be noted that the connection method used between the source device 110 and the destination device 120 may include at least one of WlanAP mode, WiFi-P2P, USB wired connection, and mobile data network, which is not limited in the embodiments of the present application.
[0056] In addition, the above embodiment is only schematically explained using the example of projecting the screen from a mobile terminal to a vehicle-mounted terminal (i.e., the vehicle-mounted terminal scenario). The solution provided in the embodiment of the present application can be applied to other many-to-many redirection scenarios, and this embodiment does not limit the specific application scenario.
[0057] Please refer to Figure 2 , which shows a flowchart of a redirection method provided by an exemplary embodiment of the present application. The present application embodiment is applied to Figure 1 Taking the implementation environment shown in FIG. 1 as an example, the method includes:
[0058] Step 201: The source-end device creates a source-end redirection instance based on the source-end device identifier and the target redirection object identifier, where the target redirection object identifier is used to represent the target redirection object.
[0059] The type of the redirection object includes at least one of screen mirroring or redirection application, and the type of redirection content of the redirection object includes at least one of audio, video and control.
[0060] When redirection is required through the source device, the source device creates a source redirection instance based on the source device identifier (i.e., its own device identifier) and the target redirection object identifier of the target redirection object to be redirected, that is, the source redirection instance is formed in the unit of "source device + redirection object".
[0061] Among them, when different source-end devices redirect the same redirection object (for example, different source-end devices redirect the same application), the source-end redirection instances created by different source-end devices are different; when the same source-end device needs to redirect different redirection objects, the source-end redirection instances created by the same source-end device based on different redirection objects are also different.
[0062] Optionally, the source device creates a source redirection instance when receiving a redirection operation, or creates a source redirection instance when the source device receives a redirection instruction from a third-party device, that is, redirection through the source device can be triggered on the source device side or by a third-party device, wherein the third-party device and the source device are in the same scheduling domain, for example, the third-party device and the source device have the same user account for logging in.
[0063] Regarding the specific content of the source device redirection, in some embodiments, the source device can redirect the screen image or the installed and running application (i.e., the redirected application). Correspondingly, when the target redirection object is the screen image, the target redirection object identifier is the image identifier; when the target redirection object is the redirected application, the target redirection object identifier is the application identifier of the redirected application.
[0064] Step 202: The destination device creates a destination redirection instance based on the destination device identifier and the target screen identifier, where the target screen identifier is used to represent the target screen of the destination device.
[0065] Corresponding to the source device, the destination device for display needs to create a destination redirection instance corresponding to the source redirection instance. The destination device creates the destination redirection instance based on the destination device identifier (i.e., its own device identifier) and the target screen identifier of the target screen for display, i.e., the destination redirection instance is formed in the unit of "destination device + target screen". Furthermore, the source redirection instance and the destination redirection instance constitute a redirection event.
[0066] In the embodiment of the present application, the destination device has at least one screen, different screens correspond to different screen identifiers, and different screens are controlled by the same SoC in the destination device. For example, the destination device is a vehicle-mounted terminal, which has a main driver's screen and a co-driver's screen.
[0067] When different destination devices display the same redirection object, the destination redirection instances created by the different destination devices are different; when the same destination device displays through different screens, the destination redirection instances created by the same destination device based on different screens are also different.
[0068] Optionally, the destination device creates a destination redirection instance when it receives a redirection request sent by the source device, or the destination device creates a destination redirection instance when it receives a redirection instruction from a third-party device, where the third-party device and the destination device are in the same scheduling domain, for example, the third-party device and the destination device have the same user account to log in.
[0069] Step 203: The source-end device transmits the redirection data corresponding to the source-end redirection instance to the destination-end device.
[0070] After completing the creation of the source redirection instance, the source device generates redirection data corresponding to the source redirection instance and transmits the redirection data to the destination device, wherein the redirection data at least includes a video data stream and may also include at least one of an audio data stream and a control data stream.
[0071] Optionally, when one-to-many redirection needs to be implemented, the source-end device may transmit the redirection data to multiple destination-end devices, so that the multiple destination-end devices simultaneously display the same target redirection object.
[0072] In some embodiments, the source device performs video encoding on the screen of the target redirection object to obtain a video data stream, wherein the source device can use video encoding formats such as H264 and H265 for encoding, which is not limited to this embodiment of the present application; when the redirection data includes an audio data stream, the source device performs audio encoding on the sound of the target redirection object to obtain an audio data stream, wherein the source device can use audio encoding formats such as AAC for encoding, which is not limited to this embodiment of the present application; when the redirection data includes a control data stream, the source device can encode the control instructions in an agreed instruction format to obtain a control data stream.
[0073] Regarding the transmission method of redirected data, optionally, the source device can transmit the redirected data wirelessly, such as Wlan AP, WiFi-P2P or mobile data network; it can also transmit the redirected data by wired means, such as USB wired connection; it can also transmit the redirected data by a hybrid wired and wireless method, which is not limited to the embodiments of the present application.
[0074] Step 204: The destination device receives redirection data corresponding to the source redirection instance transmitted by the source device. The source redirection instance and the destination redirection instance correspond to the same redirection event.
[0075] In one possible implementation, since the same destination device may simultaneously receive redirection data transmitted by different source devices, or simultaneously receive multiple redirection data (corresponding to different redirection objects) transmitted by the same source device, in order to ensure the accuracy of subsequent display, after the destination device receives the redirection data, it is necessary to determine the source redirection instance corresponding to the redirection data, and then determine the destination redirection instance corresponding to the same redirection event as the source redirection instance.
[0076] Step 205: The destination device displays the target redirection object through the target screen based on the redirection data.
[0077] Furthermore, the destination device determines the target screen indicated by the destination redirection instance, and parses the redirection data (such as performing video decoding on the video data stream), thereby displaying the target redirection object through the target screen.
[0078] In some embodiments, when the redirection data also includes an audio data stream, the destination device parses the audio data stream and plays the sound of the target redirection object through an audio playback component.
[0079] To sum up, in the embodiment of the present application, during the redirection process, the source device creates a source redirection instance based on the source device identifier and the target redirection object identifier, and the destination device creates a destination redirection instance corresponding to the source redirection instance based on the destination device identifier and the target screen identifier, so that after receiving the redirection data corresponding to the source redirection instance, the target redirection object is displayed through the target screen indicated by the destination redirection instance; adopting the scheme provided in the embodiment of the present application, multi-level many-to-many redirection can be achieved by creating source redirection instances and destination redirection instances. For example, different redirection objects in the same source device can be redirected to different destination devices, the same redirection object in the source device can be projected to multiple screens at the same time, different screens of the same destination device can display different redirection objects, the screen of the destination device can display multiple redirection objects at the same time, etc. It is suitable for many-to-many redirection scenarios at the source device level, redirection object level, destination device and device screen level, and improves the applicability to complex redirection scenarios.
[0080] In order to achieve multi-level many-to-many redirection, the redirection modules of the source device and the destination device are designed in layers. Figure 3 As shown, the hierarchical structure of the redirection module includes:
[0081] Device layer: includes multi-channel screen projection services, which are used to provide the device's screen projection API (Application Programming Interface) to the outside world.
[0082] Screen projection application layer: includes the source redirection instance (when acting as a source device) or the destination redirection instance (when acting as a destination device) created by the screen projection manager. The redirection event corresponds to a pair of source redirection instances and destination redirection instances.
[0083] Streaming media processing layer: includes video processing module, audio processing module and control processing module, which are used to process data of specific media types in the redirection instance of the source or destination.
[0084] Redirection instance layer: When acting as a source device, it includes a source video redirector, a source audio redirector, and a source control redirector; when acting as a destination device, it includes a destination video redirector, a destination audio redirector, and a destination control redirector. The transmission link between the source redirector and the destination redirector of a specific media type is used to transmit redirected data of a specific media type.
[0085] Display layer: includes projection window applications, and different projection window applications correspond to different screens of the destination device.
[0086] The redirection process is further explained below in combination with the above hierarchical structure.
[0087] Please refer to Figure 4 , which shows a flowchart of a redirection method provided by another exemplary embodiment of the present application. The present application embodiment applies the method to Figure 1 Taking the implementation environment shown in FIG. 1 as an example, the method includes:
[0088] Step 401: The source-end device creates a source-end redirection instance based on the source-end device identifier and the target redirection object identifier, where the target redirection object identifier is used to represent the target redirection object.
[0089] The implementation of this step may refer to the above step 201, and this embodiment will not be described in detail here.
[0090] Step 402: The source device creates a source redirector.
[0091] In a possible implementation, after the source-end device creates a source-end redirection instance, it further creates a source-end redirector based on the source-end redirection instance. The source-end redirector is used to redirect the redirection data corresponding to the source-end redirection instance to the destination-end device corresponding to the destination-end redirection instance belonging to the same redirection event.
[0092] Optionally, the source device creates a source redirector based on the source redirection instance and the destination device identifier. When the source device redirects to different destination devices (which can be the same redirection object or different redirection objects), the source device creates multiple source redirectors; when the source device projects the same redirection object to multiple screens of the destination device, the source device creates a single source redirector; when the source device projects different redirection objects to multiple screens of the destination device, the source device creates multiple source redirectors for different redirection objects.
[0093] For example, when it is necessary to cast a game application to a first destination device and a second destination device, the source device creates a first source redirector based on the source device identifier, the first destination identifier and the game application identifier, and creates a second source redirector based on the source device identifier, the second destination identifier and the navigation application identifier; when it is necessary to cast a game application to the first screen of the first destination device and to cast a navigation application to the second screen of the first destination device, the source device creates a first source redirector based on the source device identifier, the first destination identifier and the game application identifier, and creates a second source redirector based on the source device identifier, the first destination identifier and the navigation application identifier; when it is necessary to cast a game application to both the first screen and the second screen of the first destination device at the same time, the source device creates a first source redirector based on the source device identifier, the first destination identifier and the game application identifier.
[0094] Optionally, when redirecting, the media type of the redirection object can be set (can be set manually by the user, or can be automatically set by the source device based on the capabilities of the destination device), and the media type includes at least one of video, audio, and control. When the media type of the source redirection instance includes video, the destination device can display the target redirection object through the screen; when the media type of the source redirection instance includes audio, the destination device can play the sound of the target redirection object through the audio playback component; when the media type of the source redirection instance includes control, the destination device can reversely control the target redirection object.
[0095] Accordingly, the source-end device needs to create source-end redirectors corresponding to different media types according to the media type corresponding to the target redirection object. In another possible implementation, the source-end device creates at least one source-end redirector based on the source-end redirection instance, the destination-end device identifier, and the media type corresponding to the target redirection object, wherein different source-end redirectors correspond to different media types.
[0096] Exemplarily, when the media type corresponding to the target redirection object includes video, the source-end device creates a source-end video redirector, which is used to redirect the video data stream of the target redirection object; when the media type corresponding to the target redirection object includes audio, the source-end device creates a source-end audio redirector, which is used to redirect the audio data stream of the target redirection object; when the media type corresponding to the target redirection object includes control, the source-end device creates a source-end control redirector, which is used to redirect the control data stream of the target redirection object.
[0097] For example, when it is necessary to project a game application to the first destination device, and the first destination device supports displaying the game application screen, playing the game application sound, and reverse controlling the game application, the source device creates a source video redirector based on the source device identifier, the first destination identifier, the game application identifier, and the video type, and creates a source audio redirector based on the source device identifier, the first destination identifier, the game application identifier, and the audio type; and creates a source control redirector based on the source device identifier, the first destination identifier, the game application identifier, and the control type.
[0098] Step 403: The destination device creates a destination redirection instance based on the destination device identifier and the target screen identifier, where the target screen identifier is used to represent the target screen of the destination device.
[0099] The implementation of this step may refer to the above step 202, and this embodiment will not be described in detail here.
[0100] Step 404: The destination device creates a destination redirector.
[0101] Corresponding to the source-end device, the destination-end device needs to create a destination-end redirection corresponding to the source-end redirector, so as to subsequently transmit redirection data corresponding to the source-end redirection instance through the link between the source-end redirector and the destination-end redirector.
[0102] Regarding the method of creating a destination redirector, in one possible implementation, the destination device is aware of the source device and the target redirection object, and thus creates a destination redirector based on the source device identifier, the target redirection object identifier, and the destination device identifier, that is, the source redirector and the destination redirector correspond to the same source redirection event.
[0103] Among them, when the source device projects the screen to different destination devices (which can be the same redirection object or different redirection objects), different destination devices create different destination redirectors; when the source device projects the same redirection object to multiple screens of the destination device, the destination device creates a single destination redirector; when the source device projects different redirection objects to multiple screens of the destination device, the destination device creates multiple destination redirectors for different redirection objects.
[0104] For example, when the source device projects a game application to the first destination device and the second destination device, the first destination device creates a first destination redirector based on the source device identifier, the first destination identifier and the game application identifier, and the second destination device creates a second destination redirector based on the source device identifier, the second destination identifier and the navigation application identifier; when the source device projects a game application to the first screen of the first destination device and projects a navigation application to the second screen of the first destination device, the destination device creates a first destination redirector based on the source device identifier, the first destination identifier and the game application identifier, and creates a second destination redirector based on the source device identifier, the first destination identifier and the navigation application identifier; when the source device projects a game application to the first screen and the second screen of the first destination device at the same time, the source device creates a first destination redirector based on the source device identifier, the first destination identifier and the game application identifier.
[0105] Optionally, when the user sets the media type of the source redirection instance during the redirection process, the source device will create different source redirectors for different media types, and the destination device needs to correspond to the destination redirectors for different media types.
[0106] In another possible implementation, the destination device creates at least one destination redirector based on the source redirection instance, the destination device identifier, and the media type corresponding to the target redirection object, wherein different destination redirectors correspond to different media types.
[0107] Exemplarily, when the media type corresponding to the target redirection object includes video, the destination device creates a destination video redirector for receiving the video data stream transmitted by the source video redirector; when the media type corresponding to the target redirection object includes audio, the destination device creates a destination audio redirector for receiving the audio data stream transmitted by the source audio redirector; when the media type corresponding to the target redirection object includes control, the destination device creates a destination control redirector for transmitting the control data stream to the source control redirector.
[0108] For example, when the source device projects a game application to the first destination device, and the first destination device supports displaying the game application screen, playing the game application sound, and reverse controlling the game application, the destination device creates a destination video redirector based on the source device identifier, the first destination identifier, the game application identifier, and the video type; creates a destination audio redirector based on the source device identifier, the first destination identifier, the game application identifier, and the audio type; and creates a destination control redirector based on the source device identifier, the first destination identifier, the game application identifier, and the control type.
[0109] Step 405: The source-end device transmits the redirection data corresponding to the source-end redirection instance to the destination-end device through the link between the source-end redirector and the destination-end redirector.
[0110] After the redirector is created, the source device transmits the redirection data to the corresponding destination redirector (the destination redirector and the source redirector correspond to the same source redirection instance) through the source redirector.
[0111] In one possible implementation, when a source device and a destination device create different redirectors for different media types, the source device transmits redirection data of at least one media type to the destination device through at least one link between at least one source redirector and one of the destination redirectors, wherein the links between different source redirectors and destination redirectors are used to transmit redirection data of different media types.
[0112] For example, when the source device projects a game application to the destination device, and the destination device supports displaying the game application screen and playing the game application sound, the source device transmits the video data stream to the destination video redirector of the destination device through the source video redirector, and transmits the audio data stream to the destination audio redirector of the destination device through the source audio redirector.
[0113] Step 406: The destination device receives the redirection data transmitted by the source device through the link between the destination redirector and the source redirector.
[0114] In a possible implementation manner, the destination device receives redirection data of at least one media type transmitted by the source device through at least one link between at least one destination redirector and at least one source redirector.
[0115] Step 407: The destination device displays the target redirection object based on the redirection data through the target projection window application corresponding to the target screen.
[0116] In a possible implementation, when the destination device has at least two screens, the destination device determines the target screen according to the target screen identifier in the destination redirection instance, and then displays through the target screen.
[0117] In some possible application scenarios, multiple screen projections (from the same source device or different source devices) need to be displayed on the same screen of the destination device at the same time (multiple displays on the same screen); multiple screen projections need to be displayed on different screens of the destination device (different displays on multiple screens); the same projection object of the source device needs to be displayed on different screens of the destination device at the same time (same display on multiple screens).
[0118] In order to ensure the accuracy of the screen projection display, in some embodiments, each screen of the destination device corresponds to its own screen projection window application. After receiving the redirection data, the destination device displays it through the target screen projection window application corresponding to the target screen. Taking the Android system as an example, the screen projection window application can be an Activity component.
[0119] Optionally, a window application agent is set up corresponding to the projection window application to control the life cycle of the projection window application.
[0120] In addition, for the scenario of multiple displays on the same screen, the destination device needs to reuse the projection window application to display multiple redirected objects in split screens on the same screen.
[0121] In a possible implementation manner, the destination device may display the redirection data after receiving the redirection data in the following two possible situations.
[0122] 1. In response to the target projection window application corresponding to the target screen being in an unstarted state, start the target projection window application; and display the target redirection object through the target projection window application.
[0123] Optionally, after determining the target screen to be displayed, the destination device detects whether the target projection window application corresponding to the target screen is in an activated state. If it is in an unactivated state, it indicates that there is currently no other projection object being displayed through the target screen, thereby starting the target projection window application, and then displaying it through the target projection window application. At this time, the target screen only displays the screen of the target redirection object.
[0124] 2. In response to the target projection window application being in the startup state, the target redirection object is displayed by reusing the target projection window application, wherein after reusing the target projection window application, each projection object is displayed in split screen on the target screen.
[0125] Optionally, when it is detected that the target projection window application is in the startup state, it indicates that the target screen is currently displaying other projection objects. The destination device needs to reuse the target projection window application (that is, multiple source redirection instances reuse the same projection window application), and then perform split-screen display of other projection objects currently displayed on the target screen and the target redirection object. Among them, the destination device can perform split-screen control based on the projection direction (horizontal or vertical) of each projection object and the number of projection objects, which is not limited in the embodiments of the present application.
[0126] In some embodiments, when all source-end redirection instances within the projection window application exit, the destination-end device ends the life cycle of the projection window application, that is, destroys the projection window application.
[0127] In this embodiment, the source-end device and the destination-end device respectively create a source-end redirector and a destination-end redirector, and redirect the data transmission through the link between the redirectors to ensure the accurate transmission of the redirected data; in addition, when creating the redirector, redirectors corresponding to different media types are created for the media type of the source-end redirection instance, so that data of specific media types are transmitted through the links between specific redirectors, avoiding mutual interference between redirected data corresponding to different media types, and enabling fine-grained display (such as projecting only the screen, or projecting the screen and sound at the same time, or projecting the screen and sound at the same time, and opening reverse control).
[0128] Before transmitting redirected data to the destination device, the source device needs to capture the image of the redirected object and encode the captured image through the video encoder to obtain a video data stream. This process will generate encoding overhead. Correspondingly, after the destination receives the video data stream, it needs to decode the video through a video decoder to restore the image of the redirected object. This process will generate scene decoding overhead. In addition, data transmission between the source device and the destination device will generate IO (In / Out) overhead.
[0129] In a possible screen projection scenario, the same projection object in the source device needs to be projected to different destination devices, or projected to different screens of the same destination device. Figure 5 As shown, when the screen projection application in the source device needs to be projected to screen 1 and screen 2 of destination device 1, and screen 3 of destination device 2 at the same time, video encoding is performed respectively through video encoders 1, 2, and 3, video decoding is performed respectively through video decoders 1, 2, and 3, and video data stream transmission is divided into three paths, which will generate three times the encoding, decoding, and IO overhead (compared to one-to-one projection).
[0130] In order to reduce the encoding and decoding and IO overhead, the source device and the destination device can adopt a multiplexing strategy for video encoding and decoding, and a diversion strategy for video data stream transmission. Figure 6 As shown, the video encoding, decoding and transmission process may include the following steps.
[0131] Step 601: The source device multiplexes a video encoder to perform video encoding on the pictures corresponding to the same source redirection instance to obtain a video data stream.
[0132] Optionally, when the same redirected object needs to be projected to at least two screens, the source device will reuse the video encoder to encode the picture of the source redirected instance to obtain a video data stream, rather than using multiple video encoders to perform video encoding separately according to the number of screens.
[0133] Indicatively, Figure 7 As shown, when the screen projection application in the source device needs to be simultaneously projected to screen 1 and screen 2 of target device 1, and screen 3 of target device 2, the source device multiplexes video encoder 1 to perform video encoding to obtain a video data stream. Figure 5 In the process, three video encoders are used to encode the video, and the encoding overhead is reduced to 1 times.
[0134] Step 602: The source device distributes the video data stream to at least one source video redirector corresponding to the source redirection instance.
[0135] Furthermore, the same source redirection instance may correspond to multiple source video redirectors at the same time. For example, when the screen projection application of the source device is projected to two destination devices at the same time, the source device needs to create two source redirectors. Therefore, the source device needs to split the encoded video data stream, so as to redirect it to different destination video redirectors through different source video redirectors.
[0136] Step 603: The source device transmits the video data stream to the destination device via the link between the source video redirector and the destination video redirector.
[0137] Indicatively, Figure 7 As shown, since the screen projection application needs to be projected to destination device 1 and destination device 2, the source device needs to create a first source video redirector for destination device 1 and a second source video redirector for destination device 2, and split the encoded video data stream to the first source video redirector and the second source video redirector, and then transmit the video data stream to destination device 1 through the first source video redirector and the first destination video redirector, and transmit the video data stream to destination device 2 through the second source video redirector and the second destination video redirector, so as to realize the split transmission of the video data stream. Compared with Figure 5 Data is transmitted through three links, and the IO overhead is reduced by 2 times.
[0138] Step 604: The destination device uses a multiplexing video decoder to perform video decoding on the video data stream corresponding to the same source redirection instance to obtain a picture corresponding to the source redirection instance.
[0139] Optionally, when the same redirected object needs to be projected to at least two screens of the same destination device, the destination device will reuse the video decoder to decode the video data stream of the source redirection instance to obtain a video picture, rather than using multiple video decoders to perform video decoding separately according to the number of screens.
[0140] Indicatively, Figure 7 As shown, after receiving the video data stream, the destination device 1 uses the multiplexed video decoder 1 to decode the video, so that the decoded picture is displayed on screen 1 and screen 2; after receiving the video data stream, the destination device 2 uses the video decoder 2 to decode the video, so that the decoded picture is displayed on screen 3. Figure 5 In the example, three video decoders are used to perform video decoding, and the decoding overhead is reduced by 2 times.
[0141] In this embodiment, for the same source-end screen projection instance, the source-end device helps reduce encoding and decoding overhead and IO overhead by multiplexing video encoders, splitting streams, and multiplexing video decoders.
[0142] In one possible scenario, when the media type corresponding to the target redirection object includes audio, the source device needs to collect audio from the redirection object and encode the collected audio to obtain an audio data stream, thereby transmitting the audio data stream to the destination device for parsing and playback by the destination device. In one possible implementation, when the type of the target redirection object is screen mirroring, the source device collects and encodes audio through a device-level audio acquisition encoder to obtain an audio data stream, wherein the device-level audio acquisition encoder is used to collect and encode the audio of the device; when the type of the target redirection object is a redirection application, the source device collects and encodes audio through an application-level audio acquisition encoder to obtain an audio data stream, wherein the application-level audio acquisition encoder is used to collect and encode the audio of the redirection application.
[0143] Furthermore, the source device transmits the audio data stream to the destination device through the link between the source audio redirector and the destination audio redirector. Optionally, the source device can reuse the audio encoder for the same source redirection instance during audio encoding and adopt a diversion strategy during transmission. Correspondingly, the destination device can also reuse the audio decoder when performing audio decoding, thereby reducing audio encoding and decoding and IO overhead.
[0144] In one possible scenario, when the media type corresponding to the target redirection object includes control, when the destination device is displaying, the user can reversely control the redirection object through control operations. Since the destination device only decodes and displays the image of the redirection object, rather than actually running the redirection object, the destination device needs to send a reverse control instruction to the source device based on the control operation it receives, so that the source device can control the redirection object based on the reverse control instruction. In one possible implementation, Figure 8 As shown, the process of the destination device reversely controlling the redirection object may include the following steps.
[0145] Step 801: In response to a control operation on a target redirection object, a destination device generates a reverse control instruction.
[0146] Optionally, the control operation can be triggered by the target screen, for example, when the destination device is a vehicle-mounted terminal and the screen of the vehicle-mounted terminal has a touch function, the user can perform touch operations such as clicking, long pressing, and dragging on the screen; it can also be triggered by an external control component, for example, when the destination device is a TV, the user can control the displayed content through the TV remote control; it can also be triggered by a sensor or input and output component, for example, when the destination device is a tablet computer, the user can control the displayed content by rotating the tablet (similar to a somatosensory game), or control the displayed content by voice. The embodiments of the present application do not limit the specific triggering method of the control operation.
[0147] For different types of control operations, the reverse control instructions generated by the destination device are also different. Optionally, when the control operation is triggered by the target screen, the reverse control instruction contains the coordinates of the touch operation and the touch type (click, long press, slide, etc.); when the control operation is triggered by an external control component, the reverse control instruction contains the component type of the external control component and control data (such as keyboard input content); when the control operation is triggered by a sensor or input-output component, the reverse control instruction contains sensor data (such as angular velocity data) or input data (such as voice data). The embodiments of the present application do not limit the specific content contained in the reverse control instruction.
[0148] In some embodiments, when the target screen of the destination device has a touch function, the user can perform touch operations on the target screen to reversely control the redirected object. For example, when the redirected object is a game application, the user can control the game content in the game application by clicking the virtual buttons on the target screen; when the redirected object is a video application, the user can control the playback progress, volume, brightness, etc. of the video content in the video application by performing shortcut operation gestures on the target screen.
[0149] Since the screen sizes of the source device and the destination device may be different, and the destination device may display multiple redirection objects on the same screen at the same time, the destination device needs to convert the touch coordinates of the touch operation after receiving the touch operation, so as to generate a reverse control instruction based on the converted touch coordinates. Fig. 9 As shown, this step may include the following steps.
[0150] Step 801A: In response to a touch operation on a target screen, first touch coordinates are determined, where the first touch coordinates are located in a coordinate system of the target screen.
[0151] When receiving a touch operation on the target screen, the destination device first obtains first touch coordinates corresponding to the touch operation in the coordinate system of the target screen.
[0152] Step 801B, in response to determining a target redirection object for the touch operation to control based on the first touch coordinates, converting the first touch coordinates into second touch coordinates, where the second touch coordinates are located in a coordinate system of the target redirection object.
[0153] Optionally, when the target screen only displays the target redirection object, the touch operation on the target screen is used to control the redirection object, and the destination device further converts the first touch coordinates in the screen coordinate system into second touch coordinates in the target redirection object coordinate system.
[0154] Optionally, when the target screen displays multiple redirection objects at the same time, when the destination device receives a touch operation, it first needs to determine the actual redirection object controlled by the control operation, and when the actual redirection object is the target redirection object, convert the first touch coordinates in the screen coordinate system into the second touch coordinates in the target redirection object coordinate system.
[0155] In one possible implementation, the projection window application corresponding to each screen in the destination device includes a SurfaceView. When multiple redirection objects reuse the projection window application, the GLView corresponding to each projection is drawn in the SurfaceView, and the position information corresponding to each GLView is stored in the projection window application. Accordingly, when determining the redirection object controlled by the touch operation, the destination device obtains the position information of each redirection object in the target projection window application, and determines the redirection object controlled by the touch operation based on the position relationship between the first touch coordinates and the position information. Among them, the position information can be the vertex coordinates of the rectangular display area occupied by the redirection object, and the destination device determines the redirection object controlled by the touch operation based on the position relationship between the first touch coordinates and the vertex coordinates.
[0156] In some embodiments, the destination device converts the first touch coordinates into the second touch coordinates according to a mapping relationship between the screen coordinate system and the redirection object coordinate system.
[0157] In an illustrative example, Fig.10As shown, the target screen 1001 displays the projection screen corresponding to applications A, B, C, and D in split screen. When a touch operation is received, the destination device obtains the first touch coordinate (x1, y1) under the coordinate system (X1-O1-Y1), and obtains the position information corresponding to each application. Since the first touch coordinate (x1, y1) is located in the display area corresponding to application D, the destination device determines that the control operation is used to control application D, and further converts the first touch coordinate (x1, y1) into the second touch coordinate (x2, y2) based on the coordinate conversion relationship between the coordinate system (X1-O1-Y1) and the coordinate system (X2-O2-Y2).
[0158] Step 801C: generating a reverse control instruction based on the second touch coordinates.
[0159] Further, the destination device generates a reverse control instruction based on the second touch coordinates. In a possible implementation, since the destination device may rotate, the destination device also needs to rotate the second touch coordinates according to its own rotation, thereby generating a reverse control instruction based on the rotated second touch coordinates.
[0160] Furthermore, since the target device may have multiple screens, in order to ensure the accuracy of reverse control, in a possible implementation, when generating a reverse control instruction, the target device also needs to perform an offset process on the touch point identifier corresponding to the touch point based on the screen identifier of the target screen, so as to ensure the uniqueness of the touch point identifier. For example, pointerId (touch point identifier) = 100 × displayId (screen identifier) + pointerId.
[0161] In addition, since the display size of the target redirection object in the destination device may be different from the screen size of the source device, in a possible implementation, the destination device performs coordinate scaling processing on the second touch coordinates based on the screen size of the source device and the display size of the target redirection object, so as to ensure the accuracy of the reverse control. Of course, the source device may also perform coordinate scaling processing on the touch coordinates, which is not limited in this embodiment.
[0162] Step 802: The destination device sends a reverse control instruction to the source device through the link between the destination control redirector and the source control redirector.
[0163] In a possible implementation, the destination device encodes the reverse control instruction to obtain a control data stream, thereby redirecting the control data stream to the source device. In this embodiment, the control data stream between the destination device and the source device is transmitted through a link between the destination control redirector and the source control redirector.
[0164] Step 803: The source-end device receives the reverse control instruction sent by the destination-end device through the link between the source-end control redirector and the destination-end control redirector.
[0165] Correspondingly, the source-end device receives the reverse control instruction sent by the destination-end device through the source-end control redirector.
[0166] Step 804: The source device controls the target redirection object based on the reverse control instruction.
[0167] In one possible implementation, the source device obtains the second touch coordinates contained in the reverse control instruction, thereby generating a simulated touch event based on the second touch coordinates, and injecting the simulated touch event into the target redirection object, simulating a touch operation on the target redirection object on the source device, thereby achieving reverse control of the target redirection object.
[0168] In some embodiments, when the target redirection object is simultaneously projected to multiple screens, the source device may receive multiple reverse control instructions. For example, the mobile terminal projects the game application to the two screens of the rear-seat vehicle terminal so that the rear passengers can control the game application at the same time. At this time, the source device needs to handle the conflicts of the multiple reverse control instructions through the operating system (corresponding to the mirror projection scenario) or the projection application (corresponding to the application projection scenario), which will not be elaborated in this embodiment.
[0169] In this embodiment, after the destination device receives a touch operation on the target screen, it determines the redirection object corresponding to the touch operation and converts the touch coordinates of the touch operation, thereby generating a reverse control instruction based on the converted touch coordinates and sending it to the source device, thereby realizing reverse control of the redirection object in the source device and ensuring the accuracy of the reverse control process.
[0170] In combination with the above embodiments, Fig.11 As shown, the more detailed hierarchy of the redirection module includes:
[0171] Cast window application: used to present the cast image on the screen. The cast window application agent is used to manage the cast window application life cycle.
[0172] Screen projection manager: used to actually manage and schedule source redirection instances and destination redirection instances.
[0173] Screen projection context / screen projection information: used to synchronize relevant status data of the current redirection instance.
[0174] Source / destination audio manager: used to uniformly manage the audio input and output of the device.
[0175] Device-level / application-level audio capture encoder: responsible for audio capture (device-level or application-level) and encoding at the source.
[0176] Audio decoding player: responsible for audio decoding and playback at the destination end.
[0177] Multi-channel anti-control module: responsible for unified control of multi-channel anti-control event injection under the screen projection application and resolving anti-control conflicts.
[0178] Video encoder: responsible for video encoding of the screen projection application at the source end.
[0179] Video decoder: responsible for video decoding of the screen projection application on the target end.
[0180] Signaling processing module: responsible for the signaling capability negotiation and business logic processing of video, audio and control at the source and destination ends.
[0181] Media stream data channel: responsible for the transmission of various stream data such as video, audio, and control.
[0182] Serialization and encryption / decryption module: responsible for the serialization, deserialization, encryption / decryption of video, audio, and control.
[0183] Stream data object pool: responsible for object caching and reuse of various stream data such as video, audio, and control.
[0184] Memory buffer pool: responsible for memory cache reuse of video, audio, and control binary data.
[0185] OpenGL multi-channel rendering: responsible for the synthesis and rendering of multiple video images on the same display screen.
[0186] Multi-channel layout strategy: Provides dynamic layout algorithm for multi-channel images.
[0187] In order to lower the usage threshold of upper-layer applications and users, the solution provided in the embodiment of the present application reasonably abstracts the redirection API and uses redirection information to abstractly represent redirection events. In a possible implementation, the redirection information is a four-tuple information, which includes a source device identifier, a target redirection object identifier, a destination device identifier, and a target screen identifier.
[0188] In another possible implementation, when the redirection event supports setting the media type of the redirection object, the redirection information is a five-tuple information including a source device identifier, a target redirection object identifier, a destination device identifier, a target screen identifier and a media type.
[0189] exist Figure 1In the implementation environment shown, the projection event of "the video application in the tablet computer 111 is projected to the first screen 1211 of the first vehicle-mounted terminal 121" can be represented by a quintuple [Source = tablet computer, App = video application, Sink = first vehicle-mounted terminal, Display = first screen, Channel = Audio+Video].
[0190] The projection event "the navigation application in the smartphone 112 is projected to the first screen 1211 of the first vehicle-mounted terminal 121" can be represented by a quintuple [Source = smartphone, App = navigation application, Sink = first vehicle-mounted terminal, Display = first screen, Channel = Audio+Video+Control].
[0191] The projection event "the second game application in the smartphone 112 is projected to the third screen 1221 of the second vehicle-mounted terminal 122" can be represented by a quintuple [Source = smartphone, App = second game application, Sink = second vehicle-mounted terminal, Display = third screen, Channel = Audi o+Video+Control].
[0192] The projection event "the second game application in the smartphone 112 is projected to the fourth screen 1222 of the second vehicle-mounted terminal 122" can be represented by a quintuple [Source = smartphone, App = second game application, Sink = second vehicle-mounted terminal, Display = fourth screen, Channel = Audi o+Video+Control].
[0193] Correspondingly, the source-end device and the destination-end device create a source-end redirection instance and a destination-end redirection instance according to the obtained redirection information.
[0194] Regarding the method of obtaining redirection information, in one possible implementation, a user can create a redirection event through a redirection operation on the source device. Accordingly, in response to the redirection operation, the source device determines the redirection information, thereby creating a source redirection instance based on the source device identifier and the target redirection object identifier in the redirection information.
[0195] In some embodiments, the source device may display a redirection setting interface for setting a redirection event, and the user may complete the setting of the redirection event by triggering a control in the redirection setting interface. Accordingly, the source device obtains the redirection information of the redirection event. Fig.12 As shown, the process of obtaining redirection information may include the following steps.
[0196] Step 1201, display the redirection setting interface.
[0197] The redirection setting interface is used to perform a redirection event, and includes controls for setting various parameters in the redirection event. Optionally, the controls include a source device selection control, a redirection object selection control, a destination device selection control, a screen selection control, and a media selection control.
[0198] Step 1202: In response to a triggering operation on a source device selection control in a redirection setting interface, a source device identifier is determined.
[0199] Optionally, when setting a redirection event, the user first selects the source device in the redirection event through the source device selection control in the redirection setting interface. In a possible implementation, when a trigger operation is received on the source device selection control, each candidate source device in the scheduling domain that can be used as a source device is displayed in the redirection setting interface. Further, when a selection operation is received on a candidate source device, the candidate source device is determined as the source device in the redirection event, and then the source device identifier of the source device is obtained.
[0200] Step 1203: In response to a triggering operation on a redirection object selection control corresponding to the source device in the redirection setting interface, a target redirection object identifier is determined.
[0201] After completing the source device settings, the user further selects the target redirection object in the redirection event through the redirection object selection control in the redirection setting interface. In a possible implementation, when a trigger operation is received for the redirection object selection control, the screen mirroring option corresponding to the source device and the candidate application options corresponding to the candidate redirection applications in the source device are displayed in the redirection device interface. When a trigger operation is received for the screen mirroring option, the screen mirroring is determined as the target redirection object; when a trigger operation is received for the candidate application option, the application corresponding to the candidate application option is determined as the target redirection object, and the application identifier (such as the application package name) corresponding to the application is determined as the target redirection object identifier.
[0202] Step 1204: Determine the destination device identifier in response to a triggering operation on a destination device selection control in the redirection setting interface.
[0203] Further, the user selects the destination device in the redirection event through the destination device selection control in the redirection setting interface. In a possible implementation, when a trigger operation on the destination device selection control is received, each candidate destination device in the scheduling domain that can be used as a destination device is displayed in the redirection setting interface. Further, when a selection operation on a candidate destination device is received, the candidate destination device is determined as the destination device in the redirection event, and then the destination device identifier of the destination device is obtained.
[0204] Step 1205 , in response to a triggering operation on a screen selection control corresponding to the destination device in the redirection setting interface, a target screen identifier is determined.
[0205] Further, the user selects the target screen in the redirection event through the screen selection control in the redirection setting interface. In a possible implementation, when a trigger operation on the screen selection control is received, the screen identifiers of each candidate screen in the destination device are displayed in the redirection setting interface. When a selection operation corresponding to a screen identifier of a candidate screen is received, the selected candidate screen is determined as the target screen, and the target screen identifier of the target screen is obtained.
[0206] Step 1206: Determine the media type in response to the triggering operation of the media selection control in the redirection setting interface.
[0207] Further, the user selects the media type that needs to be redirected in the target redirection object through the media selection control in the redirection setting interface. In a possible implementation, when a trigger operation on the media selection control is received, a candidate media type control in the redirection device interface is displayed, wherein different candidate media type controls correspond to different media types. When a selection operation on a candidate media type control is received, the selected candidate media type is determined as the media type that needs to be redirected in the target redirection object.
[0208] Indicatively, Fig.13 After the redirection event setting is completed, the source device displays a redirection setting interface 1300. The redirection event in the redirection setting interface 1300 is divided into four levels, namely, source redirection instance level 1301, destination device level 1302, destination device screen level 1303 and media type level 1304.
[0209] In the above embodiment, the redirection event is set on the source device side as an example. In another possible implementation, the redirection event can also be set by a third-party device other than the source device and the destination device in the scheduling domain. After the third-party device completes the redirection event setting, it sends a redirection instruction containing redirection information to the source device and the destination device. After the source device receives the redirection instruction, it obtains the redirection information in the redirection instruction, and creates a source redirection instance based on the source device identifier and the target redirection object identifier in the redirection information; after the destination device receives the redirection instruction, it obtains the redirection information in the redirection instruction, and creates a destination redirection instance based on the destination device identifier and the target screen identifier in the redirection information.
[0210] It should be noted that the above-mentioned embodiments are described by taking the interaction process between the source device and the destination device during the redirection process as an example, wherein the steps with the source device as the execution subject can be independently implemented as a redirection method on the source device side, and the steps with the destination device as the execution subject can be independently implemented as a redirection method on the destination device side, which will not be elaborated in the embodiments of the present application.
[0211] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0212] Please refer to Fig.14 , which shows a structural block diagram of a redirection device provided by an embodiment of the present application. The device may include:
[0213] A creation module 1401, configured to create a source redirection instance based on a source device identifier and a target redirection object identifier, wherein the target redirection object identifier is used to represent a target redirection object;
[0214] The transmission module 1402 is used to transmit the redirection data corresponding to the source redirection instance to the destination device, so that the destination device displays the target redirection object through the target screen indicated by the destination redirection instance based on the redirection data. The destination redirection instance corresponds to the same redirection event as the source redirection instance, and the destination redirection instance is created based on the destination device identifier and the target screen identifier.
[0215] Optionally, the transmission module 1402 includes:
[0216] A redirector creation unit, used for creating a source-side redirector;
[0217] A transmission unit is used to transmit the redirection data corresponding to the source redirection instance to the destination device through a link between the source redirector and the destination redirector, and the destination redirector is created by the destination device.
[0218] Optionally, the redirector creation unit is used to:
[0219] Based on the source redirection instance, the destination device identifier, and the media type corresponding to the target redirection object, at least one of the source redirectors is created, wherein different source redirectors correspond to different media types, and the media type includes at least one of video, audio, and control;
[0220] The transmission unit is used for:
[0221] The redirection data of at least one of the media types is transmitted to the destination device via at least one link between at least one of the source redirectors and at least one of the destination redirectors.
[0222] Optionally, when the media type is video, the source-end redirector includes a source-end video redirector;
[0223] The device also includes:
[0224] A video encoding module, used for multiplexing a video encoder to perform video encoding on pictures corresponding to the same source end redirection instance to obtain a video data stream;
[0225] A shunting module, used for shunting the video data stream to at least one source-end video redirector corresponding to the source-end redirection instance;
[0226] The transmission unit is used for:
[0227] The video data stream is transmitted to the destination device through a link between the source video redirector and the destination video redirector.
[0228] Optionally, when the media type includes audio, the source-end redirector includes a source-end audio redirector;
[0229] The device also includes:
[0230] A first audio encoding module, configured to, when the type of the target redirection object is screen mirroring, perform audio acquisition and encoding through a device-level audio acquisition encoder to obtain an audio data stream;
[0231] A second audio encoding module, configured to, when the type of the target redirection object is an application, perform audio acquisition and encoding through an application-level audio acquisition encoder to obtain an audio data stream;
[0232] The transmission unit is used for:
[0233] The audio data stream is transmitted to the destination device via a link between the source audio redirector and the destination audio redirector.
[0234] Optionally, when the media type includes control, the source-end redirector includes a source-end control redirector;
[0235] The device also includes:
[0236] A receiving module, configured to receive a reverse control instruction sent by the destination device through a link between the source control redirector and the destination control redirector, wherein the reverse control instruction is triggered when the destination device receives a control operation on the target redirection object;
[0237] A control module is used to control the target redirection object based on the reverse control instruction.
[0238] Optionally, the creation module 1401 includes:
[0239] a determination unit, configured to determine redirection information in response to a redirection operation; or, in response to a redirection instruction sent by a third-party device, obtain redirection information contained in the redirection instruction;
[0240] An instance creation unit is used to create the source-end redirection instance based on the source-end device identifier and the target redirection object identifier in the redirection information; wherein the redirection information includes the source-end device identifier, the target redirection object identifier, the destination device identifier and the target screen identifier.
[0241] Optionally, the redirection information also includes a media type, and the media type includes at least one of video, audio, and control.
[0242] Optionally, the determining unit is used to:
[0243] Display the redirection settings interface;
[0244] In response to a triggering operation on a source device selection control in the redirection setting interface, determining the source device identifier;
[0245] In response to a triggering operation on a redirection object selection control corresponding to the source device in the redirection setting interface, determining the target redirection object identifier;
[0246] In response to a triggering operation on a destination device selection control in the redirection setting interface, determining the destination device identifier;
[0247] In response to a triggering operation on a screen selection control corresponding to the destination device in the redirection setting interface, determining the target screen identifier;
[0248] In response to a triggering operation on a media selection control in the redirection setting interface, the media type is determined.
[0249] To summarize, during the redirection process, the source device creates a source redirection instance based on the source device identifier and the target redirection object identifier, and the destination device creates a destination redirection instance corresponding to the source redirection instance based on the destination device identifier and the target screen identifier, so that after receiving the redirection data corresponding to the source redirection instance, the target redirection object is displayed through the target screen indicated by the destination redirection instance; adopting the scheme provided by the embodiment of the present application, multi-level many-to-many redirection can be achieved by creating source redirection instances and destination redirection instances. For example, different projection objects in the same source device can be projected to different destination devices, the same projection object in the source device can be projected to multiple screens at the same time, different screens of the same destination device can display different projection objects, the screen of the destination device can display multiple projection objects at the same time, and so on. It is suitable for many-to-many redirection scenarios at the source device level, redirection object level, destination device level, and device screen level, and improves the applicability to complex redirection scenarios.
[0250] Please refer to Fig.15 , which shows a structural block diagram of a redirection device provided by another embodiment of the present application. The device may include:
[0251] A creation module 1501 is used to create a destination redirection instance based on a destination device identifier and a target screen identifier, where the target screen identifier is used to represent a target screen of a destination device;
[0252] The receiving module 1502 is used to receive redirection data corresponding to a source redirection instance transmitted by a source device, wherein the source redirection instance and the destination redirection instance correspond to the same redirection event, and the destination redirection instance is created based on a source device identifier and a target redirection object identifier, and the target redirection object identifier is used to represent a target redirection object;
[0253] The display module 1503 is used to display the target redirection object through the target screen based on the redirection data.
[0254] Optionally, the receiving module 1502 includes:
[0255] A redirector creation unit, used for creating a destination redirector;
[0256] The receiving unit is used to receive the redirection data transmitted by the source-end device through a link between the destination-end redirector and the source-end redirector, wherein the source-end redirector is created by the source-end device.
[0257] Optionally, the redirector creation unit is used to:
[0258] Based on the source redirection instance, the destination device identifier, and the media type corresponding to the target redirection object, at least one destination redirector is created, wherein different destination redirectors correspond to different media types, and the media type includes at least one of video, audio, and control;
[0259] The receiving unit is used for:
[0260] The redirection data of at least one media type transmitted by the source-end device is received through at least one link between at least one destination-end redirector and at least one source-end redirector.
[0261] Optionally, when the media type includes video, the destination redirector includes a destination video redirector;
[0262] The device also includes:
[0263] The video decoding module is used to multiplex the video decoder to perform video decoding on the video data stream corresponding to the same source end redirection instance to obtain the picture corresponding to the source end redirection instance.
[0264] Optionally, when the media type includes video, the destination redirector includes a destination video redirector;
[0265] The display module 1503 is used to:
[0266] The target redirection object is displayed through the target projection window application corresponding to the target screen.
[0267] Optionally, the display module 1503 includes:
[0268] A first display unit is used to start the target projection window application in response to the target projection window application corresponding to the target screen being in an unstarted state; and to display the target redirection object through the target projection window application; or
[0269] The second display unit is used to display the target redirection object by reusing the target projection window application in response to the target projection window application being in the startup state, wherein after reusing the target projection window application, each redirection object is displayed in split screen on the target screen.
[0270] Optionally, when the media type includes control, the destination redirector includes a destination control redirector;
[0271] The device also includes:
[0272] A generating module, configured to generate a reverse control instruction in response to a control operation on the target redirection object;
[0273] The sending module is used to send the reverse control instruction to the source-end device through the link between the destination-end control redirector and the source-end control redirector, so that the source-end device controls the target redirection object based on the reverse control instruction.
[0274] Optionally, the generating module includes:
[0275] a coordinate determination unit, configured to determine, in response to a touch operation on the target screen, a first touch coordinate, wherein the first touch coordinate is located in a coordinate system of the target screen;
[0276] a coordinate conversion unit, configured to, in response to determining the target redirection object to be controlled by the touch operation based on the first touch coordinates, convert the first touch coordinates into second touch coordinates, the second touch coordinates being located in a coordinate system of the target redirection object;
[0277] A generating unit is used to generate the reverse control instruction based on the second touch coordinates.
[0278] Optionally, the generating module further includes:
[0279] A position information acquisition unit, used to acquire the position information of each redirection object in the target projection window application;
[0280] An object determination unit is used to determine a redirection object controlled by the touch operation based on a positional relationship between the first touch coordinates and the position information.
[0281] Optionally, the creation module 1501 includes:
[0282] A redirection information acquisition unit, configured to acquire redirection information, wherein the redirection information includes the source device identifier, the target redirection object identifier, the destination device identifier, and the target screen identifier;
[0283] An instance creation unit is used to create the destination redirection instance based on the destination device identifier and the target screen identifier in the redirection information.
[0284] Optionally, the redirection information also includes a media type, and the media type includes at least one of video, audio, and control.
[0285] Optionally, the source device is a mobile terminal, and the destination device is a vehicle-mounted terminal.
[0286] To summarize, during the redirection process, the source device creates a source redirection instance based on the source device identifier and the target redirection object identifier, and the destination device creates a destination redirection instance corresponding to the source redirection instance based on the destination device identifier and the target screen identifier, so that after receiving the redirection data corresponding to the source redirection instance, the target redirection object is displayed through the target screen indicated by the destination redirection instance; adopting the scheme provided by the embodiment of the present application, multi-level many-to-many redirection can be achieved by creating source redirection instances and destination redirection instances. For example, different projection objects in the same source device can be projected to different destination devices, the same projection object in the source device can be projected to multiple screens at the same time, different screens of the same destination device can display different projection objects, the screen of the destination device can display multiple projection objects at the same time, and so on. It is suitable for many-to-many redirection scenarios at the source device level, redirection object level, destination device level, and device screen level, and improves the applicability to complex redirection scenarios.
[0287] Please refer to Fig.16 , which shows a system architecture block diagram of a redirection system provided by an embodiment of the present application. The system includes: at least one source device 1610 and at least one destination device 1620.
[0288] The source device 1610 is used to create a source redirection instance based on the source device identifier and the target redirection object identifier, where the target redirection object identifier is used to represent the target redirection object; and transmit redirection data corresponding to the source redirection instance to the destination device;
[0289] The destination device 1620 is used to create a destination redirection instance based on the destination device identifier and the target screen identifier, where the target screen identifier is used to represent the target screen of the destination device; receive redirection data corresponding to the source redirection instance transmitted by the source device, where the source redirection instance and the destination redirection instance correspond to the same redirection event; and based on the redirection data, display the target redirection object through the target screen.
[0290] It should be noted that the specific process of redirection between the source device 1610 and the destination device 1620 can be found in the above method embodiment, and the embodiment of the present application will not be repeated here.
[0291] Please refer to Fig.17 , which shows a block diagram of a computer device provided by an exemplary embodiment of the present application. The computer device 1700 can be implemented as a source device or a destination device in the above-mentioned embodiments. The computer device 1700 may include one or more of the following components: a processor 1710 and a memory 1720.
[0292] The processor 1710 may include one or more processing cores. The processor 1710 uses various interfaces and lines to connect the various parts of the entire computer device 1700, and executes various functions and processes data of the computer device 1700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 1720, and calling data stored in the memory 1720. Optionally, the processor 1710 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 1710 can integrate one or more combinations of a central processing unit (CPU), a graphics processing unit (GPU), a neural network processor (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content that needs to be displayed on the touch display; the NPU is used to implement artificial intelligence (AI) functions; and the modem is used to process wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor 1710, but may be implemented by a separate chip.
[0293] The memory 1720 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 1720 includes a non-transitory computer-readable storage medium. The memory 1720 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area may store data (such as audio data, a phone book), etc., created according to the use of the computer device 1700.
[0294] In addition, those skilled in the art can understand that the structure of the computer device 1700 shown in the above drawings does not constitute a limitation on the computer device, and the computer device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the computer device 1700 also includes a display screen, a camera assembly, a microphone, a speaker, a radio frequency circuit, an input unit, a sensor (such as an acceleration sensor, an angular velocity sensor, a light sensor, etc.), an audio circuit, a WiFi module, a power supply, a Bluetooth module and other components, which will not be described in detail here.
[0295] An embodiment of the present application further provides a computer-readable storage medium, which stores at least one program code, and the program code is loaded and executed by a processor to implement the redirection method described in the above embodiments.
[0296] The embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the redirection method provided in various optional implementations of the above aspects.
[0297] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0298] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A redirection method, characterized in that: The method is used for a source device, and the method comprises: Creating a source redirection instance based on a source device identifier and a target redirection object identifier, wherein the target redirection object identifier is used to represent a target redirection object; The redirection data corresponding to the source redirection instance is transmitted to the destination device so that the destination device can determine the source redirection instance corresponding to the redirection data, determine the destination redirection instance corresponding to the same redirection event as the source redirection instance, and display the target redirection object through the target screen indicated by the destination redirection instance, and the destination redirection instance is created based on the destination device identifier and the target screen identifier.
2. The method according to claim 1, characterized in that The transmitting the redirection data corresponding to the source redirection instance to the destination device includes: Create a source-side redirector; The redirection data corresponding to the source redirection instance is transmitted to the destination device via a link between the source redirector and the destination redirector, and the destination redirector is created by the destination device.
3. The method according to claim 2, characterized in that The step of creating a source redirector includes: Based on the source redirection instance, the destination device identifier, and the media type corresponding to the target redirection object, at least one of the source redirectors is created, wherein different source redirectors correspond to different media types, and the media types include at least one of video, audio, and control; The transmitting, to the destination device, redirection data corresponding to the source redirection instance through a link between the source redirector and the destination redirector, comprises: The redirection data of at least one of the media types is transmitted to the destination device via at least one link between at least one of the source redirectors and at least one of the destination redirectors.
4. The method according to claim 3, characterized in that: When the media type is video, the source-end redirector comprises a source-end video redirector; The method further comprises: The multiplexed video encoder performs video encoding on the pictures corresponding to the redirection instance of the same source end to obtain a video data stream; Diverting the video data stream to at least one source-end video redirector corresponding to the source-end redirection instance; The transmitting the redirection data of at least one media type to the destination device through at least one link between at least one source redirector and at least one destination redirector comprises: The video data stream is transmitted to the destination device through a link between the source video redirector and the destination video redirector.
5. The method according to claim 3, characterized in that: When the media type includes audio, the source-side redirector includes a source-side audio redirector; The method further comprises: When the type of the target redirection object is screen mirroring, audio is collected and encoded by a device-level audio collection encoder to obtain an audio data stream; When the type of the target redirection object is an application, audio collection and encoding are performed through an application-level audio collection encoder to obtain an audio data stream; The transmitting the redirection data of at least one media type to the destination device through at least one link between at least one source redirector and at least one destination redirector comprises: The audio data stream is transmitted to the destination device via a link between the source audio redirector and the destination audio redirector.
6. The method according to claim 3, characterized in that When the media type includes control, the source-end redirector includes a source-end control redirector; The method further comprises: Receiving a reverse control instruction sent by the destination device through a link between the source control redirector and the destination control redirector, wherein the reverse control instruction is triggered when the destination device receives a control operation on the target redirection object; The target redirection object is controlled based on the reverse control instruction.
7. The method according to any one of claims 1 to 6, characterized in that: The step of creating a source redirection instance based on the source device identifier and the target redirection object identifier includes: In response to the redirection operation, determining redirection information; or, in response to the redirection instruction sent by the third-party device, obtaining the redirection information contained in the redirection instruction; The source-end redirection instance is created based on the source-end device identifier and the target redirection object identifier in the redirection information; wherein the redirection information includes the source-end device identifier, the target redirection object identifier, the destination-end device identifier and the target screen identifier.
8. The method according to claim 7, characterized in that The redirection information also includes a media type, and the media type includes at least one of video, audio, and control.
9. The method according to claim 8, characterized in that The step of determining redirection information in response to the redirection operation includes: Display the redirection settings interface; In response to a triggering operation on a source device selection control in the redirection setting interface, determining the source device identifier; In response to a triggering operation on a redirection object selection control corresponding to the source device in the redirection setting interface, determining the target redirection object identifier; In response to a triggering operation on a destination device selection control in the redirection setting interface, determining the destination device identifier; In response to a triggering operation on a screen selection control corresponding to the destination device in the redirection setting interface, determining the target screen identifier; In response to a triggering operation on a media selection control in the redirection setting interface, the media type is determined.
10. A redirection method, characterized in that: The method is used for a destination device, and the method includes: Creating a destination redirection instance based on a destination device identifier and a target screen identifier, wherein the target screen identifier is used to represent a target screen of the destination device; Receiving redirection data transmitted by a source device, determining a source redirection instance corresponding to the redirection data, and determining a destination redirection instance corresponding to the same redirection event as the source redirection instance, wherein the source redirection instance is created based on a source device identifier and a destination redirection object identifier, and the destination redirection object identifier is used to represent a destination redirection object; Based on the redirection data, the target redirection object is displayed through the target screen indicated by the destination redirection instance.
11. The method according to claim 10, characterized in that The receiving of redirection data transmitted by the source device includes: Create a destination redirector; The redirection data transmitted by the source-end device is received through a link between the destination-end redirector and the source-end redirector, and the source-end redirector is created by the source-end device.
12. The method according to claim 11, characterized in that The step of creating a destination redirector includes: Based on the source redirection instance, the destination device identifier, and the media type corresponding to the target redirection object, at least one destination redirector is created, wherein different destination redirectors correspond to different media types, and the media type includes at least one of video, audio, and control; The receiving the redirection data transmitted by the source-end device through a link between the destination-end redirector and the source-end redirector comprises: The redirection data of at least one media type transmitted by the source device is received through at least one link between at least one destination redirector and at least one source redirector.
13. The method according to claim 12, characterized in that When the media type includes video, the destination redirector includes a destination video redirector; The method further comprises: The multiplexed video decoder performs video decoding on the video data stream corresponding to the same source-end redirection instance to obtain a picture corresponding to the source-end redirection instance.
14. The method according to claim 12, characterized in that When the media type includes video, the destination redirector includes a destination video redirector; The displaying the target redirection object on the target screen indicated by the target end redirection instance includes: The target redirection object is displayed through the target projection window application corresponding to the target screen.
15. The method according to claim 14, characterized in that The displaying of the target redirection object by applying the target projection window corresponding to the target screen includes: In response to the target projection window application corresponding to the target screen being in an unstarted state, starting the target projection window application; displaying the target redirection object through the target projection window application; or, In response to the target screen projection window application being in the startup state, the target redirection object is displayed by reusing the target screen projection window application, wherein after reusing the target screen projection window application, each redirection object is displayed in split screen on the target screen.
16. The method according to claim 12, characterized in that When the media type includes control, the destination redirector includes a destination control redirector; The method further comprises: generating a reverse control instruction in response to a control operation on the target redirection object; The reverse control instruction is sent to the source-end device through a link between the destination-end control redirector and the source-end control redirector, so that the source-end device controls the target redirection object based on the reverse control instruction.
17. The method according to claim 16, characterized in that The generating a reverse control instruction in response to the control operation on the target redirection object comprises: In response to a touch operation on the target screen, determining a first touch coordinate, where the first touch coordinate is located in a coordinate system of the target screen; In response to determining the target redirection object that the touch operation is used to control based on the first touch coordinates, converting the first touch coordinates into second touch coordinates, the second touch coordinates being located in a coordinate system of the target redirection object; The reverse control instruction is generated based on the second touch coordinates.
18. The method according to claim 17, characterized in that When the target projection window application corresponding to the target screen is reused by at least two redirection objects, after determining the first touch coordinates in response to the touch operation on the target screen, the method further includes: Obtaining the location information of each redirection object in the target projection window application; Based on the positional relationship between the first touch coordinates and the position information, a redirection object controlled by the touch operation is determined.
19. The method according to any one of claims 10 to 18, characterized in that: The step of creating a destination redirection instance based on the destination device identifier and the target screen identifier includes: Obtaining redirection information, wherein the redirection information includes the source device identifier, the target redirection object identifier, the destination device identifier, and the target screen identifier; The destination redirection instance is created based on the destination device identifier and the target screen identifier in the redirection information.
20. The method according to claim 19, characterized in that The redirection information also includes a media type, and the media type includes at least one of video, audio, and control.
21. The method according to any one of claims 10 to 18, characterized in that: The source device is a mobile terminal, and the destination device is a vehicle-mounted terminal.
22. A redirection device, characterized in that: The device comprises: A creation module, used to create a source redirection instance based on a source device identifier and a target redirection object identifier, wherein the target redirection object identifier is used to represent a target redirection object; A transmission module is used to transmit the redirection data corresponding to the source redirection instance to the destination device, so that the destination device can determine the source redirection instance corresponding to the redirection data, determine the destination redirection instance corresponding to the same redirection event as the source redirection instance, and display the target redirection object through the target screen indicated by the destination redirection instance, and the destination redirection instance is created based on the destination device identifier and the target screen identifier.
23. A redirection device, characterized in that: The device comprises: A creation module, used to create a destination redirection instance based on a destination device identifier and a target screen identifier, wherein the target screen identifier is used to represent a target screen of the destination device; a receiving module, configured to receive redirection data transmitted by a source-end device, determine a source-end redirection instance corresponding to the redirection data, and determine a destination-end redirection instance corresponding to the same redirection event as the source-end redirection instance, wherein the source-end redirection instance is created based on a source-end device identifier and a destination redirection object identifier, and the destination redirection object identifier is used to represent a destination redirection object; A display module is used to display the target redirection object through the target screen indicated by the destination redirection instance based on the redirection data.
24. A redirection system, characterized in that: The redirection system includes: at least one source-end device and at least one destination-end device; The source-end device is used to create a source-end redirection instance based on a source-end device identifier and a target redirection object identifier, wherein the target redirection object identifier is used to represent a target redirection object; and transmit redirection data corresponding to the source-end redirection instance to a destination-end device; The destination device is used to create a destination redirection instance based on a destination device identifier and a target screen identifier, wherein the target screen identifier is used to represent a target screen of the destination device; receive redirection data transmitted by the source device, determine the source redirection instance corresponding to the redirection data, and determine the destination redirection instance corresponding to the same redirection event as the source redirection instance; based on the redirection data, display the target redirection object through the target screen indicated by the destination redirection instance.
25. A computer device, characterized in that: The computer device includes a processor and a memory; the memory stores at least one instruction, and the at least one instruction is used to be executed by the processor to implement the redirection method as described in any one of claims 1 to 9, or to implement the redirection method as described in any one of claims 10 to 21.
26. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the program code is loaded and executed by a processor to implement the redirection method as described in any one of claims 1 to 9, or to implement the redirection method as described in any one of claims 10 to 21.
27. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the redirection method as described in any one of claims 1 to 9, or the redirection method as described in any one of claims 10 to 21.
Citation Information
Patent Citations
Screen projection method, system and related device
CN110221798A
Projection screen audio and video playing method and electronic equipment
CN111131866A
Multimedia data playing method, terminal and storage medium
CN111984215A
Data processing method and system
CN112860204A
Application picture display method and device, terminal, screen projection system and medium
CN112905289A
