WO2024012344A1 - 投屏方法和电子设备 - Google Patents

投屏方法和电子设备 Download PDF

Info

Publication number
WO2024012344A1
WO2024012344A1 PCT/CN2023/106091 CN2023106091W WO2024012344A1 WO 2024012344 A1 WO2024012344 A1 WO 2024012344A1 CN 2023106091 W CN2023106091 W CN 2023106091W WO 2024012344 A1 WO2024012344 A1 WO 2024012344A1
Authority
WO
WIPO (PCT)
Prior art keywords
environment
router
screen
intention
user
Prior art date
Application number
PCT/CN2023/106091
Other languages
English (en)
French (fr)
Inventor
朱孟波
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024012344A1 publication Critical patent/WO2024012344A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast

Definitions

  • the embodiments of the present application relate to the field of wireless communication technology, and in particular, to a screen projection method and electronic device.
  • Digital Living Network Alliance (DLNA) screencasting means that one device sends the address of the multimedia resource it plays to another device, so that the multimedia resource can be played on the other device.
  • DLNA Digital Living Network Alliance
  • Screencasting devices can multicast their own screencasting services. When there are many screencasting devices, there will be many multicast messages and a large amount of network bandwidth will be occupied.
  • Embodiments of the present application provide a screen projection method and electronic device, which can reduce the bandwidth occupied by multicast of the screen projection device.
  • inventions of the present application provide a screen casting method.
  • the execution subject that executes the screen casting method may be an access point, a central device, or a detection device.
  • the execution subject is an access point
  • the first device, the second device, and the detection device in the environment can all access the access point.
  • the execution subject is a central device
  • the first device, the second device, and the detection device in the environment can all access the access point
  • the access point can be connected to the central device.
  • the connection between the access point and the central device can be a wired connection or a wireless connection.
  • the detection device may be wirelessly connected to the first device and the second device in the environment. It should be understood that the first device is the source device for screen casting, and the second device is the destination device for screen casting.
  • the access point can determine whether there is a screencasting intention in the environment. Whether there is a screen casting intention in the environment can be understood as: whether there is a possibility of screen casting in the environment.
  • the access point may send a first opening instruction to the second device, and the first The turning on instruction is used to instruct the second device to turn on the DLNA function.
  • the access point sends a second turn-on indication to the second device in response to receiving a first event from the first device, the first event indicating that the first device There is an intention to cast the screen, and the second opening indication is used to instruct the second device to send a multicast, and the multicast is used for the first device to discover the second device for screen casting.
  • the existence of the intention of screen casting on the first device can be understood as: the possibility of screen casting on the first device.
  • the screen casting type of the first device is: the target application Supported screen casting types; or, when the user opens the target application in the first device and the user inputs a screen casting operation to the first device, the first device has a screen casting intention.
  • the access point can instruct the second device to turn on the DLNA function when there is an intention to cast the screen in the environment, and when the device has the intention to cast the screen, instruct the second device to send a Notify multicast, and the router can adaptively control the second device.
  • the device turns on the DLNA function and instructs the second device to send Notify multicast, which can prevent the second device from sending Notify multicast all the time and reduce the waste of bandwidth resources.
  • the access point may send a shutdown instruction to the second device, and the shutdown instruction is used to instruct the The second device turns off the DLNA function.
  • the second device after the second device turns on the DLNA function, it can send a first message to the access point.
  • the first message is used to indicate that the second device has turned on the DLNA function, and the access point can store the The DLNA function status of the second device is turned on.
  • the second device after the second device turns off the DLNA function, it can send a second message to the access point.
  • the second message is used to indicate that the second device has turned off the DLNA function.
  • the access point can store the The DLNA function status of the second device is turned off.
  • the second device after turning on or off the DLNA function, can send the status of the DLNA function to the access point, so that the access point can update the status of the DLNA function of the second device, so that the access point can According to the status of the DLNA function of the second device, accurately control the second device to turn on or off the DLNA function.
  • the access point can instruct the second device to turn on or off the DLNA function according to whether there is a screen casting intention in the environment, and when the first device has a screen casting intention, instruct the second device to send a Notify multicast.
  • the router can adaptively control the second device to turn on or off the DLNA function, and instruct the second device to send Notify multicast, which can reduce the bandwidth occupied by Notify multicast and reduce the waste of bandwidth resources.
  • the environment includes access points.
  • the access point may query whether the first device exists among the devices connected to the access point, that is, the access point detects whether the connected devices include a source device for screen projection. Wherein, when there is a first device among the devices that have accessed the access point, the access point determines that there is a screen casting intention in the environment. When the first device does not exist among the devices that have accessed the access point, the access point determines that there is no screen casting intention in the environment.
  • the environment includes a detection device.
  • the detection device can obtain data and report the data to the access point.
  • the data is user-related data.
  • the access point may receive data reported by the detection device, and determine whether there is a screencasting intention in the environment based on the data.
  • the detection device includes at least one of the following: a camera, a smart door lock, and a smart cat eye.
  • the camera when the detection device includes the camera, the camera is used to collect a video of the environment and determine whether there is a user in the video.
  • the camera may report a second event to the access point, where the second event indicates the presence of the user in the video.
  • the user-related data obtained by the camera is the second event.
  • the access point receives the second event from the camera, it is determined that there is a screen casting intention in the environment; if the access point does not receive the second event from the camera, it is determined that there is no screen casting intention in the environment. intention.
  • the camera can also determine whether there is an intention to cast the screen in the environment. Among them, when the camera detects that the user is included in the video, it is determined that there is an intention to cast the screen in the environment; when the camera detects that the user is not included in the video, it is determined that there is no intention to cast the screen in the environment.
  • the detection device includes the smart door lock and the smart peephole.
  • the smart door lock is used to detect the status of the door in the environment, and the smart peephole is used to determine whether there is a user at the door.
  • the smart door lock reports the locked status of the door to the access point.
  • the smart peephole detects a user at the door, it can report a third event to the access point. The third event indicates that there is a user at the door.
  • the access point receives the locked state from the smart door lock and does not receive the third event from the smart cat eye, it is determined that there is a screen casting intention in the environment. If the access point receives the lock status from The locked state of the smart door lock and receipt of the third event from the smart peephole determine that there is no intention to cast a screen in the environment.
  • the user-related data obtained by the smart door lock includes: locked status.
  • the user-related data obtained by Smart Maoyan includes: third event.
  • smart door locks and smart peepholes can also determine whether there is an intention to cast a screen in the environment.
  • the smart door lock when the door is closed, the smart door lock can report the locked status of the door to the smart peephole, or when the smart peephole detects the presence of a user at the door, it can send a third event to the smart door lock.
  • the smart door lock determines that there is a screencasting intention in the environment, if the door is in the locked state, and receives Upon receiving the third event from the smart cat eye, the smart door lock determines that there is no screencasting intention in the environment.
  • the environment includes access points and detection equipment.
  • the access point can query whether there is a first device among the devices that have accessed the access point, and determine whether there is a screen casting intention in the environment based on the data reported from the detection device (data related to the user) , because it combines a variety of data for judgment, it can improve the accuracy of the access point in determining whether there is a screencasting intention in the environment.
  • the router determines that there is no investment in the environment. screen intention.
  • the access point router determines that the first device exists among the devices that have accessed the access point and receives the first event from the camera, the access point can determine that there is a screencasting intention in the environment.
  • the detection device may also determine whether there is a screen casting intention in the environment based on whether there is a first device among the devices that have accessed the access point, and based on user-related data.
  • the access point may send information about devices that have accessed the access point to the detection device.
  • the access point can also control the second device to turn on or off the DLNA function according to the screen projection type supported by the second device.
  • the access point may obtain the device type of the second device.
  • the second device may report the device type of the second device to the access point.
  • the access point may receive the capability information reported by the second device.
  • the capability information reported by the second device includes that the second device supports the DLNA function.
  • the access point may update the second device according to the device type of the second device.
  • the updated capability information of the second device includes: the screen projection type supported by the second device. It should be understood that the device type of the second device may reflect the screen projection type specifically supported by the second device.
  • the access point may determine, among the at least one second device, a target second device that supports the screen casting type of the first device based on the updated capability information of the second device, Then, the second opening instruction is sent to the target second device.
  • the access point can query the target second device that supports video casting based on the updated capability information of the second device, and send a request to the target second device that supports video casting.
  • the second opening instruction is sent to the target second device of the screen, and the second opening instruction is not sent to the second device that does not support video projection.
  • the access point can accurately control the target second device to send multicast, and the second device that does not support the screen casting type of the first device does not need to multicast, which can further reduce the bandwidth occupied by multicast.
  • embodiments of the present application provide a screen casting method, which is applied to a first device.
  • the first device is a source device for screen casting.
  • the device that interacts with the first device may be an access point or a detection device.
  • the first device sends a first event to the access point in response to the first device having a screen casting intention, and the first event indicates that the first device has a screen casting intention.
  • the first device determines that the first device has an intention to cast the screen.
  • the first device determines that the first device has a screen casting intention.
  • the first event includes a screen casting type of the first device, where the screen casting type of the first device is: a screen casting type supported by the target application.
  • embodiments of the present application provide a screen projection method, which is applied to a second device.
  • the first device is the source device for screen casting
  • the second device is the destination device for screen casting
  • the device that interacts with the second device may be an access point or a detection device.
  • the second device receives the first opening instruction from the access point, and the second device turns on the DLNA function.
  • the second device receives the second opening instruction from the access point and performs multicast.
  • the multicast is used by the first device to discover the second device for screen casting.
  • the second device after turning on the DLNA function, the second device sends a first message to the access point, where the first message is used to indicate that the second device has turned on the DLNA function.
  • the device type of the second device may be reported to the access point; after the second device accesses the access point, The capability information reported by the second device may be reported to the access point.
  • the second device receives a shutdown instruction from the access point and turns off the DLNA function.
  • the second device after turning off the DLNA function, the second device sends a second message to the access point, where the second message is used to indicate that the second device has turned off the DLNA function.
  • embodiments of the present application provide an electronic device, which may include: a processor and a memory.
  • the memory is used to store computer-executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the electronic device to perform the methods in the first to third aspects.
  • embodiments of the present application provide a computer program product containing instructions that, when run on a computer, cause the computer to execute the methods in the above first to third aspects.
  • embodiments of the present application provide a computer-readable storage medium that stores instructions that, when run on a computer, cause the computer to execute the above-described first to third aspects. method.
  • Figure 1 is a schematic diagram of DLNA screen projection
  • Figure 2A is a schematic diagram of a system architecture suitable for the screen projection method provided by the embodiment of the present application.
  • Figure 2B is another schematic diagram of a system architecture suitable for the screen projection method provided by the embodiment of the present application.
  • Figure 3 is a schematic flowchart of an embodiment of the screen projection method provided by the embodiment of the present application.
  • Figure 4A is a schematic diagram of a scenario provided by an embodiment of the present application.
  • Figure 4B is a schematic diagram of another scenario provided by an embodiment of the present application.
  • Figure 4C is a schematic diagram of another scenario provided by an embodiment of the present application.
  • Figure 4D is a schematic diagram of another scenario provided by an embodiment of the present application.
  • Figure 4E is a schematic diagram of another scenario provided by an embodiment of the present application.
  • Figure 4F is a schematic diagram of another scenario provided by an embodiment of the present application.
  • Figure 5 is a schematic flowchart of another embodiment of the screen projection method provided by the embodiment of the present application.
  • Figure 6 is a schematic flowchart of another embodiment of the screen projection method provided by the embodiment of the present application.
  • Figure 7 is a schematic flowchart of another embodiment of the screen projection method provided by the embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • the Digital Living Network Alliance (DLNA) screencasting process includes two stages: device discovery and device control.
  • the device discovery stage refers to the first device (the source device for screen casting, such as a mobile phone) discovering the second device (the destination device for screen casting, such as a TV).
  • the device control phase means that the first device sends the address of the multimedia resource to the second device, and the second device obtains the multimedia resource based on the address of the multimedia resource to play the multimedia resource.
  • the following embodiments are described by taking "the first device represents the source device for screen casting" and "the second device represents the destination device for screen casting” as examples.
  • FIG 1 is a schematic diagram of DLNA screen projection.
  • the user uses a mobile phone to play a video, and the screen projection control 11 can be displayed on the video playback interface.
  • the mobile phone can display the logo of the TV on the interface, such as a living room TV. After the mobile phone discovers the TV, it can send the address of the video resource to the TV to cast the video to the TV for playback, as shown in c in Figure 1.
  • the first device may include but is not limited to: a mobile phone, a tablet computer (portable android device, PAD), a personal computer (personal computer, PC), a personal digital assistant (personal digital assistant, PDA), a computer with Handheld devices with wireless communication functions, computing devices, wearable devices and other devices with DLNA function.
  • a mobile phone a tablet computer (portable android device, PAD), a personal computer (personal computer, PC), a personal digital assistant (personal digital assistant, PDA), a computer with Handheld devices with wireless communication functions, computing devices, wearable devices and other devices with DLNA function.
  • the second device may include, but is not limited to: speakers, televisions, smart screens, vehicle-mounted devices, or virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, and industrial control (industrial control) devices.
  • VR virtual reality
  • AR augmented reality
  • industrial control industrial control
  • the second device having the DLNA function can be understood as: the second device can be scanned and discovered by the first device, and can play multimedia resources transmitted by the source device through screen casting.
  • multimedia resources may include but are not limited to: audio, video, audio and video, etc.
  • the device discovery phase can include: active discovery of devices and passive discovery of devices.
  • Active device discovery means that the first device sends a discovery (search) multicast to a specified address and port. After the second device receives the search multicast, it will respond to the first device, that is, the first device discovers the second device.
  • Passive device discovery means that the second device sends a notification (Notify) multicast, and the first device listens to the Notify multicast from the second device. It can also enable the first device to discover the second device.
  • the screencasting method in the embodiment of this application is suitable for scenarios where devices are passively discovered.
  • the second device can send a Notify multicast every 3 seconds.
  • the home environment includes screen projection devices such as speakers, TVs, and smart screens. Screen projection devices such as speakers, TVs, and smart screens will send a Notify multicast every 3 seconds, occupying The network bandwidth is large. When there is no first device to cast the screen, Notify multicast will waste bandwidth resources.
  • the screen projection method provided by the embodiments of the present application is not only applicable to the home environment, but also can be applied to other environments, such as factories, offices, etc.
  • the embodiments of the present application do not limit this.
  • the home environment is used Take an example to illustrate.
  • the number of Notify multicasts can be reduced by increasing the period in which the second device sends Notify multicasts, thereby reducing the bandwidth occupied by Notify multicasts.
  • the period for sending Notify multicast by the second device is adjusted from 3s to 15s, or even longer.
  • the Notify multicast period increases, when the first device discovers the second device, the time for the first device to discover the second device will be increased, resulting in poor user experience.
  • a switch for turning on and off the DLNA function of the second device can be set on the second device or on a device bound to the second device.
  • screenscasting When screencasting is not needed, users can turn off this switch to turn off the DLNA function of the second device to prevent the Notify multicast of the second device from occupying bandwidth.
  • the user When you need to cast the screen, the user can turn on this switch to turn on the DLNA function of the second device.
  • the user needs to manually turn on or off the DLNA function of the second device, which is a complicated operation.
  • the user opens the After disabling the DLNA function of the second device if you forget to turn off the DLNA function of the second device, it will also cause the problem of Notify multicast occupying a large bandwidth.
  • Embodiments of the present application provide a screen projection method that can adaptively turn on or off the DLNA function of the second device in conjunction with detection equipment in the environment or detection by an access point (AP). For example, when it is determined that there is an intention to cast the screen in the environment, the DLNA function of the second device is turned on; when it is determined that there is no intention to cast the screen in the environment, the DLNA function of the second device is turned off.
  • the second device can be prevented from sending Notify multicast all the time, thereby reducing the bandwidth occupied by multicast and the waste of bandwidth resources. It can also reduce the power consumption of the second device and eliminate the need for users to Manual operation can improve user experience.
  • the existence of screencasting intention in the environment can be understood as: the user in the environment may use DLNA to cast the screen.
  • FIG. 2A is a schematic diagram of a system architecture suitable for the screen projection method provided by the embodiment of the present application.
  • the system structure may include: a first device, a second device, and an access point.
  • the access point may include but is not limited to: a router, customer premise equipment (CPE), etc.
  • CPE customer premise equipment
  • the access point is a router as an example for explanation.
  • the router is used to decide whether to turn on or off the DLNA function of the second device based on the information of the device connected to the router.
  • system architecture may also include a detection device.
  • Detection equipment is used to obtain user-related data and report user-related data to the router.
  • detection devices may include but are not limited to: cameras in home environments, smart door locks, smart cat eyes, robots, etc. Examples of robots include: cleaning robots, robot dogs, etc.
  • the first device is a mobile phone
  • the second device is a television
  • the detection device is a camera.
  • a camera can collect a video, and the camera can determine whether a user is included in the video based on the video.
  • the data related to the user obtained by the camera includes: whether the user is included in the video.
  • the router is also used to decide whether to turn on or off the DLNA function of the second device based on information about the device connected to the router and/or user-related data from the detection device.
  • the router can be used as a detection device and can determine whether there is a screencasting intention in the environment based on the information of the device connected to the router.
  • FIG. 2B is another schematic diagram of a system architecture suitable for the screen projection method provided by the embodiment of the present application.
  • the system structure may include: a first device, a second device, a detection device, a router, and a central device.
  • the function of the detection device can be referred to the description in Figure 2A.
  • the router can report information about devices connected to the router and/or user-related data from the detection device to the central device.
  • the hub device is used to decide whether to turn on or off the DLNA function of the second device based on information about the device connected to the router and/or user-related data from the detection device.
  • the router and the hub device can be integrated into one device, or they can be separated into independent devices.
  • the router and the hub device can be integrated into one device as an example for description.
  • the router can interact with the hub device to implement the screencasting method provided by the embodiments of the present application.
  • FIG. 3 is a schematic flowchart of an embodiment of the screen projection method provided by the embodiment of the present application.
  • the screen projection method provided by the embodiment of the present application may include:
  • the first device accesses the router, the first device sends relevant information of the first device to the router.
  • the user can enter the account and password on the first device so that the first device can access the router, or, if the first device has already accessed the router before, the first device can directly access the router.
  • Router the embodiment of this application does not limit the way in which the first device accesses the router.
  • the related information of the first device may include but is not limited to: the identification of the first device and the device type of the first device.
  • the identification of the first device may be the name or model of the first device, and the device type of the first device may be: mobile phone, PC, PAD, etc.
  • the router may store related information of the first device.
  • the router can store device information, and the device information includes the identification and device type of the device that has connected to the router.
  • the device information includes the identifier and device type of the first device.
  • S301 may refer to relevant descriptions in the 802.11b standard protocol.
  • S302 may refer to the relevant description in S301. There is no distinction between S302 and S301, and both can be executed at the same time.
  • the related information of the second device may include but is not limited to: the identification of the second device and the device type of the second device.
  • the identifier of the second device may be the name or model of the second device, and the device type of the second device may be, for example: a speaker, a smart screen, a TV, etc.
  • the router may store related information of the second device.
  • the device information includes the identifier and device type of the second device.
  • the second device may initiate registration with the router to send the capability information of the second device to the router.
  • Capability information can be understood as: capabilities or supported services of the second device.
  • the second device can report the capability information of the second device to the router.
  • the camera's capability information may include: the camera supports switching, supporting brightness adjustment, and supporting rotation, etc.
  • the second device is a screen projection device, and the capability information of the second device includes: supporting the DLNA function.
  • the second device is of a different type, and the capability information of the second device may also include other capabilities, which will not be described in detail in the embodiment of this application.
  • the router stores the capability information of the second device.
  • the second device when the second device reports the capability information of the second device to the router, it may carry the identifier of the second device, so that the router can store the identifier of the second device and the capability information of the second device correspondingly.
  • the capability information reported by the second device includes support for the DLNA function, but does not indicate which type of screencasting the second device supports, such as audio screencasting or video screencasting.
  • the router may update the capability information of the second device according to the device type of the second device and the capability information reported by the second device.
  • the updated capability information of the second device includes the screen projection type specifically supported by the second device.
  • the router can update the capability information of the second device from "supports DLNA function” to “supports DLNA function and audio projection.” If the device type of the second device is a TV or a smart screen, the router can update the capability information of the second device from "supports DLNA function” to “supports DLNA function and supports audio and video projection.”
  • the router may store updated capability information of the second device.
  • S301-S304 are the process of device access to the router and device registration. The following describes the process of the router controlling the second device to turn on or off the DLNA function:
  • S305 The router determines whether the first device exists among the devices connected to the router. If yes, execute S306; if not, execute S314.
  • the router can query device information to determine whether there is a device that can initiate screen casting in the device information that has been connected to the router, such as a mobile phone, PC, tablet, etc.
  • the router can query the capability information to determine the second device with DLNA function.
  • the first device may perform DLNA screencasting. That is, there is a screencasting intention in the environment.
  • the router can perform screencasting to the connected device.
  • the second device connected to the router sends a first opening instruction to instruct the second device to open the DLNA function.
  • S306-S308 may not be executed and S310 may be executed directly.
  • the second device turns on the DLNA function.
  • the second device turns on the DLNA function but does not send the Notify multicast.
  • the first message indicates that the second device has turned on the DLNA function.
  • the router stores the DLNA function status of the second device as open.
  • the first device In response to the user opening the target application on the first device, the first device sends a target application opening event to the router.
  • the target application opening event may be called a first event, and the first event indicates that the first device has an intention to cast the screen.
  • the target application opening event is used to indicate that the first device has opened the target application, that is, the first device has an intention to cast the screen.
  • the target application is an application with the function of casting multimedia resources.
  • the target application may include but is not limited to: a video application that can initiate screen casting, an audio application that can initiate screen casting, and an audio application that can initiate screen casting. Social applications for screencasting, etc.
  • the first device may send a target application opening event to the router when detecting that the user inputs a screencasting operation. For example, if the user operates a screen projection control on the target application interface, the first device may be triggered to send a target application opening event to the router. For example, the user can also use voice interaction to trigger the first device to send a target application opening event to the router.
  • the embodiment of the present application does not limit the way in which the user inputs the screen projection operation.
  • the router sends a second open instruction to the second device connected to the router.
  • the second open instruction is used to instruct the second device to send a Notify multicast.
  • the second device When the user opens the target application on the first device, it is possible to cast the screen.
  • the second device has turned on the DLNA function but has not sent the Notify multicast.
  • the first device When the target application is opened on the device, the router may send a second opening instruction to the second device connected to the router to instruct the second device to send a Notify multicast.
  • Notify multicast is used by the first device to discover the second device.
  • S310-S311 and S307-S308 have no order distinction and can be executed at the same time.
  • the second device sends a Notify multicast.
  • the router sends a shutdown instruction to the second device.
  • the shutdown instruction is used to instruct the second device to turn off the DLNA function.
  • the router can The second device sends a shutdown instruction to instruct the second device to turn off the DLNA function. It should be understood that after the second device turns off the DLNA function, the second device will not send Notify multicast, which can reduce bandwidth usage.
  • the router may not respond, for example, the router may not send a shutdown instruction to the second device. In one embodiment, when the first device does not exist among the devices connected to the router, the router may continue to execute S305 when the device information is updated.
  • the second device turns off the DLNA function.
  • the second message indicates that the second device has turned off the DLNA function.
  • the router stores the DLNA function status of the second device as closed.
  • S305 may be replaced by: the router determines whether the first device exists among the devices connected to the router, and detects the status of the DLNA function of the second device.
  • S306 is executed.
  • S310 is executed.
  • S314 is executed.
  • the router determines that the first device does not exist among the devices connected to the router and the DLNA function of the second device is turned off, the router does not respond.
  • FIG. 4A is a schematic diagram of a scenario provided by an embodiment of the present application.
  • Figure 4A takes as an example that the DLNA functions of the speaker and the TV are both turned off.
  • the mobile phone is outside the home environment, the mobile phone is not connected to the router.
  • the router determines that the first device does not exist among the devices connected to the router, and because the DLNA functions of the speakers and TV are both turned off, the router does not need to respond.
  • the mobile phone can access the router.
  • the router determines that the first device exists among the devices connected to the router, the router can send a first opening instruction to the speaker and the TV.
  • the speaker and TV turn on the DLNA function in response to the first opening instruction.
  • the user opens a video application on the mobile phone, and the video application has the function of initiating screen casting.
  • the mobile phone can send the target application opening event to the router.
  • the router responds to the target application opening event and sends it to the speaker and TV.
  • the speaker and the TV can send the Notify multicast.
  • Figure 4B is a schematic diagram of another scenario provided by an embodiment of the present application.
  • the DLNA function of the speaker and TV is both turned on as an example.
  • the router determines that the first device does not exist among the devices connected to the router, and because the DLNA function of the speaker and TV are both turned on, the router can send a shutdown instruction to the speaker and TV, and the speaker and TV respond to the shutdown instruction and turn off the DLNA function.
  • the router determines whether there is a screen casting intention in the environment based on whether there is a first device among the devices connected to the router, so as to instruct the second device to turn on or off the DLNA function. And in a scenario where the user opens the target application, that is, the user may use the screen casting function of the target application, the router instructs the second device to send a Notify multicast.
  • the router can adaptively control the second device to turn on or off the DLNA function, and instruct the second device to send Notify multicast, without user operation, which is simple and flexible.
  • the router controls and instructs the second device to start sending Notify multicast. This achieves purposeful control of the second device's multicast, which can not only avoid the problem of the first device having difficulty discovering the second device, but also It can reduce the bandwidth occupied by Notify multicast and reduce the waste of bandwidth resources.
  • the embodiment shown in Figure 3 describes an example in which the router can determine whether there is a screen casting intention in the environment.
  • a detection device in the environment can also determine whether there is a screen casting intention in the environment, so as to facilitate router control.
  • the second device turns the DLNA function on or off.
  • detection devices may include but are not limited to: cameras, smart door locks, smart cat eyes, robots, etc.
  • S305 can be replaced by S305A-S306A:
  • S305A The detection device obtains user-related data and sends user-related data to the router.
  • the data related to the user may include: the result of the detection device determining whether the user exists in the environment, and/or user behavior data.
  • the detection device can access the router to interact with the router. Among them, the detection device can send relevant information of the detection device to the router when connecting to the router. When the detection device is connected to the router, the device information includes the identification and device type of the detection device.
  • the detection device can collect video.
  • the camera can send the collected video to the router, and the router analyzes the video to determine whether there is a user in the home environment.
  • a camera can capture video and analyze the video to determine whether a user is present in the home environment.
  • the camera collects video and analyzes whether the video contains a human figure.
  • the camera is installed in the home environment.
  • the camera can determine that the user exists in the home environment.
  • the camera can determine that the user does not exist in the home environment.
  • the camera can use a portrait detection algorithm or a face recognition algorithm to determine whether the video contains a human portrait.
  • the camera when a human figure is included in the video, the camera can send a user event to the router, the user event indicating the presence of the user in the environment.
  • the user event sent by the camera may be called a second event.
  • the user-related data obtained by the camera includes: second event.
  • the camera can also analyze which user in the video is based on a face recognition algorithm.
  • the camera can store a user whitelist, and the user whitelist stores the identifiers of users who have used DLNA screencasting.
  • the user identifiers can be, for example, the user's name, face image, etc.
  • the camera can send a user event to the router.
  • the user whitelist can be customized by the user on the first device, and the first device can send the user whitelist to the camera.
  • the user can customize the user whitelist in the smart life APP of the first device.
  • the first device can send the user whitelist to the camera.
  • the camera does not send user events to the router as long as there are users in the environment. Instead, it sends user events to the router when there are users who have used DLNA screencasting in the environment, because there are users in the environment who have used DLNA. For screencasting users, the probability of the user using DLNA screencasting again is high, that is, the intention of screencasting in the environment is strong. At this time, the camera reports user events to the router, which can ensure that the router can accurately control the switch of the DLNA function of the second device.
  • the camera can always be on, that is, the camera can continue to collect video. In one embodiment, it is In order to save the power consumption of the camera, when the door is locked, if the router receives the locked state of the door sent by the smart door lock, the router can instruct the camera to turn on to collect video. In this way, not only can the video processing volume of the camera be reduced, but the power consumption of the camera can also be reduced.
  • Smart door locks and smart peepholes are installed on the door.
  • Smart door locks can detect the status of the door, including the locked state and the open state.
  • the smart cat eye can be equipped with a camera or a human body sensor, and the smart cat eye can determine whether there is a user outside the door.
  • the smart door lock when the door is closed, can send the status of the door to the router as the locked state.
  • the user closes the door, so the user-related data obtained by the smart door lock includes: the status of the door is locked.
  • the locked door can be regarded as the result of user behavior, so the locked state of the door can be used as user behavior data.
  • the smart cat eye can determine whether there is a user outside the door, and when there is a user outside the door, it will report user events to the router.
  • the smart cat eye can also report collected videos (or images) or human body detection data to the router, and the router determines whether there is a user outside the door.
  • the way the smart cat eye determines whether there is a user outside the door can refer to the relevant description of the camera to determine whether there is a user in the environment.
  • the user event sent by the smart cat eye may be called a third event.
  • the user-related data obtained by Smart Maoyan includes: third event.
  • the cleaning robot can move in the home environment to perform cleaning tasks.
  • the cleaning robot is equipped with a camera or a human body sensor, and the cleaning robot can determine whether a user exists in the environment.
  • the cleaning robot determines that a user exists in the environment, it can report a user event to the router.
  • the user event sent by the cleaning robot may be called a fourth event.
  • the user-related data obtained by the cleaning robot includes: the fourth event.
  • the router determines whether a user exists in the environment based on user-related data from the detection device. If yes, execute S306; if not, execute S314.
  • the router when the router does not receive the user event reported from the camera, it is determined that the user does not exist in the environment.
  • the router receives the user event reported from the camera it is determined that the user exists in the environment. It should be understood that when a user exists in the environment, the router determines that there is a screen casting intention in the environment; when there is no user in the environment, the router determines that there is no screen casting intention in the environment.
  • Figure 4C is a schematic diagram of another scenario provided by an embodiment of the present application.
  • the second device includes a speaker and a TV
  • the first device is a mobile phone.
  • the detection device includes a camera
  • the DLNA functions of the speaker and TV are both turned off as an example.
  • the user is in the home environment.
  • the camera can collect the video of the home environment and determine the presence of the user in the home environment.
  • the camera reports the user event to the router.
  • the router responds to receiving the user event from the camera and can determine the presence of the user in the home environment. If there is a user, that is, there is a screencasting intention in the home environment, the router can send a first opening instruction to the speaker and TV, and the speaker and TV can turn on the DLNA function in response to the first opening instruction.
  • the router can determine whether there is a user in the environment based on the status of the door and whether the smart cat eye reports user events.
  • the router determines that the door is locked outside.
  • the router determines that the door is locked inside the door.
  • the door indicates that the user is traveling, and the router can determine that the user does not exist in the environment.
  • the router can determine that the user exists in the environment.
  • the router when the router does not receive the user event reported from the cleaning robot, it is determined that the user does not exist in the environment.
  • the router receives the user event reported from the cleaning robot, it is determined that the user exists in the environment.
  • the router can also combine user-related data reported by multiple detection devices to determine whether there is a user in the environment.
  • the router can only accurately determine whether there are users in the environment based on the data reported by the smart door lock and smart peephole.
  • the router can combine the data reported by the camera, the data reported by the smart door lock and smart cat eye, or the data reported by the cleaning robot to determine whether there is a user in the environment.
  • the router determines that the user is out.
  • the router can also combine the fact that the camera does not report the user event to accurately determine that the user does not exist in the environment. .
  • Figure 4D is a schematic diagram of another scenario provided by an embodiment of the present application.
  • the second device includes a speaker and a TV
  • the first device is a mobile phone.
  • the detection device includes a camera, a smart door lock, and a smart cat eye
  • the DLNA functions of the speaker and TV are both open. Take the open state as an example. Referring to a in Figure 4D, if the user goes out, when the door is locked, the smart door lock reports to the router that the door status is locked, and the smart peephole determines that there is a user outside the door, and can report the user event to the router.
  • the camera can collect videos of the home environment, but does not detect the presence of users in the home environment, and does not report user events to the router.
  • the router is locked according to the status of the door, user events from the smart cat eye, and no user events are received. User events from the camera can determine that there is no user in the home environment, that is, there is no intention to cast the screen in the home environment.
  • the router can send shutdown instructions to the speakers and TVs. The speakers and TVs can turn off the DLNA function in response to the shutdown instructions.
  • the smart door lock and the smart cat eye are represented by doors in FIG. 4D .
  • the smart door lock reports to the router that the door status is locked, and the smart peephole determines that there is no user outside the door and does not report the user event to the router.
  • the camera can collect video of the home environment to determine the presence of users in the home environment, and the camera can report user events to the router.
  • the router can determine that there is a user in the home environment based on the fact that the door is in the locked state, no user events are received from the smart cat eye, and user events are received from the camera, that is, there is a screencasting intention in the home environment.
  • the router can send the first opening instruction to both the speaker and the TV, and the speaker and TV can turn on the DLNA function in response to the first opening instruction.
  • the video application has the function of screencasting, and the mobile phone can send the target application opening event to the router.
  • the router can send a second opening instruction to the speaker and TV.
  • the speaker and TV can send a Notify multicast. Please refer to the relevant description of c in Figure 4A.
  • the router can determine whether there is a user in the environment based on the user-related data reported by the detection device in the environment, so as to instruct the second device to turn on or off the DLNA function without user operation, is simple and flexible, and can be used when the user is actually When there is an intention to cast the screen, such as when the user opens the target application, the router controls and instructs the second device to start sending Notify multicast. This achieves purposeful multicast, which can reduce the bandwidth occupied by Notify multicast and reduce the waste of bandwidth resources.
  • the router controls the second device to turn on the DLNA function based on the connected devices including the first device (mobile phone), in a possible scenario, if the user has not returned home, the mobile phone has already been connected to the router. At this time, the user at home No one, although this method can turn on the DLNA function of the second device in advance, the control accuracy is low and the power consumption of the second device will be wasted.
  • the router will only be based on the data reported by the camera and cannot accurately determine whether there are users in the environment. In this scenario, the control of the router is accurate. The degree is also low.
  • the router can control the second device to turn on or off the DLNA function in combination with the user-related data obtained by the detection device and the device connected to the router in S305, so as to improve the control accuracy of the second device.
  • S305 can be replaced with S305B-S305B:
  • S305B The router determines whether the first device exists among the devices connected to the router. If yes, execute S306B; if not, execute S314.
  • S305B may refer to the relevant description of S305.
  • S306B The router determines whether a user exists in the environment based on user-related data from the detection device. If yes, execute S306; if not, execute S314.
  • S306B please refer to the relevant descriptions of S305A-S306A. It should be understood that before S306B, S305A may be performed.
  • the execution order of S305B and S306B can be exchanged.
  • Figure 4E is a schematic diagram of another scenario provided by an embodiment of the present application.
  • the second device includes a speaker and a TV
  • the first device is a mobile phone.
  • Figure 4E takes the detection device as a camera, and the DLNA functions of the speaker and TV are turned off as an example.
  • the camera determines that the user does not exist in the environment, and the user event does not need to be reported to the router.
  • the router determines that the first device exists among the devices connected to the router, but does not receive user events from the camera, so the router does not need to respond.
  • the camera determines that the user exists in the environment, and can report the user event to the router.
  • the router determines that the first device exists among the devices connected to the router, and receives user events from the camera.
  • the router can determine that there is a screencasting intention in the environment, and the router can send the first opening instruction to the speaker and TV.
  • the speaker and TV turn on the DLNA function in response to the first turn-on instruction.
  • the router can combine the user-related data reported by the detection device and the device information connected to the router to control the second device to turn on or off the DLNA function, which can improve the control accuracy of the DLNA function switch.
  • the router when it is determined that there is a screen casting intention in the environment, the router sends a first opening instruction to the second device connected to the router to instruct the second device to turn on the DLNA function.
  • the second device is all the screen casting destination devices that are connected to the router.
  • different types of screen casting destinations support different types of screen casting. For example, for example, speakers support audio screencasting, and smart screens and TVs support both audio screencasting and video screencasting.
  • the router controls the speaker to also send Notify multicast, but the speaker does not support video casting, and the Notify multicast sent by the speaker will still waste bandwidth resources.
  • the first device when the first device executes S310, the first device may carry an identifier of the type of the target application in the target application opening event sent to the router.
  • An identifier of the type of the target application used to indicate whether the target application is a video application or an audio application, that is, the type of screencasting supported by the target application.
  • the router when the router executes S311, the router may send a first opening instruction to the target second device in response to the target application opening event.
  • the router may query the capability information of the second device and determine the target second device according to the identifier of the target application type carried in the target application start event.
  • the target second device is a second device that supports screencasting of the target application.
  • the mobile phone when the user opens a video application on the mobile phone, the mobile phone can send a target application start event to the router.
  • the router In response to the target application start event, the router can send a video screen to the device that supports video projection.
  • the TV sends the second opening instruction, but does not send the second opening instruction to the speakers that do not support video projection. In this way, the TV can send Notify multicast, but the speaker does not send Notify multicast, which can reduce the bandwidth occupied by multicast.
  • a-b in FIG. 4F may be the same as a-b in FIG. 4A, and reference may be made to the relevant descriptions in a-b in FIG. 4A.
  • the embodiment of the present application provides a screen casting method.
  • the method may include:
  • S701 Determine whether there is a screencasting intention in the environment.
  • the router and the hub device can determine whether there is a screencasting intention in the environment.
  • the router can query the devices connected to the router. If it is determined that the devices connected to the router include the first device, it is determined that there is a screen casting intention in the environment. You can refer to the relevant description in S305. Alternatively, the router can also determine whether there is a screencasting intention in the environment based on user-related data from the detection device. Alternatively, the router can also determine whether there is a screencasting intention based on the device connected to the router and user-related data from the detection device. Whether there is a screencasting intention in the environment, you can refer to the relevant descriptions in S306A, S305B-S306B.
  • the central device can receive user-related data from the detection device through the router, and the router can also send device information to the central device.
  • the central device can determine whether there is a screen casting intention in the environment by referring to the router to determine whether there is a screen casting intention in the environment. describe.
  • the detection device may determine whether there is an intention to cast the screen in the environment. Among them, when the detection device determines that there is a user in the environment, it can be determined that there is an intention to cast the screen in the environment.
  • Detection equipment may include but is not limited to: cameras, smart door locks, and smart peepholes. To determine whether a user exists in the environment by the detection device, refer to the relevant descriptions in S305A-S306A.
  • the detection device can interact with the first device and the second device to perform S702-S703 when determining that there is a screencasting intention in the environment.
  • FIG. 7 takes the execution subject of the screen projection method as a router as an example for illustration.
  • S702 When there is a screen casting intention in the environment and the DLNA function of the second device in the environment is turned off, send a first opening instruction to the second device.
  • the first opening instruction is used to instruct the second device to turn on the DLNA function.
  • S702 may refer to the relevant descriptions in S306-S313, and S703 may refer to the relevant descriptions in S314.
  • the embodiment of the present application further provides an electronic device.
  • the electronic device may be the first device, the second device, the router or the hub device described in the above embodiment.
  • the electronic device may include: a processor 801 (such as a CPU) and a memory 802 .
  • the memory 802 may include high-speed random access memory (random-access memory, RAM), and may also include non-volatile memory (non-volatile memory, NVM), such as at least one disk memory.
  • RAM random-access memory
  • NVM non-volatile memory
  • Various instructions may be stored in the memory 802 , to complete various processing functions and implement the method steps of the present application.
  • the electronic device involved in this application may also include: a power supply 803, a communication bus 804, and a communication port 805.
  • the above-mentioned communication port 805 is used to realize connection and communication between the electronic device and other peripheral devices.
  • memory 802 is used to store
  • the computer is executable program code, and the program code includes instructions; when the processor 801 executes the instructions, the instructions cause the processor 801 of the electronic device to perform the actions in the above method embodiments.
  • the implementation principles and technical effects are similar and will not be described again here.
  • the electronic device when the electronic device is a first device or a second device, the electronic device may further include: a display screen 806, and the display screen 806 is used to display an interface.
  • modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASICs), or , one or more microprocessors (digital signal processor, DSP), or one or more field programmable gate arrays (field programmable gate array, FPGA), etc.
  • ASICs application specific integrated circuits
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the processing element can be a general processor, such as a central processing unit (CPU) or other processors that can call the program code such as a control device.
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
  • SOC system-on-a-chip
  • a computer program product includes one or more computer instructions.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired link (e.g.
  • Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless means to transmit to another website site, computer, server or data center.
  • Computer-readable storage media can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or other integrated media that contains one or more available media. Available media may be magnetic media (eg, floppy disk, hard disk, tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), etc.
  • the term "plurality” as used herein means two or more.
  • the term “and/or” in this article is just an association relationship that describes related objects, indicating that three relationships can exist. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and they exist alone. B these three situations.
  • the character "/" in this article generally indicates that the related objects before and after are an “or” relationship; in the formula, the character "/” indicates that the related objects before and after are a “division” relationship.
  • words such as “first” and “second” are only used for the purpose of distinguishing the description, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating. Or suggestive order.
  • the size of the sequence numbers of the above-mentioned processes does not mean the order of execution.
  • the execution order of each process should be determined by its functions and internal logic, and should not be used in the implementation of the present application.
  • the implementation of the examples does not constitute any limitations.

Abstract

本申请提供了一种投屏方法和电子设备,该方法中,确定环境中是否存在投屏意图;当环境中存在投屏意图,且环境中第二设备的数字生活网络联盟DLNA功能为关闭状态时,向第二设备发送第一打开指示,第一打开指示用于指示第二设备打开DLNA功能;响应于接收到来自第一设备的第一事件,向第二设备发送第二打开指示,第一事件指示第一设备存在投屏意图,第二打开指示用于指示第二设备发送组播,组播用于第一设备发现第二设备以进行投屏。本申请中可以自适应控制第二设备打开DLNA功能和发送组播,可以减少组播占用的带宽。

Description

投屏方法和电子设备
本申请要求于2022年07月14日提交中国专利局、申请号为202210827833.X、申请名称为“投屏方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及无线通信技术领域,尤其涉及一种投屏方法和电子设备。
背景技术
数字家庭网络联盟(Digital Living Network Alliance,DLNA)投屏,指的是一设备将自身播放的多媒体资源地址发送给另一设备,实现在另一设备上播放该多媒体资源。
投屏设备可以组播自己的投屏服务,当投屏设备数量多时,组播消息多,占用的网络带宽大。
发明内容
本申请实施例提供一种投屏方法和电子设备,可以减少投屏设备组播占用的带宽。
第一方面,本申请实施例提供一种投屏方法,执行该投屏方法的执行主体可以为接入点、中枢设备或检测设备。其中,当执行主体为接入点时,环境中的第一设备、第二设备,以及检测设备均可以接入接入点。当执行主体为中枢设备时,环境中的第一设备、第二设备,以及检测设备均可以接入接入点,且接入点可以与中枢设备连接。接入点与中枢设备的连接方式可以为有线连接或无线连接。其中,当执行主体为检测设备时,检测设备可以与环境中的第一设备、第二设备无线连接。应理解,第一设备为投屏的源端设备,第二设备为投屏目的端设备。
以执行主体为接入点为例,接入点可以确定环境中是否存在投屏意图。环境中是否存在投屏意图可以理解为:环境中是否存在投屏的可能。当所述环境中存在投屏意图,且所述环境中第二设备的数字生活网络联盟DLNA功能为关闭状态时,接入点可以向所述第二设备发送第一打开指示,所述第一打开指示用于指示所述第二设备打开DLNA功能。
在第二设备打开DLNA功能的情况下,接入点响应于接收到来自第一设备的第一事件,向所述第二设备发送第二打开指示,所述第一事件指示所述第一设备存在投屏意图,所述第二打开指示用于指示所述第二设备发送组播,所述组播用于所述第一设备发现所述第二设备以进行投屏。
第一设备存在投屏意图可以理解为:第一设备存在投屏的可能。在一种可能的实现方式中,当用户在所述第一设备中打开目标应用程序时,所述第一设备存在投屏意图,所述第一设备的投屏类型为:所述目标应用程序支持的投屏类型;或者,当用户在所述第一设备中打开所述目标应用程序,且所述用户向所述第一设备输入投屏操作时,所述第一设备存在投屏意图。
本申请中,接入点可以在环境中存在投屏意图时指示第二设备打开DLNA功能,且在设备具有投屏意图时,指示第二设备发送Notify组播,路由器可以自适应地控制第二设备打开DLNA功能,以及指示第二设备发送Notify组播,可以避免第二设备一直发送Notify组播,减少了带宽资源浪费。
其中,当所述环境中不存在投屏意图,且所述第二设备的DLNA功能为打开状态时,接入点可以向所述第二设备发送关闭指示,所述关闭指示用于指示所述第二设备关闭DLNA功能。
在一种可能的实现方式中,第二设备打开DLNA功能后,可以向接入点发送第一消息,第一消息用于指示所述第二设备已打开DLNA功能,接入点可以存储所述第二设备的DLNA功能状态为打开。在一种可能的实现方式中,第二设备关闭DLNA功能后,可以向接入点发送第二消息,第二消息用于指示所述第二设备已关闭DLNA功能,接入点可以存储所述第二设备的DLNA功能状态为关闭。
在该种可能的实现方式中,第二设备打开或关闭DLNA功能后,可以向接入点发送DLNA功能的状态,便于接入点可以更新第二设备的DLNA功能的状态,使得接入点可以根据第二设备的DLNA功能的状态,精准控制第二设备打开或关闭DLNA功能。
本申请实施例中,接入点可以根据环境中是否存在投屏意图,指示第二设备打开或关闭DLNA功能,且在第一设备具有投屏意图时,指示第二设备发送Notify组播。路由器可以自适应地控制第二设备打开或关闭DLNA功能,以及指示第二设备发送Notify组播,可以减少Notify组播占用的带宽,减少了带宽资源浪费。
下述对接入点确定环境中存在投屏意图的过程进行说明:
其一,所述环境中包括接入点。接入点可以查询已接入所述接入点的设备中是否存在第一设备,即接入点检测已接入的设备中是否包括投屏的源端设备。其中,当已接入所述接入点的设备中存在第一设备时,接入点确定所述环境中存在投屏意图。当已接入所述接入点的设备中不存在第一设备时,接入点确定所述环境中不存在投屏意图。
其二,所述环境中包括检测设备,检测设备可以获取数据且向接入点上报数据,该数据为与用户相关的数据。其中,接入点可以接收所述检测设备上报的数据,且根据所述数据,确定所述环境中是否存在投屏意图。
在一种可能的实现方式中,所述检测设备包括如下至少一项:摄像头、智能门锁,以及智能猫眼。
其中,当所述检测设备包括所述摄像头时,所述摄像头用于采集所述环境的视频,且确定所述视频中是否存在用户。当摄像头检测到视频中包含用户时,可以向接入点上报第二事件,第二事件表征所述视频中存在用户。在该种情况中,摄像头获取的与用户相关的数据为第二事件。其中,若接入点接收到来自所述摄像头的第二事件,则确定所述环境中存在投屏意图,若接入点未接收到来自摄像头的第二事件,则确定环境中不存在投屏意图。
在一种实施例中,摄像头也可以确定环境中是否存在投屏意图。其中,当摄像头检测到视频中包含用户时,确定环境中存在投屏意图,当摄像头检测到视频中未包含用户时,则确定环境中不存在投屏意图。
其中,所述检测设备包括所述智能门锁和所述智能猫眼,所述智能门锁用于检测所述环境中门的状态,所述智能猫眼用于确定门口是否存在用户。当门关闭时,智能门锁向接入点上报门的落锁状态,当智能猫眼检测到门口存在用户时,可以向接入点上报第三事件。第三事件表征门口存在用户。
其中,若接入点接收到来自所述智能门锁的落锁状态,以及未接收到来自所述智能猫眼的第三事件,确定所述环境中存在投屏意图,若接入点接收到来自所述智能门锁的落锁状态,以及接收到来自所述智能猫眼的第三事件,确定所述环境中不存在投屏意图。在该种情况中,智能门锁获取的与用户相关的数据包括:落锁状态。智能猫眼获取的与用户相关的数据包括:第三事件。
在一种实施例中,智能门锁和智能猫眼也可以确定环境中是否存在投屏意图。在该实施例中,当门关闭时,智能门锁可以向智能猫眼上报门的落锁状态,或者,当智能猫眼检测到门口存在用户时,可以向智能门锁发送第三事件。以智能门锁为例,若门为落锁状态,以及未接收到来自所述智能猫眼的第三事件,智能门锁确定所述环境中存在投屏意图,若门为落锁状态,以及接收到来自所述智能猫眼的第三事件,智能门锁确定所述环境中不存在投屏意图。
其三,所述环境中包括接入点和检测设备。接入点可以查询已接入所述接入点的设备中是否存在第一设备,以及根据来自所述检测设备上报的数据(与用户相关的数据),确定所述环境中是否存在投屏意图,因为结合了多种数据进行判断,可以提高接入点确定环境中是否存在投屏意图的准确性。
示例性的,以检测设备包括摄像头为例,当接入点查询已接入接入点的设备中存在第一设备,但并未接收到来自摄像头的第一事件,路由器确定环境中不存在投屏意图。当接入点路由器确定已接入接入点的设备中存在第一设备,且接收到来自摄像头的第一事件,接入点可以确定环境中存在投屏意图。
在一种实施例中,检测设备也可以根据已接入所述接入点的设备中是否存在第一设备,以及根据与用户相关的数据,确定所述环境中是否存在投屏意图。在该种实施例中,接入点可以向检测设备发送已接入所述接入点的设备的信息。
在一种可能的实现方式中,接入点还可以根据第二设备支持的投屏类型,控制第二设备打开或关闭DLNA功能。其中,在所述第二设备接入所述接入点时,接入点可以获取所述第二设备的设备类型。示例性的,第二设备可以向接入点上报第二设备的设备类型。
在所述第二设备接入所述接入点后,接入点可以接收所述第二设备上报的能力信息。第二设备上报的能力信息中包括第二设备支持DLNA功能。接入点可以根据所述第二设备的设备类型,更新所述第二 设备的能力信息,更新后的第二设备的能力信息包括:所述第二设备支持的投屏类型。应理解,第二设备的设备类型可以反映第二设备具体支持的投屏类型。
在该种实现方式中,当所述第二设备为至少一个时,所述第一事件还用于指示所述第一设备的投屏类型。接入点响应于第一事件,可以根据所述更新后的第二设备的能力信息,在所述至少一个第二设备中,确定支持所述第一设备的投屏类型的目标第二设备,进而向所述目标第二设备发送所述第二打开指示。
示例性的,如所述第一设备的投屏类型为视频投屏时,接入点可以根据更新后的第二设备的能力信息,查询支持视频投屏的目标第二设备,向支持视频投屏的目标第二设备发送第二打开指示,不向不支持视频投屏的第二设备发送第二打开指示。
在该种实现方式中,接入点可以精准控制目标第二设备发送组播,不支持第一设备的投屏类型的第二设备可以不组播,可以进一步减小组播对带宽的占用。
第二方面,本申请实施例提供一种投屏方法,应用于第一设备,第一设备为投屏的源端设备,与第一设备交互的设备可以为接入点或检测设备。该方法中,以接入点为例,第一设备响应于第一设备存在投屏意图,向接入点发送第一事件,第一事件指示所述第一设备存在投屏意图。
在一种可能的实现方式中,当用户在所述第一设备中打开目标应用程序时,所述第一设备确定第一设备存在投屏意图。或者,当用户在所述第一设备中打开所述目标应用程序,且所述用户向所述第一设备输入投屏操作时,所述第一设备确定第一设备存在投屏意图。
在一种可能的实现方式中,第一事件中包括第一设备的投屏类型,其中,第一设备的投屏类型为:所述目标应用程序支持的投屏类型。
第三方面,本申请实施例提供一种投屏方法,应用于第二设备。第一设备为投屏的源端设备,第二设备为投屏的目的端设备,与第二设备交互的设备可以为接入点或检测设备。该方法中,以接入点为例,第二设备接收来自接入点的第一打开指示,第二设备打开DLNA功能。第二设备接收来自接入点的第二打开指示,进行组播,所述组播用于第一设备发现所述第二设备以进行投屏。
在一种可能的实现方式中,第二设备打开DLNA功能后,向接入点发送第一消息,第一消息用于指示所述第二设备已打开DLNA功能。
在一种可能的实现方式中,在第二设备接入所述接入点时,可以向接入点上报第二设备的设备类型;在所述第二设备接入所述接入点后,可以向接入点上报第二设备上报的能力信息。
在一种可能的实现方式中,第二设备接收来自接入点的关闭指示,关闭DLNA功能。
在一种可能的实现方式中,第二设备关闭DLNA功能后,向接入点发送第二消息,第二消息用于指示所述第二设备已关闭DLNA功能。
第四方面,本申请实施例提供一种电子设备,该电子设备可以包括:处理器、存储器。存储器用于存储计算机可执行程序代码,程序代码包括指令;当处理器执行指令时,指令使所述电子设备执行如第一方面至第三方面中的方法。
第五方面,本申请实施例提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面至第三方面中的方法。
第六方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面至第三方面中的方法。
上述第二方面至第六方面的各可能的实现方式,其有益效果可以参见上述第一方面所带来的有益效果,在此不加赘述。
附图说明
图1为DLNA投屏的一种示意图;
图2A为本申请实施例提供的投屏方法适用的系统架构的一种示意图;
图2B为本申请实施例提供的投屏方法适用的系统架构的另一种示意图;
图3为本申请实施例提供的投屏方法的一种实施例的流程示意图;
图4A为本申请实施例提供的一种场景示意图;
图4B为本申请实施例提供的另一种场景示意图;
图4C为本申请实施例提供的另一种场景示意图;
图4D为本申请实施例提供的另一种场景示意图;
图4E为本申请实施例提供的另一种场景示意图;
图4F为本申请实施例提供的另一种场景示意图;
图5为本申请实施例提供的投屏方法的另一种实施例的流程示意图;
图6为本申请实施例提供的投屏方法的另一种实施例的流程示意图;
图7为本申请实施例提供的投屏方法的另一种实施例的流程示意图;
图8为本申请实施例提供的电子设备的一种结构示意图。
具体实施方式
数字家庭网络联盟(Digital Living Network Alliance,DLNA)投屏流程包括:设备发现和设备控制两个阶段。设备发现阶段,是指第一设备(投屏的源端设备,如手机)发现第二设备(投屏的目的端设备,如电视)。设备控制阶段,是指第一设备向第二设备发送多媒体资源的地址,第二设备根据该多媒体资源的地址,获取多媒体资源,以播放多媒体资源。下述实施例以“第一设备表征投屏的源端设备”,以及以“第二设备表征投屏的目的端设备”为例进行说明。
图1为DLNA投屏的一种示意图。参照图1中的a,用户使用手机播放视频,视频的播放界面上可以显示投屏控件11。用户点击投屏控件11,可以触发手机发现投屏设备(如电视),如图1中的b所示,手机可以在界面上显示电视的标识,如客厅电视。手机发现电视后,可以向电视发送视频资源的地址,以将视频投屏至电视播放,如图1中的c所示。
在一种实施例中,第一设备可以包括但不限于为:手机、平板电脑(portable android device,PAD)、个人计算机(personal computer,PC)、个人数字处理(personal digital assistant,PDA)、具有无线通信功能的手持设备、计算设备、可穿戴设备等具备DLNA功能的设备。
第二设备可以包括但不限于为:音箱、电视、智慧屏、车载设备或虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、智慧家庭(smart home)中等具备DLNA功能的设备。
应理解,第二设备具有DLNA功能可以理解为:第二设备可以被第一设备扫描发现,且可以播放源端设备通过投屏传输的多媒体资源。
在一种实施例中,多媒体资源可以包括但不限于:音频、视频、音视频等。
DLNA投屏过程中,设备发现阶段可以包括:主动发现设备和被动发现设备。主动发现设备,是指第一设备发出发现(search)组播到指定地址和端口,第二设备接收到search组播后,会响应第一设备,即第一设备发现第二设备。被动发现设备,是指第二设备发送通知(Notify)组播,第一设备监听到来自第二设备的Notify组播,也可以实现第一设备发现第二设备。本申请实施例中的投屏方法,适用于被动发现设备的场景中。
在被动发现设备的场景中,第二设备接入网络后,基于DLNA投屏协议,如第二设备可以每3s发送一次Notify组播。目前,家庭环境中的第二设备数量多,如家庭环境中包括音箱、电视、智慧屏等投屏设备,音箱、电视、智慧屏等投屏设备均会每3s发送一次Notify组播,占用的网络带宽大,在无第一设备投屏时,Notify组播会浪费带宽资源。
应理解,本申请实施例提供的投屏方法不仅适用于家庭环境中,还可以适用于其他环境中,如工厂、办公室等,本申请实施例对此不作限制,下述实施例中以家庭环境为例进行说明。
在一种实施例中,可以通过增加第二设备发送Notify组播的周期,来减少Notify组播的数量,进而减少Notify组播占用的带宽。示例性的,如将第二设备发送Notify组播的周期从3s调整为15s,甚至更长。在该种实施例中,因为Notify组播的周期增大,在第一设备发现第二设备时,会增加第一设备发现第二设备的时长,用户体验差。
在一种实施例中,可以在第二设备上或者与第二设备绑定的设备上,设置打开和关闭第二设备的DLNA功能的开关。在不需要投屏时,用户可以关闭该开关,以关闭第二设备的DLNA功能,避免第二设备的Notify组播占用带宽。在需要投屏时,用户可以打开该开关,以打开第二设备的DLNA功能。
在该种实施例中,用户需要手动打开或关闭第二设备的DLNA功能,操作复杂。另,在用户打开第 二设备的DLNA功能后,若忘记关闭第二设备的DLNA功能,也会造成Notify组播占用带宽大的问题。
本申请实施例提供一种投屏方法,可以结合环境中的检测设备或由接入点(access point,AP)进行检测,自适应地打开或关闭第二设备的DLNA功能。如在确定环境中存在投屏意图时,打开第二设备的DLNA功能,在确定环境中不存在投屏意图时,关闭第二设备的DLNA功能。通过自适应地开关第二设备的DLNA功能,可以避免第二设备一直发送Notify组播,进而减少组播占用的带宽和带宽资源浪费,还可以减小第二设备的功耗,另外也无需用户手动操作,可以提高用户体验。
在一种实施例中,环境中存在投屏意图可以理解为:环境中用户可能使用DLNA投屏。
在介绍本申请实施例提供的投屏方法之前,首先对本申请实施例提供的投屏方法适用的系统架构进行介绍:
图2A为本申请实施例提供的投屏方法适用的系统架构的一种示意图。参照图2A,该系统结构中可以包括:第一设备、第二设备,以及接入点。在一种实施例中,接入点可以包括但不限于:路由器、客户前端设备(customer premise equipment,CPE)等,图2A以及下述实施例中以接入点为以路由器为例进行说明。
路由器,用于根据接入路由器的设备的信息,决策打开或者关闭第二设备的DLNA功能。
在一种实施例中,该系统架构中还可以包括检测设备。
检测设备,用于获取与用户相关的数据,且将与用户相关的数据上报至路由器。
在一种实施例中,检测设备可以包括但不限于:家庭环境中的摄像头、智能门锁、智能猫眼、机器人等。机器人如可以为:清洁机器人、机器狗等。图2A中以第一设备为手机,第二设备为电视,检测设备为摄像头为例进行说明。示例性的,如摄像头可以采集视频,摄像头可以根据视频,确定视频中是否包含用户,其中,摄像头获取的与用户相关的数据包括:视频中是否包含用户。
路由器,还用于根据接入路由器的设备的信息,和/或,来自检测设备的与用户相关的数据,决策打开或者关闭第二设备的DLNA功能。
在一种实施例中,路由器可以作为检测设备,可以根据接入路由器的设备的信息,确定环境中是否存在投屏意图。
图2B为本申请实施例提供的投屏方法适用的系统架构的另一种示意图。参照图2B,该系统结构中可以包括:第一设备、第二设备、检测设备、路由器,以及中枢设备。
检测设备的功能可以参照图2A中的描述。
路由器可以将接入路由器的设备的信息,和/或,来自检测设备的与用户相关的数据上报至中枢设备。
中枢设备,用于根据接入路由器的设备的信息,和/或,来自检测设备的与用户相关的数据,决策打开或者关闭第二设备的DLNA功能。
在一种实施例中,路由器和中枢设备可以集成为一个设备,或者分开独立设备,下述实施例中以路由器和中枢设备可以集成为一个设备为例进行说明。在路由器和中枢设备分开独立设置的场景中,路由器可以与中枢设备进行交互,实现本申请实施例提供的投屏方法。
下面结合具体的实施例对本申请实施例提供的投屏方法进行说明。下面这几个实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图3为本申请实施例提供的投屏方法的一种实施例的流程示意图。参照图3,本申请实施例提供的投屏方法可以包括:
S301,在第一设备接入路由器时,第一设备向路由器发送第一设备的相关信息。
示例性的,用户可以在第一设备上采用输入账号和密码的方式,使得第一设备接入路由器,或者,在第一设备之前已经接入过路由器的情况下,第一设备可以直接接入路由器,本申请实施例对第一设备接入路由器的方式不做限制。
第一设备的相关信息可以包括但不限于:第一设备的标识和第一设备的设备类型。第一设备的标识可以为第一设备的名称或型号,第一设备的设备类型如可以为:手机、PC、PAD等。
在一种实施例中,路由器可以存储第一设备的相关信息。
在一种实施例中,路由器可以存储设备信息,该设备信息中包括已接入路由器的设备的标识和设备类型。在第一设备接入路由器的情况下,设备信息中包括第一设备的标识和设备类型。
在一种实施例中,S301可以参照802.11b标准协议中的相关描述。
S302,在第二设备接入路由器时,第二设备向路由器发送第二设备的相关信息。
S302可以参照S301中的相关描述。S302和S301没有先后顺序的区分,二者可以同时执行。
第二设备的相关信息可以包括但不限于:第二设备的标识和第二设备的设备类型。第二设备的标识可以为第二设备的名称或型号,第二设备的设备类型如可以为:音箱、智慧屏、电视等。
在一种实施例中,路由器可以存储第二设备的相关信息。在一种实施例中,在第二设备接入路由器的情况下,设备信息中包括第二设备的标识和设备类型。
S303,在第二设备接入路由器后,第二设备向路由器上报第二设备的能力信息。
在第二设备接入路由器后,第二设备可以向路由器发起注册,以向路由器发送第二设备的能力信息。能力信息可以理解为:第二设备具备的能力或支持的服务。换句话说,在第二设备接入路由器后,第二设备可以向路由器上报第二设备的能力信息。
示例性的,对于摄像头来说,摄像头的能力信息中可以包括:摄像头支持开关、支持调整亮度,也支持转动等。第二设备为投屏设备,第二设备的能力信息中包括:支持DLNA功能。在一种实施例中,第二设备的类型不同,第二设备的能力信息中还可以包括其他能力,本申请实施例对此不作赘述。
S304,路由器存储第二设备的能力信息。
在一种实施例中,第二设备向路由器上报第二设备的能力信息时,可以携带第二设备的标识,以便于路由器可以将第二设备的标识和第二设备的能力信息对应存储。
应注意的是,第二设备上报的能力信息中包括支持DLNA功能,但未标注第二设备具体支持哪种类型的投屏,比如音频投屏或视频投屏等。在一种实施例中,路由器可以根据第二设备的设备类型,以及第二设备上报的能力信息,更新第二设备的能力信息。更新后的第二设备的能力信息中包括第二设备具体支持的投屏类型。
示例性的,如第二设备的设备类型为音箱,则路由器可以将第二设备的能力信息从“支持DLNA功能”更新为“支持DLNA功能,支持音频投屏”。如第二设备的设备类型为电视或智慧屏,则路由器可以将第二设备的能力信息从“支持DLNA功能”更新为“支持DLNA功能,支持音视频投屏”。
在该实施例中,路由器可以存储更新后的第二设备的能力信息。
应理解,S301-S304为设备接入路由器,以及设备注册的过程,下面讲述路由器控制第二设备打开或关闭DLNA功能的过程:
S305,路由器确定已接入路由器的设备中是否存在第一设备。若是,执行S306,若否,执行S314。
在一种实施例中,路由器可以查询设备信息,确定已接入路由器的设备信息中是否存在可以发起投屏的设备,如手机、PC、平板等。
S306,在第二设备的DLNA功能为关闭状态时,路由器向已接入路由器的第二设备发送第一打开指示,第一打开指示用于指示第二设备打开DLNA功能。
在一种实施例中,路由器可以查询能力信息,确定具有DLNA功能的第二设备。在已接入路由器的设备中存在第一设备时,第一设备可能会进行DLNA投屏,即环境中存在投屏意图,则当第二设备的DLNA功能为关闭状态时,路由器可以向已接入路由器的第二设备发送第一打开指示,以指示第二设备打开DLNA功能。
应理解的是,在第二设备的DLNA功能为打开状态时,可以不执行S306-S308,直接执行S310。
S307,第二设备打开DLNA功能。
应注意的是,S307中第二设备打开DLNA功能,但并未发送Notify组播。
S308,第二设备向路由器反馈第一消息。
第一消息表征第二设备已经打开DLNA功能。
S309,路由器存储第二设备的DLNA功能状态为打开。
S310,响应于用户在第一设备上打开目标应用程序,第一设备向路由器发送目标应用程序开启事件。
在一种实施例中,目标应用程序开启事件可以称为第一事件,第一事件指示第一设备存在投屏意图。
目标应用程序开启事件,用于指示第一设备已打开目标应用程序,即第一设备存在投屏意图。目标应用程序为具备多媒体资源投屏功能的应用程序,示例性的,目标应用程序可以包括但不限于:可以发起投屏的视频类应用程序、可以发起投屏的音频类应用程序,以及可以发起投屏的社交类应用程序等。
为了更为精准地确定用户的投屏需求,在一种实施例中,第一设备可以在检测到用户输入投屏操作时,向路由器发送目标应用程序开启事件。示例性的,如用户在目标应用程序界面上操作投屏控件,可以触发第一设备向路由器发送目标应用程序开启事件。示例性的,用户还可以采用语音交互方式,触发第一设备向路由器发送目标应用程序开启事件,本申请实施例对用户输入投屏操作的方式不做限制。
S311,路由器向已接入路由器的第二设备发送第二打开指示,第二打开指示用于指示第二设备发送Notify组播。
用户在第一设备上打开目标应用程序,就有可能进行投屏。如上S307中,第二设备已经打开了DLNA功能,但并未发送Notify组播,为了在第一设备投屏时,第一设备可以很快发现第二设备,本申请实施例中,在第一设备上打开目标应用程序的情况下,路由器可以向已接入路由器的第二设备发送第二打开指示,以指示第二设备发送Notify组播。其中,Notify组播用于第一设备发现第二设备。
S310-S311和S307-S308没有先后顺序的区分,可以同时执行。
S312,第二设备发送Notify组播。
S313,在第一设备监听到Notify组播的情况下,第一设备在第二设备上进行DLNA投屏。
本申请实施例中对第一设备在第二设备上进行DLNA投屏的过程不做赘述,可以参照图1的相关描述。
S314,在第二设备的DLNA功能为打开状态时,路由器向第二设备发送关闭指示,关闭指示用于指示第二设备关闭DLNA功能。
因为已接入路由器的设备中不存在第一设备,环境中不存在可以发起投屏的设备,即环境中不存在投屏意图,则在第二设备的DLNA功能为打开状态时,路由器可以向第二设备发送关闭指示,以指示第二设备关闭DLNA功能。应理解,在第二设备关闭DLNA功能后,第二设备不会发送Notify组播,可以减少带宽的占用。
在一种实施例中,当已接入路由器的设备中不存在第一设备,且在第二设备的DLNA功能为关闭状态时,路由器可以不响应,如路由器不向第二设备发送关闭指示。在一种实施例中,在已接入路由器的设备中不存在第一设备时,路由器可以在设备信息更新时,继续执行S305。
S315,第二设备关闭DLNA功能。
S316,第二设备向路由器反馈第二消息。
第二消息表征第二设备已经关闭DLNA功能。
S317,路由器存储第二设备的DLNA功能状态为关闭。
综上,在一种实施例中,S305可以替换为:路由器确定已接入路由器的设备中是否存在第一设备,以及检测第二设备的DLNA功能的状态。
其中,当路由器确定已接入路由器的设备中存在第一设备,且第二设备的DLNA功能为关闭状态时,执行S306。当路由器确定已接入路由器的设备中存在第一设备,且第二设备的DLNA功能为打开状态时,执行S310。当路由器确定已接入路由器的设备中不存在第一设备,且第二设备的DLNA功能为打开状态时,执行S314。当路由器确定已接入路由器的设备中不存在第一设备,且第二设备的DLNA功能为关闭状态时,路由器不响应。
在一种实施例中,图3中所示的部分步骤为可选步骤,且步骤之间可以相互组合。
图4A为本申请实施例提供的一种场景示意图。在家庭环境中,如第二设备包括音箱和电视,第一设备为手机,图4A以音箱和电视的DLNA功能均为关闭状态为例。参照图4A中的a,手机在家庭环境之外时,手机未接入路由器。路由器确定已接入路由器的设备中不存在第一设备,且因为音箱和电视的DLNA功能均为关闭状态,路由器可以不响应。参照图4A中的b,当用户携带手机进入家庭环境中时,手机可以接入路由器。路由器确定已接入路由器的设备中存在第一设备,则路由器可以向音箱、电视发送第一打开指示,音箱和电视响应于第一打开指示,打开DLNA功能。
参照图4A中的c,用户在手机上打开视频类应用程序,视频类应用程序具有发起投屏的的功能。手机可以向路由器发送目标应用程序开启事件,路由器响应于目标应用程序开启事件,向音箱、电视发送 第二打开指示,音箱和电视响应于第二打开指示,可以发送Notify组播。
图4B为本申请实施例提供的另一种场景示意图。图4B中以音箱和电视的DLNA功能均为打开状态为例,参照图4B,手机在家庭环境之外时,手机未接入路由器。路由器确定已接入路由器的设备中不存在第一设备,且因为音箱和电视的DLNA功能均为打开状态,路由器可以向音箱、电视发送关闭指示,音箱和电视响应于关闭指示,关闭DLNA功能。当手机进入家庭环境中后,可以参照图4A中的b-图4A中的c中的相关描述。
本申请实施例中,路由器通过已接入路由器的设备中是否存在第一设备,来确定环境中是否存在投屏意图,以指示第二设备打开或关闭DLNA功能。且在用户打开目标应用程序,即用户有可能使用目标应用程序的投屏功能的场景下,路由器指示第二设备发送Notify组播。路由器可以自适应地控制第二设备打开或关闭DLNA功能,以及指示第二设备发送Notify组播,无需用户操作,简单灵活。且在用户真正有投屏意图时,路由器才控制指示第二设备开始发送Notify组播,做到了有目的地控制第二设备组播,既可以避免第一设备难以发现第二设备的问题,还可以减少Notify组播占用的带宽,减少了带宽资源浪费。
图3所示的实施例讲述了路由器可以确定环境中是否存在投屏意图的示例,在一种实施例中,也可以由环境中的检测设备确定环境中是否存在投屏意图,以便于路由器控制第二设备打开或关闭DLNA功能。在一种实施例中,检测设备可以包括但不限于:摄像头、智能门锁、智能猫眼,以及机器人等。
在该种实施例中,参照图5,S305可以替换为S305A-S306A:
S305A,检测设备获取与用户相关的数据,且向路由器发送与用户相关的数据。
在一种实施例中,与用户相关的数据可以包括:检测设备确定环境中是否存在用户的结果,和/或,用户行为数据。
在一种实施例中,检测设备可以接入路由器与路由器进行交互。其中,检测设备可以在接入路由器时,向路由器发送检测设备的相关信息。在检测设备接入路由器的情况下,设备信息中包括检测设备的标识和设备类型。
检测设备开机后,可以获取与用户相关的数据。
其一,以检测设备为摄像头为例,如家庭环境中安装有摄像头,摄像头可以采集视频。在一种实施例中,摄像头可以将采集的视频发送至路由器,由路由器分析视频,以确定家庭环境中是否存在用户。在一种实施例中,摄像头可以采集视频,且可以分析视频,确定家庭环境中是否存在用户。
以摄像头确定家庭环境中是否存在用户为例,在一种实施例中,摄像头采集视频,且分析视频中是否包含有人像。摄像头安装在家庭环境中,当视频中包含有人像时,摄像头可以确定家庭环境中存在用户,当视频中未包含有人像时,摄像头可以确定家庭环境中不存在用户。示例性的,摄像头可以采用人像检测算法或人脸识别算法等,确定视频中是否包含有人像。
在该实施例中,当视频中包含有人像时,摄像头可以向路由器发送用户事件,用户事件指示环境中存在用户。在一种实施例中,摄像头发送的用户事件可以称为第二事件。摄像头获取的与用户相关的数据包括:第二事件。
在一种实施例中,摄像头还可以根据人脸识别算法,分析视频中的用户具体是哪个用户。其中,摄像头中可以存储用户白名单,用户白名单中存储有使用过DLNA投屏的用户的标识,用户的标识如可以为用户的名称、人脸图像等。当摄像头根据人脸识别算法,确定环境中的用户为白名单中的用户时,摄像头可以向路由器发送用户事件。
其中,用户白名单可以为用户在第一设备上自定义设置的,第一设备可以向摄像头发送用户白名单。示例性的,用户可以在第一设备的智慧生活APP中自定义设置用户白名单,在用户通过智慧生活APP将摄像头接入路由器时,第一设备可以向摄像头发送用户白名单。
该种实施例中,摄像头不是只要在环境中存在用户时就向路由器发送用户事件,而是在环境中存在使用过DLNA投屏的用户时,向路由器发送用户事件,因为环境中存在使用过DLNA投屏的用户,该用户再次使用DLNA投屏的概率大,即环境中的投屏意图强烈,这时摄像头向路由器上报用户事件,可以保证路由器可以准确地控制第二设备的DLNA功能的开关。
在一种实施例中,摄像头可以一直为开启状态,即摄像头可以持续采集视频。在一种实施例中,为 了节省摄像头的功耗,在门落锁时,如路由器接收到智能门锁发送的门的状态为落锁状态时,路由器可以指示摄像头开启,以采集视频。这样,不仅可以减少摄像头的视频处理量,还可以减少摄像头的功耗。
其二,以检测设备为智能门锁和智能猫眼为例,家庭环境中,门上安装有智能门锁和智能猫眼。智能门锁可以检测门的状态,门的状态包括落锁状态和打开状态。示例性的,智能猫眼中可以设置有摄像头或人体传感器,智能猫眼可以确定门外是否存在用户。
在一种实施例中,当门关闭时,智能门锁可以向路由器发送门的状态为落锁状态。其中,用户关闭门,因此智能门锁获取的与用户相关的数据包括:门的状态为落锁状态。门落锁可以看作用户行为的结果,因此门的状态为落锁状态可以作为用户行为数据。
智能猫眼可以确定门外是否存在用户,且在门外存在用户时,向路由器上报用户事件。在一种实施例中,智能猫眼还可以向路由器上报采集的视频(或图像),或者人体检测数据,由路由器确定门外是否存在用户。其中,智能猫眼确定门外是否存在用户的方式可以参照摄像头确定环境中是否存在用户的相关描述。在一种实施例中,智能猫眼发送的用户事件可以称为第三事件。其中,智能猫眼获取的与用户相关的数据包括:第三事件。
其三,以检测设备为机器人(清洁机器人)为例,清洁机器人可以在家庭环境中移动,以执行清洁任务。示例性的,清洁机器人中设置有摄像头或人体传感器,清洁机器人可以确定环境中是否存在用户,其中,在清洁机器人确定环境中存在用户时,可以向路由器上报用户事件。在一种实施例中,清洁机器人发送的用户事件可以称为第四事件。其中,清洁机器人获取的与用户相关的数据包括:第四事件。
S306A,路由器根据来自检测设备的与用户相关的数据,确定环境中是否存在用户。若是,执行S306,若否,执行S314。
其一,在一种实施例中,当路由器未接收来自摄像头上报的用户事件时,确定环境中不存在用户,当路由器接收来自摄像头上报的用户事件时,确定环境中存在用户。应理解,当环境中存在用户时,路由器确定环境中存在投屏意图,当环境中不存在用户时,路由器确定环境中不存在投屏意图。
图4C为本申请实施例提供的另一种场景示意图。家庭环境中,第二设备包括音箱和电视,第一设备为手机,图4C中以检测设备包括摄像头,且以音箱和电视的DLNA功能均为关闭状态为例。参照图4C,用户在家庭环境中,摄像头可以采集家庭环境的视频,可以确定家庭环境中存在用户,摄像头向路由器上报用户事件,则路由器响应于接收到来自摄像头的用户事件,可以确定家庭环境中存在用户,即家庭环境中存在投屏意图,路由器可以向音箱、电视发送第一打开指示,音箱和电视响应于第一打开指示,可以打开DLNA功能。
在音箱、电视打开DLNA功能后,若用户在手机上打开目标应用程序,还可以执行如上图4A中的c场景中的操作。
其二,在一种实施例中,路由器可以结合门的状态,以及智能猫眼是否上报用户事件,确定环境中是否存在用户。
示例性的,当门的状态为落锁状态,且路由器接收到智能猫眼上报的用户事件时,路由器确定门是门外落锁。当门的状态为落锁状态,但路由器未接收到智能猫眼上报的用户事件时,路由器确定门是门内落锁。在该种实施例中,当门是门外落锁时,表明用户出行,路由器可以确定环境中不存在用户,当门是门内落锁时,表明用户回家,路由器可以确定环境中存在用户。
其三,在一种实施例中,当路由器未接收来自清洁机器人上报的用户事件时,确定环境中不存在用户,当路由器接收来自清洁机器人上报的用户事件时,确定环境中存在用户。
在一种实施例中,路由器还可以结合多个检测设备上报的与用户相关的数据,确定环境中是否存在用户。
示例性的,当门是门外落锁时,表明用户出行,可能环境中还存在别的用户,则路由器仅根据智能门锁和智能猫眼上报的数据,不能准确确定环境中是否存在用户。在该实施例中,路由器可以结合摄像头上报的数据,以及智能门锁和智能猫眼上报的数据,或清洁机器人上报的数据,确定环境中是否存在用户。在该种实施例中,当门的状态为落锁状态,且路由器接收到智能猫眼上报的用户事件时,路由器确定用户外出,路由器还可以结合摄像头未上报用户事件,准确确定环境中不存在用户。
图4D为本申请实施例提供的另一种场景示意图。家庭环境中,第二设备包括音箱和电视,第一设备为手机,图4D中以检测设备包括摄像头、智能门锁和智能猫眼,且以音箱和电视的DLNA功能均为打 开状态为例。参照图4D中的a,若用户外出,则在锁门时,智能门锁向路由器上报门的状态为落锁状态,且智能猫眼确定门外存在用户,可以向路由器上报用户事件。另,摄像头可以采集家庭环境的视频,并未检测到家庭环境中存在用户,也未向路由器上报用户事件,则路由器根据门的状态为落锁状态,来自智能猫眼的用户事件,以及未接收到来自摄像头的用户事件,可以确定家庭环境中不存在用户,即家庭环境中并不存在投屏意图,路由器可以向音箱、电视发送关闭指示,音箱和电视响应于关闭指示,可以关闭DLNA功能。应理解,图4D中以门表征智能门锁和智能猫眼。
参照图4D中的b,若用户回家,则在锁门时,智能门锁向路由器上报门的状态为落锁状态,且智能猫眼确定门外不存在用户,不向路由器上报用户事件。另,摄像头可以采集家庭环境的视频,确定家庭环境中存在用户,摄像头可以向路由器上报用户事件。在该场景下,路由器根据门的状态为落锁状态,未接收到来自智能猫眼的用户事件,以及接收到来自摄像头的用户事件,可以确定家庭环境中存在用户,即家庭环境中存在投屏意图,路由器可以向音箱、电视均发送第一打开指示,音箱和电视响应于第一打开指示,可以打开DLNA功能。
若用户在手机上打开视频类应用程序,视频类应用程序具有投屏的功能,手机可以向路由器发送目标应用程序开启事件。路由器响应于目标应用程序开启事件,可以向音箱、电视发送第二打开指示,音箱和电视响应于第二打开指示,可以发送Notify组播,可以参照图4A中的c的相关描述。
本申请实施例中,路由器可以结合环境中检测设备上报的与用户相关的数据,确定环境中是否存在用户,以指示第二设备打开或关闭DLNA功能,无需用户操作,简单灵活,且在用户真正有投屏意图时,如用户打开目标应用程序时,路由器才控制指示第二设备开始发送Notify组播,做到了有目的地组播,可以减少Notify组播占用的带宽,减少了带宽资源浪费。
若路由器根据已接入的设备中包括第一设备(手机),控制第二设备打开DLNA功能,在一种可能的场景中,如用户还未回家,手机就已经接入路由器,这时家中无人,虽然该种方式可以提前打开第二设备的DLNA功能,但控制精准度低,还会浪费第二设备的功耗。在一种可能的场景中,若家庭环境中安装的摄像头并未覆盖环境中每个位置,则路由器仅根据摄像头上报的数据,不能准确确定环境中是否存在用户,该种场景下路由器的控制准确度也低。
在一种实施例中,路由器可以结合检测设备获取的与用户相关数据,以及S305中已接入路由器的设备,控制第二设备打开或关闭DLNA功能,以提高对第二设备的控制准确度。
参照图6,S305可以替换为S305B-S305B:
S305B,路由器确定已接入路由器的设备中是否存在第一设备。若是,执行S306B,若否,执行S314。
S305B可以参照S305的相关描述。
S306B,路由器根据来自检测设备的与用户相关的数据,确定环境中是否存在用户。若是,执行S306,若否,执行S314。
S306B可以参照S305A-S306A的相关描述。应理解,在S306B之前,可以执行S305A。
在一种实施例中,S305B和S306B的先后执行顺序可以调换。
图4E为本申请实施例提供的另一种场景示意图。在家庭环境中,第二设备包括音箱和电视,第一设备为手机,图4E以检测设备为摄像头,且以音箱和电视的DLNA功能均为关闭状态为例。参照图4E中的a,用户携带手机到达家门口时,手机接入路由器,但此时摄像头确定环境中不存在用户,可以不向路由器上报用户事件。该种场景中,路由器确定已接入路由器的设备中存在第一设备,但并未接收到来自摄像头的用户事件,路由器可以不响应。参照图4E中的b,当用户携带手机进入家庭环境中,摄像头确定环境中存在用户,可以向路由器上报用户事件。该种场景中,路由器确定已接入路由器的设备中存在第一设备,且接收到来自摄像头的用户事件,路由器可以确定环境中存在投屏意图,路由器可以向音箱、电视发送第一打开指示,音箱和电视响应于第一打开指示,打开DLNA功能。
音箱、电视打开DLNA功能后,还可以响应于来自路由器的第二打开指示,发送Notify组播,可以参照图4A中的c的相关描述。
本申请实施例中,路由器可以结合检测设备上报的与用户相关的数据,以及接入路由器的设备信息,控制第二设备打开或关闭DLNA功能,可以提高DLNA功能开关的控制准确度。
上述实施例中,在确定环境中存在投屏意图时,路由器向已接入路由器的第二设备发送第一打开指示,以指示第二设备打开DLNA功能。其中,第二设备是已接入路由器的所有的投屏目的端设备,在已接入路由器的所有的投屏目的端设备中,不同类型的投屏目的端支持的投屏类型不同。示例性的,如音箱支持音频投屏,智慧屏和电视既支持音频投屏,也支持视频投屏。在环境中存在投屏意图时,如用户想投屏视频,路由器控制却控制音箱也发送Notify组播,但音箱并不支持视频投放,音箱发送的Notify组播仍会浪费带宽资源。
在一种实施例中,为了做到精准控制,第一设备在执行S310时,第一设备向路由器发送目标应用程序开启事件中,可以携带目标应用程序的类型的标识。目标应用程序的类型的标识,用于指示目标应用程序为视频类应用程序或音频类应用程序,即目标应用程序支持的投屏类型。相应的,路由器在执行S311时,路由器响应于该目标应用程序开启事件,可以向目标第二设备发送第一打开指示。其中,路由器可以根据目标应用程序开启事件中携带的目标应用程序的类型的标识,查询第二设备的能力信息,确定目标第二设备。
其中,目标第二设备为支持目标应用程序投屏的第二设备。示例性的,如图4F中的c所示,用户在手机上打开视频类应用,手机可以向路由器发送目标应用程序开启事件,路由器响应于该目标应用程序开启事件,可以向支持视频投屏的电视发送第二打开指示,未向不支持视频投屏的音箱发送第二打开指示。这样,电视可以发送Notify组播,音箱不发送Notify组播,可以减少组播占用的带宽。应理解,图4F中的a-b可以与图4A中的a-b相同,可以参照图4A中的a-b中的相关描述。
在一种实施例中,本申请实施例提供一种投屏方法,参照图7,该方法可以包括:
S701,确定环境中是否存在投屏意图。
在一种实施例中,路由器、中枢设备可以确定环境中是否存在投屏意图。
其中,路由器可以查询已接入路由器的设备,若确定已接入路由器的设备中包括第一设备,则确定环境中存在投屏意图,可以参照S305中相关描述。或者,路由器还可以根据来自检测设备的与用户相关的数据,确定环境中是否存在投屏意图,或者,路由器还可以根据已接入路由器的设备,以及来自检测设备的与用户相关的数据,确定环境中是否存在投屏意图,可以参照S306A、S305B-S306B中的相关描述。
中枢设备可以通过路由器接收来自检测设备的与用户相关的数据,且路由器还可以向中枢设备发送设备信息,中枢设备确定环境中是否存在投屏意图可以参照路由器确定环境中是否存在投屏意图的相关描述。
在一种实施例中,检测设备可以确定环境中是否存在投屏意图。其中,当检测设备确定环境中存在用户,可以确定环境中存在投屏意图。检测设备可以包括但不限于:摄像头、智能门锁,以及智能猫眼。检测设备确定环境中是否存在用户可以参照S305A-S306A中的相关描述。在该种实施例中,若第一设备、第二设备均与检测设备连接,则检测设备在确定环境中存在投屏意图时,可以与第一设备、第二设备交互,执行S702-S703。
应理解,图7中以执行投屏方法的执行主体为路由器为例进行说明。
S702,当环境中存在投屏意图,且环境中第二设备的DLNA功能为关闭状态时,向第二设备发送第一打开指示,第一打开指示用于指示第二设备打开DLNA功能。
S703,响应于接收到来自第一设备的第一事件,向第二设备发送第二打开指示,第一事件指示第一设备存在投屏意图,第二打开指示用于指示第二设备发送组播,组播用于第一设备发现第二设备以进行投屏。
S702可以参照S306-S313中的相关描述,S703可以参照S314中的相关描述。
在一种实施例中,本申请实施例还提供一种电子设备,该电子设备可以为上述实施例中所述的第一设备、第二设备、路由器或中枢设备。参照图8,该电子设备中可以包括:处理器801(例如CPU)、存储器802。存储器802可能包含高速随机存取存储器(random-access memory,RAM),也可能还包括非易失性存储器(non-volatile memory,NVM),例如至少一个磁盘存储器,存储器802中可以存储各种指令,以用于完成各种处理功能以及实现本申请的方法步骤。
可选的,本申请涉及的电子设备还可以包括:电源803、通信总线804以及通信端口805。上述通信端口805用于实现电子设备与其他外设之间进行连接通信。在本申请实施例中,存储器802用于存储 计算机可执行程序代码,程序代码包括指令;当处理器801执行指令时,指令使电子设备的处理器801执行上述方法实施例中的动作,其实现原理和技术效果类似,在此不再赘述。
在一种实施例中,当电子设备为第一设备、第二设备时,电子设备还可以包括:显示屏806,显示屏806用于显示界面。
需要说明的是,上述实施例中所述的模块或部件可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个专用集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序代码的处理器如控制器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
本文中的术语“多个”是指两个或两个以上。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的范围。
可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。

Claims (15)

  1. 一种投屏方法,其特征在于,包括:
    确定环境中是否存在投屏意图;
    当所述环境中存在投屏意图,且所述环境中第二设备的数字生活网络联盟DLNA功能为关闭状态时,向所述第二设备发送第一打开指示,所述第一打开指示用于指示所述第二设备打开DLNA功能;
    响应于接收到来自第一设备的第一事件,向所述第二设备发送第二打开指示,所述第一事件指示所述第一设备存在投屏意图,所述第二打开指示用于指示所述第二设备发送组播,所述组播用于所述第一设备发现所述第二设备以进行投屏。
  2. 根据权利要求1所述的方法,其特征在于,所述环境中包括接入点,所述确定环境中是否存在投屏意图,包括:
    查询已接入所述接入点的设备中是否存在第一设备;
    若是,则确定所述环境中存在投屏意图。
  3. 根据权利要求1所述的方法,其特征在于,所述环境中包括检测设备,所述确定所述环境中是否存在投屏意图,包括:
    接收所述检测设备上报的数据;
    根据所述数据,确定所述环境中是否存在投屏意图。
  4. 根据权利要求3所述的方法,其特征在于,所述检测设备包括如下至少一项:摄像头、智能门锁,以及智能猫眼。
  5. 根据权利要求4所述的方法,其特征在于,所述检测设备包括所述摄像头,所述摄像头用于采集所述环境的视频,且确定所述视频中是否存在用户;
    所述根据所述数据,确定所述环境中是否存在投屏意图,包括:
    若接收到来自所述摄像头的第二事件,则确定所述环境中存在投屏意图,所述第二事件表征所述视频中存在用户。
  6. 根据权利要求4所述的方法,其特征在于,所述检测设备包括所述智能门锁和所述智能猫眼,所述智能门锁用于检测所述环境中门的状态,所述智能猫眼用于确定门口是否存在用户;
    所述根据所述数据,确定所述环境中是否存在投屏意图,包括:
    若接收到来自所述智能门锁的落锁状态,以及未接收到来自所述智能猫眼的第三事件,确定所述环境中存在投屏意图,所述落锁状态表征所述门落锁,所述第三事件表征门口存在用户;
    若接收到来自所述智能门锁的落锁状态,以及接收到来自所述智能猫眼的第三事件,确定所述环境中不存在投屏意图。
  7. 根据权利要求1所述的方法,其特征在于,所述环境中包括接入点和检测设备,所述确定环境中是否存在投屏意图,包括:
    查询已接入所述接入点的设备中是否存在第一设备,以及根据来自所述检测设备上报的数据,确定所述环境中是否存在投屏意图。
  8. 根据权利要求1-7中任一项所述的方法,其特征在于,所述环境包括接入点,所述确定所述环境中是否存在投屏意图之前,还包括:
    在所述第二设备接入所述接入点时,获取所述第二设备的设备类型;
    在所述第二设备接入所述接入点后,接收所述第二设备上报的能力信息;
    根据所述第二设备的设备类型,更新所述第二设备的能力信息,更新后的第二设备的能力信息包括:所述第二设备支持的投屏类型。
  9. 根据权利要求8所述的方法,其特征在于,所述第二设备为至少一个,所述第一事件还用于指示所述第一设备的投屏类型,所述向所述第二设备发送第二打开指示,包括:
    根据所述更新后的第二设备的能力信息,在所述至少一个第二设备中,确定支持所述第一设备的投屏类型的目标第二设备;
    向所述目标第二设备发送所述第二打开指示。
  10. 根据权利要求9所述的方法,其特征在于,当用户在所述第一设备中打开目标应用程序时,所述第一设备存在投屏意图,所述第一设备的投屏类型为:所述目标应用程序支持的投屏类型;或者,
    当用户在所述第一设备中打开所述目标应用程序,且所述用户向所述第一设备输入投屏操作时,所述第一设备存在投屏意图。
  11. 根据权利要求1-7中任一项所述的方法,其特征在于,所述向所述第二设备发送第一打开指示之后,还包括:
    接收来自所述第二设备的第一消息,第一消息用于指示所述第二设备已打开DLNA功能;
    存储所述第二设备的DLNA功能状态为打开。
  12. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述环境中不存在投屏意图,且所述第二设备的DLNA功能为打开状态时,向所述第二设备发送关闭指示,所述关闭指示用于指示所述第二设备关闭DLNA功能。
  13. 一种电子设备,其特征在于,包括:处理器和存储器;
    所述存储器存储计算机指令;
    所述处理器执行所述存储器存储的计算机指令,使得所述处理器执行如权利要求1-12中任一项所述的方法。
  14. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或指令,当所述计算机程序或指令被运行时,实现如权利要求1-12中任一项所述的方法。
  15. 一种程序产品,其特征在于,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,通信装置的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得通信装置实施如权利要求1-12任意一项所述的方法。
PCT/CN2023/106091 2022-07-14 2023-07-06 投屏方法和电子设备 WO2024012344A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210827833.X 2022-07-14
CN202210827833.XA CN117439894A (zh) 2022-07-14 2022-07-14 投屏方法和电子设备

Publications (1)

Publication Number Publication Date
WO2024012344A1 true WO2024012344A1 (zh) 2024-01-18

Family

ID=89535552

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/106091 WO2024012344A1 (zh) 2022-07-14 2023-07-06 投屏方法和电子设备

Country Status (2)

Country Link
CN (1) CN117439894A (zh)
WO (1) WO2024012344A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015180108A1 (zh) * 2014-05-29 2015-12-03 华为技术有限公司 媒体内容的共享方法及装置
CN113055976A (zh) * 2021-03-15 2021-06-29 深圳乐播科技有限公司 基于局域网的无线投屏方法、装置、设备及存储介质
CN113099438A (zh) * 2021-03-25 2021-07-09 深圳市铭博达科技有限公司 一种基于ip网络连接的无线屏幕镜像方法及设备
CN113360108A (zh) * 2020-03-05 2021-09-07 荣耀终端有限公司 一种投屏连接控制方法及电子设备
CN114286137A (zh) * 2021-08-23 2022-04-05 海信视像科技股份有限公司 一种镜像投屏方法、显示设备及终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015180108A1 (zh) * 2014-05-29 2015-12-03 华为技术有限公司 媒体内容的共享方法及装置
CN113360108A (zh) * 2020-03-05 2021-09-07 荣耀终端有限公司 一种投屏连接控制方法及电子设备
CN113055976A (zh) * 2021-03-15 2021-06-29 深圳乐播科技有限公司 基于局域网的无线投屏方法、装置、设备及存储介质
CN113099438A (zh) * 2021-03-25 2021-07-09 深圳市铭博达科技有限公司 一种基于ip网络连接的无线屏幕镜像方法及设备
CN114286137A (zh) * 2021-08-23 2022-04-05 海信视像科技股份有限公司 一种镜像投屏方法、显示设备及终端

Also Published As

Publication number Publication date
CN117439894A (zh) 2024-01-23

Similar Documents

Publication Publication Date Title
RU2630222C2 (ru) Способ и аппарат для связывания интеллектуального устройства
CN105049923B (zh) 唤醒电子设备的方法及装置
CN104735057B (zh) 分享设备控制权的方法及装置
WO2017020413A1 (zh) 网络接入方法、设备及系统
US9602300B2 (en) Smart device-based home network system and control method therefor
US8732319B2 (en) Context awareness proximity-based establishment of wireless communication connection
WO2017000619A1 (zh) 基于低功耗蓝牙和传统蓝牙的微微网组网互连方法及系统
WO2021175214A1 (zh) 一种投屏连接控制方法及电子设备
WO2018184266A1 (zh) 直播频道中的通信方法、装置及系统
JP6314291B2 (ja) 接続解除方法、装置、プログラム及び記録媒体
US20220239718A1 (en) Communication Protocol Switching Method, Apparatus, and System
US20220312550A1 (en) Method for accessing network by network node, and electronic equipment
KR20160030464A (ko) 멀티미디어 데이터 스트림의 획득 방법, 획득 장치, 프로그램 및 기록매체
JP7220254B2 (ja) マルチコア通信方法、装置、電子機器及び記憶媒体
WO2016155304A1 (zh) 无线访问接入点的控制方法及装置
WO2018120778A1 (zh) 区域配置的方法及装置
WO2016119493A1 (zh) 接入网络的方法及装置
CN109918268A (zh) 系统兼容方法、装置、设备和计算机可读存储介质
US20220286731A1 (en) Multimedia apparatus and cast method
CN108848484A (zh) 设备共享方法、装置及存储介质
CN105307288B (zh) 断开连接的方法和装置
WO2024012344A1 (zh) 投屏方法和电子设备
US11968322B2 (en) Methods and apparatuses of call implementation
CN114697880B (zh) 跨网段发现的方法、路由设备及系统
CN105704208B (zh) 服务启动方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23838836

Country of ref document: EP

Kind code of ref document: A1