Streaming media data continuing method and device, cloud server and storage medium
By setting up the determination, pause and restart modules in the virtual device, the problem of how streaming media data continues when the virtual device receives a push request is solved, and the continuous push and efficient push of streaming media data is realized, which improves user experience and efficiency.
Patent Information
- Application Number
- CN202411534783.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-28
AI Technical Summary
When a virtual device receives a push request, how to implement continuous push of streaming media data from the last push stop position is an urgent problem.
By implementing the determination module, the pause module and the restart module on the virtual device, it is used to determine whether to trigger the stop push request, suspend the streaming media data push, and restart the streaming media data push after receiving the new push request, and continue to push streaming media data to the new terminal device from the last push stop position.
It realizes the continuous push of streaming media data, improves the efficiency and user experience of streaming media data push, reduces storage needs, and simplifies the control method of stopping push.
Smart Images

Figure CN119544682A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual machine technology, and in particular to a method, device, cloud server and storage medium for continuing streaming media data. Background Art
[0002] With the development of technology, a virtual device corresponding to the terminal device can be deployed in the cloud, and the calculations originally deployed in the terminal device can be migrated to the virtual device to reduce the computing power requirements of the terminal device, thereby making up for the problem of insufficient computing power of the terminal device.
[0003] Specifically, the virtual device can provide services to the user by pushing streaming media data to the user's terminal device. The user can send push requests to the virtual device through the same terminal device or different terminal devices at different times, so that the virtual device pushes streaming media data to the terminal device. Based on this, when the virtual device receives a push request, how to continue pushing the streaming media data from the last push stop position is an urgent problem to be solved. Summary of the invention
[0004] The present invention provides a method, device, cloud server and storage medium for continuing streaming media data, which can realize the continued push of streaming media data from the last push stop position.
[0005] In a first aspect, an embodiment of the present application provides a method for continuing streaming media data, which is applied to a virtual device, and the virtual device is deployed in the cloud, including: when pushing streaming media data to a first terminal device of a user, determining whether to trigger a stop push request; when determining that the stop push request is triggered, pausing the push of the streaming media data to the first terminal device; receiving a push request sent by the user through a second terminal device, and in response to the push request, restarting the push of the streaming media data, and pushing the streaming media data to the second terminal device from a first pause position; wherein the first pause position is the pause position of the streaming media data.
[0006] Optionally, the difference between the third moment and the first moment exceeds a first preset duration, and the third moment is the moment of receiving the push request, and the first moment is the moment of pausing the pushing of the streaming media data to the first terminal device; receiving the push request sent by the user through the second terminal device, and responding to the push request, restarting the pushing of the streaming media data, and pushing the streaming media data to the second terminal device from the first pause position includes: at the second moment, saving the pause progress information of the streaming media data, and closing the virtual device; wherein the second moment is the sum of the first moment and the first preset duration; at the third moment, receiving the push request, responding to the push request, starting the virtual device, and, according to the pause progress information of the streaming media data, starting the pushing of the streaming media data, so as to push the streaming media data to the second terminal device from the first pause position.
[0007] Optionally, the user has multiple terminal devices, and the multiple terminal devices include the first terminal device, the second terminal device and the third terminal device, and the third terminal device is a terminal device among the multiple terminal devices for locating the position of the user; the method also includes: receiving location information of each terminal device among the multiple terminal devices collected according to a first preset frequency; the determination of whether to trigger the stop push request includes: determining the distance between the first terminal device and the third terminal device in real time according to the location information of the first terminal device and the location information of the third terminal device; determining whether to trigger the stop push request by judging whether the distance between the first terminal device and the third terminal device is greater than the first preset distance; wherein, when the distance between the first terminal device and the third terminal device is greater than the first preset distance, it is determined that the stop push request is triggered; when the distance between the first terminal device and the third terminal device is less than or equal to the first preset distance, it is determined that the stop push request is not triggered.
[0008] Optionally, receiving the push request sent by the user through the second terminal device includes: after the first moment, determining the second terminal device among the multiple terminal devices based on the location information of each terminal device at the current moment; wherein the second terminal device is one of at least one terminal device whose distance from the third terminal device is less than a second preset distance, and the first moment is the moment of pausing pushing the streaming media data to the first terminal device; sending a continuation request to the second terminal device; and receiving a push request sent by the second terminal device based on the continuation request.
[0009] Optionally, the first terminal device is a vehicle computer; the determination of whether to trigger a stop push request includes: receiving a power-off time of the first vehicle sent by the vehicle computer; based on the power-off time, determining whether to trigger the stop push request by judging whether the power-off duration of the first vehicle exceeds a second preset duration; wherein, when the power-off duration of the first vehicle exceeds the second preset duration, determining that the stop push request is triggered; when the power-off duration of the first vehicle does not exceed the second preset duration, determining that the stop push request is not triggered; wherein, the first vehicle is the vehicle to which the vehicle computer belongs.
[0010] Optionally, the first terminal device is a vehicle computer; the determination of whether to trigger the stop push request includes: determining whether to trigger the stop push request by judging whether the detection information of the user leaving the first vehicle sent by the vehicle computer is received; wherein, when the detection information of the user leaving the first vehicle sent by the vehicle computer is received, it is determined that the stop push request is triggered; when the detection information of the user leaving the first vehicle sent by the vehicle computer is not received, it is determined that the stop push request is not triggered; wherein, the first vehicle is the vehicle to which the vehicle computer belongs.
[0011] Optionally, the second terminal device is a vehicle computer, and the second terminal device is different from the first terminal device; the determination of whether to trigger the stop push request includes: determining whether to trigger the stop push request by judging whether the detection information of the user entering the first vehicle sent by the vehicle computer is received; wherein, when the detection information of the user entering the first vehicle sent by the vehicle computer is received, it is determined that the stop push request is triggered; when the detection information of the user entering the first vehicle sent by the vehicle computer is not received, it is determined that the stop push request is not triggered; the first vehicle is the vehicle to which the vehicle computer belongs; the receiving of the push request sent by the user through the second terminal device includes: sending a continue flow request to the vehicle computer; receiving a push request sent by the vehicle computer based on the continue flow request.
[0012] In a second aspect, an embodiment of the present application provides a streaming media data continuation device, which is applied to a virtual device, and the virtual device is deployed in the cloud, including: a determination module, which is used to determine whether to trigger a stop push request when pushing streaming media data to a first terminal device of a user; a pause module, which is used to pause the push of the streaming media data to the first terminal device when it is determined that the stop push request is triggered; a restart module, which is used to receive a push request sent by the user through a second terminal device, and in response to the push request, restart the push of the streaming media data, and push the streaming media data to the second terminal device from a first pause position; wherein the first pause position is the pause position of the streaming media data.
[0013] In a third aspect, an embodiment of the present application provides a cloud server, comprising a memory and a processor, a virtual device being deployed on the cloud server, and the cloud server being used to allocate the memory and the processor to the virtual device for use; the memory being used to store a computer program, and the processor being used to enable the virtual device to implement the method for continuing streaming media data described in any one of the first aspects when executing the computer program.
[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for continuing streaming media data described in any one of the first aspects is implemented.
[0015] In a fifth aspect, an embodiment of the present application provides a computer program product, including computer instructions, which, when executed on a processor, implement the method for continuing streaming media data as described in any one of the first aspects.
[0016] The beneficial effects of the streaming media data continuation method of the present invention are:
[0017] When the virtual device determines that the stop push request is triggered, it stops pushing the streaming media data to the first terminal device to provide a data basis for the subsequent continued push of the streaming media data. Based on this, when the virtual device receives a push request sent by the user through the second terminal device, it restarts the push of the streaming media data by responding to the push request and pushes the streaming media data to the second terminal device from the pause position of the streaming media data, thereby realizing the continued push of the streaming media data from the last push stop position.
[0018] Furthermore, the virtual device stops pushing streaming media data to the first terminal device by pausing, and the method of controlling the stopping of pushing is simple and easy with high execution efficiency. Moreover, by pausing, there is no need to save the pause position of the streaming media data and the data related to the pause position, thus reducing the storage requirement.
[0019] Furthermore, since the virtual device stops pushing streaming media data to the first terminal device by pausing, after the virtual device receives the push request sent by the user through the second terminal device, it can start pushing streaming media data by restarting, and the startup method is simple and easy. Since the virtual device pushes streaming media data to the second terminal device from the paused position of the streaming media data by restarting, there is no need to download the streaming media data again and determine the position for continuing to push, which improves the efficiency of continuing to push streaming media data.
[0020] Furthermore, when the first terminal device and the second terminal device are the same terminal device, the above method can realize continuous push of streaming media data on the same terminal device. When the first terminal device and the second terminal device are different terminal devices, the above method can realize continuous push of streaming media data between different terminal devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A schematic diagram of an application scenario of a virtual device provided in an embodiment of the present application;
[0022] Figure 2 A schematic diagram of another application scenario of a virtual device provided in an embodiment of the present application;
[0023] Figure 3 A flow chart of a method for continuing streaming media data provided in an embodiment of the present application;
[0024] Figure 4 A schematic diagram of the structure of a streaming media data continuation device provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of the structure of a cloud server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be interpreted as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are only for exemplary purposes and are not intended to limit the scope of protection of the present invention.
[0027] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.
[0028] The term "including" and its variations used in this article are open inclusions, that is, "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, etc., and are not used to limit the order or interdependence of the functions performed by these devices, modules or units, etc.
[0029] It should be noted that the modifications of "one" and "plurality" mentioned in the present invention are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes, and are not used to limit the scope of these messages or information.
[0031] In order to solve the problem of insufficient computing power of terminal devices, a virtual device corresponding to the terminal device can be deployed in the cloud. By migrating the calculations of the terminal device to the virtual device, the computing power requirements of the terminal device can be reduced, thereby compensating for the problem of insufficient computing power of the terminal device.
[0032] For example, Figure 1 A schematic diagram of an application scenario of a virtual device provided in an embodiment of the present application. Figure 1 As shown, the application scenario may include: a cloud 110, a virtual device 120 and a terminal device 130. Among them:
[0033] The cloud 110 can be understood as being composed of at least a plurality of cloud servers. The virtual device 120 is deployed on the cloud 110. Specifically, the cloud 110 provides resources to the virtual device 120 so that the virtual device 120 has processing capabilities. The resources provided by the cloud 110 to the virtual device 120 include processor cores, storage space, and the like.
[0034] The terminal device 130 can be understood as a terminal device owned by a user. The number of terminal devices owned by a user can be one or more, and the present embodiment of the application does not specifically limit this. The terminal devices owned by a user include, but are not limited to, mobile phones, televisions, laptops, desktop computers, tablet computers, e-readers, and car computers, and the present embodiment of the application does not specifically limit this.
[0035] For example, Figure 1As shown, the terminal device 130 may include a terminal device 131, a terminal device 132, a terminal device 133, and the like.
[0036] The virtual device 120 corresponds to the terminal device 130 , and the virtual device 120 can provide services to the user through the terminal device 130 .
[0037] Specifically, the services required by the user are installed in the virtual device 120. The services required by the user include, but are not limited to, services provided by video playback applications, audio playback applications, photo album applications, game applications, image processing applications, text editing applications, and the like. After the terminal device 130 logs in to the virtual device 120, the virtual device 120 pushes streaming media data to the terminal device 130, so that the terminal device 130 provides the user with an interface corresponding to the streaming media data, so that the user can interact with the services provided by the virtual device through the interface. Streaming media data include, but are not limited to, sound streams, video streams, text streams, image streams, animation streams, and the like.
[0038] For example, if a user sends an instruction to open an audio application to the virtual device 120 through the terminal device 130, the virtual device 130 responds to the instruction to open the audio application and opens the audio application, and transmits the interface of the opened audio application to the terminal device 130 via streaming data, so that the terminal device 130 displays the interface according to the streaming data of the opened interface.
[0039] It should be noted that since the user may have one or more terminal devices, when different terminal devices of the user log in to the virtual device 130, the interaction process between each terminal device and the virtual device 120 can be referred to above and will not be repeated here.
[0040] It should be noted that in Figure 1 In the example, the terminal device 130 can directly log in to the virtual device 120 through the user's account and password. After the virtual device 120 determines that the terminal device 130 has passed the authentication based on the user's account and password, the terminal device 130 is allowed to log in to the virtual device 120.
[0041] Figure 2 A schematic diagram of another application scenario of a virtual device provided in an embodiment of the present application. Figure 2 and Figure 1 The difference is that Figure 2 The application scenarios may also include the middle platform 140.
[0042] Based on the above structural differences, Figure 2 and Figure 1 The difference in the operation process is that the process of the terminal device 130 logging into the virtual device 120 is different.
[0043] The specific login process can be as follows:
[0044] exist Figure 2 In the example, the terminal device 130 sends a request to log in to the virtual device 120 to the middle station 140, wherein the request to log in to the virtual device 120 includes the user's account and password. In response to the request to log in to the virtual device 120, the middle station 140 authenticates the terminal device 130 based on the user's account and password, and after the authentication is passed, provides the ID (identity identifier) of the virtual device 120 to the terminal device 130, and the terminal device 130 logs in to the virtual device 120 according to the ID of the virtual device 120.
[0045] Obviously, in Figure 2 In the example, since the authentication process of the terminal device 130 logging into the virtual device 120 is completed in the middle station 140, the user's account and password only need to be stored in the middle station 140, and the user's account and password do not need to be stored in the cloud 110. In this way, the security of the user's account and password is ensured to a certain extent.
[0046] It should be noted that the process of each terminal device logging into the virtual device 120 can be found above and will not be repeated here.
[0047] It should be noted that after completing the login, the virtual device 120 can directly push the streaming media data to the terminal device 130 without going through the middle station 140.
[0048] In addition, the service request sent by the terminal device 130 to the virtual device 120 can be forwarded through the middle station 140 or sent directly to the virtual device 120, and this embodiment of the present application does not specifically limit this.
[0049] exist Figure 1 and Figure 2 In the embodiment, the user can send push requests to the virtual device 120 at different times through the same terminal device or different terminal devices. For example, at 8 o'clock in the morning, the user sends a push request to the virtual device 120 through the mobile phone, and the virtual device 120 pushes the streaming media data to the mobile phone in response to the push request. At 9 o'clock in the morning, the user sends a stop push instruction to the virtual device 120 through the mobile phone, and the virtual device 120 responds to the stop push instruction and stops pushing the streaming media data to the mobile phone. Next, at 10 o'clock in the morning, the user sends a push request to the virtual device 120 through the car computer, and the virtual device 120 pushes the streaming media data to the car computer in response to the push request.
[0050] Based on this, when the virtual device receives a push request, how to continue pushing the streaming media data from the last push stop position is an urgent problem to be solved. Continuing with the example above, how the virtual device 120 pushes the streaming media data to the car computer from the stop position of the streaming media data pushed to the mobile phone is an urgent problem to be solved.
[0051] In order to solve the above technical problems, the embodiment of the present application provides a method for continuing streaming media data, which can be executed by a virtual device, and the virtual device can be deployed in the cloud. It should be noted that the virtual device and the cloud have been described above and will not be repeated here.
[0052] like Figure 3 As shown, the continuation method of the streaming media data may include:
[0053] 301. When the virtual device pushes streaming media data to the first terminal device of the user, the virtual device determines whether to trigger a stop push request.
[0054] A user may have multiple terminal devices. For the relevant description of the multiple terminal devices, please refer to the above and will not be repeated here. The multiple terminal devices may include a first terminal device and a second terminal device, that is, the first terminal device and the second terminal device are terminal devices in the multiple terminal devices. The first terminal device and the second terminal device may be the same terminal device or different terminal devices, and the embodiments of the present application do not specifically limit this.
[0055] The stop push request is a request for instructing to stop pushing the streaming media data to the first terminal device.
[0056] The virtual device can determine whether to trigger the stop push request by judging whether it has received the instruction of suspending the push of streaming media data sent by the user through the first terminal device. Wherein, when the virtual device receives the instruction of suspending the push of streaming media data sent by the user through the first terminal device, it determines to trigger the stop push request; when the virtual device does not receive the instruction of suspending the push of streaming media data sent by the user through the first terminal device, it determines not to trigger the stop push request.
[0057] That is, the virtual device determines in real time whether it has received an instruction from the user through the first terminal device to pause pushing streaming media data. If received, the virtual device determines to trigger a stop push request. If not received, the virtual device determines not to trigger a stop push request.
[0058] 302. When the stop push request is triggered, the virtual device stops pushing the streaming media data to the first terminal device.
[0059] Pausing the push of streaming media data to the first terminal device can be understood as: the virtual device continues to be in the running state and remains at the pause position of the streaming media data. In other words, the virtual device controls the push of streaming media data to be in the pause state.
[0060] 303. The virtual device receives a push request sent by the user through the second terminal device, and in response to the push request, restarts the push of the streaming media data, and pushes the streaming media data to the second terminal device from the first pause position.
[0061] The push request is a request for instructing the virtual device to push the streaming media data to the second terminal device starting from the first pause position. The first pause position is the pause position of the streaming media data.
[0062] Restarting the push of streaming media data can be understood as releasing the pause state of the push of streaming media data.
[0063] Below, the above-mentioned method for continuing streaming media data is exemplarily described by taking the first terminal device as a mobile phone, the second terminal device as a car computer, and the streaming media data as a video stream as an example.
[0064] The virtual device pushes the video stream to the mobile phone.
[0065] The mobile phone receives the video stream and plays the video according to the video stream. On this basis, when it is necessary to go out, the user sends a command to the virtual device to pause pushing the streaming media data through the mobile phone.
[0066] When the virtual device receives an instruction to stop pushing streaming media data sent by the user through the mobile phone, it determines to trigger a stop push request, and when it determines to trigger the stop push request, it stops pushing the video stream to the mobile phone so that the mobile phone stops playing the video corresponding to the video stream.
[0067] After entering the first vehicle, the user sends a push request to the virtual device through the vehicle computer of the first vehicle.
[0068] The virtual device receives and responds to the push request, restarts the push of the video stream, and pushes the video stream to the vehicle computer from the first pause position, so that the vehicle computer continues to play the video through its display screen, thereby achieving the continuation of the video stream. The first pause position is the pause position of the video stream.
[0069] As can be seen from the above, when the virtual device determines that the push stop request is triggered, it stops pushing the streaming media data to the first terminal device to provide a data basis for the subsequent continued push of the streaming media data. Based on this, when the virtual device receives a push request sent by the user through the second terminal device, it responds to the push request, restarts the push of the streaming media data, and pushes the streaming media data to the second terminal device from the paused position of the streaming media data, thereby realizing the continued push of the streaming media data from the last push stop position.
[0070] Furthermore, the virtual device stops pushing streaming media data to the first terminal device by pausing, and the method of controlling the stopping of pushing is simple and easy with high execution efficiency. Moreover, by pausing, there is no need to save the pause position of the streaming media data and the data related to the pause position, thus reducing the storage requirement.
[0071] Furthermore, since the virtual device stops pushing streaming media data to the first terminal device by pausing, after the virtual device receives the push request sent by the user through the second terminal device, it can start pushing streaming media data by restarting, and the startup method is simple and easy. Since the virtual device can push streaming media data to the second terminal device from the paused position of the streaming media data by restarting, there is no need to download the streaming media data again and determine the position for continuing to push, which improves the efficiency of continuing to push streaming media data.
[0072] Furthermore, when the first terminal device and the second terminal device are the same terminal device, the above method can realize continuous push of streaming media data on the same terminal device. When the first terminal device and the second terminal device are different terminal devices, the above method can realize continuous push of streaming media data between different terminal devices.
[0073] In some embodiments, the first moment is the moment of suspending the push of streaming media data to the first terminal device, and the third moment is the moment of receiving the push request. Based on this, when the difference between the third moment and the first moment exceeds the first preset time length, the specific implementation process of 303 can be as follows:
[0074] First, the virtual device saves the pause progress information of the streaming media data at the second moment, and turns off the virtual device. The second moment is the sum of the first moment and the first preset duration. Then, at the third moment, the virtual device receives a push request sent by the user through the second terminal device, and in response to the push request, starts the virtual device, and starts pushing the streaming media data according to the pause progress information of the streaming media data, so as to push the streaming media data from the first pause position to the second terminal device.
[0075] In an embodiment of the present application, when the virtual device pauses pushing streaming media data to the first terminal device, the virtual device is in a running state and remains at the pause position of the streaming media data. That is to say, when the virtual device pauses pushing streaming media data to the first terminal device, the virtual device still occupies cloud resources. Based on this, when the virtual device pauses pushing streaming media data to the first terminal device, if the push request sent by the second terminal device is not received for a long time, the cloud resources can be released by saving the pause progress information of the streaming media data and shutting down the virtual device.
[0076] It should be noted that by saving the suspension progress information of the streaming media data, a data basis can be provided for the subsequent continuous push of the streaming media data to ensure the reliability of the continuous push of the streaming media data. By shutting down the virtual device, cloud resources can be released.
[0077] Based on this, a first preset duration can be set, starting from the moment when the push of streaming media data to the first terminal device is suspended (i.e., the first moment) until the end of the first preset duration (i.e., when the second moment is reached). If the virtual device does not receive the push request sent by the user through the second terminal device, the pause progress information of the streaming media data is saved, and the virtual device is closed to release cloud resources and provide a data basis for the subsequent continued push of streaming media data.
[0078] The first preset duration may refer to the maximum duration of not receiving a push request sent by the second terminal device from the moment when the push of streaming media data to the first terminal device is suspended. The specific value of the first preset duration may be measured experimentally, and the embodiment of the present application does not specifically limit this.
[0079] The pause progress information of the streaming media data may include the pause position of the streaming media data and data of the streaming media data at the pause position and after the pause position.
[0080] Shutting down a virtual device means controlling the virtual device to be in a shut down state. A shut down virtual device does not occupy cloud resources.
[0081] Starting a virtual device refers to controlling the virtual device to switch from a closed state to a running state. A virtual device in a running state occupies cloud resources.
[0082] As can be seen from the above, the first moment is the moment of pausing the push of streaming media data to the first terminal device, the third moment is the moment of receiving the push request, and the second moment is the sum of the first moment and the first preset duration. Since the difference between the third moment and the first moment exceeds the first preset duration, that is, starting from the moment of pausing the push of streaming media data to the first terminal device, no push request sent by the second terminal device is received within the first preset duration, therefore, at the second moment, the virtual device saves the pause progress information of the streaming media data and shuts down the virtual device, thereby releasing the cloud resources, and the saved pause progress information of the streaming media data provides a data basis for the subsequent continued push of streaming media data.
[0083] Moreover, at the third moment, the virtual device receives a push request sent by the user through the second terminal device, and in response to the push request, starts the virtual device, and starts pushing the streaming data according to the pause progress information of the streaming data, so as to push the streaming data from the first pause position to the second terminal device, thereby realizing the continuation of pushing the streaming data from the last push stop position.
[0084] In some embodiments, the user has multiple terminal devices, and the multiple terminal devices may include a first terminal device, a second terminal device, and a third terminal device.
[0085] The third terminal device is a terminal device used to locate the user's position among multiple terminal devices. For example, since mobile phones are indispensable terminal devices in the user's work and life, and mobile phones are usually carried by users, the user's position can be located through the mobile phone, and the positioning result is relatively accurate. In this way, the user's mobile phone can be used as the third terminal device.
[0086] It should be noted that the multiple terminal devices, the first terminal device and the second terminal device have been described above and will not be repeated here.
[0087] Based on this, the method for continuing streaming media data may further include: the virtual device receives location information of each terminal device among the multiple terminal devices collected according to the first preset frequency.
[0088] In an embodiment of the present application, each terminal device may have a positioning function, and each terminal device may collect its own location information according to a first preset frequency, and send its own location information to the virtual device for storage.
[0089] For different terminal devices, the first preset frequency may be the same or different, and this application does not impose any special limitation on this.
[0090] For example, for terminal devices with relatively fixed locations, such as televisions, desktop computers, etc., the value of the first preset frequency can be set to be relatively small. For terminal devices with frequently changing locations, such as mobile phones, tablet computers, e-readers, car computers, etc., the value of the first preset frequency can be set to be relatively large.
[0091] In the embodiment of the present application, since the third terminal device can locate the user's position, the virtual device can determine whether to trigger the stop push request based on the position of the third terminal device (which can be understood as the user's position) and the position of the first terminal device, so as to realize the automatic triggering of the stop push request and improve the user experience. In view of this:
[0092] The process of determining whether to trigger a stop push request can be as follows:
[0093] First, the virtual device determines the distance between the first terminal device and the third terminal device in real time based on the location information of the first terminal device and the location information of the third terminal device. Then, the virtual device determines whether to trigger the stop push request by judging whether the distance between the first terminal device and the third terminal device is greater than a first preset distance.
[0094] If the distance between the first terminal device and the third terminal device is greater than the first preset distance, it is determined that the stop push request is triggered. If the distance between the first terminal device and the third terminal device is less than or equal to the first preset distance, it is determined that the stop push request is not triggered.
[0095] The first preset distance can be determined according to the maximum control distance of the terminal device by the user. When the distance between the user (i.e., the third terminal device) and the first terminal device is greater than the first preset distance, it indicates that the first terminal device is not within the control distance of the user, and a stop push request can be triggered at this time. When the distance between the user (i.e., the third terminal device) and the first terminal device is less than or equal to the first preset distance, it indicates that the first terminal device is within the control distance of the user, and a stop push request may not be triggered at this time.
[0096] Obviously, since the third terminal device can locate the user's position, the virtual device can determine the distance between the first terminal device and the third terminal device in real time based on the location information of the first terminal device and the location information of the third terminal device, and determine whether to trigger the stop push request by judging whether the distance between the first terminal device and the third terminal device is greater than the first preset distance. In other words, by judging whether the distance between the first terminal device and the user is greater than the first preset distance, it is determined whether to trigger the stop push request. And, when the distance between the first terminal device and the third terminal device is greater than the first preset distance, it is determined to trigger the stop push request. In other words, when the first terminal device is outside the maximum control distance of the user, it is determined to trigger the stop push request, thereby realizing the automatic triggering of the stop push request without the user triggering the push request, thereby improving the user experience.
[0097] On this basis, since the third terminal device can locate the user's position, after pausing to push streaming media data to the first terminal device (i.e. after the first moment), the virtual device can determine the distance between each terminal device and the third terminal device based on the location information of each terminal device owned by the user and the location information of the third terminal device. In this way, it is possible to determine the terminal device that can be used to continue pushing streaming media data from multiple terminal devices based on the distance between each terminal device and the third terminal device, thereby selecting a terminal device from the terminal devices that can be used to continue pushing streaming media data as the object for the virtual device to initiate a continuation request, thereby realizing the automatic determination of the object for continuing to push streaming media data and improving the user experience. In view of this:
[0098] The implementation process of receiving a push request sent by a user through a second terminal device may be as follows:
[0099] First, after the first moment, the virtual device determines a second terminal device among a plurality of terminal devices according to the location information of each terminal device at the current moment.
[0100] The second terminal device is one of at least one terminal device whose distance from the third terminal device is less than a second preset distance.
[0101] The second preset distance can be used as a standard to measure whether the terminal device can be used as a device to continue to push streaming media data. The second preset distance can be measured by experiment. The second preset distance is smaller than the first preset distance.
[0102] If the distance between the terminal device and the third terminal device is less than the second preset distance, it indicates that the terminal device can be used as a device for continuing to push streaming media data. If the distance between the terminal device and the third terminal device is greater than or equal to the second preset distance, it indicates that the terminal device cannot be used as a device for continuing to push streaming media data.
[0103] Based on this, in an embodiment of the present application, after the first moment, the virtual device can determine the distance between each terminal device and the third terminal device respectively through the location information of each terminal device at the current moment and the location information of the third terminal device. In this way, by comparing the distance between each terminal device and the third terminal device with the second preset distance respectively, at least one terminal device whose distance from the third terminal device is less than the second preset distance can be screened out, that is, at least one terminal device that can be used as a continuation to push streaming media data can be screened out. In this way, by using one of the at least one terminal devices whose distance from the third terminal device is less than the second preset distance as the second terminal device, so as to determine the second terminal device as the final terminal device for continuing the streaming, the second terminal device is automatically determined, thereby improving the user experience.
[0104] It should be noted that the at least one terminal device whose distance from the third terminal device is less than the second preset distance may include the third terminal device itself. That is, the third terminal device may also serve as the second terminal device.
[0105] Then, the virtual device sends a flow-relay request to the second terminal device.
[0106] By sending a continuous flow request to the second terminal device, the virtual device can enable the second terminal device to provide the user with continuous flow inquiry information based on the continuous flow request, so that the user can make a reply based on the continuous flow inquiry information, thereby allowing the user to decide whether to continue pushing the stream, thereby improving the user experience. After the user sends a continuous flow permission instruction to the second terminal device based on the continuous flow inquiry information, the second terminal device sends a push request to the virtual device in response to the continuous flow permission instruction.
[0107] Finally, the virtual device receives the push request sent by the second terminal device based on the continuous flow request.
[0108] In the following, the method for continuing streaming media data is exemplified by taking the case that the terminal devices owned by the user include a mobile phone, a tablet computer, a TV set and a car computer, and the first terminal device is the car computer. Among them, the TV set is set at home, the mobile phone and the tablet computer are carried with them, the car computer is the car computer in the user's vehicle, and the mobile phone can locate the user's position.
[0109] The continuation method of streaming data can be as follows:
[0110] While the user is driving, the virtual device pushes streaming media data to the car computer.
[0111] The car computer displays the information corresponding to the streaming media data to the user through its display screen.
[0112] At the same time, the virtual device determines the distance between the vehicle computer and the mobile phone in real time based on the location information of the vehicle computer and the mobile phone, and determines whether to trigger the stop push request by judging whether the distance between the vehicle computer and the mobile phone is greater than the first preset distance.
[0113] When the position between the vehicle computer and the mobile phone is greater than the first preset distance, it indicates that the vehicle computer is not within the user's maximum control distance. It can also be understood that the user has left the vehicle and is a certain distance away from the vehicle. At this time, the virtual device determines to trigger a stop push request, and, when it is determined that the stop push request is triggered, it suspends pushing streaming media data to the vehicle computer.
[0114] After the virtual device stops pushing streaming media data to the vehicle computer, the virtual device calculates the distance between each of the above terminal devices and the mobile phone, and compares the distance between each of the above terminal devices and the mobile phone with the second preset distance. The comparison result is: among the above terminal devices, the distance between the mobile phone and the tablet computer and the mobile phone is less than the second preset distance. Based on this, the virtual device determines the mobile phone as the second terminal device.
[0115] The virtual device sends a flow request to the mobile phone.
[0116] The mobile phone receives the continuous flow request and provides continuous flow inquiry information to the user based on the continuous flow request.
[0117] The user sends a continuing flow permission instruction to the mobile phone based on the continuing flow inquiry information.
[0118] The mobile phone receives and responds to the instruction to allow continuous flow, and sends a push request to the virtual device.
[0119] The virtual device responds to the push request, restarts the push of the streaming media data, and continues to push the streaming media data to the mobile phone from the pause position of the streaming media data.
[0120] As can be seen from the above, while the user is driving, the virtual device pushes streaming media data to the car computer. After the user leaves the vehicle, the virtual device stops pushing streaming media data to the car computer and sends a continuous flow request to the user's mobile phone. In this way, the user can respond based on the continuous flow request received by the mobile phone, and when the user determines to continue the flow through the mobile phone, the user sends a push request to the virtual device through the mobile phone. The virtual device responds to the push request, restarts the push of streaming media data, and continues to push streaming media data to the mobile phone from the pause position of the streaming media data. Obviously, in the above process, the determination of the continuous flow device (i.e., the mobile phone) and the sending of the continuous flow request are completed by the virtual device itself, without the need for user participation, thereby realizing the automatic determination of the continuous flow device (i.e., the mobile phone) and the sending of the continuous flow request, thereby improving the user experience.
[0121] In some embodiments, when the first terminal device is a vehicle computer, the virtual device may determine whether to trigger a stop push request as follows:
[0122] The virtual device receives the power-off time of the first vehicle sent by the vehicle computer, and determines whether to trigger a stop push request by judging whether the power-off time of the first vehicle exceeds the second preset time based on the power-off time of the first vehicle. When the power-off time of the first vehicle exceeds the second preset time, it is determined that the stop push request is triggered. When the power-off time of the first vehicle does not exceed the second preset time, it is determined that the stop push request is not triggered. The first vehicle is the vehicle to which the vehicle computer belongs.
[0123] In the embodiment of the present application, when the vehicle computer detects that the first vehicle is powered off, it sends the power-off time of the first vehicle to the virtual device. In this way, when the virtual device receives the power-off time of the first vehicle sent by the vehicle computer, it starts timing from the power-off time, so as to trigger a stop push request when the power-off time of the first vehicle exceeds a second preset time.
[0124] Obviously, in the case where the virtual device pushes streaming media data to the vehicle computer, when the virtual device receives the power-off time of the first vehicle sent by the vehicle computer, the power-off duration of the first vehicle is measured from the power-off time, so that when the power-off duration of the first vehicle exceeds a second preset duration, a stop push request is triggered, thereby realizing automatic triggering of the stop push request and improving the user experience.
[0125] In some embodiments, when the first terminal device is a vehicle computer, the virtual device may determine whether to trigger a stop push request as follows:
[0126] The virtual device can determine whether to trigger the stop push request by judging whether the detection information of the user leaving the first vehicle sent by the vehicle computer is received. When the virtual device receives the detection information of the user leaving the first vehicle sent by the vehicle computer, it determines to trigger the stop push request. When the virtual device does not receive the detection information of the user leaving the first vehicle sent by the vehicle computer, it determines not to trigger the stop push request. The first vehicle is the vehicle to which the vehicle computer belongs.
[0127] In an embodiment of the present application, a sensor may be provided on a seat or door handle of the first vehicle to detect whether the user has left the first vehicle. Based on this, the vehicle computer may detect whether the user has left the first vehicle through the sensor, and upon detecting that the user has left the first vehicle, send detection information that the user has left the first vehicle to the virtual device. Upon receiving the detection information that the user has left the first vehicle sent by the vehicle computer, the virtual device determines to trigger a stop push request.
[0128] Obviously, when the virtual device pushes streaming media data to the vehicle computer, when the virtual device receives the detection information sent by the vehicle computer that the user has left the first vehicle, indicating that the vehicle computer is no longer under the control of the user, the virtual device determines to trigger the stop push request and suspends pushing streaming media data to the vehicle computer, thereby realizing the automatic triggering of the stop push request and improving the user experience.
[0129] In some embodiments, when the second terminal device is a vehicle computer and the second terminal device is different from the first terminal device, the virtual device determines whether to trigger the stop push request in the following manner:
[0130] The virtual device can determine whether to trigger the stop push request by judging whether the detection information of the user entering the first vehicle sent by the vehicle computer is received. When the virtual device receives the detection information of the user entering the first vehicle sent by the vehicle computer, it determines to trigger the stop push request. When the virtual device does not receive the detection information of the user entering the first vehicle sent by the vehicle computer, it determines not to trigger the stop push request. The first vehicle is the vehicle to which the vehicle computer belongs.
[0131] In an embodiment of the present application, a sensor may be provided on a seat or door handle of the first vehicle to detect whether a user has entered the first vehicle. Based on this, the vehicle computer in the first vehicle detects whether a user has entered the first vehicle through the sensor, and when detecting that a user has entered the first vehicle, sends detection information that the user has entered the first vehicle to the virtual device. When the virtual device receives the detection information that the user has entered the first vehicle sent by the vehicle computer, it determines to trigger a stop push request.
[0132] Obviously, when the virtual device pushes streaming media data to the first terminal device, when the virtual device receives the detection information sent by the vehicle computer that the user has entered the first vehicle, indicating that the vehicle computer is already within the controllable range of the user, the virtual device determines to trigger the stop push request and suspends pushing streaming media data to the first terminal device, thereby realizing the automatic triggering of the stop push request and improving the user experience.
[0133] On this basis, the virtual device may receive a push request sent by the user through the second terminal device in the following manner:
[0134] First, the virtual device sends a continuous flow request to the vehicle computer. Then, the virtual device receives a push request sent by the vehicle computer based on the continuous flow request.
[0135] In the embodiment of the present application, as described above, when the vehicle computer is indicated to be within the controllable range of the user, the virtual device stops pushing streaming media data to the first terminal device and sends a continuous flow request to the vehicle computer to inquire whether the user switches the streaming device from the first terminal device to the vehicle computer. Also, when the virtual device receives a push request sent by the vehicle computer based on the continuous flow request, that is, when the virtual device receives an indication from the user that the streaming device is switched from the first terminal device to the vehicle computer, the push of streaming media data is restarted, and streaming media data is continued to be pushed to the vehicle computer from the paused position of the streaming media data, thereby realizing the automatic determination of the streaming device, improving the user experience, and also realizing the continuous push of streaming media data.
[0136] Figure 4 This is a schematic diagram of the structure of the streaming media data continuation device provided in the embodiment of the present application. The streaming media data continuation device 400 can be applied to a virtual device, and the virtual device is deployed in the cloud. Figure 4 As shown, the streaming media data continuation device 400 may include: a determination module 410, a pause module 420 and a restart module 430, wherein:
[0137] The determination module 410 is used to determine whether to trigger a stop push request when pushing streaming media data to the first terminal device of the user.
[0138] The pause module 420 is used to pause pushing the streaming media data to the first terminal device when it is determined that the stop push request is triggered.
[0139] The restart module 430 is used to receive a push request sent by the user through the second terminal device, and in response to the push request, restart the push of the streaming media data, and push the streaming media data to the second terminal device from the first pause position. The first pause position is the pause position of the streaming media data.
[0140] Optionally, the difference between the third moment and the first moment exceeds a first preset duration, the third moment is the moment of receiving the push request, and the first moment is the moment of suspending pushing the streaming media data to the first terminal device;
[0141] The restart module 430 is specifically used to save the pause progress information of the streaming media data at a second moment, and to close the virtual device; wherein the second moment is the sum of the first moment and the first preset duration; at the third moment, the push request is received, and in response to the push request, the virtual device is started, and, according to the pause progress information of the streaming media data, the push of the streaming media data is started to push the streaming media data from the first pause position to the second terminal device.
[0142] Optionally, the user has multiple terminal devices, the multiple terminal devices include the first terminal device, the second terminal device and a third terminal device, and the third terminal device is a terminal device among the multiple terminal devices used to locate the position of the user;
[0143] The determination module 410 is further configured to receive location information of each terminal device among the plurality of terminal devices collected at a first preset frequency;
[0144] The determination module 410 is specifically used to determine the distance between the first terminal device and the third terminal device in real time based on the location information of the first terminal device and the location information of the third terminal device; determine whether to trigger the stop push request by judging whether the distance between the first terminal device and the third terminal device is greater than the first preset distance; wherein, when the distance between the first terminal device and the third terminal device is greater than the first preset distance, it is determined that the stop push request is triggered; when the distance between the first terminal device and the third terminal device is less than or equal to the first preset distance, it is determined that the stop push request is not triggered.
[0145] Optionally, the restart module 430 is specifically used to determine, after the first moment, the second terminal device among the multiple terminal devices based on the location information of each terminal device at the current moment; wherein the second terminal device is one of at least one terminal device whose distance from the third terminal device is less than a second preset distance, and the first moment is the moment of pausing the pushing of the streaming media data to the first terminal device; sending a continuation request to the second terminal device; and receiving a push request sent by the second terminal device based on the continuation request.
[0146] Optionally, the first terminal device is a vehicle computer;
[0147] The determination module 410 is specifically used to receive the power-off time of the first vehicle sent by the vehicle computer; based on the power-off time, determine whether to trigger the stop push request by judging whether the power-off time of the first vehicle exceeds the second preset time; wherein, when the power-off time of the first vehicle exceeds the second preset time, it is determined that the stop push request is triggered; when the power-off time of the first vehicle does not exceed the second preset time, it is determined that the stop push request is not triggered; the first vehicle is the vehicle to which the vehicle computer belongs.
[0148] Optionally, the first terminal device is a vehicle computer;
[0149] The determination module 410 is specifically used to determine whether to trigger the stop push request by judging whether the detection information of the user leaving the first vehicle sent by the vehicle computer is received; wherein, when the detection information of the user leaving the first vehicle sent by the vehicle computer is received, it is determined that the stop push request is triggered; when the detection information of the user leaving the first vehicle sent by the vehicle computer is not received, it is determined that the stop push request is not triggered; wherein, the first vehicle is the vehicle to which the vehicle computer belongs.
[0150] Optionally, the second terminal device is a vehicle computer, and the second terminal device is different from the first terminal device;
[0151] The determination module 410 is specifically used to determine whether to trigger the stop push request by judging whether the detection information of the user entering the first vehicle sent by the vehicle computer is received; wherein, when the detection information of the user entering the first vehicle sent by the vehicle computer is received, it is determined that the stop push request is triggered; when the detection information of the user entering the first vehicle sent by the vehicle computer is not received, it is determined that the stop push request is not triggered; the first vehicle is the vehicle to which the vehicle computer belongs;
[0152] The restart module 430 is specifically configured to send a continuous flow request to the vehicle computer; and receive a push request sent by the vehicle computer based on the continuous flow request.
[0153] It should be noted that the streaming media data continuation device can achieve similar effects as the corresponding streaming media data continuation method, which will not be described in detail herein.
[0154] like Figure 5 As shown, an embodiment of the present invention provides a cloud server 500, which may include a memory 510 and a processor 520; a virtual device 530 is deployed on the cloud server 500, and the cloud server 500 can be used to allocate the memory 510 and the processor 520 to the virtual device 530 for use.
[0155] The memory 510 may be used to store a computer program. The processor 520 may be used to enable the virtual device 530 to implement the above-mentioned method for continuing streaming media data when executing the computer program.
[0156] In other words, a cloud server 500 may include a memory 510 and a processor 520; a virtual device 530 is deployed on the cloud server 500, and the cloud server 500 can be used to allocate the memory 510 and the processor 520 to the virtual device 530 for use.
[0157] The memory 510 is configured to store a computer program. The processor 520 is configured to, when executing the computer program, cause the virtual device 530 to perform the following operations:
[0158] In the case of pushing streaming media data to the first terminal device of the user, determining whether to trigger a stop push request;
[0159] When it is determined that the stop push request is triggered, suspending pushing of the streaming media data to the first terminal device;
[0160] receiving a push request sent by the user through a second terminal device, and in response to the push request, restarting the push of the streaming media data, and pushing the streaming media data to the second terminal device from a first pause position;
[0161] The first pause position is the pause position of the streaming media data.
[0162] It should be noted that the cloud server 500 can achieve similar effects as the method for continuing streaming media data, which will not be described in detail here.
[0163] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned method for continuing streaming media data is implemented.
[0164] In other words, a non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor performs the following operations:
[0165] In the case of pushing streaming media data to the first terminal device of the user, determining whether to trigger a stop push request;
[0166] When it is determined that the stop push request is triggered, suspending pushing of the streaming media data to the first terminal device;
[0167] receiving a push request sent by the user through a second terminal device, and in response to the push request, restarting the push of the streaming media data, and pushing the streaming media data to the second terminal device from a first pause position;
[0168] The first pause position is the pause position of the streaming media data.
[0169] It should be noted that the computer-readable storage medium can achieve similar effects as the method for continuing streaming media data, which will not be described in detail here.
[0170] An embodiment of the present invention provides a computer program product, including computer instructions, which implement the above-mentioned method for continuing streaming media data when the computer instructions are executed on a processor.
[0171] It should be noted that the computer program product can achieve similar effects as the method for continuing streaming media data, which will not be described in detail here.
[0172] Now will describe the cloud server 500 that can be used as the present invention, it is the example of the hardware device that can be applied to each aspect of the present invention.Cloud server 500 is intended to represent the computer equipment of various forms of digital electronics, such as, laptop computer, desktop computer, workbench, personal digital assistant, server, blade server, mainframe computer and other suitable computer.Cloud server 500 can also represent various forms of mobile device, such as, personal digital processing, cellular phone, smart phone, wearable device and other similar computing device.The components shown in this article, their connection and relationship and their functions are only as examples, and are not intended to limit the realization of the present invention described and / or required herein.
[0173] The cloud server 500 includes a computing unit, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) or a computer program loaded from a storage unit into a random access memory (RAM). In the RAM, various programs and data required for device operation can also be stored. The computing unit, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0174] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. In the present application, the unit described as a separate component may or may not be physically separated, and the component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be arranged on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment of the present invention. In addition, each functional unit in each embodiment of the present invention can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
[0175] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A method for continuing streaming media data, applied to a virtual device, wherein the virtual device is deployed in the cloud, characterized in that: include: In the case of pushing streaming media data to the first terminal device of the user, determining whether to trigger a stop push request; When it is determined that the stop push request is triggered, suspending pushing of the streaming media data to the first terminal device; receiving a push request sent by the user through a second terminal device, and in response to the push request, restarting the push of the streaming media data, and pushing the streaming media data to the second terminal device from a first pause position; The first pause position is the pause position of the streaming media data.
2. The method according to claim 1, characterized in that The difference between the third moment and the first moment exceeds a first preset duration, the third moment is the moment of receiving the push request, and the first moment is the moment of suspending the pushing of the streaming media data to the first terminal device; The receiving a push request sent by the user through the second terminal device, and in response to the push request, restarting the push of the streaming media data, and pushing the streaming media data to the second terminal device from the first pause position includes: At the second moment, saving the pause progress information of the streaming media data, and closing the virtual device; The second moment is the sum of the first moment and the first preset duration; At the third moment, the push request is received, and in response to the push request, the virtual device is started, and the push of the streaming data is started according to the pause progress information of the streaming data, so as to push the streaming data from the first pause position to the second terminal device.
3. The method according to claim 1, characterized in that The user has multiple terminal devices, the multiple terminal devices include the first terminal device, the second terminal device and a third terminal device, and the third terminal device is a terminal device among the multiple terminal devices used to locate the position of the user; The method further comprises: Receiving location information of each terminal device among the plurality of terminal devices collected according to a first preset frequency; The determining whether to trigger the stop push request comprises: Determine the distance between the first terminal device and the third terminal device in real time according to the location information of the first terminal device and the location information of the third terminal device; Determining whether to trigger the stop push request by judging whether the distance between the first terminal device and the third terminal device is greater than a first preset distance; Wherein, when the distance between the first terminal device and the third terminal device is greater than the first preset distance, determining to trigger the stop push request; When the distance between the first terminal device and the third terminal device is less than or equal to the first preset distance, it is determined not to trigger the stop push request.
4. The method according to claim 3, characterized in that The receiving a push request sent by the user through the second terminal device includes: After the first moment, determining the second terminal device from the plurality of terminal devices according to the location information of each terminal device at the current moment; The second terminal device is one of at least one terminal device whose distance from the third terminal device is less than a second preset distance, and the first moment is a moment of suspending the pushing of the streaming media data to the first terminal device; Sending a flow-relay request to the second terminal device; Receive a push request sent by the second terminal device based on the continued flow request.
5. The method according to claim 1, characterized in that The first terminal device is a vehicle computer; The determining whether to trigger the stop push request comprises: receiving a power-off time of the first vehicle sent by the vehicle computer; Based on the power-off time, determining whether to trigger the stop push request by judging whether the power-off time of the first vehicle exceeds a second preset time; Wherein, when the power-off time of the first vehicle exceeds the second preset time, determining to trigger the stop push request; When the power-off time of the first vehicle does not exceed the second preset time, determining not to trigger the stop push request; The first vehicle is the vehicle to which the vehicle computer belongs.
6. The method according to claim 1, characterized in that The first terminal device is a vehicle computer; The determining whether to trigger the stop push request comprises: Determining whether to trigger the stop push request by judging whether the detection information of the user leaving the first vehicle sent by the vehicle computer is received; wherein, upon receiving the detection information sent by the vehicle computer indicating that the user has left the first vehicle, determining to trigger the stop push request; When the detection information that the user leaves the first vehicle sent by the vehicle computer is not received, determining not to trigger the stop push request; The first vehicle is the vehicle to which the vehicle computer belongs.
7. The method according to claim 1, characterized in that The second terminal device is a vehicle computer, and the second terminal device is different from the first terminal device; The determining whether to trigger the stop push request comprises: Determining whether to trigger the stop push request by judging whether the detection information of the user entering the first vehicle sent by the vehicle computer is received; wherein, upon receiving the detection information sent by the vehicle computer indicating that the user has entered the first vehicle, determining to trigger the stop push request; When the detection information of the user entering the first vehicle sent by the vehicle computer is not received, determining not to trigger the stop push request; The first vehicle is the vehicle to which the vehicle computer belongs; The receiving a push request sent by the user through the second terminal device includes: Sending a freewheeling request to the vehicle computer; Receive a push request sent by the vehicle computer based on the freewheeling request.
8. A streaming media data continuation device, applied to a virtual device, wherein the virtual device is deployed in the cloud, characterized in that: include: A determination module, used to determine whether to trigger a stop push request when pushing streaming media data to a first terminal device of a user; A pause module, configured to pause pushing the streaming media data to the first terminal device when it is determined that the stop push request is triggered; a restart module, configured to receive a push request sent by the user through the second terminal device, and in response to the push request, restart the push of the streaming media data, and push the streaming media data to the second terminal device from the first pause position; The first pause position is the pause position of the streaming media data.
9. A cloud server, characterized in that: The cloud server includes a memory and a processor, a virtual device is deployed on the cloud server, and the cloud server is used to allocate the memory and the processor to the virtual device for use; The memory is used to store a computer program, and the processor is used to enable the virtual device to implement the streaming media data continuation method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the method for continuing streaming media data according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that The method comprises computer instructions, and when the computer instructions are executed on a processor, the method for continuing streaming media data according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Continuation of playback of media content by different output devices
CN106663115A
Multimedia information playing method and device
CN113672748A
Media data playing method and device, equipment and storage medium
CN118283334A
Method and system for transitioning media output among two or more devices
US20120087634A1
Multi-screen stream media playing method and stream media server
WO2014000198A1