Plug flow method of cloud mobile phone and plug flow system of cloud mobile phone
The initial flow push rules are issued according to the client terminal type through the PaaS platform, and the client generates and sends target flow push rules, which solves the problem that existing cloud mobile flow push services cannot flexibly configure and low efficiency in updating the flow push rules, and realizes flexible configuration and efficient update flow push services.
Patent Information
- Application Number
- CN202510331095.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-19
- Publication Date
- 2025-06-24
AI Technical Summary
Existing cloud mobile streaming services cannot be flexibly configured based on the client's terminal type and video parameters, and the update efficiency of streaming rules is inefficient.
The PaaS platform responds to the client's push flow request, determines the client's terminal type, and issues the initial push flow rules according to the terminal type. The client generates the target push-through rules based on the initial push-through rules and sends them to the PaaS platform to build a push-through service between the target cloud mobile phone and the client.
It realizes flexible configuration of cloud mobile phone streaming services according to client terminal type, improves the efficiency of streaming push rules updates, and changes can be made without updating the client version.
Smart Images

Figure CN120201083A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of cloud computing technology, and in particular, to a method for pushing video streams of cloud phones and a system for pushing video streams of cloud phones. Background Art
[0002] PaaS (Platform as a Service) is applied in cloud computing technology and can manage multiple cloud phones in a computer room. Cloud phones are devices configured in the computer room. PaaS can provide services such as computer room management, device management, device status monitoring, task scheduling, and device connection. Summary of the Invention
[0003] The present disclosure provides a method for pushing video streams of cloud phones and a system for pushing video streams of cloud phones.
[0004] According to a first aspect of the present disclosure, there is provided a method for pushing video streams of cloud phones, including: in response to receiving a video stream pushing request sent by a client, determining the terminal type of the client based on the video stream pushing request; determining an initial video stream pushing rule according to the terminal type, and sending the initial video stream pushing rule to the client, so that the client determines a target video stream pushing rule according to the initial video stream pushing rule; constructing a video stream pushing service between the target cloud phone and the client according to the target video stream pushing rule sent by the client, where the video stream pushing service is used to remotely control the target cloud phone.
[0005] According to a second aspect of the present disclosure, there is provided a method for pushing video streams of cloud phones, including: in response to detecting a video stream pushing request, sending the video stream pushing request to the PaaS platform; receiving and displaying the initial video stream pushing rule sent by the PaaS platform; sending the target video stream pushing rule to the PaaS platform, so that the PaaS platform remotely controls the target cloud phone according to the target video stream pushing rule, where the target video stream pushing rule is generated based on the initial video stream pushing rule.
[0006] According to a third aspect of the present disclosure, there is provided a system for pushing video streams of cloud phones, including: a client, configured to send the detected video stream pushing request to the PaaS platform, receive and display the initial video stream pushing rule sent by the PaaS platform; send the target video stream pushing rule to the PaaS platform, where the target video stream pushing rule is generated based on the initial video stream pushing rule; a PaaS platform side, configured to receive the video stream pushing request sent by the client, determine the terminal type of the client based on the video stream pushing request, and determine an initial video stream pushing rule according to the terminal type; send the initial video stream pushing rule to the client; construct a video stream pushing service between the target cloud phone and the client according to the target video stream pushing rule sent by the client, where the video stream pushing service is used to remotely control the target cloud phone.
[0007] According to a fourth aspect of the present disclosure, there is provided a streaming device for a cloud phone, including: a terminal type determination module configured to, in response to receiving a streaming request sent by a client, determine the terminal type of the client based on the streaming request; a rule sending module configured to determine an initial streaming rule according to the terminal type and send the initial streaming rule to the client, so that the client determines a target streaming rule according to the initial streaming rule; a service construction module configured to construct a streaming service between the target cloud phone and the client according to the target streaming rule sent by the client, wherein the streaming service is used to remotely control the target cloud phone.
[0008] According to a fifth aspect of the present disclosure, there is provided a streaming device for a cloud phone, including: a request sending module configured to, in response to detecting a streaming request, send the streaming request to a PaaS platform; a rule display module configured to receive and display the initial streaming rule sent by the PaaS platform; a control module configured to send the target streaming rule to the PaaS platform, so that the PaaS platform remotely controls the target cloud phone according to the target streaming rule, wherein the target streaming rule is generated based on the initial streaming rule.
[0009] According to a sixth aspect of the present disclosure, there is provided an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any implementation manner of the first aspect or the second aspect.
[0010] According to a seventh aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method described in any implementation manner of the first aspect or the second aspect.
[0011] According to an eighth aspect of the present disclosure, there is provided a computer program product including a computer program, and the computer program implements the method described in any implementation manner of the first aspect or the second aspect when executed by a processor.
[0012] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The drawings are used to better understand the solution and do not constitute a limitation to the present disclosure. Among them:
[0014] Figure 1 is a flowchart of an embodiment of the streaming method for a cloud phone according to the present disclosure;
[0015] Figure 2 is a flowchart of another embodiment of the video streaming method of the cloud mobile phone according to the present disclosure;
[0016] Figure 3 is a flowchart of yet another embodiment of the video streaming method of the cloud mobile phone according to the present disclosure;
[0017] Figure 4 is a flowchart of still another embodiment of the video streaming method of the cloud mobile phone according to the present disclosure;
[0018] Figure 5 is a flowchart of an embodiment of the video streaming method of the cloud mobile phone according to the present disclosure;
[0019] Figure 6 is a schematic framework diagram of the video streaming system of the cloud mobile phone according to the present disclosure;
[0020] Figure 7 is a schematic structural diagram of an embodiment of the video streaming device of the cloud mobile phone according to the present disclosure;
[0021] Figure 8 is a schematic structural diagram of another embodiment of the video streaming device of the cloud mobile phone according to the present disclosure;
[0022] Figure 9 is a block diagram of an electronic device for implementing the video streaming method of the cloud mobile phone in the embodiments of the present disclosure. Detailed Embodiments
[0023] The following describes exemplary embodiments of the present disclosure with reference to the accompanying drawings. Various details of the embodiments of the present disclosure are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted below.
[0024] It should be noted that, without conflict, the embodiments in the present disclosure and the features in the embodiments can be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0025] Cloud game applications (referred to as cloud games for short) are game methods based on cloud computing. In the operating mode of cloud games, all games are run on the server side, and the rendered game screens are compressed and transmitted to users through the network. On the client side, the user's game device does not require a high-end processor and graphics card, and only basic video decompression capabilities are needed.
[0026] Currently, for the relevant configurations of the live streaming services of cloud phones and cloud platforms, the video quality options can only be selected at the client side, such as: ultra high definition, high definition, and standard definition. And other relevant parameters such as video coding format, resolution, and frame rate cannot be selected, and modifying and restricting the live streaming related parameters can only rely on the client to release a new version.
[0027] The PaaS platform can provide services in different business scenarios. For example, it can provide services in scenarios such as cloud gaming, web search, and marketing. PaaS can provide services such as computer room management, device management, virtualization configuration management, control node load balancing, device connection authentication, and device status monitoring for the computer room downward, and can provide basic capabilities such as unified instance management, instance operation, task scheduling, standardized services, and device connection for the business layer of the client upward.
[0028] Reference Figure 1 , which shows the flow 100 of an embodiment of the live streaming method of a cloud phone according to the present disclosure. The live streaming method of the cloud phone is applied to the PaaS platform and includes the following steps:
[0029] Step 101, in response to receiving a live streaming request sent by the client, determine the terminal type of the client based on the live streaming request.
[0030] In this embodiment, if the execution subject (PaaS platform) of the live streaming method of the cloud phone receives a live streaming request sent by the client, it will determine the terminal type of the client that sends the live streaming request according to the identification information of the client included in the live streaming request. Here, the terminal type may include a mobile terminal (such as an Android terminal), a PC (Personal Computer) terminal, and an H5 (HTML5) terminal.
[0031] Specifically, when a user requests the live streaming service using a mobile operating system, the live streaming request sent will include the identification corresponding to the mobile terminal. At this time, the above-mentioned execution subject will determine the terminal type of the client as the mobile terminal based on this identification.
[0032] The PC terminal refers to the personal computer terminal. That is, when a user requests the live streaming service using the personal computer terminal, the live streaming request sent will include the identification corresponding to the PC terminal. At this time, the above-mentioned execution subject will determine the terminal type of the client as the PC terminal based on this identification.
[0033] The H5 terminal is the abbreviation of the mobile web page, developed using HTML5 technology and can be directly accessed in the mobile browser. That is, when a user requests the live streaming service using the mobile browser, the live streaming request sent will include the identification corresponding to the H5 terminal. At this time, the above-mentioned execution subject will determine the terminal type of the client as the H5 terminal based on this identification.
[0034] Step 102: Determine the initial streaming rule according to the terminal type and send the initial streaming rule to the client.
[0035] In this embodiment, the above execution entity determines the initial streaming rule according to the terminal type and sends the initial streaming rule to the client, so that the client determines the target streaming rule according to the initial streaming rule. Here, the above execution entity has pre-set corresponding streaming rules for different clients, that is, each type of client corresponds to an initial streaming rule, and this initial streaming rule is set according to the characteristics and operation characteristics of different clients. The initial streaming rule generally includes: connection mode, video parameters, device control parameters, and other rules. The connection mode includes multiple options for the user to choose. The video encoding parameters generally include: H265 switch of the video stream, H265 bitrate configuration of the video stream, H264 bitrate configuration of the video stream, video stream frame rate, video stream resolution, etc. The device control parameters generally include: switch of the streaming marking data, switch of the camera function, switch of the microphone function, switch of the GPS positioning function, etc. Other rules may include the SDK version prohibition list, etc.
[0036] After determining the terminal type of the client for which the streaming request is sent, the above execution entity determines the corresponding streaming rule, that is, the initial streaming rule, according to the terminal type, and sends the initial streaming rule to the client.
[0037] For example, if the above execution entity determines that the terminal type of the client is the Android terminal, it will obtain the streaming rule corresponding to the Android terminal (Android terminal streaming rule) and send it to the client as the initial streaming rule.
[0038] For another example, if the above execution entity determines that the terminal type of the client is the PC terminal, it will obtain the streaming rule corresponding to the PC terminal (PC terminal streaming rule) and send it to the client as the initial streaming rule.
[0039] Step 103: Construct a streaming service between the target cloud phone and the client according to the target streaming rule sent by the client.
[0040] In this embodiment, after the above-mentioned execution entity sends the initial streaming rule to the client, the user can select and set in the initial streaming rule displayed on the client to generate a target streaming rule, and the client will send the target streaming rule to the above-mentioned execution entity. Therefore, the above-mentioned execution entity will construct a streaming service between the target cloud phone and the client according to the target streaming rule sent by the client, where the streaming service is used to remotely control the target cloud phone. That is, after receiving the target streaming rule, the above-mentioned execution entity will construct a streaming service between the target cloud phone and the client, and the streaming service can be used for the client to remotely control the target cloud phone. That is, the client can control the target cloud phone through the streaming service and perform operations such as accessing the target cloud phone. It should be noted that this embodiment does not make specific limitations on the construction and use of the streaming service.
[0041] The streaming method of the cloud phone provided by the embodiments of the present disclosure, in response to receiving a streaming request sent by a client, first determines the terminal type of the client based on the streaming request; then determines an initial streaming rule according to the terminal type and sends the initial streaming rule to the client, so that the client determines a target streaming rule according to the initial streaming rule; finally, constructs a streaming service between the target cloud phone and the client according to the target streaming rule sent by the client. In the streaming method of the cloud phone in this embodiment, the method uses the PaaS platform as the streaming service console, and the PaaS platform can send the streaming rule corresponding to the terminal type to the client according to the terminal type of the client, thereby realizing the distribution of the streaming rule according to the terminal type; in addition, when the streaming rule needs to be changed, there is no need to update the version of the client, and only the PaaS platform needs to send the streaming rule to the client again, thereby improving the update efficiency of the streaming rule.
[0042] In addition, in the technical solutions involved in the present disclosure, the acquisition, storage, use, processing, transportation, provision, and disclosure of the user's personal information (such as the streaming request involved in the present disclosure) and other processes all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0043] Continue to refer to Figure 2 , Figure 2 shows a flow 200 of another embodiment of the streaming method of the cloud phone according to the present disclosure. The streaming method of the cloud phone includes the following steps:
[0044] Step 201, in response to receiving a streaming request sent by a client, determine the client identifier in the streaming request; determine the terminal type of the client based on the client identifier.
[0045] In this embodiment, after the execution subject (PaaS platform) of the cloud phone streaming method receives a streaming request sent by a client, it first determines the client identifier included in the streaming request, and then determines the terminal type of the client according to the client identifier. That is, when the user uses different clients to send streaming requests, the streaming request will carry the type information (i.e., terminal type) of different terminals used by the user. The above-mentioned execution subject can determine the terminal type of the client by parsing the client identifier in the streaming request. Thus, the terminal type of the client can be accurately determined through the client identifier in the streaming request, and subsequent corresponding streaming rules can be issued according to different terminal types, thereby improving the accuracy of the issued streaming rules.
[0046] In some alternative implementation manners of this embodiment, the terminal types include the mobile terminal, the PC terminal, and the H5 terminal; and determining the terminal type of the client based on the streaming request includes: in response to determining that the terminal type is the mobile terminal, determining the initial streaming rule as the mobile terminal streaming rule; in response to determining that the terminal type is the PC terminal, determining the initial streaming rule as the PC terminal streaming rule; in response to determining that the terminal type is the H5 terminal, determining the initial streaming rule as the H5 terminal streaming rule.
[0047] In this implementation manner, if the above-mentioned execution subject determines that the terminal type of the client is the mobile terminal (such as the Android terminal), it will obtain the streaming rule corresponding to the mobile terminal (mobile terminal streaming rule) and send it to the client as the initial streaming rule. If the above-mentioned execution subject determines that the terminal type of the client is the PC terminal, it will obtain the streaming rule corresponding to the PC terminal (PC terminal streaming rule) and send it to the client as the initial streaming rule. If the above-mentioned execution subject determines that the terminal type of the client is the H5 terminal, it will obtain the streaming rule corresponding to the H5 terminal (H5 terminal streaming rule) and send it to the client as the initial streaming rule. The above-mentioned execution subject can issue the streaming rule corresponding to the terminal type to the client according to the terminal type of the client, thereby realizing the issuance of streaming rules according to the terminal type dimension.
[0048] Step 202, determine the initial streaming rule according to the terminal type, and send the initial streaming rule to the client.
[0049] Step 203, construct a streaming service between the target cloud phone and the client according to the target streaming rule sent by the client.
[0050] Steps 202-203 are basically the same as steps 102-103 in the foregoing embodiment. The specific implementation manner can refer to the description of steps 102-103 above, and will not be elaborated here.
[0051] In some alternative implementation manners of this embodiment, the target streaming rule includes: a connection mode parameter, a video encoding parameter, and / or a device control parameter. That is, the user can customize the connection mode, the video encoding parameter, and / or the device control information. The connection mode includes multiple options for the user to select. The video encoding parameters generally include: the H265 switch of the video stream, the H265 bitrate configuration of the video stream, the H264 bitrate configuration of the video stream, the frame rate of the video stream, the resolution of the video stream, etc. The device control parameters generally include: the switch of the streaming marking data, the switch of the camera function, the switch of the microphone function, the switch of the GPS positioning function, etc. Thus, the relevant parameters in the cloud phone streaming process can be customized by the user.
[0052] Step 204: In response to receiving the error message sent by the client, determine the error function permission corresponding to the error message, and reconfigure the error function permission in the target streaming rule.
[0053] In this embodiment, when a problem occurs in a certain function of the client, the user can report an error. The client will send the error message to the above-mentioned execution entity. After receiving the error message sent by the client, the above-mentioned execution entity will determine the error function permission corresponding to the error message, and reconfigure the error function permission in the target streaming rule, so as to obtain the configured target streaming rule. Thus, the streaming rule can be separately configured for a single device, thereby improving the user experience.
[0054] From Figure 2 it can be seen that compared with the corresponding embodiment of Figure 1 , in the streaming method of the cloud phone in this embodiment, the method can also determine the error function permission corresponding to the error message according to the error message sent by the client, and reconfigure the error function permission in the target streaming rule, thereby realizing the separate configuration of the streaming rule for a single device, and thus improving the user experience.
[0055] Continuing to refer to Figure 3 , Figure 3 shows a flow 300 of another embodiment of the streaming method of the cloud phone according to the present disclosure. The streaming method of the cloud phone includes the following steps:
[0056] Step 301: In response to receiving the streaming request sent by the client, determine the terminal type of the client based on the streaming request.
[0057] Step 301 is basically the same as step 101 of the foregoing embodiment. The specific implementation manner can refer to the description of step 101 above, and will not be elaborated here.
[0058] Step 302: Determine the target cloud phone from the target computer room corresponding to the client.
[0059] In this embodiment, the execution subject of the cloud phone streaming method determines a target cloud phone from the target computer room corresponding to the client. Specifically, the above execution subject can determine the IP address corresponding to the client that sends the streaming request, and based on the IP address, determine the target computer room from multiple preset computer rooms, and then determine the target cloud phone from multiple cloud phones in the target computer room. For example, the streaming request may include an IP address, that is, the IP address can be obtained from the streaming request. The IP address can represent the current geographical location of the client.
[0060] Step 303: Determine an initial streaming rule according to the terminal type and the configuration information of the target cloud phone.
[0061] In this embodiment, the above execution subject will, on the basis of the terminal type of the client, further combine the configuration information of the target cloud phone to comprehensively determine the initial streaming rule. Here, the configuration information of the target cloud phone can be used to characterize whether the target cloud phone is high - configuration or low - configuration. If the target cloud phone is low - configuration, some functions of the target cloud phone will be turned off; if the target cloud phone is high - configuration, the corresponding high - configuration functions will be opened for the target cloud phone.
[0062] For example, assume that the terminal type of the client is the Android end in the mobile terminal. First, obtain the Android - end streaming rule. The Android - end streaming rule here includes: Android SDK version prohibition list, Android connection mode selection, Android streaming data marking switch, Android camera function switch, Android microphone function switch, Android GPS positioning function switch, Android video stream H265 switch, Android video stream H265 bitrate configuration, Android video stream H264 bitrate configuration, Android video stream frame rate, and Android video stream resolution. If the above execution subject determines that the configuration information of the target cloud phone is low - configuration, then the GPS positioning function, camera function, and microphone function in the obtained Android - end streaming rule will be turned off to obtain the initial streaming rule. If the configuration information of the target cloud phone is high - configuration, then the GPS positioning function, camera function, and microphone function in the obtained Android - end streaming rule will be turned on, that is, the obtained Android - end streaming rule will be used as the initial streaming rule. Thus, on the basis of the terminal type of the client, the configuration information of the target cloud phone is also combined to comprehensively determine the initial streaming rule, making the determined initial streaming rule more targeted.
[0063] Step 304: Send the initial streaming rule to the client.
[0064] In this embodiment, the above execution subject sends the determined initial streaming rule to the client so that the client can determine the target streaming rule according to the initial streaming rule.
[0065] Step 305: Construct a streaming service between the target cloud phone and the client according to the target streaming rule sent by the client.
[0066] Step 305 is basically the same as step 103 of the foregoing embodiment, and the specific implementation manner can refer to the description of step 103 above, which will not be elaborated here.
[0067] From Figure 3 it can be seen that compared with the Figure 2 corresponding embodiment, in the method for pushing the stream of the cloud phone in this embodiment, the step of comprehensively determining the initial stream pushing rule according to the terminal type of the client and the configuration information of the target cloud phone is highlighted, thereby enhancing the pertinence of the determined initial stream pushing rule.
[0068] Continuing to refer to Figure 4 , Figure 4 shows a flow 400 of another embodiment of the method for pushing the stream of the cloud phone according to the present disclosure. The method for pushing the stream of the cloud phone includes the following steps:
[0069] Step 401, in response to receiving a stream pushing request sent by a client, determining the terminal type of the client based on the stream pushing request.
[0070] Step 401 is basically the same as step 101 of the foregoing embodiment, and the specific implementation manner can refer to the description of step 101 above, which will not be elaborated here.
[0071] Step 402, determining the address information of the client according to the stream pushing request.
[0072] In this embodiment, the execution subject of the method for pushing the stream of the cloud phone will parse the stream pushing request to determine the address information of the client. Here, the address information can be an IP address, and the IP address can represent the current geographical location of the client.
[0073] Step 403, determining a target computer room from a plurality of preset computer rooms according to the address information; determining a target cloud phone from a plurality of cloud phones in the target computer room.
[0074] In this embodiment, the above-mentioned execution subject will determine the target computer room from a plurality of preset computer rooms according to the IP address. For example, the stream pushing request may include the IP address, that is, the IP address can be obtained from the stream pushing request. Then, a target cloud phone is determined from a plurality of cloud phones in the target computer room. That is, the stream pushing request may include the cloud phone identifier of the target cloud phone that the user wants to perform stream pushing or connect to. The above-mentioned execution subject can determine the target cloud phone from a plurality of cloud phones in the target computer room according to the cloud phone identifier. Thus, the target cloud phone for providing the stream pushing service can be accurately determined.
[0075] Step 404, determining the target function permission according to the configuration information of the target cloud phone.
[0076] In this embodiment, the above-mentioned execution entity will first determine the configuration information of the target cloud mobile phone, and the configuration information here can be used to characterize whether the target cloud mobile phone is high-end or low-end. If the target cloud mobile phone is low-end, some functions of the target cloud mobile phone will be turned off; if the target cloud mobile phone is high-end, the corresponding high-end functions will be enabled for the target cloud mobile phone.
[0077] Step 405: Determine the initial streaming rule according to the streaming rule corresponding to the terminal type and the target function permission.
[0078] In this embodiment, the above-mentioned execution entity will, on the basis of the terminal type of the client, further combine the configuration information of the target cloud mobile phone to comprehensively determine the initial streaming rule. That is, first obtain the streaming rule corresponding to the terminal type, and then modify the streaming rule in combination with the target function permission to obtain the initial streaming rule. Thus, on the basis of the terminal type of the client, the configuration information of the target cloud mobile phone is also combined to comprehensively determine the initial streaming rule, making the determined initial streaming rule more targeted.
[0079] For example, assume that the terminal type of the client is a PC. First, obtain the PC streaming rule. The PC streaming rule here includes: PC SDK version prohibition list, PC connection mode selection, PC streaming data marking switch, PC camera function switch, PC microphone function switch, PC GPS positioning function switch, PC video stream H265 switch, PC video stream H265 bitrate configuration, PC video stream H264 bitrate configuration, PC video stream frame rate, and PC video stream resolution. Then, if the above-mentioned execution entity determines that the configuration information of the target cloud mobile phone is low-end, the GPS positioning function, camera function, and microphone function in the obtained PC streaming rule will be turned off to obtain the initial streaming rule. If the configuration information of the target cloud mobile phone is high-end, the GPS positioning function, camera function, and microphone function in the obtained PC streaming rule will be turned on, that is, the obtained PC streaming rule will be used as the initial streaming rule.
[0080] For another example, assume that the terminal type of the client is the H5 terminal. First, obtain the H5 push stream rules, which include: the H5 SDK version prohibition list, the H5 connection mode selection, the H5 push stream data marking switch, the H5 camera function switch, the H5 microphone function switch, the H5 GPS positioning function switch, the H5 video stream H265 switch, the H5 video stream H265 bitrate configuration, the H5 video stream H264 bitrate configuration, the H5 video stream frame rate, and the H5 video stream resolution. Then, if the execution entity determines that the configuration information of the target cloud phone is low, it will turn off the GPS positioning function, camera function, and microphone function in the obtained H5 push stream rules to obtain the initial push stream rules. If the configuration information of the target cloud phone is high, it will turn on the GPS positioning function, camera function, and microphone function in the obtained H5 push stream rules, that is, use the obtained H5 push stream rules as the initial push stream rules.
[0081] Step 406: Send the initial push stream rules to the client.
[0082] In this embodiment, the above execution entity sends the determined initial push stream rules to the client so that the client can determine the target push stream rules according to the initial push stream rules.
[0083] Step 407: Construct a push stream service between the target cloud phone and the client according to the target push stream rules sent by the client.
[0084] Step 407 is basically the same as step 103 in the foregoing embodiment. The specific implementation manner can refer to the description of step 103 above and will not be elaborated here.
[0085] From Figure 4 it can be seen that compared with the corresponding embodiment Figure 3 , in the push stream method of the cloud phone in this embodiment, based on the terminal type of the client and combined with the configuration information of the target cloud phone, the initial push stream rules are comprehensively determined, making the determined initial push stream rules more targeted.
[0086] Continue to refer to Figure 5 , which shows the flow 500 of an embodiment of the push stream method of the cloud phone according to the present disclosure. This push stream method of the cloud phone is applied to the client and includes the following steps:
[0087] Step 501: In response to detecting a push stream request, send the push stream request to the PaaS platform.
[0088] In this embodiment, when the execution entity (client) of the cloud phone's streaming method detects a user's streaming request, it will send the streaming request to the PaaS platform. Generally, the streaming request may include: the terminal type of the client, the address information of the client, and the identification information of the cloud phone that the user wants to stream.
[0089] Step 502, receive and display the initial streaming rule sent by the PaaS platform.
[0090] In this embodiment, after the above-mentioned execution entity sends the streaming request to the PaaS platform, the PaaS platform will determine the initial streaming rule according to the information in the streaming request, and send the determined initial streaming rule to the above-mentioned execution entity, and the above-mentioned execution entity will receive and display the initial streaming rule sent by the PaaS platform.
[0091] Step 503, send the target streaming rule to the PaaS platform.
[0092] In this embodiment, the user can further select and configure the streaming rule according to actual needs on the initial streaming rule displayed by the client, and generate the target streaming rule after the user's configuration is completed. The above-mentioned execution entity will send the target streaming rule to the PaaS platform so that the PaaS platform can remotely control the target cloud phone according to the target streaming rule. For example, the user can select a specific prohibited SDK (Software Development Kit) version and a specific connection mode in the initial streaming rule, select to turn on the camera, turn on the microphone, turn on the GPS positioning, etc., so as to obtain the target streaming rule.
[0093] In some optional implementation manners of this embodiment, the above method further includes: in response to detecting an error message, sending the error message to the PaaS platform so that the PaaS platform can change the target streaming rule according to the error message.
[0094] In this implementation manner, if a problem occurs with a certain function of the client, the user can report an error. After the above-mentioned execution entity detects the error message, it will send the error message to the PaaS platform. After receiving the error message sent by the client, the PaaS platform will determine the error function permission corresponding to the error message, and reconfigure the error function permission in the target streaming rule, that is, the PaaS platform will change the target streaming rule according to the error message. Thus, it realizes the separate configuration of the streaming rule for a single device, thereby improving the user experience.
[0095] The streaming method of the cloud phone provided by the embodiments of the present disclosure, in response to detecting a streaming request, first sends the streaming request to the PaaS platform; then receives and displays the initial streaming rules sent by the PaaS platform; and finally sends the target streaming rules to the PaaS platform. In the streaming method of the cloud phone in this embodiment, the user can customize the target streaming rules based on the initial streaming rules. Therefore, when the streaming rules need to be changed, there is no need to update the version of the client, realizing more convenient and fast configuration of the streaming parameters of the cloud phone.
[0096] Continue to refer to Figure 6 , which shows a schematic framework of the streaming system of the cloud phone according to the present disclosure. As Figure 6 shown, the system 600 may include a client 601 and a PaaS platform end 602. Among them, the client 601 sends the detected streaming request to the PaaS platform end 602, receives and displays the initial streaming rules sent by the PaaS platform end 602, and sends the target streaming rules generated based on the initial streaming rules to the PaaS platform end 602. The PaaS platform end 602 receives the streaming request sent by the client 601, determines the terminal type of the client 601 based on the streaming request; determines the initial streaming rules according to the terminal type, and sends the initial streaming rules to the client 601; constructs a streaming service between the target cloud phone and the client according to the target streaming rules sent by the client 601, where the streaming service is used to remotely control the target cloud phone.
[0097] That is, in this system, the PaaS platform end initiates "streaming rules" to the client. The streaming rules include: connection mode, video parameters, and other rules. The streaming rules are set through the UI (User Interface) page of the PaaS platform. The client calls the http interface to obtain the connection device information. When returning the device connection information, a new json field is added to the original protocol. The client sends the connection information to the SDK, and the SDK parses the streaming rules, reads the streaming rule fields, and connects the devices according to the rules.
[0098] The above-mentioned streaming system of the cloud phone links the client SDK with the PaaS platform, realizes the distribution of streaming rules in different dimensions such as by single device, by network segment, and by device type, and changes the actions that could only be achieved by updating the client before into obtaining new parameters through the API. And it can distribute streaming rules according to different types of clients (Android, PC, H5 client), and support rules such as video stream parameters and sensor switches. In addition, by customizing the prohibited SDK version and other streaming rules, the problem of being unable to stop losses and roll back in case of problems online is effectively solved.
[0099] Further refer to Figure 7, as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a streaming device for a cloud phone. This device embodiment corresponds to the Figure 1 method embodiment shown, and this device can be specifically applied to various electronic devices.
[0100] As shown in Figure 7 , the streaming device 700 of the cloud phone in this embodiment includes: a terminal type determination module 701, a rule sending module 702, and a service construction module 703. The terminal type determination module 701 is configured to, in response to receiving a streaming request sent by a client, determine the terminal type of the client based on the streaming request; the rule sending module 702 is configured to determine an initial streaming rule according to the terminal type and send the initial streaming rule to the client, so that the client determines a target streaming rule according to the initial streaming rule; the service construction module 703 is configured to construct a streaming service between the target cloud phone and the client according to the target streaming rule sent by the client, where the streaming service is used to remotely control the target cloud phone.
[0101] In this embodiment, in the streaming device 700 of the cloud phone: the specific processing of the terminal type determination module 701, the rule sending module 702, and the service construction module 703 and the technical effects brought by them can respectively refer to the Figure 1 related descriptions of steps 101-103 in the corresponding embodiment, which will not be elaborated here.
[0102] In some optional implementation manners of this embodiment, the terminal type determination module 701 is further configured to: determine the client identifier in the streaming request; determine the terminal type of the client based on the client identifier.
[0103] In some optional implementation manners of this embodiment, the terminal type includes a mobile terminal, a PC terminal, and an H5 terminal; and the rule sending module 702 is further configured to: in response to determining that the terminal type is a mobile terminal, determine that the initial streaming rule is a mobile terminal streaming rule; in response to determining that the terminal type is a PC terminal, determine that the initial streaming rule is a PC terminal streaming rule; in response to determining that the terminal type is an H5 terminal, determine that the initial streaming rule is an H5 terminal streaming rule.
[0104] In some optional implementation manners of this embodiment, the above-mentioned streaming device 700 of the cloud phone further includes: a cloud phone determination module, configured to determine a target cloud phone from the target computer room corresponding to the client; and the rule sending module 702 includes: a determination sub-module, configured to determine an initial streaming rule according to the terminal type and the configuration information of the target cloud phone.
[0105] In some alternative implementation manners of this embodiment, the cloud phone determination module is further configured to: determine the address information of the client according to the streaming request; determine the target computer room from a plurality of preset computer rooms according to the address information; and determine the target cloud phone from a plurality of cloud phones in the target computer room.
[0106] In some alternative implementation manners of this embodiment, the determination sub-module is further configured to: determine the target function permissions according to the configuration information of the target cloud phone; and determine the initial streaming rules according to the streaming rules corresponding to the terminal type and the target function permissions.
[0107] In some alternative implementation manners of this embodiment, the streaming device 700 of the cloud phone further includes: a configuration module, configured to, in response to receiving the error message sent by the client, determine the error function permissions corresponding to the error message, and reconfigure the error function permissions in the target streaming rules.
[0108] In some alternative implementation manners of this embodiment, the target streaming rules include: connection mode parameters, video encoding parameters, and / or device control parameters.
[0109] Further referring to Figure 8 , as an implementation of the methods shown in the above figures, the present disclosure provides another embodiment of a streaming device of a cloud phone. This device embodiment corresponds to Figure 5 the method embodiment shown, and this device can be specifically applied to various electronic devices.
[0110] As shown in Figure 8 , the streaming device 800 of the cloud phone in this embodiment includes: a request sending module 801, a rule display module 802, and a control module 803. The request sending module 801 is configured to, in response to detecting a streaming request, send the streaming request to the PaaS platform; the rule display module 802 is configured to receive and display the initial streaming rules sent by the PaaS platform; the control module 803 is configured to send the target streaming rules to the PaaS platform, so that the PaaS platform remotely controls the target cloud phone according to the target streaming rules, where the target streaming rules are generated based on the initial streaming rules.
[0111] In this embodiment, in the streaming device 800 of the cloud phone: the specific processing of the request sending module 801, the rule display module 802, and the control module 803 and the technical effects brought by them can respectively refer to Figure 5 the relevant descriptions of steps 501-503 in the corresponding embodiments, which will not be elaborated here.
[0112] In some alternative implementation manners of this embodiment, the streaming device 800 of the cloud phone further includes an error reporting module configured to send the error information to the PaaS platform in response to detecting the error information, so that the PaaS platform changes the target streaming rule according to the error information.
[0113] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0114] Figure 9 A schematic block diagram of an example electronic device 900 that can be used to implement the embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as, a personal digital processor, a cellular phone, a smart phone, a wearable device, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0115] As Figure 9 shown, the device 900 includes a computing unit 901 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0116] Multiple components in the device 900 are connected to the I / O interface 905, including: an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of displays, speakers, etc.; a storage unit 908, such as a magnetic disk, an optical disc, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the device 900 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0117] The computing unit 901 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 901 executes the various methods and processes described above, such as the live streaming method of the cloud phone. For example, in some embodiments, the live streaming method of the cloud phone can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps of the live streaming method of the cloud phone described above can be executed. Alternatively, in other embodiments, the computing unit 901 can be configured to execute the live streaming method of the cloud phone in any other suitable manner (e.g., by means of firmware).
[0118] Various embodiments of the systems and techniques described above in this document can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a dedicated or general-purpose programmable processor, and can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit the data and instructions to the storage system, the at least one input device, and the at least one output device.
[0119] The program code for implementing the methods of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to the processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing devices, such that when the program codes are executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program codes can be executed entirely on the machine, partially on the machine, executed partially on the machine as an independent software package and partially on a remote machine, or executed entirely on a remote machine or server.
[0120] In the context of this disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0121] In order to provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, speech input, or tactile input).
[0122] The systems and techniques described herein can be implemented in a computing system including backend components (e.g., as a data server), or a computing system including middleware components (e.g., an application server), or a computing system including frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system including any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0123] A computer system can include a client and a server. The client and the server are generally remote from each other and typically interact through a communication network. The relationship of the client and the server is generated by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
[0124] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps recited in this disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and no limitations are imposed herein.
[0125] The above specific embodiments do not constitute a limitation on the protection scope of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub - combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the protection scope of this disclosure.
Claims
1. A streaming method for a cloud phone, comprising: In response to receiving a streaming request sent by a client, determining a terminal type of the client based on the streaming request; Determining an initial streaming rule according to the terminal type, and sending the initial streaming rule to the client, so that the client determines a target streaming rule according to the initial streaming rule; A streaming service is established between the target cloud phone and the client according to the target streaming rule sent by the client, wherein the streaming service is used to remotely control the target cloud phone.
2. The method according to claim 1, wherein: The determining the terminal type of the client based on the streaming request includes: Determine the client identifier in the streaming request; The terminal type of the client is determined based on the client identifier.
3. The method according to claim 1, wherein: The terminal types include mobile terminal, PC terminal and H5 terminal; as well as The determining of the initial streaming rule according to the terminal type includes: In response to determining that the terminal type is the mobile terminal, determining that the initial streaming rule is a mobile terminal streaming rule; In response to determining that the terminal type is the PC terminal, determining that the initial streaming rule is a PC terminal streaming rule; In response to determining that the terminal type is the H5 terminal, the initial streaming rule is determined to be an H5 terminal streaming rule.
4. The method according to claim 3, further comprising: Determine the target cloud phone from the target computer room corresponding to the client; as well as The determining of the initial streaming rule according to the terminal type further includes: The initial streaming rule is determined according to the terminal type and the configuration information of the target cloud phone.
5. The method according to claim 4, wherein: The determining the target cloud phone from the target computer room corresponding to the client includes: Determining the address information of the client according to the streaming request; Determining a target computer room from a plurality of preset computer rooms according to the address information; The target cloud phone is determined from multiple cloud phones in the target computer room.
6. The method according to claim 4, wherein: The determining the initial streaming rule according to the terminal type and the configuration information of the target cloud phone includes: Determine the target function permissions according to the configuration information of the target cloud phone; The initial streaming rule is determined according to the streaming rule corresponding to the terminal type and the target function permission.
7. The method according to claim 1, further comprising: In response to receiving the error message sent by the client, determining the error function permission corresponding to the error message, and reconfiguring the error function permission in the target streaming rule.
8. The method according to any one of claims 1 to 7, wherein: The target streaming rules include: connection mode parameters, video encoding parameters and / or device control parameters.
9. A streaming method for a cloud phone, comprising: In response to detecting a streaming request, sending the streaming request to a Platform as a Service (PaaS) platform; Receive and display the initial streaming rules sent by the PaaS platform; The target streaming rule is sent to the PaaS platform, so that the PaaS platform remotely controls the target cloud phone according to the target streaming rule, wherein the target streaming rule is generated based on the initial streaming rule.
10. The method according to claim 9, further comprising: In response to detecting the error information, the error information is sent to the PaaS platform, so that the PaaS platform changes the target streaming rule according to the error information.
11. A streaming system for a cloud phone, comprising: The client is used to send the detected streaming request to the PaaS platform, and receive and display the initial streaming rule sent by the PaaS platform; Sending the target streaming rule to the PaaS platform, wherein the target streaming rule is generated based on the initial streaming rule; The PaaS platform is used to receive a streaming request sent by the client, determine the terminal type of the client based on the streaming request; determine initial streaming rules according to the terminal type, and send the initial streaming rules to the client; and build a streaming service between a target cloud phone and the client according to the target streaming rules sent by the client, wherein the streaming service is used to remotely control the target cloud phone.
12. A streaming device for a cloud phone, comprising: A terminal type determination module is configured to, in response to receiving a streaming request sent by a client, determine the terminal type of the client based on the streaming request; A rule sending module is configured to determine an initial streaming rule according to the terminal type, and send the initial streaming rule to the client, so that the client determines a target streaming rule according to the initial streaming rule; The service construction module is configured to construct a streaming service between a target cloud phone and the client according to the target streaming rule sent by the client, wherein the streaming service is used to remotely control the target cloud phone.
13. A streaming device for a cloud phone, comprising: A request sending module, configured to send the streaming request to the PaaS platform in response to detecting the streaming request; A rule display module is configured to receive and display the initial streaming rules sent by the PaaS platform; The control module is configured to send the target streaming rule to the PaaS platform so that the PaaS platform remotely controls the target cloud phone according to the target streaming rule, wherein the target streaming rule is generated based on the initial streaming rule.
14. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8 or 9-10.
15. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method of any one of claims 1-8 or 9-10.
16. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1-8 or 9-10.