Cross-device playing method and device, electronic device and medium
Patent Information
- Application Number
- CN202610998239.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-06
- Publication Date
- 2026-10-16
AI Technical Summary
[0005]本申请提供一种跨设备播放方法、装置、电子设备及介质,以解决相关技术中无法将用户的物理移动与播放内容联动,且需手动调整播放形式导致观影连续性差、无法满足用户沉浸式观影需求的问题
[0017] This application provides a cross-device playback method. When a user's device enters a fenced area, based on the operating status of at least one candidate device within the fenced area, the playback content of the user's device is migrated to at least one target device among the at least one candidate device. Based on the real-time relative positional relationship between the user's device location and the location of at least one target device, at least one playback adjustment parameter is determined for the at least one target device. This allows the at least one target device to perform playback adjustment operations adapted to the user based on the at least one playback adjustment parameter. This application utilizes electronic fence technology to trigger cross-device playback operations, achieving seamless migration of playback content from the user's device to the target device. Simultaneously, during playback, the playback content can adaptively adjust according to changes in the user's location without manual user intervention, enhancing the continuity and immersion of the viewing experience.
Smart Images

Figure CN122933966A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of IoT and multimedia cross-technology, specifically to a cross-device playback method, apparatus, electronic device, and medium. Background Technology
[0002] With the widespread adoption of smart devices, users typically own multiple smart devices simultaneously, such as smartphones, tablets, smart TVs, and smart speakers. In different scenarios, users have a need to continuously watch multimedia content across devices, making seamless cross-device playback an important technological direction for enhancing the user's viewing experience.
[0003] Currently, in related technologies, cross-device playback continuation mainly adopts two methods: one is a mobile screen mirroring solution based on a local area network, which sends the playback link and breakpoint from the mobile phone to the TV for continuation through a near-field screen mirroring protocol; the other is a cloud-based playback record sharing solution, where multiple devices share playback records through the same account to achieve cross-device playback continuation.
[0004] However, the relevant technology can only synchronize the playback progress and cannot link the user's physical movement with the playback content. Furthermore, users can only manually adjust the playback mode through input devices such as remote controls and mobile phone screens, which interrupts the continuity of the viewing experience and cannot meet the user's demand for an immersive viewing experience. Summary of the Invention
[0005] This application provides a cross-device playback method, apparatus, electronic device, and medium to solve the problems in related technologies that cannot link the user's physical movement with the playback content, and require manual adjustment of the playback format, resulting in poor viewing continuity and failure to meet the user's immersive viewing needs.
[0006] In a first aspect, embodiments of this application provide a method for cross-device playback, the method comprising: when it is determined that a user's user device has entered a fenced area, migrating the playback content of the user device to at least one target device among the at least one candidate device based on the operating status of at least one candidate device within the fenced area, wherein the fenced area is pre-constructed based on the historical location data of the user device; and determining at least one playback adjustment parameter for the at least one target device based on the real-time relative positional relationship between the user device's location and the at least one target device's location, so that the at least one target device performs a playback adjustment operation adapted to the user based on the at least one playback adjustment parameter.
[0007] In some embodiments, when it is determined that a user's device has entered a fenced area, migrating the playback task of the user's device to at least one target device among the at least one candidate device based on the operating status of at least one candidate device within the fenced area includes: when it is determined that a user's device has entered a fenced area, performing status detection on at least one candidate device within the fenced area to determine the operating status corresponding to the at least one candidate device, the operating status being used to indicate whether the at least one candidate device is in an on and idle state; based on the operating status, determining whether there is an idle device among the at least one candidate device; if there is an idle device among the at least one candidate device, determining the idle device as the target device, and migrating the playback task to the target device.
[0008] In some embodiments, determining at least one playback adjustment parameter for at least one target device based on the real-time relative positional relationship between the user device location of the user device and at least one target device location of at least one target device includes: determining the initial user device location of the user device and at least one target device location of the at least one target device when the user device enters a fenced area; determining the current user device location when the user device moves within the fenced area; and determining the relative positional change between the user device and the at least one target device based on the initial user device location, the current user device location, and the at least one target device location, so as to determine at least one playback adjustment parameter based on the relative positional change.
[0009] In some embodiments, at least one playback adjustment parameter includes a screen scaling parameter. Based on an initial user device position, a current user device position, and at least one target device position, the relative position change between the user device and at least one target device is determined. Determining at least one playback adjustment parameter based on the relative position change includes: determining an initial vertical distance between the user device and at least one target device based on the initial user device position and at least one target device position; determining a current vertical distance between the user device and at least one target device based on the current user device position and at least one target device position; determining a change in vertical distance between the user device and at least one target device based on the initial vertical distance and the current vertical distance; and determining a screen scaling parameter based on the change in vertical distance. The screen scaling parameter is used to adjust the screen display ratio of the playback content on at least one target device, and the screen scaling parameter is negatively correlated with the current vertical distance.
[0010] In some embodiments, at least one playback adjustment parameter includes a screen panning parameter and a sound field control parameter. Based on the initial user device position, the current user device position, and the position of at least one target device, the relative position change between the user device and at least one target device is determined. Determining at least one playback adjustment parameter based on the relative position change includes: determining a device offset angle between the user device and at least one target device based on the initial user device position, the current user device position, and the position of at least one target device; determining a screen offset angle of the playback screen of at least one target device relative to the screen of at least one target device based on the device offset angle; determining a screen panning parameter based on the screen offset angle, the screen panning parameter being used to adjust the screen display position of the playback content of at least one target device; determining the azimuth distance of at least one target device relative to the user device position based on the current user device position; and determining an audio gain parameter and / or audio delay parameter corresponding to at least one target device based on the azimuth distance, and determining the gain parameter and / or delay parameter as a sound field control parameter, the sound field control parameter being used to adjust the sound field position of the playback content of at least one target device.
[0011] In some embodiments, when it is determined that a user's device has entered a fenced area, the playback task of the user's device is migrated to at least one target device among the at least one candidate device based on the operating status of at least one candidate device within the fenced area. Prior to this, the method includes: acquiring at least one historical location data of the user's device; performing cluster analysis on the at least one historical location data based on a preset clustering algorithm to obtain the target area of the user's device; determining the fence radius corresponding to the target area based on the scene type corresponding to the target area and a preset radius mapping rule; and constructing the fenced area based on the fence radius.
[0012] Secondly, embodiments of this application provide a cross-device playback device, the device comprising:
[0013] The migration unit is used to migrate the playback content of the user device to at least one target device among at least one candidate device, based on the operating status of at least one candidate device in the fenced area, when it is determined that the user device has entered the fenced area. The fenced area is pre-constructed based on the historical location data of the user device. An adjustment unit is used to determine at least one playback adjustment parameter for at least one target device based on the real-time relative positional relationship between the user device location and at least one target device location, so that at least one target device performs a playback adjustment operation to adapt to the user based on the at least one playback adjustment parameter.
[0014] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor, wherein, when the processor runs the computer program, it performs the method described in any embodiment of the first aspect.
[0015] Fourthly, embodiments of this application provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to perform the methods described in any embodiment of the first aspect.
[0016] Fifthly, embodiments of this application provide a computer program product including a computer program that, when executed by a processor, performs the method described in any embodiment of the first aspect.
[0017] This application provides a cross-device playback method. When a user's device enters a fenced area, based on the operating status of at least one candidate device within the fenced area, the playback content of the user's device is migrated to at least one target device among the at least one candidate device. Based on the real-time relative positional relationship between the user's device location and the location of at least one target device, at least one playback adjustment parameter is determined for the at least one target device. This allows the at least one target device to perform playback adjustment operations adapted to the user based on the at least one playback adjustment parameter. This application utilizes electronic fence technology to trigger cross-device playback operations, achieving seamless migration of playback content from the user's device to the target device. Simultaneously, during playback, the playback content can adaptively adjust according to changes in the user's location without manual user intervention, enhancing the continuity and immersion of the viewing experience.
[0018] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are merely embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort, and this application can be applied to other similar scenarios based on the provided drawings.
[0020] Figure 1 A flowchart illustrating the first cross-device playback method provided in this application embodiment; Figure 2 A flowchart illustrating the second cross-device playback method provided in this application embodiment; Figure 3A schematic diagram of a multi-level positioning fusion layered architecture provided for an embodiment of this application; Figure 4 A schematic diagram of an electronic fence area provided in an embodiment of this application; Figure 5 A schematic diagram illustrating a cross-device migration decision-making process provided in an embodiment of this application; Figure 6 This is a schematic diagram illustrating a scenario where the screen zooms when the user's position changes, provided as an embodiment of this application. Figure 7 A schematic diagram illustrating a scenario where the screen shifts when the user's position changes, provided as an embodiment of this application; Figure 8 A schematic diagram illustrating a scenario where the sound field position is adjusted when the user's position changes, provided as an embodiment of this application; Figure 9 This is a schematic diagram of the structure of a cross-device playback device provided in an embodiment of this application; Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0021] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. The described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0022] It should be noted that the terms "system," "device," "unit," and / or "module" used in this application are methods of distinguishing different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they can be replaced by other expressions.
[0023] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.
[0024] With the widespread adoption of smart devices, users typically own multiple smart devices simultaneously, such as smartphones, tablets, smart TVs, and smart speakers. In different scenarios, users need to continuously watch multimedia content across devices; for example, a user might watch a video on their phone outdoors and then automatically switch to watching it on the TV when they return home. Therefore, seamless cross-device playback has become an important technological direction for improving the user's viewing experience.
[0025] Currently, in related technologies, cross-device playback resumes mainly adopt two methods: one is a mobile screen mirroring solution based on a local area network, which finds devices under the same local area network and then uses the near-field mirroring protocol to mirror the video link and time breakpoint played on the mobile device to the TV for continued playback; the other is a cloud-based playback record sharing solution, where multiple devices share playback records through the same account to achieve the function of cross-device playback resumes.
[0026] However, the relevant technologies have obvious shortcomings: First, the user experience is fragmented. Screen mirroring and cloud sharing can only synchronize the playback progress and cannot adjust the playback mode according to the user's real-time location, resulting in a lack of "immersive" experience for the user. Second, the interaction method is relatively passive. The selection of playback mode requires manual operation by the user, which interrupts the continuity of the user's viewing experience. Finally, the device switching logic is fixed and cannot make intelligent decisions based on the device status. If the device is occupied, it cannot intelligently switch to other devices, resulting in failure to resume playback and thus a poor user experience.
[0027] To address the aforementioned issues, this application proposes a cross-device playback method. By utilizing geofencing technology to trigger cross-device playback, it achieves seamless migration of playback content from the user's device to the target device. Furthermore, by continuously sensing the user's spatial movement, it drives real-time, smooth adaptive adjustments to the target device's playback parameters, ensuring the playback effect on the target device matches the user's experience. This provides the user with an immersive experience akin to changing their viewing position in a real-world setting. This truly achieves seamless cross-device playback triggered by the user's location, effectively enhancing the user's viewing continuity and immersive experience.
[0028] The following is a detailed description of a cross-device playback method provided in this application, with reference to the accompanying drawings.
[0029] Figure 1 A flowchart illustrating a first cross-device playback method provided in an embodiment of this application is shown. Figure 1 As shown, the cross-device playback method includes steps 101-102.
[0030] Step 101: If it is determined that the user's device has entered the fenced area, based on the operating status of at least one candidate device in the fenced area, the playback content of the user's device is migrated to at least one target device among the at least one candidate device.
[0031] In the embodiments of this application, the fenced area is a virtual geographical boundary pre-constructed based on the historical location data of the user device, used to trigger cross-device migration. The radius of the fenced area varies in different scenarios; for example, the radius of the fenced area in a home area is 50 meters, the radius of the fenced area in an office area is 30 meters, and the radius of the fenced area in a vehicle is 10 meters. The specific radius of the fenced area can be set according to actual needs and is not limited in the embodiments of this application.
[0032] User devices refer to user-held devices (or user-accessible mobile devices), such as mobile phones and tablets. Candidate devices refer to all smart terminals within the fenced area that have audio-visual playback capabilities, including smart TVs, smart speakers, projectors, etc.
[0033] The operating status is used to indicate whether at least one candidate device is in an on and idle state, specifically whether the device is powered on or off, whether it is idle, or whether it is occupied.
[0034] Playback content refers to multimedia content such as videos, audio, or images and text that is currently playing on the user's device.
[0035] In one example, a user watches a live game outdoors using a user device (such as a mobile phone). When the user returns home, the home's electronic fence detects the user entering the fenced area and checks the operating status of candidate devices within the fenced area (i.e., whether they are powered on and whether they are idle). Based on this status, it intelligently selects the target device to continue playback or executes a conflict resolution protocol (for example, when the preferred device is occupied, it prompts the user through progressive reminders, including pop-ups, lowering the volume, vibration, etc., and automatically switches to the backup device if there is no response). The video playing on the user's device is automatically cast to the target device (such as a TV) for playback, achieving seamless migration.
[0036] Step 102: Based on the real-time relative positional relationship between the user device's location and the location of at least one target device, determine at least one playback adjustment parameter for at least one target device, so that at least one target device performs a playback adjustment operation to adapt to the user based on the playback content.
[0037] In the embodiments of this application, the user equipment location refers to the real-time coordinates of the user's mobile devices such as mobile phones and tablets in space; the target device location refers to the spatial coordinates of fixed devices such as televisions and speakers, which are pre-calibrated or acquired in real time during system initialization. The user equipment location and target device location can be obtained through multiple positioning technologies such as GPS (Global Positioning System), Wi-Fi, and Bluetooth beacons.
[0038] It should be noted that in this embodiment, the system senses the user's real-time location in space by tracking the location of the user's personal device. For ease of description, unless otherwise specified, "user" will be used to refer to "user device" in the following text. The user's movement behaviors, such as moving closer, moving further away, and moving left or right, are all detected and characterized by changes in the location of the user device they are carrying.
[0039] Real-time relative position relationship refers to the real-time vertical distance, horizontal offset angle, and spatial orientation relationship between the user and the target device.
[0040] Playback adjustment parameters are parameters used to control the audio-visual playback effect of the target device, including screen scaling, screen panning, audio gain, audio delay, etc.; playback adjustment operation is the target device's adaptive optimization operation of the picture and sound field of the migrated playback content based on the playback adjustment parameters, in order to adapt to the user's real-time movement.
[0041] Specifically, the system continuously tracks the real-time distance and offset angle between the user and the target device at a preset frequency (e.g., 5 milliseconds / time). When the user moves closer to the target device, the real-time distance decreases, and the playback screen on the target device gradually enlarges; when the user moves away from the target device, the real-time distance increases, and the playback screen on the target device gradually shrinks; when the user moves left or right, the playback screen on the target device shifts accordingly to the right or left, and the volume ratio of the left and right channels adjusts accordingly, so that the sound direction follows the user's movement. All adjustments are real-time, smooth, continuous, and imperceptible.
[0042] In summary, this application, upon determining that a user's device has entered a fenced area, migrates the playback content from the user's device to at least one target device among at least one candidate device, based on the operating status of at least one candidate device within the fenced area. Based on the real-time relative positional relationship between the user's device location and the location of at least one target device, at least one playback adjustment parameter is determined for the at least one target device, enabling the at least one target device to perform user-adaptive playback adjustment operations on the playback content based on the at least one playback adjustment parameter. This application utilizes electronic fence technology to trigger cross-device playback operations, achieving seamless migration of playback content from the user's device to the target device. Simultaneously, during playback, the playback content can adaptively adjust according to changes in the user's position without manual user intervention, enhancing the continuity and immersion of the viewing experience.
[0043] As one possible implementation, this application, upon determining that a user's device has entered a fenced area, needs to first determine the fenced area before migrating the playback task of the user's device to at least one target device among at least one candidate device based on the operating status of at least one candidate device within the fenced area. The fenced area construction process is as follows: 1) Obtain at least one historical location data of the user device.
[0044] In the embodiments of this application, historical location data is location information recorded by the user over a period of time in the past, including GPS coordinates, timestamps, duration of stay, etc.
[0045] 2) Based on a preset clustering algorithm, perform cluster analysis on at least one historical location data to obtain the target area of the user equipment.
[0046] In the embodiments of this application, the preset clustering algorithm is an algorithm used to group and classify a large number of data points into different clusters, such as the K-means clustering algorithm. The specific clustering algorithm can be selected according to actual needs and is not limited in the embodiments of this application.
[0047] The target area refers to the area where the user frequently resides. This application identifies the user's frequently occupied areas, such as home areas, office areas, and vehicle areas, by performing cluster analysis on the user's historical location data.
[0048] 3) Determine the fence radius corresponding to the target area based on the scene type and preset radius mapping rules.
[0049] In the embodiments of this application, the scene type is the attribute classification of the target area, including home, office, vehicle, etc.
[0050] The preset radius mapping rule represents the correspondence between scene types and fence radii. For example, the fence radius for a home area is 50 meters, for an office area it is 30 meters, and for a vehicle area it is 10 meters. Furthermore, this application can learn the activity radius of fenced areas based on historical location data to optimize fence boundaries. For example, the fence radius can be reduced to 5 meters in frequently used areas such as bedrooms, and expanded to 20 meters in transitional areas such as corridors, achieving flexible adaptation of fence boundaries.
[0051] 4) Construct the fenced area based on the fence radius.
[0052] In the embodiments of this application, after determining the corresponding fence radius based on the identified scene type, for example, the radius corresponding to a home area is 50 meters, that is, a virtual boundary (i.e., fenced area) is constructed with the electronic fence device as the center and the fence radius. When a user enters the fenced area, the cross-device playback content migration process is automatically triggered.
[0053] In summary, this application identifies frequently visited areas by clustering analysis of users' historical location data and dynamically configures the fence radius according to the scene type, realizing the adaptive construction of the fence area without requiring manual settings by the user. This allows for intelligent triggering of cross-device playback migration within the fence area and the ability to sense the user's movement within the space, providing users with a seamless and immersive playback experience.
[0054] As one possible implementation method, Figure 2 A flowchart of a second cross-device playback method provided in an embodiment of this application is shown. Figure 2 based on Figure 1 The illustrated embodiment further defines steps 101 and 102. Figure 2 In the illustrated embodiment, step 101 includes steps 201, 202, and 203, and step 102 includes steps 204, 205, and 206, as shown. Figure 2 As shown, the method includes the following steps: Step 201: If it is determined that the user's user equipment has entered the fenced area, perform status detection on at least one candidate device in the fenced area to determine the operating status of at least one candidate device.
[0055] In the embodiments of this application, to achieve accurate perception of the user's location, this application constructs a four-layer nested multi-level positioning fusion (GPS + Wi-Fi + Bluetooth beacon + machine vision) architecture, for example, as shown below. Figure 3 The diagram shows a hierarchical architecture for multi-level positioning fusion, which includes, from the outside in, the following components: The outer layer uses GPS or base station positioning with a detection range of 500 meters. It is used to detect whether a user has entered a preset fenced area from a distance, triggering the initial wake-up of cross-device migration.
[0056] Middle layer: Uses Wi-Fi or geomagnetic positioning with a detection range of 50 meters, used to determine the user's specific location within the fenced area from a medium distance.
[0057] Core layer: It adopts UWB (Ultra Wide Band) or Bluetooth beacon positioning with a detection range of 5 meters. It is used for close-range and accurate positioning of the user's room (such as living room or bedroom) and the precise distance and angle to devices such as TVs and speakers, with an accuracy of centimeter level.
[0058] Equipment area: Employs machine vision with a detection range of 1 meter, used for ultra-close-range recognition of user posture, facial orientation, gestures, etc., providing data support for higher-precision audiovisual linkage.
[0059] For example, this application employs a hybrid positioning technology to detect the user's location. Specifically, it uses a hybrid positioning technology combining GPS (accuracy 5-10 meters) and Wi-Fi fingerprint positioning (accuracy 1-3 meters). To eliminate signal jitter and improve positioning accuracy, a Kalman filter algorithm is used to fuse GPS and Wi-Fi fingerprint positioning data. The details are as follows: (a) State-space model The state vector is set as follows (for a two-dimensional positioning scenario):
[0060] The state vector is used to represent the user's motion state in a two-dimensional positioning scenario, and includes a position component ( , ) and velocity components ( , Using a uniform motion model, the state transition equation is: Among them, the state transition matrix F for:
[0061] Process noise Satisfies Gaussian distribution , Q Let be the process noise covariance matrix.
[0062] (II) Observation Model The observation vectors are fused from GPS and Wi-Fi positioning data, as follows:
[0063] in, , The location coordinates observed by GPS; , The observed location coordinates are used for Wi-Fi positioning. The observation equation is: Among them, the observation matrix for:
[0064] Observation noise Satisfies a Gaussian distribution: ,in R To observe the noise covariance matrix, the settings are based on sensor accuracy (GPS error 5-10 meters, Wi-Fi error 1-3 meters).
[0065] (III) Kalman Filter Recursive Equation The steps for prediction (predicting the current state based on the state of the previous time step) are as follows:
[0066] in, This is the predicted state estimate at time k; This is the optimal state estimate at time k-1; This is the covariance matrix of the predicted state estimates; This represents the covariance matrix of the optimal state estimate at time k-1; Represents the state transition matrix F The transpose of .
[0067] The steps for updating (correcting predicted values using current observations) are as follows:
[0068]
[0069] in, This is the Kalman gain matrix, used to balance the weights of predicted and observed values; Represents the observation matrix H Transpose of; The optimal state estimate (fused position and velocity) at time k. This represents the observation residual, which is the difference between the actual observed value and the predicted observed value. Let K be the covariance matrix of the optimal state estimate at time k; It is an identity matrix.
[0070] Through the above Kalman filter recursive calculation, the system can optimally fuse GPS and Wi-Fi positioning data, effectively eliminate signal jitter, and obtain a smooth and accurate user equipment location.
[0071] In one example, taking a family setting, the fenced area is as follows: Figure 4 The diagram illustrates an electronic fence area, including: an electronic fence device (such as a router, serving as the fence center), a television screen, multiple speakers (front left and right speakers, and surround speakers), and user mobile phones. Solid lines represent physical connections (such as HDMI (High Definition Multimedia Interface) for device status detection), while dashed lines represent virtual positioning (such as Bluetooth beacons and UWB ranging). When a user enters the fenced area with their mobile phone, the system accurately locates the phone's position relative to the television and speakers via GPS / Wi-Fi / Bluetooth, providing a location basis for subsequent device status detection and playback parameter adjustments. Furthermore, when the detected user movement speed is less than 1 meter per second, the system automatically switches from GPS / Wi-Fi positioning to Bluetooth beacon positioning, reducing power consumption while maintaining positioning accuracy. Afterward, the system detects the television's operating status, determining whether it is powered on and idle via the HDMI-CEC protocol, i.e., sending data via the HDMI-CEC 1.4 protocol.<Polling Message> Command to monitor TV response time (normal idle state response delay <200ms).
[0072] Step 202: Based on the operating status, determine whether there is an idle device among at least one candidate device.
[0073] Step 203: If there is an idle device among at least one candidate device, determine the idle device as the target device and migrate the playback task to the target device.
[0074] In the embodiments of this application, an idle device refers to a candidate device that is powered on and not occupied. If an idle device exists, the system selects the target device according to a preset priority (e.g., a TV has higher priority than a speaker). If the preferred device is idle, the system migrates directly; if the preferred device is occupied, a conflict resolution protocol is initiated (a pop-up window asks the user), and if there is no response after a timeout, the system automatically switches to a backup device (e.g., a smart speaker).
[0075] Furthermore, to aid in better understanding, this application provides a concrete example, such as Figure 5 As shown, Figure 5This is a flowchart illustrating a cross-device migration decision-making process provided in an embodiment of this application. When a user enters a home fenced area with their device (such as a mobile phone), the system detects the device's entry via GPS+Wi-Fi positioning and verifies the device's network access request to confirm its identity and legitimacy. Subsequently, the system checks whether the TV is powered on and idle via the HDMI-CEC protocol. If the TV is idle, the playback content is immediately migrated to the TV, and playback status synchronization is performed. If the TV is occupied, a conflict resolution protocol is initiated, employing a progressive reminder strategy by prompting the user through a pop-up window on the TV. The reminder methods include the following three levels: Basic reminder: The semi-transparent window displayed in the lower right corner of the TV is achieved through layer compositing technology of Android SurfaceFlinger (Android's layer compositing service); Level 2 alert: Master volume reduced by 30%, achieved through ALSA (Advanced Linux Sound Architecture) audio driver dynamic gain control; Ultimate reminder: The backup device vibration alert is implemented through the Android VibratorService (Android system's vibrator service) interface call.
[0076] The system waits for a user response to the query, with a configurable default timeout (e.g., 10 seconds). If the user confirms the switch, the system migrates the playback task to a backup device and synchronizes the playback status. Additionally, the system uses a Leaky Bucket algorithm to limit high-frequency switching requests (limited to 5 times / minute) to prevent frequent user interruptions. If the user does not respond within the timeout period, the system automatically migrates the playback task to a backup device (e.g., a smart speaker). Then, information such as the playback content identifier, current playback progress (accurate to milliseconds), audio track selection, and subtitle settings are encapsulated into a data packet and synchronized to the target device. Simultaneously, near-field discovery protocols (DLNA (Digital Living Network Alliance) and Bonjour (zero-configuration networking) are used for device discovery and data transmission within the local area network. When the local network is unavailable, P2P (Peer-to-Peer) direct connection channels are established through protocols such as WebRTC (Web Real-Time Communication) and WebSocket. STUN (Session Traversal Utilities for NAT) / TURN (Traversal Using Relays around NAT) technologies are used to traverse NAT (Network Address Translation) and achieve reliable cross-network transmission. Finally, the status information of all relevant devices, including user devices, target devices, and backup devices, is updated to ensure consistency of the entire system status.
[0077] Step 204: Determine the initial location of the user equipment and the location of at least one target device.
[0078] In the embodiments of this application, the initial user device location is the coordinate of the user's location when they first enter the fenced area; the target device location is the fixed coordinate of the target device within the room. When a user enters the fenced area with their user device, the system records the current coordinates of the user device and the location of the target device using a multi-level positioning fusion strategy.
[0079] Step 205: If the user equipment moves within the fenced area, determine the current location of the user equipment.
[0080] In the embodiments of this application, the system continuously updates the real-time location coordinates of the user device at a preset frequency (e.g., 5 milliseconds / time) to monitor whether the user moves and the direction and distance of the movement.
[0081] Step 206: Based on the initial user device location, the current user device location, and the location of at least one target device, determine the relative position change between the user device and at least one target device, so as to determine at least one playback adjustment parameter based on the relative position change.
[0082] In the embodiments of this application, the relative position change refers to the degree of change of the user's current position relative to the initial reference position, including the change in vertical distance, the change in horizontal offset angle, etc.
[0083] Optionally, at least one playback adjustment parameter includes a screen scaling parameter, which is determined as follows: 1) Determine the initial vertical distance between the user device and at least one target device based on the initial user device location and the location of at least one target device. This initial vertical distance reflects the distance between the user and the target device (such as a television) when the user first enters the fence. In the initial state, the playback image presented by the target device is in a 1:1 ratio with the display area of the target device, i.e., full-screen playback. At this time, the image scaling parameter is the baseline value, and there is no scaling or translation.
[0084] 2) When a user moves, determine the current vertical distance between the user device and at least one target device based on the current location of the user device and the location of at least one target device. The current vertical distance reflects the real-time proximity of the user to the target device after movement.
[0085] 3) Based on the initial and current vertical distances, determine the change in vertical distance between the user device and at least one target device; based on the change in vertical distance, determine the screen scaling parameter. The screen scaling parameter is used to adjust the display ratio of the playback content on at least one target device, i.e., controlling the degree of magnification or reduction of the playback image. The screen scaling parameter is negatively correlated with the current vertical distance, i.e., screen scaling parameter = initial vertical distance / current vertical distance. That is, when the user moves closer to the target device, the screen scaling parameter increases, and the playback image presented by the target device will be magnified, simulating the effect of an observer's field of vision gradually focusing as they approach an object in a real scene; when the user moves away from the target device, the screen scaling parameter decreases, and the playback image presented by the target device will be reduced, simulating the effect of an observer's field of vision gradually widening as they move away from an object. A specific scenario illustration is shown below. Figure 6 As shown, Figure 6is a schematic diagram of a scenario for picture scaling when a user's position changes, provided in the embodiments of the present application. In addition, when the played picture is scaled up, the center of the picture coincides with the plane center of the target device, the picture is scaled up proportionally on all sides with the center point of the picture as the center, and the part beyond the display range of the target device is not displayed, so as to ensure that the center position of the picture can be fully displayed. In addition, the user can also manually adjust the picture scale size and translate the position of the picture center point by controlling the EPG (Electronic Program Guide) page through a remote controller, thereby manually adjusting the part of the picture displayed on the screen.
[0086] Optionally, the picture scaling parameter may be determined by a continuous mapping method (such as a linear function) or a discrete mapping method (such as setting a distance threshold, selecting a panoramic stream when the current vertical distance D>3 meters, selecting a medium shot stream when 1.5 meters<D≤3 meters, and selecting a close-up stream when D≤1.5 meters). Exemplarily, the specific value of the picture scaling parameter is determined by a preset mapping function, for example, a normalized linear function is adopted to normalize the current vertical distance D into a parameter α in the interval of [0, 1], where α = (D -D min ) / (D max - D min ), the picture scaling parameter Z = Z max - α (Z max - Z min ), where D min (e.g., 1 meter) and D max (e.g., 5 meters) are respectively the nearest and farthest distances of the effective interaction space, Z min and Z max are respectively the minimum and maximum picture scaling parameters (configurable). The closer the user is (the smaller α is), the larger the picture scaling parameter Z is, and the more close-up (i.e., the larger) the picture is.
[0087] Optionally, the at least one playback adjustment parameter includes a picture translation parameter and a sound field control parameter, wherein the picture translation parameter is determined in the following manner: 1) Determine the device offset angle between the user equipment and the at least one target device based on the initial user equipment position, the current user equipment position, and the at least one target device position.
[0088] Herein, the device offset angle refers to the horizontal included angle between the user and the display center of the target device, which reflects the horizontal direction change of the user relative to the central axis of the screen after moving. Exemplarily, the specific schematic scenario diagram is as shown in Figure 7 , Figure 7 is a schematic diagram of a scenario for picture offset when a user's position changes, provided in the embodiments of the present application. Herein, Figure 7 The horizontal included angle X° in is the device offset angle.
[0089] 2) Based on the device offset angle, determine the offset angle of the playback screen of at least one target device relative to the screen of at least one target device.
[0090] The screen offset angle refers to the horizontal angle between the center of the playing content and the center of the target device's display. The screen offset angle corresponds to the device offset angle; that is, the screen offset angle is the diagonal of the device offset angle. Figure 7 The horizontal angle Y° is the screen offset angle, and the two satisfy: screen offset angle = device offset angle. That is, when the user moves to the left, the screen shifts to the right, and when the user moves to the right, the screen shifts to the left, simulating the user's perspective in a real scene.
[0091] 3) Determine the image translation parameters based on the image offset angle.
[0092] Among them, the image translation parameter is directly proportional to the image offset angle (or device offset angle), that is, image translation parameter = k Image offset angle. Here, k is a scaling factor to prevent drastic changes in viewing angle. Image translation parameters are used to adjust the display position of the playback content on at least one target device. By controlling the horizontal translation of the playback content relative to the screen center, a "image follows the viewer" visual effect is achieved.
[0093] The sound field control parameters are determined as follows: 1) Based on the current location of the user equipment, determine the azimuth distance of at least one target device relative to the location of the user equipment.
[0094] Specifically, the real-time three-dimensional coordinates of the user's device in the room coordinate system are obtained, and combined with the fixed coordinates of the target device (such as a TV or speakers), the real-time orientation and distance of the user relative to the target device are calculated.
[0095] 2) Based on the azimuth distance, determine the audio gain parameter and / or audio delay parameter corresponding to at least one target device, and determine the gain parameter and / or delay parameter as the sound field control parameter. The sound field control parameter is used to adjust the sound field position of the playback content of at least one target device.
[0096] The audio gain parameter controls the output volume of each speaker channel. When the user moves to the left, the gain of the left speaker increases and the gain of the right speaker decreases, making the user perceive the sound as coming from the correct direction.
[0097] Audio delay parameters are used to control the output time difference of each channel speaker. By setting a small delay for the opposite speaker, the sense of sound localization is enhanced.
[0098] The determination of sound field control parameters is based on the principle of sound field reconstruction. This application adopts object-based audio or high-order Ambisonics (a full surround sound technology) audio formats. Each sound object (such as players, footballs, and audience cheers in a live sports broadcast) carries independent 3D spatial location metadata. For object-based audio, the audio rendering engine recalculates the orientation and distance of each sound object relative to the user based on the user's current position coordinates, and then uses the HRTF (Head-Related Transfer Function) algorithm or multi-channel speaker rendering algorithm to accurately locate the sound in the user's auditory perception. For Ambisonics audio, the system uses the user's current position coordinates as the new "listening position," performs sound field rotation and distortion on the Ambisonics stream, and then decodes it into a signal from the home theater speakers. This process is equivalent to the user "moving" to a new position in a virtual sound field. The final output is the gain and delay values required to drive each speaker, which are output to the target device for playback.
[0099] Specific scene diagrams are as follows Figure 8 As shown, Figure 8 This is a schematic diagram illustrating a scenario where the sound field position is adjusted when the user's position changes, as provided in an embodiment of this application. When the user moves, the system dynamically and continuously adjusts the audio gain and delay parameters, making the sound appear fixed in a virtual space while the user moves around the sound object. For example, in a football match, the sound of the home team's attack from the direction of the goal remains fixed on the left side of the virtual stadium. When the user moves from the left side of the sofa to the right side, they can feel the main sound smoothly shift from the left front to the right front, as if walking on-site, thus creating an immersive auditory experience.
[0100] Optionally, this application also supports multi-device collaborative playback scenarios. For example, when video and audio are handled by different device groups, and audio is played using a TV display and a distributed group of smart speakers, a unified collaborative control framework needs to be established to determine the relative adjustment values between the devices. Specifically, this application adopts the following multi-device collaborative control mechanism: A master control device is set up as the "director," which can be a smart TV, a home smart hub, or a user's mobile application. The master control device is responsible for the following tasks: collecting the absolute coordinates of all devices (including user devices, the TV, and all speakers); receiving the user's real-time location; calculating the overall audio-visual linkage strategy; and distributing rendering commands to each device. During system initialization, all audio devices (speakers) and display devices (TV) need to determine their precise three-dimensional coordinates within the fenced area using methods such as UWB ranging or user device-assisted acoustic calibration, thereby establishing a unified "fenced area coordinate system." The master control device performs unified calculations based on the user's current location: Video component: The main control device calculates the required video perspective parameters (such as image scaling factor and image panning parameters) and instructs the target device (such as a TV) to execute them.
[0101] Audio Section: The main control device inputs the user's position and the positions of all speakers into the audio rendering engine to calculate sound field control parameters. The audio rendering engine calculates the independent audio gain and / or audio delay parameters required for each speaker to form the correct sound field at the user's current position. The main control device sends these adjustment values to the corresponding speakers via low-latency network protocols (such as Wi-Fi 6 or Thread). Simultaneously, the main control device sends synchronization signals (such as using the IEEE 1588 PTP precision clock protocol) to ensure strict synchronization between all speakers and the TV screen, avoiding audio-visual asynchrony.
[0102] Taking a user moving from the center of the room to the right as an example, upon detecting the user's rightward movement, the video perspective is fine-tuned (the image panning parameters are adjusted accordingly). Simultaneously, the main control device calculates the following audio adjustments needed to lock the sound field center at the user's new position: increase the audio gain parameters of the right-side speaker group (increase volume); decrease the audio gain parameters of the left-side speaker group (decrease volume); and introduce a slight audio delay parameter to the left-side speaker group. The main control device sends adjustment commands to the TV, the right-side speaker, and the left-side speaker respectively. The final effect is a smooth change in image perspective, while the perceived sound also smoothly shifts from the center to the user's right side, creating an immersive audiovisual experience.
[0103] In summary, this application uses multi-level positioning to detect when a user enters the fence and monitors the device's operating status. If the device is idle, it migrates directly; if it's occupied, a gradual reminder is given; and if a timeout occurs, a backup device is switched on, ensuring continued playback across devices. Then, using the user's initial position as a reference, the display ratio of the playback content is controlled by adjusting the screen scaling factor when moving forward or backward (the closer the user, the larger the screen). When moving left or right, the screen translation parameters and sound field control parameters are adjusted according to the device's offset angle, enabling real-time changes in image and sound based on the user's position. Simultaneously, when multiple devices collaborate, a master control device uniformly calibrates the coordinates of each device, calculates audiovisual strategies, distributes instructions, and synchronizes audio and video. This achieves a seamless migration of playback tasks and an immersive cross-device viewing experience with playback effects that dynamically adjust to the user's position.
[0104] To achieve the above embodiments, this application also provides a cross-device playback device. Figure 9 This is a schematic diagram of the structure of a cross-device playback device 300 provided in an embodiment of this application. Figure 9 As shown, the device includes: The migration unit 310 is used to migrate the playback content of the user device to at least one target device among at least one candidate device, based on the operating status of at least one candidate device in the fenced area when it is determined that the user device has entered the fenced area. The fenced area is pre-constructed based on the historical location data of the user device. The adjustment unit 320 is used to determine at least one playback adjustment parameter for at least one target device based on the real-time relative positional relationship between the user device location and at least one target device location, so that at least one target device performs a playback adjustment operation to adapt to the user based on the at least one playback adjustment parameter.
[0105] In some embodiments, the migration unit 310 is configured to: when it is determined that a user's user device has entered a fenced area, perform status detection on at least one candidate device within the fenced area, determine the operating status corresponding to at least one candidate device, the operating status being used to indicate whether at least one candidate device is in an on and idle state; based on the operating status, determine whether there is an idle device among the at least one candidate device; if there is an idle device among the at least one candidate device, determine the idle device as the target device, and migrate the playback task to the target device.
[0106] In some embodiments, the adjustment unit 320 is configured to: determine the initial user device position of the user device and the position of at least one target device of at least one target device when the user device enters the fenced area; determine the current user device position when the user device moves within the fenced area; and determine the relative position change between the user device and the at least one target device based on the initial user device position, the current user device position, and the position of the at least one target device, so as to determine at least one playback adjustment parameter based on the relative position change.
[0107] In some embodiments, at least one playback adjustment parameter includes a screen scaling parameter. The adjustment unit 320 is configured to: determine an initial vertical distance between the user device and at least one target device based on an initial user device position and at least one target device position; determine a current vertical distance between the user device and at least one target device based on the current user device position and at least one target device position; determine a change in the vertical distance between the user device and at least one target device based on the initial vertical distance and the current vertical distance; and determine a screen scaling parameter based on the change in vertical distance. The screen scaling parameter is used to adjust the screen display ratio of the playback content on at least one target device, and the screen scaling parameter is negatively correlated with the current vertical distance.
[0108] In some embodiments, at least one playback adjustment parameter includes a screen translation parameter and a sound field control parameter. The adjustment unit 320 is configured to: determine a device offset angle between the user device and at least one target device based on the initial user device position, the current user device position, and at least one target device position; determine a screen offset angle of the playback screen of at least one target device relative to the screen of at least one target device based on the device offset angle; determine a screen translation parameter based on the screen offset angle, the screen translation parameter being used to adjust the screen display position of the playback content of at least one target device; determine the azimuth distance of at least one target device relative to the user device position based on the current user device position; and determine an audio gain parameter and / or audio delay parameter corresponding to at least one target device based on the azimuth distance, and determine the gain parameter and / or delay parameter as a sound field control parameter, the sound field control parameter being used to adjust the sound field position of the playback content of at least one target device.
[0109] In some embodiments, the apparatus includes: a construction unit, configured to, upon determining that a user's device has entered a fenced area, migrate the playback task of the user's device to at least one target device among at least one candidate device based on the operating status of at least one candidate device within the fenced area; prior to this, acquire at least one historical location data of the user's device; perform cluster analysis on the at least one historical location data based on a preset clustering algorithm to obtain a target area of the user's device; determine the fence radius corresponding to the target area based on the scene type corresponding to the target area and a preset radius mapping rule; and construct the fenced area based on the fence radius.
[0110] The methods and apparatus provided in the embodiments of this application have been described above. To implement the functions of the methods provided in the embodiments of this application, the electronic device may include a hardware structure and software modules, and may implement the above functions in the form of a hardware structure, software modules, or a hardware structure plus software modules. One of the above functions may be executed in the form of a hardware structure, software modules, or a hardware structure plus software modules.
[0111] Figure 10 This is a block diagram illustrating an electronic device 400 for implementing the above-described cross-device playback method according to an exemplary embodiment. For example, the electronic device 400 may be a mobile phone, computer, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0112] Reference Figure 10 The electronic device 400 may include a communication interface 401, capable of interacting with other devices; a processor 402, connected to the communication interface 401 to enable interaction with other devices, used to execute the methods provided by one or more of the above-described technical solutions when running a computer program; and a memory 403, on which the computer program is stored. Specifically, the specific processing procedure of the processor 402 can refer to the cross-device playback method described in the above embodiments of this application.
[0113] Of course, in practical applications, the various components in electronic device 400 are coupled together through bus system 404. It can be understood that bus system 404 is used to realize the connection and communication between these components. In addition to a data bus, bus system 404 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, in... Figure 10 The general designated all buses as Bus System 404.
[0114] The memory 403 in this embodiment is used to store various types of data to support the operation of the electronic device 400. Examples of such data include any computer program used to operate on the electronic device 400.
[0115] The methods disclosed in the above embodiments of this application can be applied to processor 402, or implemented by processor 402. Processor 402 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in processor 402 or by instructions in the form of software. The processor 402 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Processor 402 can implement or execute the various methods, steps, and logic block diagrams of the application in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method applied in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in memory 403. Processor 402 reads the information in memory 403 and combines its hardware to complete the steps of the aforementioned method.
[0116] In an exemplary embodiment, the electronic device 400 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0117] Embodiments of this application also propose a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the cross-device playback method described in the above embodiments of this application.
[0118] Embodiments of this application also propose a computer program product, including a computer program that is executed by a processor using the cross-device playback method described in the above embodiments of this application.
[0119] Embodiments of this application also propose a chip including one or more interface circuits and one or more processors; the interface circuits are used to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory, and when the processor executes the computer instructions, it causes the electronic device to perform the cross-device playback method described in the above embodiments of this application.
[0120] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0121] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0122] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0123] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processing module, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (control method), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic device, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0124] It should be understood that various parts of the embodiments of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0125] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
[0126] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc.
[0127] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for playing content across devices, characterized in that, The method includes: If it is determined that a user's device has entered a fenced area, the playback content of the user's device is migrated to at least one target device among the at least one candidate device based on the operating status of at least one candidate device within the fenced area. The fenced area is pre-constructed based on the user's device's historical location data. Based on the real-time relative positional relationship between the user device location and the at least one target device location of the at least one target device, at least one playback adjustment parameter of the at least one target device is determined, so that the at least one target device performs a playback adjustment operation to adapt the playback content to the user based on the at least one playback adjustment parameter.
2. The method according to claim 1, characterized in that, The step of migrating the playback task of the user device to at least one target device among the at least one candidate device, based on the operating status of at least one candidate device within the fenced area, when it is determined that the user device has entered the fenced area, includes: When it is determined that a user's device has entered the fenced area, the status of at least one candidate device within the fenced area is detected to determine the operating status of the at least one candidate device. The operating status is used to indicate whether the at least one candidate device is in an on and idle state. Based on the operating status, determine whether there is an idle device among the at least one candidate device; If an idle device exists among the at least one candidate device, the idle device is determined as the target device, and the playback task is migrated to the target device.
3. The method according to claim 1, characterized in that, The determination of at least one playback adjustment parameter for the at least one target device based on the real-time relative positional relationship between the user device's location and the location of at least one target device includes: When the user equipment enters the fenced area, the initial user equipment position of the user equipment and the position of at least one target device of the at least one target device are determined. If the user equipment moves within the fenced area, determine the current location of the user equipment; Based on the initial user device location, the current user device location, and the location of the at least one target device, the relative position change between the user device and the at least one target device is determined, so as to determine the at least one playback adjustment parameter according to the relative position change.
4. The method according to claim 3, characterized in that, The at least one playback adjustment parameter includes a screen scaling parameter. The step of determining the relative position change between the user device and the at least one target device based on the initial user device location, the current user device location, and the at least one target device location, and then determining the at least one playback adjustment parameter based on the relative position change, includes: Based on the initial user equipment location and the location of the at least one target device, determine the initial vertical distance between the user equipment and the at least one target device; Based on the current location of the user equipment and the location of the at least one target device, determine the current vertical distance between the user equipment and the at least one target device; Based on the initial vertical distance and the current vertical distance, determine the change in vertical distance between the user equipment and the at least one target device; Based on the change in vertical distance, the screen scaling parameter is determined. The screen scaling parameter is used to adjust the screen display ratio of the playback content of the at least one target device. The screen scaling parameter is negatively correlated with the current vertical distance.
5. The method according to claim 3, characterized in that, The at least one playback adjustment parameter includes image panning parameters and sound field control parameters. The step of determining the relative position change between the user device and the at least one target device based on the initial user device location, the current user device location, and the at least one target device location, and then determining the at least one playback adjustment parameter based on the relative position change, includes: Based on the initial user equipment location, the current user equipment location, and the location of at least one target device, determine the device offset angle between the user equipment and the at least one target device; Based on the device offset angle, determine the offset angle of the playback screen of the at least one target device relative to the screen of the at least one target device; Based on the screen offset angle, the screen translation parameters are determined, and the screen translation parameters are used to adjust the screen display position of the playback content of the at least one target device; Based on the current location of the user equipment, determine the azimuth distance of the at least one target device relative to the location of the user equipment; Based on the directional distance, determine the audio gain parameter and / or audio delay parameter corresponding to the at least one target device, and determine the gain parameter and / or delay parameter as the sound field control parameter, which is used to adjust the sound field position of the playback content of the at least one target device.
6. The method according to claim 1, characterized in that, Upon determining that a user's device has entered a fenced area, and based on the operating status of at least one candidate device within the fenced area, the method migrates the playback task of the user's device to at least one target device among the at least one candidate device. Prior to this, the method includes: Obtain at least one historical location data of the user equipment; Based on a preset clustering algorithm, cluster analysis is performed on the at least one historical location data to obtain the target area of the user equipment; Based on the scene type corresponding to the target area and the preset radius mapping rule, the fence radius corresponding to the target area is determined; The fenced area is constructed based on the fence radius.
7. A cross-device playback device, characterized in that, The device includes: A migration unit is used to migrate the playback content of a user device to at least one target device among at least one candidate device, based on the operating status of at least one candidate device in the fenced area, when it is determined that the user device has entered the fenced area. The fenced area is pre-constructed based on the historical location data of the user device. An adjustment unit is configured to determine at least one playback adjustment parameter for the at least one target device based on the real-time relative positional relationship between the user device location and the at least one target device location, so that the at least one target device performs a playback adjustment operation to adapt the playback content to the user based on the at least one playback adjustment parameter.
8. An electronic device, characterized in that, include: The processor and the memory used to store computer programs that can run on the processor. When the processor is used to run the computer program, it performs the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 6.